Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Roundcube "database error: connection failed!"

Discussion in 'E-mail Discussion' started by Remitur, Oct 1, 2018.

  1. Remitur

    Remitur Active Member

    Joined:
    Jan 17, 2018
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Ljubljana
    cPanel Access Level:
    Root Administrator
    I have a single user that, trying to access Roundcube, get following error:

    DATABASE ERROR: CONNECTION FAILED!
    Unable to connect to the database!
    Please contact your server-administrator.

    It's a single user to get it:
    • for any other user on the server (on different domains,or even of the same domain) Roundcube works fine

    • the user who get this error on Roundcube can work without issues on Horde or Squirrelmail
    Any idea? !?! :(
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,254
    Likes Received:
    479
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Remitur

    Is there are an associated error in the following logs:
    Code:
    /var/log/maillog
    /usr/local/cpanel/logs/error_log
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Scott Andrews

    Scott Andrews Registered

    Joined:
    Jun 20, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Lansing, MI
    cPanel Access Level:
    Root Administrator
    Hello,
    Have you tried to reset the user's password for the email account. You can do this in cPanel >> Email >> Email Accounts. Choose the account, then set a new password from the Password and Authentication under Actions
     
  4. atkhosting

    atkhosting Member

    Joined:
    Jul 21, 2006
    Messages:
    22
    Likes Received:
    1
    Trophy Points:
    153
    Hello there,

    I have the same problem. password change did not run.

    error_log

    Code:
    [2019-04-03 08:00:57 +0300] info [webmaild] [fcgi] PHP message: PHP Warning:  touch(): Unable to create file /home/userfolder/etc/xxxxxxxxx.com/betul.rcube.db because Permission denied in /usr/local/cpanel/base/3rdparty/roundcube/program/lib/Roundcube/rcube_db_sqlite.php on line 38
    PHP message: PHP Warning:  file_put_contents(/home/userfolder/tmp/errors): failed to open stream: Permission denied in /usr/local/cpanel/base/3rdparty/roundcube/program/lib/Roundcube/rcube.php on line 1259
    PHP message: PHP Warning:  SQLSTATE[HY000] [14] unable to open database file in /usr/local/cpanel/base/3rdparty/roundcube/program/lib/Roundcube/rcube.php on line 1364
    PHP message: PHP Warning:  file_put_contents(/home/userfolder/tmp/errors): failed to open stream: Erişim engellendi in /usr/local/cpanel/base/3rdparty/roundcube/program/lib/Roundcube/rcube.php on line 1259
    PHP message: PHP Warning:  SQLSTATE[HY000] [14] unable to open database file in /usr/local/cpanel/base/3rdparty/roundcube/program/lib/Roundcube/rcube.php on line 1364
    
     
  5. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,254
    Likes Received:
    479
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @atkhosting

    Can you run the following and let me know if the issue persists:

    Code:
    /scripts/restartsrv_cpanel_php_fpm
    Code:
    /scripts/restartsrv_cpsrvd
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. blacklotuss

    blacklotuss Registered

    Joined:
    Mar 26, 2019
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Slovenia
    cPanel Access Level:
    Root Administrator
    Same issue here, single user (the cPanel has over 100 email addresses) with these issues.

    Tried the commands you have put above and I get this as a result:

    [root@backup ~]# /scripts/restartsrv_cpanel_php_fpm
    (XID fy392j) The “cpanel_php_fpm” service is disabled.
    [root@backup ~]# /scripts/restartsrv_cpsrvd
    Waiting for “cpsrvd” to restart gracefully ………………waiting for “cpsrvd” to initialize ………finished.

    Service Status
    cpanel (/usr/local/cpanel/cpsrvd --llu=1554325331 --listen=10,11,12,3,4,5,6,7,8,9 --start) is running as root with PID 5545 (systemd+/proc check method).
    cpanel (webmaild - serving IP) is running as USER with PID 28252 (systemd+/proc check method).
    cpanel (webmaild - serving IP) is running as USER with PID 28625 (systemd+/proc check method).
    cpanel () is running as root with PID 29099 (systemd+/proc check method).

    Startup Log
    apr 03 13:51:40 HOSTNAME systemd[1]: Starting cPanel services...
    apr 03 13:51:41 HOSTNAME restartsrv_cpsrvd[5403]: Starting PID 5545: /usr/local/cpanel/libexec/cpsrvd-dormant
    apr 03 13:51:41 HOSTNAME systemd[1]: Started cPanel services.
    apr 03 13:51:42 HOSTNAME restartsrv_cpsrvd[5403]: License is valid and has already updated recently.
    apr 04 08:34:24 HOSTNAME crontab[10286]: (root) LIST (root)

    cpsrvd restarted successfully.
    [root@backup ~]#

    Unfortunately the issue is still present.
     
  7. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,254
    Likes Received:
    479
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    HI @blacklotuss


    Can you please open a ticket using the link in my signature? Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. blacklotuss

    blacklotuss Registered

    Joined:
    Mar 26, 2019
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Slovenia
    cPanel Access Level:
    Root Administrator
    HI @cPanelLauren

    I'm sorry but I guess I cannot do that since my VPS cPanel licence was provided by Contabo hosting services.
     
    #8 blacklotuss, Apr 5, 2019
    Last edited by a moderator: Apr 5, 2019
  9. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,254
    Likes Received:
    479
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @blacklotuss

    We do recommend you contact your provider first but if they're unable to assist you, you can definitely still open a ticket with us.


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice