Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    May 2003
    Posts
    20

    Default Roundcube cannot connect to database. Help please?

    Client reported this evening that they get the following error trying to log into roundcube:

    DATABASE ERROR: CONNECTION FAILED!

    I honestly have NO CLUE where to start debugging this, I'm not finding any errors, I'm stressed I'm tired I could use an extra hand trying to resolve this from the beginning. Anybody care to guide me? Hold my hand? Tell me it's going to be alright? :-)

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,172
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb

    It'll be alright. No hand holding though...

    Is MySQL up?

    This thread may be related but out of date.
    horder and roundcube can't connect to database error

  3. #3
    Member
    Join Date
    Jun 2007
    Posts
    138

    Default How to fix roundcube database error

    Please try the following procedure.
    =====

    create database roundcube;
    exit;

    Then do the procedure:

    mysql-u root-D roundcube-p </usr/local/cpanel/base/3rdparty/roundcube/SQL/mysql.initial.sql

    After that, look for the file:

    vi /usr/local/cpanel/base/3rdparty/roundcube/config/db.inc.php
    In line similar to the database -> mysql://roundcube:SENHADOROUNDCUBE@localhost/roundcube

    replace by:

    mysql://root:SENHADEROOT@localhost/roundcube


    Now try your webmail using roundcube


    Also ,

    * Check if db.inc.php and main.inc.php contains the correct entries such as username , password and database name
    * Running the command /usr/local/cpanel/bin/update-roundcube --force will also help
    * go to phpmyadmin and repair all round cube tables
    * Also check and reset the mysql root password in whm just to make sure it is set .
    *Last but not the least try /scripts/upcp --force


    Make a copy of roundcube database under /var/lib/mysql before trying any of the above methods
    LogicSupport.com - Support That Makes Sense!
    Quality Server Management & Web Hosting Support

  4. #4
    Member
    Join Date
    May 2003
    Posts
    20

    Default

    OK, I did all of the above. User can log into RoundCube again, but two complaints:

    1) Inbox is almost a week and a half behind
    2) Cannot send new messages, it hangs with a message of "Sending message"

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Location
    New Jersey, USA
    Posts
    397

    Default

    These are known common problems with roundcube. If all else fails, try updating cpanel and updating roundcube too.

  6. #6
    Member
    Join Date
    Jun 2007
    Posts
    138

    Default

    Hello kamnet ,

    Check if you can get any errors from the logs .

    Common fixes recommended are :-

    1 ) vi /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php

    and change

    $rcmail_config['smtp_user'] = '%u';
    to
    $rcmail_config['smtp_user'] = '';

    2) If you are using csf , check csf configuration file for the entry

    SMTP_BLOCK = "1"
    SMTP_ALLOWLOCAL = "1"

    If the value is 0 change it to 1 and restart csf

    3) update cPanel ( /scripts/upcp --force ) to latest "STABLE" version.

    4) increase the memory_limit in php.ini under /usr/local/cpanel/base/3rdpart/roundcube/

    Try any of the above methods
    LogicSupport.com - Support That Makes Sense!
    Quality Server Management & Web Hosting Support

  7. #7
    Member
    Join Date
    May 2003
    Posts
    20

    Default

    I forced an update of cpanel from the command line (suggested a few posts ago) and that helped to fix part of the problems but not all of them. After I logged back into WHM I was greeted with a new license screen for RoundCube, after I cleared that I tried doing a cPanel update from within WHM, and that appears to have cleared everything up.

  8. #8
    Member
    Join Date
    Jan 2004
    Posts
    755

    Default

    Quote Originally Posted by logicsupport View Post
    Make a copy of roundcube database under /var/lib/mysql before trying any of the above methods

    Umm... shouldn't that be the *first* item of text rather than the last

Similar Threads & Tags
Similar threads

  1. Replies: 6
    Last Post: 12-21-2010, 01:19 PM
  2. Replies: 12
    Last Post: 01-06-2010, 09:54 PM
  3. 11.24 Upgrade: Roundcube Database Connect Error
    By RickG in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-31-2008, 08:22 AM
  4. horder and roundcube can't connect to database error
    By dxm in forum E-mail Discussions
    Replies: 7
    Last Post: 09-12-2008, 06:25 AM
  5. Roundcube Database Error Issue
    By kamnet in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-26-2008, 09:22 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube