Modify

Opened 7 years ago

Closed 6 years ago

#2536 closed defect (fixed)

FastCGI dies causing error 500 when trying to login using OpenID

Reported by: sebastian@… 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 7 years ago by sebastian@…

  • Priority changed from normal to high
  • Severity changed from major to blocker

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.

comment:2 Changed 7 years ago by dalius

I will look into this problem in the middle of the day.

comment:3 Changed 7 years ago by dalius

  • Status changed from new to 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 7 years ago by sebastian@…

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 7 years ago by sebastian

I switched to apache and mod-wsgi and it works.

I kind of liked lighttpd :-(

comment:6 Changed 6 years ago by dalius

  • Resolution set to fixed
  • Status changed from assigned to 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).

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.