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

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

Open
spusuf opened this issue Jun 29, 2024 · 3 comments
Open

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

spusuf opened this issue Jun 29, 2024 · 3 comments

Comments

@spusuf
Copy link

spusuf commented Jun 29, 2024

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.

@kennethjiang
Copy link
Contributor

"./backend" should be mapped to "/app" in the container. It was for backward compatibility.

@goandfix
Copy link

I have the same problem. Like a work arodun I had to download the github manually and run with portainer.

@Wetzel402
Copy link

I tried this but then see these warning...

?: (staticfiles.W004) The directory '/app/../frontend/builds' in the STATICFILES_DIRS setting does not exist.
?: (staticfiles.W004) The directory '/app/../frontend/static' in the STATICFILES_DIRS setting does not exist.

and this error...

ValueError: Missing staticfiles manifest entry for 'vendor/css/sweetalert2.min.css'

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

4 participants