/var/log/uwsgi/myapp.log: I don’t understand the reason for the error: Tue Jan 11 15:27:45 2022 – failed to open python file /root/eva/lawyer/lawyer/wsgi.py I can’t understand why uwsgi can’t open this python file. The path to it is right myapp.ini: Tell me, please, what could be the c…
Tag: uwsgi
ERR_TOO_MANY_REDIRECTS in a Flask application. Works in local but not in server
In local my Flask application works fine, and when I use /editing_buddy it redirects me correctly. The thing is, when I upload it to the server, it always gives me 404 Error. If I try to use @app.route decorator, I get a TOO MANY REDIRECTS error. My server is hosted by Wikimedia in funpedia.toolforge.org if t…
uwsgi can’t be installed
I’m stuck trying to install uWSGI to deploy my Django application using pip install uwsgi, but encounter this error: I’ve found several answers that unfortunately didn’t work for me, like update dev tool ,install cywin or modify uwsgiconfig.py (which doesn’t exist since it’s not …
docker container increase listen queue size beyond 128
How can I increase the listen queue size beyond 128 on a docker image with a read only file system? When I run my container I get the following error: uWSGI: – Listen queue size is greater than the system max net.core.somaxconn (128). I have a Dockerfile with base image python:2.7. I am trying to increa…
Why is PyMongo 3 giving ServerSelectionTimeoutError?
I’m using: Python 3.4.2 PyMongo 3.0.2 mongolab running mongod 2.6.9 uWSGI 2.0.10 CherryPy 3.7.0 nginx 1.6.2 uWSGI start params: I setup my MongoClient ONE time: I try and save a JSON dict to MongoDB: It works via a unit test that executes the same code path to mongodb. However when I execute via CherryP…
How to make uwsgi shut down if application failed to load?
I run my uwsgi in the simplest way possible, as a process managed by upstart, no emperor mode or anything. This is what I get if application fails on startup for some reason: I have no use for this mode, and would like it to shut down completely, so my upstart job shows as stopped. How can I do this?