Jean-Charles Touzalin
07/25/2023, 8:14 AM./run-ab-platform.sh)
airbyte-db | /usr/local/bin/docker-entrypoint.sh: line 92: /usr/local/bin/initdb: cannot execute binary file: Exec format error
airbyte-db exited with code 126
airbyte-temporal | nc: bad address 'db'
airbyte-temporal | Waiting for PostgreSQL to startup.
It’d seem the PostgreSQL binary is not compatible with my mac's architecture (M1, arm64).
I’ve search the Github discussions, the Discourse and here on Slack but didn’t find a workaround.
I tried changing the db image in the Docker compose yaml from:
db:
image: airbyte/db:${VERSION}
to:
db:
image: airbyte/db:0.50.11@sha256:bd28ca659a8b4940582fdd5338be7582c94cad4de8fe690bce7b4bed67ce6193
to make sure the image for arm64 would be installed.
I got a slightly different error:
airbyte-db | /usr/local/bin/docker-entrypoint.sh: line 346: /usr/local/bin/postgres: cannot execute binary file: Exec format error
airbyte-db | /usr/local/bin/docker-entrypoint.sh: line 346: /usr/local/bin/postgres: No error information
airbyte-db exited with code 1
But there still seem to be an architecture incompatibility error.
I'm not particularly experienced with Docker so not sure what I can do next.
Anyone has an idea? 🤓
Thanks!kapa.ai
07/25/2023, 8:15 AMExec format error you're seeing, which typically means the binary was built for a different architecture. In the [forum discussion](https://discuss.airbyte.io/t/4652), a user faced a similar issue while trying to add a custom connector to the Airbyte UI. The user was able to resolve the issue by enabling Docker's experimental features and building the Docker image for the linux/amd64 platform. Here are the steps they followed: 1. Go to Docker Desktop settings. Find "Experimental features". Enable. 2. Run docker buildx create --use 3. Build and push your image using docker buildx build --platform linux/amd64 --push -t repo/image-name:tag . Please note that this solution might not work for your case as it depends on the specific Docker images you're using. If the issue persists, I would recommend reaching out to the Airbyte community on their [Slack channel](https://airbytehq.slack.com) or [forum](https://discuss.airbyte.io) for further assistance.Jean-Charles Touzalin
07/25/2023, 8:31 AMkapa.ai
07/25/2023, 8:31 AMMarcos Marx (Airbyte)
07/25/2023, 1:13 PM./run-platform.sh script?Jean-Charles Touzalin
07/25/2023, 1:16 PMJean-Charles Touzalin
07/25/2023, 1:17 PMMarcos Marx (Airbyte)
07/25/2023, 1:20 PMJean-Charles Touzalin
07/25/2023, 1:24 PMairbyte-db | PostgreSQL Database directory appears to contain a database; Skipping initialization
airbyte-db |
airbyte-db |
airbyte-db | /usr/local/bin/docker-entrypoint.sh: line 346: /usr/local/bin/postgres: cannot execute binary file: Exec format error
airbyte-db | /usr/local/bin/docker-entrypoint.sh: line 346: /usr/local/bin/postgres: No error information
airbyte-db exited with code 1Marcos Marx (Airbyte)
07/25/2023, 1:39 PMdocker run --rm --name dest -p 2001:5432 -e POSTGRES_PASSWORD=password -d postgre if you run this are you able to spin up a Postgre container?Jean-Charles Touzalin
07/25/2023, 1:42 PMJean-Charles Touzalin
07/25/2023, 2:43 PMSajarin Dider
07/25/2023, 2:53 PMdocker compose down and docker compose up and report what errors you see? Unfortunately not seeing any unresolved errors in the logsJean-Charles Touzalin
07/25/2023, 3:11 PM