New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSCache and CWP CageFS at no extra cost with all CWPpro licences. The LSCache plugin is integrated into our WordPress and other script installers, and CWP CageFS gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Roundcube: Unable to connect to the database!

Started by comput86, October 06, 2021, 11:57:03 AM

Previous topic - Next topic

comput86

Hello, today I just woke up and get DATABASE ERROR: CONNECTION FAILED! Unable to connect to the database! Please contact your server-administrator.
I checked logs and found this lines:

[06-Oct-2021 11:01:38 +0000]: <k7jndjf7> DB Error: [1146] Table 'roundcube.carddav_addressbooks' doesn't exist (SQL Query: SELECT * FROM carddav_addressbooks WHERE ((`user_id` = '8'))) in /usr/local/cwpsrv/var/services/roundcube/program/lib/Roundcube/rcube_db.php on line 543 (GET /roundcube/?_task=mail&_mbox=INBOX)
[06-Oct-2021 11:01:38 +0000]: <k7jndjf7> DB Error: [1146] Table 'roundcube.carddav_addressbooks' doesn't exist (GET /roundcube/?_task=mail&_mbox=INBOX)
[06-Oct-2021 11:01:41 +0000]: <k7jndjf7> DB Error: [1146] Table 'roundcube.carddav_addressbooks' doesn't exist (SQL Query: SELECT * FROM carddav_addressbooks WHERE ((`user_id` = '8'))) in /usr/local/cwpsrv/var/services/roundcube/program/lib/Roundcube/rcube_db.php on line 543 (GET /roundcube/?_task=mail&_mbox=INBOX)
[06-Oct-2021 11:01:41 +0000]: <k7jndjf7> DB Error: [1146] Table 'roundcube.carddav_addressbooks' doesn't exist (GET /roundcube/?_task=mail&_mbox=INBOX)
[06-Oct-2021 11:01:56 +0000]: <k7jndjf7> DB Error: [1146] Table 'roundcube.carddav_addressbooks' doesn't exist (SQL Query: SELECT * FROM carddav_addressbooks WHERE ((`user_id` = '8'))) in /usr/local/cwpsrv/var/services/roundcube/program/lib/Roundcube/rcube_db.php on line 543 (GET /roundcube/)
[06-Oct-2021 11:01:56 +0000]: <k7jndjf7> DB Error: [1146] Table 'roundcube.carddav_addressbooks' doesn't exist (GET /roundcube/)
[06-Oct-2021 11:01:58 +0000]: <k7jndjf7> DB Error: [1146] Table 'roundcube.carddav_addressbooks' doesn't exist (SQL Query: SELECT * FROM carddav_addressbooks WHERE ((`user_id` = '8'))) in /usr/local/cwpsrv/var/services/roundcube/program/lib/Roundcube/rcube_db.php on line 543 (GET /roundcube/)


What actually happened and how to fix it?

rustylh

I am having the same issue " DATABASE ERROR: CONNECTION FAILED! "

Have no idea how to fix.

waydenie

Same issues here... Was there an update pushed out?

comput86

I don't know what actually it was, but after a little research I found this: https://github.com/mstilkerich/rcmcarddav/issues/106#issuecomment-113430383
I'm logged out from Roundcube then logged in again, and now it works!  :)

OFFTOPIC: Is there any way to completely stop mystic that pretty often happens with CWP?

waydenie

Thanks, logging back in works... The skin has changed, does anyone know the old skin name and new? Sorry, not sure about your mystic question.

waydenie

Found it.. looks like it's now set to "Elastic" skin, seems that it used to be "Larry"?

It's in Settings\Preferences\User Interface\Interface skin ; if you're looking for it.

rocha

Same error! roundcube only show this message.

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

studio4host

try to run
/scripts/mail_roundcube_update
curl -sS 'http://static.cdn-cwp.com/files/mail/mysql.initial.calender.sql'|mysql --defaults-extra-file=/root/.my.cnf roundcube
curl -sS 'http://static.cdn-cwp.com/files/mail/mysql.initial.tasklist.sql'|mysql --defaults-extra-file=/root/.my.cnf roundcube
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

rocha

Still with error.

Quote from: studio4host on October 06, 2021, 06:47:02 PM
try to run
/scripts/mail_roundcube_update
curl -sS 'http://static.cdn-cwp.com/files/mail/mysql.initial.calender.sql'|mysql --defaults-extra-file=/root/.my.cnf roundcube
curl -sS 'http://static.cdn-cwp.com/files/mail/mysql.initial.tasklist.sql'|mysql --defaults-extra-file=/root/.my.cnf roundcube


JohnG