Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dokku app container failed to start: exec docker-entrypoint.sh failed: Exec format error #50

Open
finnroblin opened this issue Feb 5, 2022 · 3 comments

Comments

@finnroblin
Copy link

Deploying the dokku app (running dokku tags:deploy api latest) raised this error:

Attempting pre-flight checks (web.1) Waiting for 10 seconds ... ee21cdf0ef4d125ec6f443e7cdb732f4dcb97e31086c2361d8c69287d3d05a57 App container failed to start!! =====> api web container output: [FATAL tini (6)] exec docker-entrypoint.sh failed: Exec format error =====> end api web container output

This is with Redis 6.2.6. Some searching led me to believe that the docker container's connection to redis is the culprit.

In the .env file, I changed REDIS_URL to:
REDIS_URL= redis://:test@host.docker.internal:6379

But this results in an authentication error from Redis. Using host.docker.internal without a password leads to a NOAUTH error.
Has anyone experienced a similar issue? I am considering following the instructions here: redis/ioredis#763 to deploy using docker-compose, since it seems like the docker Redis container is not playing nicely with the backend.
Thanks

@SecondThread
Copy link

I'm running into this same issue now. Any luck?

@FNG-2002
Copy link

I'm having the same issue. Did you solve it?

@FNG-2002
Copy link

Guys, I found out what the error was. In my case I was building the Docker image on an M1 Macbook. So the image architecture was arm64. Then I tried to build for amd64 and it worked now.

https://docs.docker.com/desktop/mac/apple-silicon/
https://www.digitalocean.com/community/questions/failed-to-load-usr-bin-bash-exec-format-error

Hope it helps you guys :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants