Ubuntu upgrade from 16.04 to 18.04, now ownCloud 10.0.9.5 requires upgrade and upgrade can't find driver

Steps to reproduce

  1. Still on OC 10.0.9.5: upgrade Ubuntu 16.04 to 18.04
  2. Remove php7.3
  3. Download OC 10.1.1 and extract tar into folder
  4. Move apps and config.php from OC 10.0.9.5 folder to OC 10.1.1 folder
  5. Rename 10.0.9.5 and 10.1.1 folders
  6. Open “10.1.1” folder and php occ upgrade gives error message “Doctrine\DBALException: Failed to connect to the database: An exception occured in driver: could noy find driver in …/lib/private/DB/Connection.php:62”.

Expected behaviour

php occ upgrade should have updated the database to the new OC version.

Actual behaviour

(main)PHP Fatal error

Server configuration

Ubuntu server 18.04

Web server:
Apache2

Database:
SQLite3

PHP version:
7.2

ownCloud version:
10.1.1

Updated from an older ownCloud:
10.0.9.5

Where did you install ownCloud from:
ownCloud download site

Signing status (ownCloud 9.0 and above):
This site can’t be reached.

The content of config/config.php:

<?php $CONFIG = array ( 'datadirectory' => '/home/phil/web_cloud/data', 'dbtype' => 'sqlite3', 'dbname' => 'hnlcloud', 'dbhost' => 'localhost', 'dbtableprefix' => '', 'installed' => true, 'maintenance' => true, 'version' => '10.1.1', 'trusted_domains' => array ( 0 => 'xxx', 1 => '192.168.1.xx', 2 => '192.168.1.yy', ), 'share_folder' => '/Shared', 'theme' => '', 'loglevel' => 0, 'trashbin_retention_obligation' => 'auto', 'memcache.local' => '\\OC\\Memcache\\APCu', 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpauth' => 1, ); **List of activated apps:** activity comments configreport dav encryption external federatedfilesharing federation files files_antivirus files_external files_pdfviewer files_sharing files_texteditor files_trashbin files_versions files_videoplayer firstrunwizard gallery market notifications provisioning_api systemtags templateeditor updatenotification user_external **Are you using external storage ** no **Are you using encryption:** no **Are you using an external user-backend:** no ### Client configuration Chrome 76.0.3809.100 (Official Build) (64-bit) **Operating system:** Windows 10 ### Logs None

Hey,

i did the following search https://central.owncloud.org/search?q="An%20exception%20occured%20in%20driver%3A%20could%20not%20find%20driver" and found quite a lot existing threads on this topic which all/most leads to a missing PHP module for the database connection.

1 Like