Attempting to start a uwsgi server and getting TASK_RUNNER errors #899
-
I have been attempting to start a uwsgi server with a uwsgi.ini configuration file. Everything seems fine up until it tries to import settings. uwsgi says TASK_RUNNER isn't defined. Apparently the django lazy loader is looking for a settings file in biostar.conf.run. There are none there so this seems like a natural error. There are numerous settings.py files in there and I am trying to get forum to run. I tried copying the settings.py file from the forum application into conf/run but this gave the same error. I started looking at init.py and the line:
This ENVIROMENT_VARIABLE is 'none' when the server is started. This seems like a weird name for an actual user environmental variable. Does this need to be set? django docs contain no info about ENVIORNMENT_VARIABLE. the following is the uwsgi log: *** Starting uWSGI 2.0.20 (64bit) on [Wed Feb 16 00:54:27 2022] *** During handling of the above exception, another exception occurred: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
figured it out. It was a typo when doing export DJANGO_SETTINGS_MODULE=biostar.forum.settings. |
Beta Was this translation helpful? Give feedback.
figured it out. It was a typo when doing export DJANGO_SETTINGS_MODULE=biostar.forum.settings.