Upgrading to 6: Unable to open database file in

I followed all the steps to do the upgrade from 5.7a to 6 and I’m getting this error.

An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [14] unable to open database file in /usr/local/lib/owncloud/lib/private/DB/Connection.php:85

1 Like

On my old server the MIAB was not installed in the default path.
The backup restore has the old path in the config file of owncloud.
/mnt/data/miab/

I updated this config file after the restore with the default MIAB path: /home/user-data/owncloud

/home/user-data/owncloud/config.php

This could be something to add in the upgrade guide. If you have MIAB installed in a different path on the old server you must update the config file.

The upgrading process went further after making this change.

1 Like

Hey,

This would be a good issue to open on Github if you haven’t already.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.