Author Topic: DATABASE ERROR: CONNECTION FAILED!  (Read 3618 times)

Offline Martur

  • Newbie
  • *
  • Posts: 1
DATABASE ERROR: CONNECTION FAILED!
« on: August 24, 2016, 05:34:05 AM »
I installed the 0.7.2-9 Debian package of roundcube but after installation I cannot connect to the database.
Code: [Select]
DATABASE ERROR: CONNECTION FAILED!The information in
Code: [Select]
/etc/roundcube/debian-db.php seems to be correct - I can login with this information in console mysql and via phpmyadmin.
I ran dpkg-reconfigure roundcube-core several times. At first I tried to maintain the old database (I had a manually installed version of roundcube running beforehand) but then I created a new database with new roundcubeuser. Always the dpkg-reconfigure ends up with:
Code: [Select]
dpkg-reconfigure roundcube-core
dbconfig-common: writing config to /etc/dbconfig-common/roundcube.conf
Replacing config file /etc/dbconfig-common/roundcube.conf with new version
Replacing config file /etc/roundcube/debian-db.php with new version
granting access to database roundcubedb for roundcubeuser@localhost: success.
verifying access for roundcubeuser@localhost: success.
creating database roundcubedb: success.
verifying database roundcubedb exists: success.
populating database via sql...  done.
dbconfig-common: flushing administrative password
[....] Reloading web server config: apache2[Tue Aug 23 11:05:35 2016] [warn] NameVirtualHost *:443 has no VirtualHosts
. ok
chown: cannot access `/var/lib/roundcube/temp': No such file or directory
I checked the postinstallation script of the deb package but the fix_symlinks section is a bit confusing to me, and I am not even sure the chown error has anything to do with the problem on hand (it is the last line of the postinstallaion script anyway).

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: DATABASE ERROR: CONNECTION FAILED!
« Reply #1 on: August 24, 2016, 01:15:07 PM »
I would recommend installing Roundcube manually, the versions in the repositories are almost always outdated and often broken.