I have problems to launch several occ commands, like
sudo -u http php70 occ db:add-missing-indices
always get the following Error:
An unhandled exception has been thrown:
Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occured in driver:
could not find driver in /volume1/web/nextcloud/lib/private/DB/Connection.php:64
When I use phpinfo() without the VirtualHost I can see that the
mysqli, mysqlnd and pdo_mysql are activated in php 7.0.
But when I use php70 -m on the shell (thats where I execute the occ command) I only get the following list of modules:
[PHP Modules]
Core
ctype
date
dom
fileinfo
filter
hash
json
libxml
mbstring
mysqlnd
pcntl
pcre
PDO
readline
Reflection
session
SimpleXML
SPL
standard
tokenizer
xml
xmlreader
xmlwriter
zlib
[Zend Modules]
I’m running MariaDB 10 on socket 3307.
Beside this, the upgrade from 14.0.4 worked after a few issues, but actually seems to be OK, besode of some missing indexes and a few other things
Nextcloud version : 15.0.0
Operating system and version: DSM 6.2.1-23824 Update 4
Apache or nginx version : 2.4
PHP version : 7.0
I get no entry in the Nextcloud log :
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'xxxxxx',
'passwordsalt' => 'yyyyyyyy',
'secret' => 'zzzzzzzzzz',
'trusted_domains' =>
array (
0 => 'data.domain.com',
),
'datadirectory' => '/volume1/web/data_new',
'overwrite.cli.url' => 'https://data.domain.com/nextcloud',
'dbtype' => 'mysql',
'version' => '15.0.0.10',
'dbname' => 'nextcloud',
'dbhost' => '127.0.0.1:3307',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_user',
'dbpassword' => '------',
'installed' => true,
'theme' => '',
'loglevel' => 2,
'maintenance' => false,
'updater.secret' => 'xxxxxx',
'updater.release.channel' => 'stable',
);