Koozali.org: home of the SME Server

Other Languages => Français => Topic started by: STRyk on April 19, 2020, 09:46:28 AM

Title: SME 9.2.0 64 bits - RoundCube : DATABASE ERROR: CONNECTION FAILED!
Post by: STRyk on April 19, 2020, 09:46:28 AM
Coucou !
C'est encore moi.. Désolé mais après avoir passé plusieurs heures sur le problème je le vois pas.

Après l'installation de RoundCube, à la première utilisation, impossible d'avoir le login :

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

Je précise que l'on se connecte sans problème par horde. Le cas typique quoi...

J'ai tenté plusieurs choses mais n'étant pas ultra callé, je n'arrive à rien.
Si vous avez des pistes car je ne vois pas.
Merci par avance.
Title: Re: SME 9.2.0 64 bits - RoundCube : DATABASE ERROR: CONNECTION FAILED!
Post by: mmccarn on April 19, 2020, 01:20:29 PM
Did you install using the instructions from the wiki?

Quote from: https://wiki.contribs.org/RoundCube
yum install smeserver-roundcube --enablerepo=smecontribs
signal-event roundcube-update

Here is a recent post on upgrading to the latest version of roundcube after installing the contrib:
https://forums.contribs.org/index.php/topic,54203.msg283369.html#msg283369

If you have already upgraded and you did not link the config before running the upgrade, roundcube will no longer know your database connection information.  You will need to reconfigure roundcube to find your database.
Title: Re: SME 9.2.0 64 bits - RoundCube : DATABASE ERROR: CONNECTION FAILED!
Post by: STRyk on April 24, 2020, 02:31:25 PM
Did you install using the instructions from the wiki?
yes.

Here is a recent post on upgrading to the latest version of roundcube after installing the contrib:
https://forums.contribs.org/index.php/topic,54203.msg283369.html#msg283369

If you have already upgraded and you did not link the config before running the upgrade, roundcube will no longer know your database connection information.  You will need to reconfigure roundcube to find your database.
Wow !
OK, tanks.
I understand better why I had problems accessing all of this.
I will try again with a completely new machine.
Title: Re: SME 9.2.0 64 bits - RoundCube : DATABASE ERROR: CONNECTION FAILED!
Post by: mmccarn on April 25, 2020, 02:52:25 AM
It's not that hard to retro-fit an upgraded roundcube install. 

The things to fix are the configured add-ons and the database connection.

You would probably get pretty close by symlinking /etc/roundcube to /usr/share/roundcubemail
Code: [Select]
cd /usr/share/roundcubemail
# rename the config folder created by the upgrade
mv config config.org

# link the sme contrib config folder
ln -s /etc/roundcubemail config

...then pick up with the process from the other post