Author Topic: Another 'immediate log out after log in' problem  (Read 6849 times)

Offline AdamW

  • Newbie
  • *
  • Posts: 2
Another 'immediate log out after log in' problem
« on: January 26, 2010, 03:14:07 PM »
Hi, everyone. I found a couple of threads on this already but they both seemed to peter out, so I thought it best to start a new one.

I maintain the Roundcube packages for Mandriva. Ever since I updated the packages to 0.3.1 and updated my own server, as soon as I log in to Roundcube from any browser on any machine (it seems), I get logged out again. I can see my inbox for a few seconds, then get dumped back out to the login screen.

The web server roundcube is running on and the mail server it talks to are both Mandriva Linux 2009.0 boxen. Roundcube is set to talk to an imapproxy instance running on the mailserver, which in turn talks to the actual mail server application, which is courier-imap. There doesn't appear to be anything wrong with the courier configuration, I can log in to the server directly as usual, and I haven't changed it at all for months. imapproxy is imapproxy-1.2.6-5mdv2009.0 and courier-imap is courier-imap-4.4.0-1mdv2009.0.

After turning on all logging settings I can find, the logs I get are as follows. Roundcube's 'error' log shows nothing. Roundcube's 'imap' log shows this interesting stanza at the end:

[26-Jan-2010 11:51:55 -0800]: C: QUOT1 GETQUOTAROOT "INBOX"
[26-Jan-2010 11:51:55 -0800]: S: * QUOTAROOT "INBOX" "ROOT"
[26-Jan-2010 11:51:55 -0800]: S: * QUOTA "ROOT"
[26-Jan-2010 11:51:55 -0800]: S: QUOT1 OK GETQUOTAROOT Ok.
[26-Jan-2010 11:51:55 -0800]: C: I LOGOUT

The courier-imap 'errors' and 'warnings' logs show nothing relevant. The 'info' log just shows:

Jan 26 11:51:53 mailserver in.imapproxyd[4331]: LOGIN: '"adamw"' (192.168.1.4:44750) on existing sd [9]
Jan 26 11:51:53 mailserver in.imapproxyd[4331]: LOGOUT: '"adamw"' from server sd [9]
Jan 26 11:51:53 mailserver in.imapproxyd[4331]: LOGIN: '"adamw"' (192.168.1.4:44751) on existing sd [9]
Jan 26 11:51:55 mailserver in.imapproxyd[4331]: LOGOUT: '"adamw"' from server sd [9]

I think that's two attempts.

That's all the info I can find. It started behaving like this on upgrade from 0.2.2 to 0.3.1 (I skipped 0.3), without migrating database or config files. After I migrated the database and config files according to upstream changes, it continues to behave this way. I can't absolutely guarantee it wasn't happening right before the upgrade, but it definitely worked with 0.2.2 during the time I had it installed.

Any ideas, anyone? Thanks!

UPDATE: tried taking imapproxy out of the loop, changed nothing in behaviour (obviously the logs say something different now, but the behaviour's the same). There do actually appear to be *two* login / logouts for each single attempt, that log snippet wasn't two attempts as I thought.
« Last Edit: January 26, 2010, 03:16:14 PM by AdamW »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,505
    • http://SKaero.com/
Another 'immediate log out after log in' problem
« Reply #1 on: January 27, 2010, 03:13:49 AM »
Does this happen with a fresh install have you tried the SVN?

Offline AdamW

  • Newbie
  • *
  • Posts: 2
Another 'immediate log out after log in' problem
« Reply #2 on: January 27, 2010, 02:58:10 PM »
I tried dropping my database entirely and recreating it from mysql.initial.sql and deleting my config file (well, I renamed it, I'm not an idiot :>) and re-doing it from scratch based on the 0.3.1 .dist file. Problem still happens.

Haven't tried SVN yet, I can do in a bit if you really think it would help.

Offline Martian

  • Jr. Member
  • **
  • Posts: 35
Another 'immediate log out after log in' problem
« Reply #3 on: February 02, 2010, 09:20:08 AM »
Did you perhaps upgrade to PHP 5.3.x at the same time you upgraded Roundcube or are you running PHP 5.3.x?

If so see this thread:

http://www.roundcubeforum.net/3-news-announcements/12-general-discussion/6196-login-page-doesnt-take-me-anywhere.html

Martian

Offline jklaverstijn

  • Newbie
  • *
  • Posts: 1
Another 'immediate log out after log in' problem
« Reply #4 on: February 15, 2010, 10:54:49 AM »
Is this thread petering out as well? I have the same issue since going to 0.3.1-stable.

My installation:

Fedora Core 12 x64
PHP: PHP 5.2.12 (cli) (built: Jan 10 2010 14:25:14)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
    with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH

I have session.auto_start=0 in php.ini since the beginning.

DBI: $rcmail_config['db_dsnw'] = 'mysql://xxx:yyy@localhost/roundcubemail';

IMAP: Cyrus

Apache/2.2.13 (Fedora)

The logs contain no pointers to the problem. It seems like the browser is redirecting

I hope someone has pointers that will eventually help. TIA.

Regards, Jan
« Last Edit: February 15, 2010, 11:36:57 AM by jklaverstijn »

Offline jokerxs

  • Newbie
  • *
  • Posts: 1
Another 'immediate log out after log in' problem
« Reply #5 on: February 26, 2010, 09:06:33 AM »
Hi everyone,

I think I found the problem - the immediate redirection after login ceased after disabling suhosin extension in php5.ini.

I run roundcube on debian lenny with apache2.2 and php-5.2.0.

Hope this helps.

Offline eclipxe

  • Newbie
  • *
  • Posts: 1
Another 'immediate log out after log in' problem
« Reply #6 on: May 04, 2010, 11:49:20 AM »
Quote from: jokerxs;25867
Hi everyone,

I think I found the problem - the immediate redirection after login ceased after disabling suhosin extension in php5.ini.

I run roundcube on debian lenny with apache2.2 and php-5.2.0.

Hope this helps.


I confirm that roundcube does not return to login anymore after disabling suhosin extension.
If you use suphp also, this can be disabled only for the roundcube user in the php.ini preference.

Offline alvmangi

  • Newbie
  • *
  • Posts: 1
Another 'immediate log out after log in' problem
« Reply #7 on: September 26, 2010, 11:17:42 PM »
Hi,

  You only need to disable the php.ini option below:

      suhosin.session.encrypt = Off

  That solve the issue.

  Kind Regards,
   
      Alvaro

Offline chaplu

  • Newbie
  • *
  • Posts: 1
Didn't work out for me
« Reply #8 on: February 26, 2011, 03:34:49 AM »
Hi,

i don't have suhosin extension but still its coming back to login page

log shows


[26-Feb-2011 13:37:28 +0530]: S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
[26-Feb-2011 13:37:28 +0530]: C: cp01 CAPABILITY
[26-Feb-2011 13:37:28 +0530]: S: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA STARTTLS AUTH=PLAIN AUTH=LOGIN
[26-Feb-2011 13:37:28 +0530]: S: cp01 OK Capability completed.
[26-Feb-2011 13:37:28 +0530]: C: a001 LOGIN "xxxxxxxxmyloginxxxxxxxxxxx" "xxxxxxxmypassxxxxxxxxx"
[26-Feb-2011 13:37:31 +0530]: S: a001 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA] Logged in
[26-Feb-2011 13:37:31 +0530]: C: ns1 NAMESPACE
[26-Feb-2011 13:37:31 +0530]: S: * NAMESPACE (("" ".")) NIL NIL
[26-Feb-2011 13:37:31 +0530]: S: ns1 OK Namespace completed.
[26-Feb-2011 13:37:31 +0530]: C: ghd LIST "" ""
[26-Feb-2011 13:37:31 +0530]: S: * LIST (\Noselect) "." ""
[26-Feb-2011 13:37:31 +0530]: S: ghd OK List completed.
[26-Feb-2011 13:37:31 +0530]: C: I LOGOUT