FastCGI Lighttpd interface error / operational error

I am getting frontend / operational error when running my Django app with FastCGI. When checking the access log (lighttpd) I find these errors appear, which is usually due to some kind of db connection or other being closed. The browser displays one of two things: "Unhandled exception or connection failed." Refreshing the page once (usually) the errors seem to go away. How can I prevent this? The system is indeed unstable.

0


source to share


2 answers


There can be two reasons for this problem. 1. Not all urls mentioned in your urls.py change correctly. 2. This is the tricky part. An import fails somewhere in the project. It can import a method that doesn't exist.



I ran into the same problem and found that there were a lot of imports as mentioned in the second point.

+1


source


I faced the same problem and wrote my own solution without finding anything from the internet. Please check my blog post here: Simple Python utility to check all imports in your project



Of course, this will help you quickly solve the problem with the original problem, and not itself a solution to your problem.

0


source







All Articles