Opened 17 years ago
Closed 17 years ago
#2536 closed defect (fixed)
FastCGI dies causing error 500 when trying to login using OpenID
Reported by: | Owned by: | Dalius | |
---|---|---|---|
Priority: | high | Component: | AuthOpenIdPlugin |
Severity: | blocker | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
Hi, I've setup everything acording to: http://trac-hacks.org/wiki/AuthOpenIdPlugin
I'm running this on Lighttpd setup with FastCGI on an Ubuntu Gutsy Server 7.10. I had to manually install python-openid 2.1.1 which is the latest version. Gutsy comes with 2.0.1 and you specifically say you need 2.1-rc2.
I'm a bit lost on how to debug as trac.log does not show anything that looks relevant and error.log only shows this:
2008-02-07 04:53:48: (mod_fastcgi.c.2480) unexpected end-of-file (perhaps the fastcgi process died): pid: 26350 socket: unix:/tmp/trac-fastcgi.sock-3 2008-02-07 04:53:48: (mod_fastcgi.c.3272) response not received, request sent: 1272 on socket: unix:/tmp/trac-fastcgi.sock-3 for /trac , closing connection
Any ideas? Thanks
Attachments (0)
Change History (6)
comment:1 Changed 17 years ago by
Priority: | normal → high |
---|---|
Severity: | major → blocker |
comment:3 Changed 17 years ago by
Status: | new → assigned |
---|
Here is Mercurial repository with newest version of plugin: http://hg.sandbox.lt/authopenid-plugin/
It works with Python OpenId 2.1.1. Please test it with plain trac. Just run tracd -p 8080 your_trac_dir and see if it works. It might show that you need to upgrade your database or might show some traceback that could help solve the problem. Make sure that log_level is equal to DEBUG in trac.ini [logging] section.
comment:4 Changed 17 years ago by
Dalius,
I tried it with tracd and it works, so I guess something is making mod_fastcgi die that works fine with a different backend (i heared it works fine with wsgi too - i think i'm moving to apache wsgi but I was quite happy with lighttpd myself otherwise).
Let me know if I can assist debugging.
comment:5 Changed 17 years ago by
I switched to apache and mod-wsgi and it works.
I kind of liked lighttpd :-(
comment:6 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
For future reference. Technically it is impossible to fix such errors and they can only be cought by lot of debug logging and some similar techniques. The problem was that OpenId library logs some DEBUG messages to syserr. The solution was to override OpenID logger with custom one (in this case logging goes to trac's debug).
I downgraded to python-openid 2.1.0-rc2 and the error remains the same. As it is with current trac and python-openid it seems this will not run on current ubuntu.