Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Roundcube webmail fails to load: Database error: connection failed! or Oops… something went wrong!

 
databasedbemailmailmysql

Symptoms

  • Roundcube webmail fails to open with one of the following error messages showing up in the browser:

    Database error: connection failed!
    Unable to connect to database!
    Please contact your server-administrator.

    OR

    Oops... something went wrong!
    An external error has occurred. Your request cannot be processed at this time.
    For administrators: Please check the application and/or server error logs for more information.

  • When removing an email address in Plesk, the operation fails with the following error message:

    DB query failed: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'roundcubemail.users' doesn't exist, query was: DELETE FROM `roundcubemail`.`users` WHERE (username = '[email protected])

  • Error messages that are similar to the following are logged in /var/log/plesk-roundcube/errors:

    [02-Aug-2024 15:03:23 +0000]: <q93si64j> DB Error: SQLSTATE[HY000] [1049] Unknown database 'roundcubemail' in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_db.php on line 201 (GET /roundcube/index.php?_user=plesktest%40chaheko.com)
    [02-Aug-2024 15:03:38 +0000]: <rbh6cg56> DB Error: SQLSTATE[HY000] [1049] Unknown database 'roundcubemail' in /usr/share/psa-roundcube/program/lib/Roundcube/rcube_db.php on line 201 (GET /)

    DB Error: [1146] Table ‘roundcubemail.session’ doesn’t exist (SQL Query: INSERT INTO `session` ...

Cause

The
roundcubemail
database has become corrupted (most often due to hardware failures, sudden server shutdowns and interrupted updates).

Resolution

Depending on your exact situation, restore the Roundcube database by using one of the following solutions:

Restore the Roundcube database from a daily dump
Recreate the Roundcube database by reinstalling the RoundCube component
  1. Connect to the Plesk server via SSH

  2. Switch to the directory with daily dumps:

    # cd /var/lib/psa/dumps

  3. List all available Plesk daily dumps:

    # ls -l mysql.daily*
    -rw------- 1 root root 236253 Feb 3 01:51 mysql.daily.dump.0.gz
    -rw------- 1 root root 229653 Feb 2 01:48 mysql.daily.dump.1.gz
    -rw------- 1 root root 222485 Feb 1 01:56 mysql.daily.dump.2.gz

    Note: The file
    mysql.daily.dump.0.gz
    is the most recent dump.

  4. Restore the
    roundcubemail
    database from the most recent daily dump (mysql.daily.dump.0.gz in this command):

    # zcat mysql.daily.dump.0.gz | sed -n '/-- Current Database: `roundcubemail`/,/-- Current Database:*/p' | MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin --default-character-set=utf8

  1. Connect to the Plesk server via SSH
  2. Create a copy of the roundcubemail database directory:

    # cp -a /var/lib/mysql/roundcubemail /var/lib/mysql/roundcubemail_bak

  3. Uninstall Roundcube webmail:

    # plesk installer remove plesk --components roundcube

  4. Remove any Roundcube leftovers:

    # dpkg --purge plesk-roundcube

    # rm -rf /usr/share/psa-roundcube

    # rm -rf /etc/psa-webmail/roundcube

  5. Drop the roundcubemail database:

    # plesk db "drop database roundcubemail"

  6. Install Roundcube:

    # plesk installer add plesk --components roundcube

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Plesk with Centralized Database and Network File System

Read More »

PostgreSQL vs MySQL: A Comparison Of The Popular Database Management Systems

Read More »

Advanced Techniques for Building an Email List

Read More »
Knowledge Base

Horde databases in Plesk are not recreated after reinstallation: DB query failed: SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘horde.TABLE_NAME’ doesn’t exist

Read More »

RoundCube webmail is not accessible on Plesk: DATABASE ERROR: CONNECTION FAILED

Read More »

Unable to send email via PHP on a Plesk server: Rejecting message: system user uid=’XXXX’ is not allowed to send mail

Read More »

Unable to send an email in Roundcube webmail hosted in Plesk: Allowed memory size of X bytes exhausted

Read More »

Hosting Wiki

  • DBMS Interface
  • DB2
  • Server Redundancy
  • DBMS
  • RoundCube
  • QMAIL
  • Sendmail
  • PostgreSQL
  • Bare Metal Server
  • MySQL
  • PhpMyAdmin
  • phpPgAdmin
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • PHP
  • IBM DB2
  • MSSQL
  • ODBC
  • MongoDB
  • DBA
  • SQL
  • Plesk
  • SQL database
  • NoSQL Database
  • Web Server
  • DNS Server
  • SSH
  • Email Autoresponder
  • Mailing Lists
  • Email Alias
  • Email Virus Protection
  • Email Forwarding
  • Webmail
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family