Page 1 of 2 12 LastLast
Results 1 to 15 of 24

Thread: Upgraded to 11.30.0, now roundcube saying "session expired or is invalid"

  1. #1
    Member
    Join Date
    Aug 2006
    Posts
    52

    Default Upgraded to 11.30.0, now roundcube saying "session expired or is invalid"

    As above, I tried clearing my cookies, new browser, bouncing Exim but nothing helps.

    I get as far as the cpanel webmail login, then enter my credentials and it dumps me at a roundcube login with the session expired or is invalid message.

    Any ideas? Thanks in advance.

    Jim

  2. #2
    cPanel Staff cPanelMichael's Avatar
    Join Date
    Apr 2011
    Posts
    2,215
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Upgraded to 11.30.0, now roundcube saying "session expired or is invalid"

    Hello Jim

    Could you check the Roundcube error log to determine if any specific error messages are logged when this problem occurs? It can be found at:

    Code:
    /var/cpanel/roundcube/log/errors
    Thank you.
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists - Documentation - Migration Services
    -- cPanelMichael - Migration Specialist, Technical Analyst, cPanel Technical Support

  3. #3
    Member
    Join Date
    Aug 2006
    Posts
    52

    Default Re: Upgraded to 11.30.0, now roundcube saying "session expired or is invalid"

    There is only one log in that location (sendmail), no error log.

    Thanks

  4. #4
    Member
    Join Date
    Aug 2006
    Posts
    52

    Default Re: Upgraded to 11.30.0, now roundcube saying "session expired or is invalid"

    Just to confirm this is not a user issue, I have tried several users on several different domains on this server. Nobody can login to webmail.

    I have also gone to the office now to check if I can login from there. No luck.

    Any ideas guys, my customers will be trying to login around now so my phone is going to run hot pretty soon.

    Correction: error is "session is invalid or has expired"
    Last edited by sp3ctre69; 06-01-2011 at 03:33 AM.

  5. #5
    Member
    Join Date
    Aug 2006
    Posts
    52

    Default Re: Upgraded to 11.30.0, now roundcube saying "session expired or is invalid"

    I have logged a support ticket : 1557822

  6. #6
    Member
    Join Date
    Aug 2006
    Posts
    52

    Default Re: Upgraded to 11.30.0, now roundcube saying "session expired or is invalid"

    Just in case anyone else has this problem, support sorted it out for me. The short version is they increased the "session_lifetime" of roundcube. Apparently this wouldn't have happened if roundcube was using SQLite (it is now).

    If anyone needs the details please let me know, or raise a support call. I'm no expert on these things so I don't want to give wrong advice on here. Maybe a cPanel tech might like to clarify the solution

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2004
    Posts
    313
    cPanel/WHM Access Level

    DataCenter Provider

    Default Re: Upgraded to 11.30.0, now roundcube saying "session expired or is invalid"

    After getting this problem on a number of cPanel servers running 11.30, I attempted to take the suggestion of upgrading to SQLite, however the conversion script (/scripts/convert_roundcube_mysql2sqlite) fails with:

    Code:
    File does not exist: /home/user/tmp/roundcube_convert/user@domain.com/rcube.contactgroupmembers.xml at /scripts/convert_roundcube_mysql2sqlite line 362
    Going to submit a ticket and see where that goes. It's looking like this will be my third 11.30 bug report of the day.
    NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
    Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!

  8. #8
    Member
    Join Date
    Aug 2006
    Posts
    52

    Default Re: Upgraded to 11.30.0, now roundcube saying "session expired or is invalid"

    Garretp, that was exactly the same error I got and they populated the contactgroup table and that fixed it. I guess you could log into the webmail and add a contact group that way and it should have the same effect? Bit concerning I thought but the tech assures me it's nothing to worry about.

  9. #9
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Upgraded to 11.30.0, now roundcube saying "session expired or is invalid"

    Specifically, this was performed to correct the issue on the prior ticket:

    Code:
    vi /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php
    Then changing:

    Code:
    $rcmail_config['session_lifetime'] = 10;
    To something along the lines of 30 or 50. The value cannot be higher than 60 due to this setting:

    Code:
    // Minimal value of user's 'keep_alive' setting (in seconds)
    // Must be less than 'session_lifetime'
    $rcmail_config['min_keep_alive'] = 60;
    Also, when opening up a ticket based on a forum thread, it is great if the forum thread can be referenced in the ticket. I just got the new ticket (1562010) and had to find this forum thread accidentally while reading the forums at the same time.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  10. #10
    Member
    Join Date
    Aug 2006
    Posts
    52

    Default Re: Upgraded to 11.30.0, now roundcube saying "session expired or is invalid"

    That fix was for the original issue, not the failure of the conversion script that was just reported.

  11. #11
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Upgraded to 11.30.0, now roundcube saying "session expired or is invalid"

    The fix is the one that most people would use rather than converting to SQLite. The way to fix the conversion script was already also reported in this thread in your reply, while the steps I noted specifically were not. This is in reply to the ticket (1562010) that was opened specifically about the issue, since this thread never provided the exact steps on what line to fix in which specific file for the session_lifetime for Roundcube users running MySQL

    Of note, I wouldn't suggest mass updating to SQLite for all users for Roundcube as the best course of action. This should only be performed if necessary. The default for Roundcube is currently MySQL rather than SQLite.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  12. #12
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2004
    Posts
    313
    cPanel/WHM Access Level

    DataCenter Provider

    Default Re: Upgraded to 11.30.0, now roundcube saying "session expired or is invalid"

    Tristan,

    No such luck; I hit you back on the ticket.
    NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
    Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!

  13. #13
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Upgraded to 11.30.0, now roundcube saying "session expired or is invalid"

    Hello garrettp,

    The issue actually tracked down to MySQL reporting the incorrect system time versus the server's system time. I simply restarted MySQL and the time issue resolved. Here was how I obtained the system time versus MySQL time:

    Code:
    root@servername [/]# date
    Wed Jun  1 16:58:06 PDT 2011
    
    root@servername [/]# mysql
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 141245
    Server version: 5.0.92-community MySQL Community Edition (GPL)
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    mysql> select now();
    +---------------------+
    | now()               |
    +---------------------+
    | 2011-06-01 19:58:14 | 
    +---------------------+
    1 row in set (0.00 sec)
    After restarting MySQL, the "select now();" command in MySQL command line worked to show the right time. At that point, Roundcube began working.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  14. #14
    Member
    Join Date
    Aug 2006
    Posts
    52

    Default Re: Upgraded to 11.30.0, now roundcube saying "session expired or is invalid"

    Quote Originally Posted by cPanelTristan View Post

    Of note, I wouldn't suggest mass updating to SQLite for all users for Roundcube as the best course of action. This should only be performed if necessary. The default for Roundcube is currently MySQL rather than SQLite.
    I would not have done it if it wasn't recommended to me in the ticket. What are the down-sides to doing it (too late now, but good to know what problems I could be facing). Also, if I migrate someone off cpanel where roundcube is on MySQL and put them on my server, would that cause a problem?

  15. #15
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Upgraded to 11.30.0, now roundcube saying "session expired or is invalid"

    The biggest downside to changing to SQLite is that there is no longer a shared MySQL database that can be managed using PhpMyAdmin or MySQL command line. We do not have any client to manage SQLite in a GUI interface and each user's SQLite file is separate from every other users. This does help, on the other hand, to keep all user data from corrupting due to one user's Roundcube database files being corrupted. It is just far harder to correct issues that do crop up upon the conversion due to the limit of a good utility to manage SQLite. A pro for SQLite is that it has lower usage for memory than MySQL for Roundcube, so the load is reduced on a server with a lot of accounts using Roundcube.

    If you migrate someone from a MySQL-based Roundcube to your server with SQLite Roundcube, then the account should convert to SQLite automatically on the transfer.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Page 1 of 2 12 LastLast

Similar Threads

  1. "Warning: Unknown(): Failed to write session data (files)"
    By majoosh in forum cPanel & WHM Discussions
    Replies: 17
    Last Post: 10-06-2012, 05:27 PM
  2. Run a "Screen" session as a specific user
    By Gaia in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 11-06-2010, 10:19 AM
  3. "Copy Session Timed out!" when Transfering an account
    By Secunix in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 03-25-2006, 09:18 PM