Skip to content

[BUG] Portainer can't find manage.py #987

@spusuf

Description

@spusuf

When the image or git is pulled then started using docker compose up -d the server starts as expected, but using Portainer to launch results in obico-web logs showing:

python: can't open file '/app/manage.py': [Errno 2] No such file or directory
python: can't open file '/app/manage.py': [Errno 2] No such file or directory
python: can't open file '/app/manage.py': [Errno 2] No such file or directory

And obico-tasks logs show:

Usage: celery [OPTIONS] COMMAND [ARGS]...
Try 'celery --help' for help
Error: Invalid value for '-A' / '--app':
Unable to load celery application.

However changing the backend volume in docker-compose.yml from - ./backend:/app to:
- ./backend:/backend works

Adding the line -./backend:/appdoes not work.

Is there a reason why the frontend volume points to the frontend directory, but backend points to a directory that doesn't exist in the root folder? Again this is only an issue in Portainer but the fix works for docker compose.

Just want to get a little bit of insight as to why it's set up this way and what I need to fix in a PR to get working on both platforms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions