Skip to content
This repository has been archived by the owner on Jan 31, 2022. It is now read-only.

When uploading an image, I'm getting this error "FileNotFoundError at /" from apache2 server #26

Open
rameshjega opened this issue Aug 12, 2021 · 4 comments

Comments

@rameshjega
Copy link

rameshjega commented Aug 12, 2021

When trying to upload an image in apache 2 server localhost (http://127.0.0.1:8000). It's returning an error:

What steps should I follow to make it work? ( I already followed README.md instructions and run setup.sh)

but when i give python3 manage.py runserver by using terminal its working properly.

but from apache2 configuration the given error comes again and again
save

After done the configuration in apache2 server everything is working fine but pre trained model not found error

I checked the error log its given internal server error /

SAVE_20210812_204042

@FarjaalAhmad
Copy link
Owner

Hey, can you try to install setup.sh commands manually? It will help to troubleshoot.

@rameshjega
Copy link
Author

manually and through terminal i have to done pre trianed model

through commandline " python3 manage.py runserver 0:8000 " everything is working fine

but through apache2 server it will not consider the right path "internal server error / "

i upload attachements above

FileNotFoundError: [Errno 2] No such file or directory: 'models/u2net/u2net.pth'

@FarjaalAhmad
Copy link
Owner

Ah. When I tried to deploy it using Gunicorn, I faced such issues. If I'm remembering correctly, I just moved the models directory to somewhere else where it worked. Try to move the entire models directory elsewhere like a directory before or put it into another subdirectory as I don't exactly remember where I put that folder. I'm sure that it will work fine. Good luck with that.

@d1makov
Copy link

d1makov commented Nov 4, 2021

I faced the same issue, did you figure out how to resolve it? @rameshjega

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

No branches or pull requests

3 participants