"Christmas - the time to fix the computers of your loved ones" « Lord Wyrm

upgrade auf ubuntu 18.04.1 LTS -> nextcloud funktioniert nicht mehr

wergor 02.09.2018 - 23:18 12964 2
Posts

wergor

connoisseur de mimi
Avatar
Registered: Jul 2005
Location: graz
Posts: 4027
ich habe heute das ubuntu meines servers von 18.04 auf 18.04.1 upgraded, danach gingen nextcloud und ampache nicht mehr. in beiden fällen bekam ich anfangs eine source file angezeigt, mittlerweile ists nur mehr ein error 500. munin, sonarr und nzbget funktionieren wie immer.
der apache2 service läuft, journalctl -xe zeigt keine fehler. die installierte version von php ist PHP 7.2.9 (sagt php -v).
beim aufrufen der nextcloud erscheint folgende meldung in /var/log/apache2/error.log
Zitat
[Sun Sep 02 23:03:39.567586 2018] [php7:error] [pid 24889] [client 192.168.0.1:7518] PHP Fatal error: Uncaught Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occured in driver: could not find driver in /var/www/html/nextcloud/lib/private/DB/Connection.php:61\nStack trace:\n#0 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(992): OC\\DB\\Connection->connect()\n#1 /var/www/html/nextcloud/lib/private/DB/Connection.php(213): Doctrine\\DBAL\\Connection->executeUpdate('PRAGMA read_unc...', Array, Array)\n#2 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): OC\\DB\\Connection->executeUpdate('PRAGMA read_unc...')\n#3 /var/www/html/nextcloud/lib/private/DB/Connection.php(148): Doctrine\\DBAL\\Connection->setTransactionIsolation(2)\n#4 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\\DB\\Connection->__construct(Array, Object(Doctrine\\DBAL\\Driver\\PDOSqlite\\Driver), Object(Doctrine\\DBAL\\Configuration), Object(Doctrine\\Common\\EventManager))\n#5 /var/www/html/nextcloud/lib/private/DB/ConnectionFactor in /var/www/html/nextcloud/lib/private/DB/Connection.php on line 61
beim aufrufen von ampache diese:
Zitat
[Sun Sep 02 23:05:47.205952 2018] [php7:error] [pid 24891] [client 192.168.0.1:7520] PHP Fatal error: Uncaught Error: Call to undefined function utf8_encode() in /var/www/html/ampache/lib/vendor/szymach/c-pchart/src/Resources/data/constants.php:50\nStack trace:\n#0 /var/www/html/ampache/lib/vendor/composer/autoload_real.php(70): require()\n#1 /var/www/html/ampache/lib/vendor/composer/autoload_real.php(60): composerRequirecc5b049035838e8b923329d299fe5be8('6dcc7fc69104725...', '/var/www/html/a...')\n#2 /var/www/html/ampache/lib/vendor/autoload.php(7): ComposerAutoloaderInitcc5b049035838e8b923329d299fe5be8::getLoader()\n#3 /var/www/html/ampache/lib/init-tiny.php(57): require_once('/var/www/html/a...')\n#4 /var/www/html/ampache/lib/init.php(29): require_once('/var/www/html/a...')\n#5 /var/www/html/ampache/index.php(23): require_once('/var/www/html/a...')\n#6 {main}\n thrown in /var/www/html/ampache/lib/vendor/szymach/c-pchart/src/Resources/data/constants.php on line 50
ich habe gelesen dass meine nextcloud version php 7.2 noch nicht unterstützt und habe deswegen auf 7.1 downgraded (php -v: PHP 7.1.20) was mein problem mit nextcloud leider nicht beseitigt:
Zitat
[Sun Sep 02 23:10:49.868981 2018] [php7:error] [pid 32431] [client 192.168.0.1:7528] PHP Fatal error: Uncaught Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occured in driver: could not find driver in /var/www/html/nextcloud/lib/private/DB/Connection.php:61\nStack trace:\n#0 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(992): OC\\DB\\Connection->connect()\n#1 /var/www/html/nextcloud/lib/private/DB/Connection.php(213): Doctrine\\DBAL\\Connection->executeUpdate('PRAGMA read_unc...', Array, Array)\n#2 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): OC\\DB\\Connection->executeUpdate('PRAGMA read_unc...')\n#3 /var/www/html/nextcloud/lib/private/DB/Connection.php(148): Doctrine\\DBAL\\Connection->setTransactionIsolation(2)\n#4 /var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\\DB\\Connection->__construct(Array, Object(Doctrine\\DBAL\\Driver\\PDOSqlite\\Driver), Object(Doctrine\\DBAL\\Configuration), Object(Doctrine\\Common\\EventManager))\n#5 /var/www/html/nextcloud/lib/private/DB/ConnectionFactor in /var/www/html/nextcloud/lib/private/DB/Connection.php on line 61
weis jemand woran das liegen könnte?

edit: ich habe das downgrade während dem posten nochmal durchgemacht, ampache geht wieder :confused: :)
Bearbeitet von wergor am 02.09.2018, 23:24

nexus_VI

Overnumerousness!
Avatar
Registered: Aug 2006
Location: südstadt
Posts: 3666
MySQL dahinter? Hast du die MySQL Extension (mysqlnd) installiert und geladen?
Zitat
Failed to connect to the database: An exception occured in driver: could not find driver
Im Fall PostgreSQL wäre es php-pgsql.

wergor

connoisseur de mimi
Avatar
Registered: Jul 2005
Location: graz
Posts: 4027
laut nextcloud config (kann mich nicht mehr erinner) sqlite3.

edit: ok, habe php7.1-sqlite3 installiert und aktiviert in /etc/php/7.1/apache2/php.ini. jetzt sehe ich zumindest eine nextcloud fehler seite :
Zitat
PHP module GD not installed.
Please ask your server administrator to install the module.

PHP module cURL not installed.
Please ask your server administrator to install the module.

PHP modules have been installed, but they are still listed as missing?
Please ask your server administrator to restart the web server.

edit2: ich habe die beiden module nachinstalliert (sudo apt install php7.1-gd -y && sudo apt install php7.1-cURL -y) und in der php.ini aktiviert, jetzt funktioniert nextcloud wieder :)
danke für den tipp!
Bearbeitet von wergor am 03.09.2018, 21:08
Kontakt | Unser Forum | Über overclockers.at | Impressum | Datenschutz