Re: undefined error with mod_python
Thanks cd34 for your ideas. I use mod_python for other stuff on my server, but that doesn't prevent me from also using mod_wsgi. Especially, as it is already very well supported across python applications and is said to perform better than mod_python. Nonetheless, using mod_wsgi didn't help, I only got 500 codes. No error output in any log file although I even get info messages. I tested on a different system (should have done that much earlier), there I got error output and found, it's the EvalException middleware which I forgot to disable with [DEFAULT] debug = false That's it. Haven't tested with mod_python any more, but it works well with mod_wsgi. Does anybody have any further idea why I don't get error output on my production system? Thanks again Tim On 25 Apr., 02:29, cd34 mcd...@gmail.com wrote: LogLevel error or, at worst: LogLevel debug in your apache config might produce more results in your error logs. Your config looks right, but, the error logs are probably set to crit which is why you're not seeing anything of value in the logs. Remember you can also specify an ErrorLog directive in your virtualhost to cut down on messages. If you are not using mod_python for anything else on the server, you might also considerhttp://code.google.com/p/modwsgi/ -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/pylons-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-disc...@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: undefined error with mod_python
On Apr 26, 7:01 pm, Tim-Erwin p...@tim-erwin.de wrote: Thanks cd34 for your ideas. I use mod_python for other stuff on my server, but that doesn't prevent me from also using mod_wsgi. Especially, as it is already very well supported across python applications and is said to perform better than mod_python. Nonetheless, using mod_wsgi didn't help, I only got 500 codes. No error output in any log file although I even get info messages. I tested on a different system (should have done that much earlier), there I got error output and found, it's the EvalException middleware which I forgot to disable with [DEFAULT] debug = false That's it. Haven't tested with mod_python any more, but it works well with mod_wsgi. Does anybody have any further idea why I don't get error output on my production system? Possibly because Paste server does special configuration of logging module which isn't done if one uses loadapp() by itself to generate a WSGI application entry point. See: http://wiki.pylonshq.com/display/pylonscookbook/Logging+under+mod_wsgi So, if you aren't already, introduce the fileConfig() call as described along with appropriate .ini file entries. Graham Thanks again Tim On 25 Apr., 02:29, cd34 mcd...@gmail.com wrote: LogLevel error or, at worst: LogLevel debug in your apache config might produce more results in your error logs. Your config looks right, but, the error logs are probably set to crit which is why you're not seeing anything of value in the logs. Remember you can also specify an ErrorLog directive in your virtualhost to cut down on messages. If you are not using mod_python for anything else on the server, you might also considerhttp://code.google.com/p/modwsgi/ -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/pylons-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-disc...@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/pylons-discuss?hl=en. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-disc...@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.
undefined error with mod_python
Hi, I'm trying to setup pylons with apache2 mod_python. It works in principle in that it shows me the default start page. However, as soon as I enter any url other than the root, I get this error: A server error occurred. Please contact the administrator. There is nothing in the apache logs; because of some reasons I don't get a mail with an error description; nothing is logged to the file which should capture everything that is logged. This is my apache config I took from the wiki (http:// wiki.pylonshq.com/display/pylonscookbook/Production+deployment+using +mod_python): Location / SetHandler python-program PythonHandler paste.modpython PythonDebug On PythonPath ['/path/to/my/project'] + sys.path PythonOption paste.ini /path/to/my/project/production.ini /Location It seems to be correct, because if I change something (like the paste.ini path) I get an error about it. I also tried the other options from the wiki page with mod_python as handler and the wsgi bridge, but those gave me 500 Internal Server Error. How can I find out more about what's wrong with my installation? Using paste serve production.ini works perfectly, but I need to use apache. Thanks Tim -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-disc...@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: undefined error with mod_python
LogLevel error or, at worst: LogLevel debug in your apache config might produce more results in your error logs. Your config looks right, but, the error logs are probably set to crit which is why you're not seeing anything of value in the logs. Remember you can also specify an ErrorLog directive in your virtualhost to cut down on messages. If you are not using mod_python for anything else on the server, you might also consider http://code.google.com/p/modwsgi/ -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-disc...@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.