apache / apache/polaris

Docker quickstart won't start

Open
#2,554 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
2.1k
Forks
522
Avg merge
1d 22h
Merged PRs (30d)
137

Description

### Describe the bug

I was following along these docs https://polaris.apache.org/in-dev/unreleased/getting-started/quickstart/#running-polaris-with-docker to try and run polaris locally with docker, but the docker compose fails to start
```bash
docker compose -p polaris -f getting-started/assets/postgres/docker-compose-postgres.yml -f getting-started/jdbc/docker-compose-bootstrap-db.yml -f getting-started/jdbc/docker-compose.yml up -d
WARN[0000] The "STORAGE_LOCATION" variable is not set. Defaulting to a blank string.
WARN[0000] The "AWS_ROLE_ARN" variable is not set. Defaulting to a blank string.
WARN[0000] The "AZURE_TENANT_ID" variable is not set. Defaulting to a blank string.
[+] Running 6/6
✔ Container polaris-postgres-1 Healthy 7.0s
✔ Container polaris-polaris-bootstrap-1 Exited 8.3s
✔ Container polaris-polaris-1 Healthy 14.2s
✘ Container polaris-polaris-setup-1 service "polaris-setup" didn't complete successfully: exit 1 15.2s
✔ Container polaris-trino-1 Created 0.1s
✔ Container polaris-spark-sql-1 Created 0.1s
service "polaris-setup" didn't complete successfully: exit 1
```
The setup fails, so I look at the logs for the setup container and
```bash
docker logs polaris-polaris-setup-1
fetch https://dl-cdn.alpinelinux.org/alpine/v3.22/main/x86_64/APKINDEX.tar.gz
280B3857277F0000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:2123:
WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.22/main: Permission denied
fetch https://dl-cdn.alpinelinux.org/alpine/v3.22/community/x86_64/APKINDEX.tar.gz
280B3857277F0000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:2123:
WARNING: fetching https://dl-cdn.alpinelinux.org/alpine/v3.22/community: Permission denied
ERROR: unable to select packages:
jq (no such package):
required by: world[jq]
```
it's missing jq. Is there another image the setup container should be using that does include jq?

### To Reproduce

1. Kill all your polaris containers with either `docker compose down` or manually
2. Remove all polaris containers to start fresh: `docker rm polaris-spark-sql-1 polaris-trino-1 polaris-polaris-setup-1 polaris-polaris-1 polaris-polaris-bootstrap-1 polaris-postgres-1`
3. Rerun the docker compose: docker compose -p polaris -f getting-started/assets/postgres/docker-compose-postgres.yml -f getting-started/jdbc/docker-compose-bootstrap-db.yml -f getting-started/jdbc/docker-compose.yml up -d

### Actual Behavior

System fails to start.

### Expected Behavior

All containers should successfully launch.

### Additional context

_No response_

### System information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with getting-started/assets/postgres/docker-compose-postgres.yml, getting-started/jdbc/docker-compose-bootstrap-db.yml, and getting-started/jdbc/docker-compose.yml, focusing on the polaris-setup service and its image. Run the documented docker compose command and inspect the setup container logs, including the Alpine package-fetch failure. Done means the setup service completes successfully and all containers launch.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose
Domain
devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.