equuson / modwsgi

Automatically exported from code.google.com/p/modwsgi
0 stars 0 forks source link

Django / Apache / mod_wsgi - WEB Application Hangs - Fails to Launch #301

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am not sure if this is directly a mod_wsgi issue but I am posting it anyways. 
Please bear with me in case you feel that this has nothing to do with mod_wsgi. 
At this stage I am lost and just trying to get some guidance.

My Django WEB Application fails to launch all of a sudden and out of the blues.

It was working fine until yesterday in production.

I am not able to figure out where the problem is. It could apache or mod_wsgi 
or windows but at the moment I have no clue.

I have tried to reinstall all the python libraries/prerequisites etc. but the 
problem persists nevertheless.

I am serving the WEBApp at Apache Port 8999 and When I access the WEB App, the 
browser fails to show any error. It just keeps trying to open the page and in 
the status bar I just see the Waiting for message.

If I see the netstat results then I see the following

C:\Documents and Settings\admintemp>netstat -an | find "8999" TCP
0.0.0.0:8999 0.0.0.0:0 LISTENING TCP 172.18.148.156:8999 10.107.226.88:1826 
ESTABLISHED

This connection remains established forever and nothing happens. Internet 
Browser just seems to try to keep opening the Web App and it appears as if it 
is waiting forever.

The only thing i see in Apache logs is this

[Fri Jun 21 18:34:32 2013] [warn] mod_wsgi: Compiled for Python/2.7.
[Fri Jun 21 18:34:32 2013] [warn] mod_wsgi: Runtime using Python/2.7.3.
[Fri Jun 21 18:34:32 2013] [notice] Apache/2.2.22 (Win32) mod_wsgi/3.3 
Python/2.7.3 configured -- resuming normal operations
[Fri Jun 21 18:34:32 2013] [notice] Server built: Jan 28 2012 11:16:39
[Fri Jun 21 18:34:32 2013] [notice] Parent: Created child process 3876
[Fri Jun 21 18:34:32 2013] [warn] mod_wsgi: Compiled for Python/2.7.
[Fri Jun 21 18:34:32 2013] [warn] mod_wsgi: Runtime using Python/2.7.3.
[Fri Jun 21 18:34:32 2013] [notice] Child 3876: Child process is running
[Fri Jun 21 18:34:32 2013] [notice] Child 3876: Acquired the start mutex.
[Fri Jun 21 18:34:32 2013] [notice] Child 3876: Starting 64 worker threads.
[Fri Jun 21 18:34:32 2013] [notice] Child 3876: Starting thread to listen on 
port 8999.
[Fri Jun 21 18:34:43 2013] [error] C:/Program 
Files/App_Logic/logic_apps/logic_apps\\..\\logic_apps

I also noticed in the Windows Event Viewer logs (Application Logs) the 
following message but I am not sure how (and if) this could be related to my 
problem at hand. This message seems to shows up once for everytime i access the 
Web App.

Application popup: Microsoft Visual C++ Runtime Library : Runtime Error!

Program: C:\Progr...

R6034 An application has made an attempt to load the C runtime library 
incorrectly. Please contact the application's support team for more information.

Exact screenshot of above error message is at http://imgur.com/hijiKv8

Please note that as part of my analysis I have tried

1. Accesing the apache page at http://127.0.0.1:8999 does show me the It Works 
! message
2. Running the WEB App using the Django Development server and it launches fine.
3. Changing the wsgi.py file and when I introduce errors in the file 
deliberately, accessing the web app does complain with the relevant.

The application is installed on Windows Server 2003 SP1 and there are no 
automatic updates schedules on this machine so I am not suspecting that a 
update would have caused this problem. I also saw the Windows Update log and 
there was nothing installed recently.

The application is based on following Python Libraries as prerequisites

httpd-2.2.22-win32-x86-openssl-0.9.8t.msi
python-2.7.3
Django-1.4.3
psycopg2-2.4.6.win32-py2.7-pg9.2.2-release
cx_Oracle-5.1.2-10g.win32-py2.7
PIL-1.1.7.win32-py2.7
python-ldap-2.4.10.win32-py2.7
south-0.7.6
xlrd-0.9.0
xlwt-0.7.5
mod_wsgi.so

Appreciate if someone could guide me with respect to what more I can do to 
solve this problem or get more information to get to the root of this.

Original issue reported on code.google.com by anurag.c...@gmail.com on 23 Jun 2013 at 1:49

GoogleCodeExporter commented 9 years ago
Please use the mailing list as explained in:

http://code.google.com/p/modwsgi/wiki/WhereToGetHelp?tm=6#Asking_Your_Questions

Original comment by Graham.Dumpleton@gmail.com on 23 Jun 2013 at 2:00

GoogleCodeExporter commented 9 years ago
Thanks for the guidance...I was able to solve this . . . Here is the link to my 
answer to my original post on SO

http://stackoverflow.com/questions/17256976/django-apache-mod-wsgi-web-applicati
on-hangs-fails-to-launch

Original comment by anurag.c...@gmail.com on 24 Jun 2013 at 9:34

GoogleCodeExporter commented 9 years ago

Original comment by Graham.Dumpleton@gmail.com on 25 Jun 2013 at 1:58