On Wednesday, May 23, 2012 4:07:51 AM UTC+2, Graham Dumpleton wrote: > > On 22 May 2012 23:51, Brendon Stanton wrote: > > I am having this same problem and wondered if anyone had discovered a > > solution. > > The cause for this occurring in some cases has been hard to nail down. > Problem is that to sort it out may well need hacking up mod_wsgi to > get additional information out of it about what is going on. This is > something that has usually been beyond the people having the problem. >
Hi! I have a problem that seems to look a bit like these, however I find it very easy to fingerpoint at mod_wsgi: I have a lot of different virtual hosts, but sometimes I get an error message on a port 80 host that can *only* be caused by a mix up with a port 443 host running an entirely different server name. The error looks like this: /var/log/apache2/error.www_host.com.log.1:[Sat Jun 23 18:37:07 2012] [error] [client 123.123.123.123] ImportError: Could not import settings 'settings_alternative' (Is it on sys.path?): No module named settings_alternative Now, the only wsgi script file that I have configured to load django with a settings module called "settings_alternative" is the script running on the 443 host. But randomly I get the above error on a port 80 host. Logically, this can only be achieved by loading the wrong WSGI script in the correct path. The error has been persistent for weeks, but sometimes it doesn't show up during hundreds of requests, making it very difficult to debug. I'm currently running mod_wsgi 2.8 on Ubuntu Lucid, so the first thing I'll do is try to upgrade to mod_wsgi 3.X and report back if the problem has gone or not. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To view this discussion on the web visit https://groups.google.com/d/msg/modwsgi/-/d5INMAcY1MYJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
