I'm using a setup with nginx, uwsgi and SQLAlchemy. I recently switched from SQLObject and I'm now seeing strange random errors with SQLAlchemy. For instance:
sqlalchemy.exc.ResourceClosedError: This result object does not return rows. It has been closed automatically. or:
sqlalchemy.exc.NoSuchColumnError: "Could not locate column in row for column 'module.id'" Is this some kind of behavior in SQLAlchemy which I'm not aware of? Can it be related to multiple processes/threads in uwsgi?
My uwsgi config file looks like this:
[uwsgi] plugins=python socket = 127.0.0.1:9002 wsgi-file = /thesystem/code/api.py master = True processes = 4 threads = 2 daemonize = /thesystem/logs/uwsgi.log pidfile = /thesystem/uwsgi.pid