You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Tonys guide I am at 6. Get Nginx, uWSGI, and Django to Work Together testing my configuration.
after activating Venv I run following commands:
cd /var/django/it/imagetagger/imagetagger
uwsgi --socket /var/run/django/it.sock --module imagetagger.wsgi --chmod-socket=666
Output:
*** Starting uWSGI 2.0.19.1 (64bit) on [Thu Jul 29 10:46:05 2021] ***
compiled with version: 8.3.0 on 08 July 2021 20:46:10
os: Linux-5.4.124-1-pve #1 SMP PVE 5.4.124-1 (Wed, 23 Jun 2021 13:47:09 +0200)
nodename: it
machine: x86_64
clock source: unix
detected number of CPU cores: 2
current working directory: /var/django/it/imagetagger/imagetagger
detected binary path: /var/python3/venv/it/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 256541
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to UNIX address /var/run/django/it.sock fd 3
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
Python version: 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0]
*** Python threads support is disabled. You can enable it with --enable-threads ***
Python main interpreter initialized at 0x55638a1b2fc0
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
your server socket listen backlog is limited to 100 connections
your mercy for graceful operations on workers is 60 seconds
mapped 72904 bytes (71 KB) for 1 cores
*** Operational MODE: single process ***
Traceback (most recent call last):
File "./imagetagger/wsgi.py", line 12, in <module>
from configurations.wsgi import get_wsgi_application
File "/var/python3/venv/it/lib/python3.7/site-packages/configurations/wsgi.py", line 3, in <module>
importer.install()
File "/var/python3/venv/it/lib/python3.7/site-packages/configurations/importer.py", line 49, in install
importer = ConfigurationImporter(check_options=check_options)
File "/var/python3/venv/it/lib/python3.7/site-packages/configurations/importer.py", line 68, in __init__
self.validate()
File "/var/python3/venv/it/lib/python3.7/site-packages/configurations/importer.py", line 113, in validate
raise ImproperlyConfigured(self.error_msg.format(self.modvar))
django.core.exceptions.ImproperlyConfigured: Configuration cannot be imported, environment variable DJANGO_SETTINGS_MODULE is undefined.
unable to load app 0 (mountpoint='') (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 27548, cores: 1)
After the browser gave me an Internal Server Error and the terminal says no python application found:
--- no python application found, check your startup logs for errors ---
[pid: 27548|app: -1|req: -1/1] 192.168.178.116 () {40 vars in 655 bytes} [Thu Jul 29 10:46:38 2021] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)
What I'm trying to do
Trying to run ImageTagger with uWSGI and NGINX over socket file
What I've tried
I first tried to follow this tutorial:
https://tonyteaches.tech/django-nginx-uwsgi-tutorial/
Additional context
In Tonys guide I am at 6. Get Nginx, uWSGI, and Django to Work Together testing my configuration.
after activating Venv I run following commands:
Output:
After the browser gave me an
Internal Server Error
and the terminal saysno python application found
:Variables I exported:
Is there something I have to do in regards of missing variable
DJANGO_SETTINGS_MODULE
?ImageTagger in general does work with the following commands (Variables are exported):
Output after an request in the Browser:
Where does the issue occur?
If it is a self hosted instance, please provide further information
The text was updated successfully, but these errors were encountered: