10.0.6 Update Fail


#1

Steps to reproduce

  1. sudo -u www-data php occ upgrade
    2.
    3.

Expected behaviour

Upgrade to 10.0.6 should run without error

Actual behaviour

An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occ ured in driver: could not find driver in /var/www/owncloud/lib/private/DB/Connec tion.php:62
Stack trace:

0 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php (992): OC\DB\Connection->connect()

1 /var/www/owncloud/lib/private/DB/Connection.php(210): Doctrine\DBAL\Connectio n->executeUpdate('PRAGMA read_unc...', Array, Array)

2 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php (623): OC\DB\Connection->executeUpdate('PRAGMA read_unc...')

3 /var/www/owncloud/lib/private/DB/Connection.php(145): Doctrine\DBAL\Connectio n->setTransactionIsolation(2)

4 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DriverManager. php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOSq lite\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventM anager))

5 /var/www/owncloud/lib/private/DB/ConnectionFactory.php(145): Doctrine\DBAL\Dr iverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Do ctrine\Common\EventManager))

6 /var/www/owncloud/lib/private/Server.php(493): OC\DB\ConnectionFactory->getCo nnection('sqlite3', Array)

7 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): O C\Server->OC{closure}(Object(OC\Server))

8 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('DatabaseConnect...')

9 /var/www/owncloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utilit y\SimpleContainer->query('DatabaseConnect...')

10 /var/www/owncloud/lib/private/Server.php(1160): OC\ServerContainer->query('D atabaseConnect...')

11 /var/www/owncloud/lib/private/Server.php(370): OC\Server->getDatabaseConnect ion()

12 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))

13 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('AppConfig')

14 /var/www/owncloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utili ty\SimpleContainer->query('AppConfig')

15 /var/www/owncloud/lib/private/Server.php(1089): OC\ServerContainer->query('A ppConfig')

16 /var/www/owncloud/lib/private/Server.php(547): OC\Server->getAppConfig()

17 /var/www/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))

18 /var/www/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet('AppManager')

19 /var/www/owncloud/lib/private/ServerContainer.php(87): OC\AppFramework\Utili ty\SimpleContainer->query('AppManager')

20 /var/www/owncloud/lib/private/Server.php(1359): OC\ServerContainer->query('A ppManager')

21 /var/www/owncloud/lib/private/legacy/app.php(346): OC\Server->getAppManager( )

22 /var/www/owncloud/lib/private/legacy/app.php(110): OC_App::getEnabledApps()

23 /var/www/owncloud/lib/base.php(579): OC_App::loadApps(Array)

24 /var/www/owncloud/lib/base.php(998): OC::init()

25 /var/www/owncloud/console.php(64): require_once('/var/www/ownclo...')

26 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...')

27 {main}PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to conn ect to the database: An exception occured in driver: could not find driver in /v ar/www/owncloud/lib/private/DB/Connection.php:62

Stack trace:

0 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php (992): OC\DB\Connection->connect()

1 /var/www/owncloud/lib/private/DB/Connection.php(210): Doctrine\DBAL\Connectio n->executeUpdate('PRAGMA read_unc...', Array, Array)

2 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php (623): OC\DB\Connection->executeUpdate('PRAGMA read_unc...')

3 /var/www/owncloud/lib/private/DB/Connection.php(145): Doctrine\DBAL\Connectio n->setTransactionIsolation(2)

4 /var/www/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DriverManager. php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOSq lite\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventM anager))

5 /var/ww

Server configuration

Operating system: Ubuntu Server 17.10

**Web server: Apache2

**Database:MySql

**PHP version:7.2

**ownCloud version:10.0.4

**Updated from an older ownCloud or fresh install: Update

**Where did you install ownCloud from:

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

**The content of config/config.php:
'updatechecker' => 'true',
'instanceid' => 'ocunrgzz6138',
'passwordsalt' => '6vaj9CmOMmT4rAY2aiQlVG8zVPvTte',
'secret' => 'q2ekV6a+B9AsiNykW4ha99ibY/320rfEpnzNgVxI/JD3AA1r',
'trusted_domains' =>
array (
0 => '192.168.1.99',
1 => 'gleedspeed.mooo.com',
2 => '197.101.97.200',
3 => '197.101.97.135',
),
'datadirectory' => '/var/www/owncloud/data',
'overwrite.cli.url' => 'http://192.168.1.99/owncloud',
'dbtype' => 'sqlite3',
'version' => '10.0.5.4',
'logtimezone' => 'UTC',
'installed' => true,
'theme' => '',
'loglevel' => 2,
'maintenance' => false,
);

Log in to the web-UI with an administrator account and click on
'admin' -> 'Generate Config Report' -> 'Download ownCloud config report'
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.

or 

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder

*ATTENTION:* Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove *all* host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP configuration (delete this part if not used)

With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:

Operating system:

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...

#2

Classic php environment issue - you did not install the sqlite module.

apt-get install php-sqlite or something might do it on ubuntu - please reboot your apache


#3

Thank you for that, I have now installed it. I now get this error:
An unhandled exception has been thrown:
Error: Call to undefined function OC\App\simplexml_load_file() in /var/www/owncl oud/lib/private/App/InfoParser.php:41
Stack trace:

0 /var/www/owncloud/lib/private/legacy/app.php(641): OC\App\InfoParser->parse(' /var/www/ownclo...')

1 /var/www/owncloud/lib/private/legacy/app.php(614): OC_App::getAppInfo('/var/w ww/ownclo...', true)

2 /var/www/owncloud/lib/private/App/AppManager.php(599): OC_App::getAppVersionB yPath('/var/www/ownclo...')

3 /var/www/owncloud/lib/private/App/AppManager.php(557): OC\App\AppManager->get AppVersionByPath('/var/www/ownclo...')

4 /var/www/owncloud/lib/private/App/AppManager.php(509): OC\App\AppManager->fin dAppInDirectories('files')

5 /var/www/owncloud/lib/private/legacy/app.php(566): OC\App\AppManager->getAppP ath('files')

6 /var/www/owncloud/lib/private/legacy/app.php(117): OC_App::getAppPath('files' )

7 /var/www/owncloud/lib/base.php(579): OC_App::loadApps(Array)

8 /var/www/owncloud/lib/base.php(998): OC::init()

9 /var/www/owncloud/console.php(64): require_once('/var/www/ownclo...')

10 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...')


#4

apt-get install php-xml


#5

Hi,

you could save you ( and @DeepDiver1975) a lot of work if you just check if all of those modules are installed:

https://doc.owncloud.com/server/10.0/admin_manual/installation/source_installation.html#on-ubuntu-16-04-lts-server

apt install -y libapache2-mod-php7.0 \
    php7.0-gd php7.0-json php7.0-mysql php7.0-curl \
    php7.0-intl php7.0-mcrypt php-imagick \
    php7.0-zip php7.0-xml php7.0-mbstring

#6

Hi Guys,
Thank you VERY much for the assistance. My issue is resolved and I learnt alot today.

Cheers