django apache configuration with WSGIDaemonProcess not working

WSGIDaemonProcess Rent python-path=/var/www/rent:/root/.virtualenvs/rent/lib/python2.7/site-packages This is the most likely cause of the problem. You have created a virtualenv inside the super user’s home folder. But that folder is unlikely to be accessible to apache. A user’s home folder is not accessible to any other user by default. The web server and the WSGI process will be … Read more

Differences and uses between WSGI, CGI, FastCGI, and mod_python in regards to Python?

A part answer to your question, including scgi. What’s the difference between scgi and wsgi? Is there a speed difference between WSGI and FCGI? How Python web frameworks, WSGI and CGI fit together CGI vs FCGI Lazy and not writing it on my own. From the wikipedia: http://en.wikipedia.org/wiki/FastCGI Instead of creating a new process for … Read more

104, ‘Connection reset by peer’ socket error, or When does closing a socket result in a RST rather than FIN?

I’ve had this problem. See The Python “Connection Reset By Peer” Problem. You have (most likely) run afoul of small timing issues based on the Python Global Interpreter Lock. You can (sometimes) correct this with a time.sleep(0.01) placed strategically. “Where?” you ask. Beats me. The idea is to provide some better thread concurrency in and … Read more

Make sure only one worker launches the apscheduler event in a pyramid web app running multiple workers

Because Gunicorn is starting with 8 workers (in your example), this forks the app 8 times into 8 processes. These 8 processes are forked from the Master process, which monitors each of their status & has the ability to add/remove workers. Each process gets a copy of your APScheduler object, which initially is an exact … Read more

Why are some mysql connections selecting old data the mysql database after a delete + insert?

MySQL defaults to the isolation level “REPEATABLE READ” which means you will not see any changes in your transaction that were done after the transaction started – even if those (other) changes were committed. If you issue a COMMIT or ROLLBACK in those sessions, you should see the changed data (because that will end the … Read more