Skip to content Skip to sidebar Skip to footer

Django App Stops Working When Deployed On Apache ( Subprocess Runs, But Fails )

My Django app stops working when deployed on Apache ( with mod_wsgi ). It runs on a Windows server. The app calls on a windows executable called 'rex' ( Alchemy Remote Executor )

Solution 1:

It's always a challenge when deploying to a windows service that you are running as a different user than you're running under when you are in development, running it as a real user. I've had all kinds of troubles with this writing an updater that runs as a service, getting file permissions problems. Can you try logging in to Windows as the same user that is running the Apache service, and try your rex executable from there? With luck, you might be able to get rex to fail there where you're interactive and can troubleshoot it.

But the basic idea is to replicate the failure outside of the apache service, then do whatever is needed to let this thing run while under the permissions of the service, and you're fixed. It could be that your rex program is trying to read or write to files (such as configuration files?) that it doesn't have permissions for.

Post a Comment for "Django App Stops Working When Deployed On Apache ( Subprocess Runs, But Fails )"