6.0.0-alpha14
7/3/25

[#6959] error 500 in imp/redirect on failed login
Summary error 500 in imp/redirect on failed login
Queue IMP
Queue Version 4.2
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester support (at) pwv-shops (dot) de
Created 06/20/2008 (6222 days ago)
Due
Updated 06/21/2008 (6221 days ago)
Assigned
Resolved 06/20/2008 (6222 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/21/2008 04:35:57 PM support (at) pwv-shops (dot) de Comment #6 Reply to this comment
SOLVED:

After trying for hours and reinstalling the whole system and 
experiencing with apache/php  I've installed apache2-mod-worker with 
php5-cgi and mod_fastcgi. By default Debian Etch installs mod_fcgid 
(which is newer). By default mod_fastcgi's option idle-timeout is set 
to 30 seconds and with this value IMP crashs on wrong login. When set 
this option to 60 seconds - it works, looks like a wonder after hours 
of trouble :)

So I reinstalled mod_fcgid and removed mod_fastcgi and set option 
IPCCommTimeout in mod_fcgid.conf to 60 seconds (by default 20 seconds) 
and so I don't get the error anymore. To be sure, I'll go on for a 
while with testing ;)
06/20/2008 04:00:09 PM support (at) pwv-shops (dot) de Comment #5 Reply to this comment
Hum, with php5-cli the error doesn't occur, only with php5-fcgi (I can 
reproduce this error). That's not what I want, because apache-worker 
doesn't work with php5-cli (only the prefork-model), but I still can't 
understand why I can do anything when logged in correctly and the 
script fails only on wrong login!?
06/20/2008 08:37:11 AM support (at) pwv-shops (dot) de Comment #4 Reply to this comment
Found nothing in FAQ about "premature end....", "error 
500"...Troubleshoot for Horde and IMP also contain no hint for my 
problem!? Give a hint...
Please see the FAQ.
06/20/2008 08:07:34 AM Jan Schneider Comment #3
State ⇒ Not A Bug
Reply to this comment
Please see the FAQ.
06/20/2008 07:42:37 AM support (at) pwv-shops (dot) de Comment #2 Reply to this comment
Forgot to say, that apache works with worker-model on Debian Etch. 
Perhaps, there is a wrong newline in redirect.php?
06/20/2008 07:06:40 AM support (at) pwv-shops (dot) de Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ error 500 in imp/redirect on failed login
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
I know this should be a problem with php or apache2, but I don't know 
what to do anymore. I'm using Horde Groupware Webmail Edition on 
Apache 2.2 with PHP5 (fast-cgi). Auth works over IMP (Cyrus 2.2 IMAP). 
All works fine, I can login, I can read mails, can create users and so 
on. I can do nearly everything in Horde when logged in. The problem 
is, when I log in with wrong username or password. The application 
works for some seconds and I get an error 500 and Apache error log says:



[Fri Jun 20 08:41:41 2008] [error] [client 85.232.9.189] Premature end 
of script headers: redirect.php, referer: https://xxx/imp/redirect.php

[Fri Jun 20 08:41:42 2008] [notice] mod_fcgid: process 4226 going 
graceful shutdown, sending SIGTERM

[Fri Jun 20 08:41:48 2008] [warn] mod_fcgid: process 4226 graceful 
shutdown timeouted, sending SIGKILL

[Fri Jun 20 08:41:54 2008] [notice] mod_fcgid: process 
/var/www/horde/imp/login.php(4226) exit(communication error), get stop 
signal 9



No other log provides more information. What can I do?

When calling redirect.php direct in browser, I get redirected to login 
page. What's wrong? I don't believe in wrong configuration of the 
webserver (because all is fine when I'm correctly logged in).

Saved Queries