Issue Details (XML | Word | Printable)

Key: MBS-4499
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Unassigned
Reporter: Ian McEwen
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
MusicBrainz Server

Plack "Parameters" Debug Panel is breaking login

Created: 29/Mar/12 03:07 AM   Updated: 12/Jun/12 07:13 PM
Component/s: Misc features
Affects Version/s: None
Fix Version/s: None


 Description  « Hide

From i18n.mbsandbox.org's log:

2012/03/29 02:59:01 [error] 8589#0: *10561 FastCGI sent in stderr: "[debug] Redirecting to "/login"" while reading response header from upstream, client: 10.1.3.13, server: i18n.mbsandbox.org, request: "POST /login?uri=%2Flogin HTTP/1.0", upstream: "fastcgi://unix:/home/i18n/.fcgi.socket:", host: "i18n.mbsandbox.org", referrer: "http://i18n.mbsandbox.org/login"
2012/03/29 02:59:01 [error] 8589#0: *10561 FastCGI sent in stderr: "[error] Caught exception in engine "Bad Content-Length: maybe client disconnect? (47 bytes remaining) at local/lib/perl5/Plack/Middleware/Debug/Parameters.pm line 20"" while reading response header from upstream, client: 10.1.3.13, server: i18n.mbsandbox.org, request: "POST /login?uri=%2Flogin HTTP/1.0", upstream: "fastcgi://unix:/home/i18n/.fcgi.socket:", host: "i18n.mbsandbox.org", referrer: "http://i18n.mbsandbox.org/login"
2012/03/29 02:59:01 [error] 8589#0: *10561 upstream closed prematurely FastCGI stdout while reading response header from upstream, client: 10.1.3.13, server: i18n.mbsandbox.org, request: "POST /login?uri=%2Flogin HTTP/1.0", upstream: "fastcgi://unix:/home/i18n/.fcgi.socket:", host: "i18n.mbsandbox.org", referrer: "http://i18n.mbsandbox.org/login"

When this happens, the login page fails to log you in, and returns a 502 when you try. Setting CATALYST_DEBUG to 0, disabling the panels, fixes the problem.



Sort Order: Ascending order - Click to sort in descending order
Ian McEwen added a comment - 12/Jun/12 07:13 PM

Just to highlight this again, alastairp jut had this problem with his server as well – it happens any time you're running MBS with the Parameters debug panel and behind nginx/fcgi.

If app.psgi has a way of detecting what plack method it's using, we can just disable Parameters conditionally if the method is FCGI.