Error: Executable not found

HI! I’m new here on Koyeb.

Received error during runtime of FastAPI application:
Executable not found. This usually indicates that the command used to launch the application cannot be found. Check that the command used to launch your application is correct.

But here’s the setup from a github repository with dockerfile:
Builder type: Dockerfile
Command: gunicorn main:app -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 --reload
Autodeploy: true
Privileged: true

What can it be?

Hi @Alcides_Dantas

You need to split the command and the args. In this case:

  • command: gunicorn
  • args: main:app -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 --reload

This should do the trick!

1 Like

In the first two attempts with this suggestion, the error persisted.

But then it worked! Maybe it was cache. Thanks!