modwsgi + Pylons gives segmentation fault
I am trying to setup mod_wsgi + Pylons on my deployment server (a CentOS 5.2 machine), but I get this error message in the apache log files [Tue Feb 24 11:24:32 2009] [notice] child pid 12226 exit signal Segmentation fault (11) a standard wsgi test programs works fine. The myapp.wsgi script is: import os, sys eggcache = '/var/www/vhosts/eggcache' sys.path.append('/home/ruben/myapp') os.environ['PYTHON_EGG_CACHE'] = eggcache from paste.deploy import loadapp application = loadapp('config:/home/ruben/myapp/development.ini') The apache process has write access in the eggcache directory If set debug = false in the development .ini The setup works perfectly on my development machine Any help how to debug --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: modwsgi + Pylons gives segmentation fault
On 24/02/2009, at 9:37 PM, cropr wrote: I am trying to setup mod_wsgi + Pylons on my deployment server (a CentOS 5.2 machine), but I get this error message in the apache log files [Tue Feb 24 11:24:32 2009] [notice] child pid 12226 exit signal Segmentation fault (11) a standard wsgi test programs works fine. I had to disable mod_cache to avoid a clash between it and sqlite causing Apache to segfault. You may want to try this first to make sure you aren't being hit by the same problem. Refs: http://www.mail-archive.com/sqlite-us...@sqlite.org/msg34866.html http://oss.itsystementwicklung.de/trac/pysqlite/ticket/146 Cheers, Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: modwsgi + Pylons gives segmentation fault
On Feb 24, 9:37 pm, cropr ruben.dec...@gmail.com wrote: I am trying to setup mod_wsgi + Pylons on my deployment server (a CentOS 5.2 machine), but I get this error message in the apache log files [Tue Feb 24 11:24:32 2009] [notice] child pid 12226 exit signal Segmentation fault (11) a standard wsgi test programs works fine. The myapp.wsgi script is: import os, sys eggcache = '/var/www/vhosts/eggcache' sys.path.append('/home/ruben/myapp') os.environ['PYTHON_EGG_CACHE'] = eggcache from paste.deploy import loadapp application = loadapp('config:/home/ruben/myapp/development.ini') The apache process has write access in the eggcache directory If set debug = false in the development .ini The setup works perfectly on my development machine Any help how to debug Have you read the documentation, in particular the sections which talk about circumstances where crashes can occur. http://code.google.com/p/modwsgi/wiki/InstallationIssues http://code.google.com/p/modwsgi/wiki/ApplicationIssues Because you do not say which version of Python you are using, harder to make a guess at what the issue may be. Normally the problem is going to be a mismatch in shared library versions used by Apache, PHP or some other Apache module and what a Python module uses. In some cases the problem can be because of third party Python modules not designed to run in sub interpreters. Not knowing what your application does and what major Python modules/ packages it uses, again makes it harder to guess. Graham --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---