Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#17346 closed Uncategorized (invalid)

MemoryError

Reported by: anonymous Owned by: nobody
Component: Uncategorized Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Karen Tracey)

I have my django application on a apache server with mod_wsgi When i start it with python manage.py runserver, it works perfectly, but if I try to use it over apache/mod_wsgi it causes major Error (MemoryError at /index) Any ideas?

Description of problem:

MemoryError at /index

No exception supplied

Request Method: 	GET
Request URL: 	http://127.0.0.1/index
Django Version: 	1.3.1
Exception Type: 	MemoryError
Exception Location: 	/usr/lib/python2.7/ctypes/__init__.py in <module>, line 552
Python Executable: 	/usr/bin/python
Python Version: 	2.7.1
Python Path: 	

['/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg',
 '/usr/lib/python2.7/site-packages/obspy.core-0.4.8-py2.7.egg',
 '/usr/lib/python2.7/site-packages/obspy.mseed-0.4.9-py2.7-linux-i686.egg',
 '/usr/lib/python2.7/site-packages/obspy.xseed-0.4.8-py2.7.egg',
 '/usr/lib/python2.7/site-packages/obspy.arclink-0.4.9-py2.7.egg',
 '/usr/lib/python2.7/site-packages/obspy.signal-0.4.9-py2.7-linux-i686.egg',
 '/usr/lib/python2.7/site-packages/obspy.fissures-0.4.6-py2.7.egg',
 '/usr/lib/python2.7/site-packages/obspy.seishub-0.4.7-py2.7.egg',
 '/usr/lib/python27.zip',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-linux2',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7/site-packages',
 '/usr/lib/python2.7/site-packages/PIL',
 '/usr/lib/python2.7/site-packages/gst-0.10',
 '/usr/lib/python2.7/site-packages/gtk-2.0',
 '/var/www/']

tail -75 error_log:

[Mon Dec 05 10:00:55 2011] [notice] caught SIGTERM, shutting down
[Mon Dec 05 10:01:02 2011] [notice] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Mon Dec 05 10:01:02 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Dec 05 10:01:02 2011] [notice] Digest: generating secret for digest authentication ...
[Mon Dec 05 10:01:02 2011] [notice] Digest: done
[Mon Dec 05 10:01:02 2011] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Mon Dec 05 10:01:02 2011] [notice] mod_python: using mutex_directory /tmp 
[Mon Dec 05 10:01:02 2011] [notice] Apache/2.2.21 (Unix) DAV/2 mod_python/3.3.1 Python/2.7.1 mod_wsgi/3.2 configured -- resuming normal operations

Thanks!

Change History (4)

comment:1 by Ramiro Morales, 12 years ago

Resolution: invalid
Status: newclosed

comment:2 by anonymous, 12 years ago

Was this issue ever resolved. I have exactly the same problem. The site works when I use manage.py runserver but it throws the Mmeroy Error when I use Apache

comment:3 by Karen Tracey, 12 years ago

Description: modified (diff)

comment:4 by Karen Tracey, 12 years ago

Anonymous: There's not enough information in the original description to even speculate as to whether there is a bug in Django causing it. The number of people able to successfully run Django under Apache rather argues that the problem is specific to the project/configuration; therefore until there is something that points to a bug in Django please use other support channels (see for example https://docs.djangoproject.com/en/1.4/faq/help/). Trac isn't meant for debugging user's projects/configurations.

Note: See TracTickets for help on using tickets.
Back to Top