Nc update to 17.01 many errors accure and breakdown PHP Mismatch?

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (17.0.1):
Operating system and version (Ubuntu 16.04.6 LTS):
nginx version (10.0.38):
PHP version (7.2.25):
Froxlor version (2019-11-02):

The issue you are facing:
I got lots of Errors and the System is braking down - the mobile looses the password (seems to). I haven’t had the errors before I updated.

Is this the first time you’ve seen this error? (Y):

Steps to replicate it:

  1. write something to nC server from PC client of mobile client (not tested)

The output of your Nextcloud log in Admin > Logging:

3,"time":"2019-12-04T20:41:41+00:00","remoteAddr":"80.187.108.208","user":"user1","app":"PHP","method":"PUT","url":"\/remote.php\/dav\/files\/user1\/XXXX\/kann%20wieder%20weg\/WebServer%20Github%20Code\/DSC03883.JPG","message":"Empty row packet body at \/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOStatement.php#117","userAgent":"Mozilla\/5.0 (Macintosh) mirall\/2.6.1stable (build 20191105) (Nextcloud)","version":"17.0.1.1"}
{"reqId":"xfVYZfkEGMzuDEBdDyyZ","level":3,"time":"2019-12-04T20:41:41+00:00","remoteAddr":"80.187.108.208","user":"user1","app":"PHP","method":"PUT","url":"\/remote.php\/dav\/files\/user1\/XXXX\/kann%20wieder%20weg\/WebServer%20Github%20Code\/DSC03883.JPG","message":"Error while sending QUERY packet. PID=7218 at \/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOConnection.php#88","userAgent":"Mozilla\/5.0 (Macintosh) mirall\/2.6.1stable (build 20191105) (Nextcloud)","version":"17.0.1.1"}
{"reqId":"xfVYZfkEGMzuDEBdDyyZ","level":3,"time":"2019-12-04T20:42:41+00:00","remoteAddr":"80.187.108.208","user":"user1","app":"PHP","method":"PUT","url":"\/remote.php\/dav\/files\/user1\/XXXX\/kann%20wieder%20weg\/WebServer%20Github%20Code\/DSC03883.JPG","message":"PDOStatement::execute(): MySQL server has gone away at \/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOStatement.php#117","userAgent":"Mozilla\/5.0 (Macintosh) mirall\/2.6.1stable (build 20191105) (Nextcloud)","version":"17.0.1.1"}
{"reqId":"xfVYZfkEGMzuDEBdDyyZ","level":3,"time":"2019-12-04T20:42:41+00:00","remoteAddr":"80.187.108.208","user":"user1","app":"PHP","method":"PUT","url":"\/remote.php\/dav\/files\/user1\/XXXX\/kann%20wieder%20weg\/WebServer%20Github%20Code\/DSC03883.JPG","message":"PDOStatement::execute(): Error reading result set's header at \/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOStatement.php#117","userAgent":"Mozilla\/5.0 (Macintosh) mirall\/2.6.1stable (build 20191105) (Nextcloud)","version":"17.0.1.1"}
{"reqId":"","level":3,"time":"2019-12-04T20:42:41+00:00","remoteAddr":"80.187.108.208","user":"user1","app":"remote","method":"PUT","url":"\/remote.php\/dav\/files\/user1\/XXXX\/kann%20wieder%20weg\/WebServer%20Github%20Code\/DSC03883.JPG","message":{"Exception":"Doctrine\\DBAL\\Exception\\DriverException","Message":"An exception occurred while executing 'SELECT `id`, `uid`, `login_name`, `password`, `name`, `token`, `type`, `remember`, `last_activity`, `last_check`, `scope`, `expires`, `version` FROM `oc_authtoken` WHERE (`token` = ?) AND (`version` = ?)' with params [\"\", 1]:\n\nSQLSTATE[HY000]: General error: 2006 MySQL server has gone away","Code":0,"Trace":[{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DBALException.php","line":169,"function":"convertException","class":"Doctrine\\DBAL\\Driver\\AbstractMySQLDriver","type":"->","args":["An exception occurred while executing 'SELECT `id`, `uid`, `login_name`, `password`, `name`, `token`, `type`, `remember`, `last_activity`, `last_check`, `scope`, `expires`, `version` FROM `oc_authtoken` WHERE (`token` = ?) AND (`version` = ?)' with params [\"\", 1]:\n\nSQLSTATE[HY000]: General error: 2006 MySQL server has gone away",{"errorInfo":["HY000",2006,"MySQL server has gone away"],"__class__":"Doctrine\\DBAL\\Driver\\PDOException"}]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/DBALException.php","line":145,"function":"wrapException","class":"Doctrine\\DBAL\\DBALException","type":"::","args":[{"__class__":"Doctrine\\DBAL\\Driver\\PDOMySql\\Driver"},{"errorInfo":["HY000",2006,"MySQL server has gone away"],"__class__":"Doctrine\\DBAL\\Driver\\PDOException"},"An exception occurred while executing 'SELECT `id`, `uid`, `login_name`, `password`, `name`, `token`, `type`, `remember`, `last_activity`, `last_check`, `scope`, `expires`, `version` FROM `oc_authtoken` WHERE (`token` = ?) AND (`version` = ?)' with params [\"\", 1]:\n\nSQLSTATE[HY000]: General error: 2006 MySQL server has gone away"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php","line":911,"function":"driverExceptionDuringQuery","class":"Doctrine\\DBAL\\DBALException","type":"::","args":[{"__class__":"Doctrine\\DBAL\\Driver\\PDOMySql\\Driver"},{"errorInfo":["HY000",2006,"MySQL server has gone away"],"__class__":"Doctrine\\DBAL\\Driver\\PDOException"},"SELECT `id`, `uid`, `login_name`, `password`, `name`, `token`, `type`, `remember`, `last_activity`, `last_check`, `scope`, `expires`, `version` FROM `oc_authtoken` WHERE (`token` = ?) AND (`version` = ?)",{"1":"*** ***","2":1}]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/DB\/Connection.php","line":195,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->","args":["SELECT `id`, `uid`, `login_name`, `password`, `name`, `token`, `type`, `remember`, `last_activity`, `last_check`, `scope`, `expires`, `version` FROM `oc_authtoken` WHERE (`token` = ?) AND (`version` = ?)",["*** sensitive parameter replaced ***",1],[2,1],null]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/Authentication\/Token\/Manager.php","line":127,"function":"getToken","class":"OC\\Authentication\\Token\\DefaultTokenProvider","type":"->","args":["*** ***"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/User\/Session.php","line":753,"function":"getToken","class":"OC\\Authentication\\Token\\Manager","type":"->","args":["*** ***"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/User\/Session.php","line":265,"function":"validateToken","class":"OC\\User\\Session","type":"->","args":["*** ***"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/User\/Session.php","line":240,"function":"validateSession","class":"OC\\User\\Session","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/legacy\/app.php","line":345,"function":"getUser","class":"OC\\User\\Session","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/legacy\/app.php","line":113,"function":"getEnabledApps","class":"OC_App","type":"::","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/legacy\/user.php","line":126,"function":"loadApps","class":"OC_App","type":"::","args":[["prelogin"]]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/base.php","line":707,"function":"setupBackends","class":"OC_User","type":"::","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/base.php","line":1081,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/remote.php","line":111,"args":["\/var\/customers\/webs\/cloud\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/AbstractMySQLDriver.php","Line":106,"Previous":{"Exception":"Doctrine\\DBAL\\Driver\\PDOException","Message":"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away","Code":"HY000","Trace":[{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php","line":903,"function":"execute","class":"Doctrine\\DBAL\\Driver\\PDOStatement","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/DB\/Connection.php","line":195,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->","args":["SELECT `id`, `uid`, `login_name`, `password`, `name`, `token`, `type`, `remember`, `last_activity`, `last_check`, `scope`, `expires`, `version` FROM `oc_authtoken` WHERE (`token` = ?) AND (`version` = ?)",["*** ***",1],[2,1],null]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/ServerContainer.php","line":120,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["MemCacheFactory"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/Server.php","line":1535,"function":"query","class":"OC\\ServerContainer","type":"->","args":["MemCacheFactory"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/Server.php","line":691,"function":"getMemCacheFactory","class":"OC\\Server","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/pimple\/pimple\/src\/Pimple\/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** ***"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/ServerContainer.php","line":120,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OC\\App\\AppManager"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php","line":161,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OC\\App\\AppManager"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/pimple\/pimple\/src\/Pimple\/Container.php","line":114,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** ***"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/ServerContainer.php","line":120,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OC\\App\\AppManager"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php","line":161,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OC\\App\\AppManager"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/pimple\/pimple\/src\/Pimple\/Container.php","line":114,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** ***"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/ServerContainer.php","line":120,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["AppManager"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/Server.php","line":1725,"function":"query","class":"OC\\ServerContainer","type":"->","args":["AppManager"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/legacy\/app.php","line":341,"function":"getAppManager","class":"OC\\Server","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/legacy\/app.php","line":113,"function":"getEnabledApps","class":"OC_App","type":"::","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/base.php","line":640,"function":"loadApps","class":"OC_App","type":"::","args":[["session"]]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/base.php","line":1081,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/remote.php","line":111,"args":["\/var\/customers\/webs\/cloud\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOConnection.php","Line":90,"Previous":{"Exception":"PDOException","Message":"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away","Code":"HY000","Trace":[{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOConnection.php","line":88,"function":"query","class":"PDO","type":"->","args":["SELECT * FROM `oc_appconfig`"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php","line":908,"function":"query","class":"Doctrine\\DBAL\\Driver\\PDOConnection","type":"->","args":["SELECT * FROM `oc_appconfig`"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/DB\/Connection.php","line":195,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->","args":["SELECT * FROM `oc_appconfig`",[],[],null]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Query\/QueryBuilder.php","line":200,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->","args":["SELECT * FROM `oc_appconfig`",[],[]]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/DB\/QueryBuilder\/QueryBuilder.php","line":214,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/AppConfig.php","line":329,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/AppConfig.php","line":107,"function":"loadConfigValues","class":"OC\\AppConfig","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/AppConfig.php","line":285,"function":"getApps","class":"OC\\AppConfig","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/legacy\/app.php","line":880,"function":"getValues","class":"OC\\AppConfig","type":"->","args":[false,"installed_version"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/Server.php","line":503,"function":"getAppVersions","class":"OC_App","type":"::","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/pimple\/pimple\/src\/Pimple\/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** ***"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/ServerContainer.php","line":120,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OC\\Memcache\\Factory"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php","line":161,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OC\\Memcache\\Factory"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/pimple\/pimple\/src\/Pimple\/Container.php","line":114,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** ***"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/ServerContainer.php","line":120,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["MemCacheFactory"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/Server.php","line":1535,"function":"query","class":"OC\\ServerContainer","type":"->","args":["MemCacheFactory"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/Server.php","line":691,"function":"getMemCacheFactory","class":"OC\\Server","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/pimple\/pimple\/src\/Pimple\/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** ***"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/ServerContainer.php","line":120,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OC\\App\\AppManager"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php","line":161,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OC\\App\\AppManager"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/pimple\/pimple\/src\/Pimple\/Container.php","line":114,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** ***"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/ServerContainer.php","line":120,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["AppManager"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/Server.php","line":1725,"function":"query","class":"OC\\ServerContainer","type":"->","args":["AppManager"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/legacy\/app.php","line":341,"function":"getAppManager","class":"OC\\Server","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/legacy\/app.php","line":113,"function":"getEnabledApps","class":"OC_App","type":"::","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/base.php","line":640,"function":"loadApps","class":"OC_App","type":"::","args":[["session"]]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/base.php","line":1081,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/remote.php","line":111,"args":["\/var\/customers\/webs\/cloud\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOConnection.php","Line":88}},"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Macintosh) mirall\/2.6.1stable (build 20191105) (Nextcloud)","version":"17.0.1.1"}
{"reqId":"CKt2aS1beVqpNgSCGC78","level":3,"time":"2019-12-04T20:42:41+00:00","remoteAddr":"80.187.108.208","user":"--","app":"core","method":"PUT","url":"\/remote.php\/dav\/files\/user1\/XXXX\/kann%20wieder%20weg\/WebServer%20Github%20Code\/DSC03897.JPG","message":{"Exception":"Doctrine\\DBAL\\DBALException","Message":"Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] Cannot allocate memory","Code":0,"Trace":[{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php","line":889,"function":"connect","class":"OC\\DB\\Connection","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/DB\/Connection.php","line":195,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->","args":["SELECT * FROM `oc_appconfig`",[],[],null]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Query\/QueryBuilder.php","line":200,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->","args":["SELECT * FROM `oc_appconfig`",[],[]]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/DB\/QueryBuilder\/QueryBuilder.php","line":214,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/AppConfig.php","line":329,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/AppConfig.php","line":107,"function":"loadConfigValues","class":"OC\\AppConfig","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/AppConfig.php","line":285,"function":"getApps","class":"OC\\AppConfig","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/legacy\/app.php","line":880,"function":"getValues","class":"OC\\AppConfig","type":"->","args":[false,"installed_version"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/TemplateLayout.php","line":160,"function":"getAppVersions","class":"OC_App","type":"::","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/legacy\/template.php","line":183,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["error",""]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/Template\/Base.php","line":131,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/legacy\/template.php","line":332,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/remote.php","line":83,"function":"printExceptionErrorPage","class":"OC_Template","type":"::","args":[{"__class__":"Doctrine\\DBAL\\Exception\\DriverException"},500]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/remote.php","line":166,"function":"handleException","args":[{"__class__":"Doctrine\\DBAL\\Exception\\DriverException"}]}],"File":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/DB\/Connection.php","Line":64,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Macintosh) mirall\/2.6.1stable (build 20191105) (Nextcloud)","version":"17.0.1.1"}
{"reqId":"CKt2aS1beVqpNgSCGC78","level":3,"time":"2019-12-04T20:42:41+00:00","remoteAddr":"80.187.108.208","user":"--","app":"PHP","method":"PUT","url":"\/remote.php\/dav\/files\/user1\/XXXX\/kann%20wieder%20weg\/WebServer%20Github%20Code\/DSC03897.JPG","message":"PDO::query(): Error reading result set's header at \/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOConnection.php#88","userAgent":"Mozilla\/5.0 (Macintosh) mirall\/2.6.1stable (build 20191105) (Nextcloud)","version":"17.0.1.1"}
{"reqId":"xfVYZfkEGMzuDEBdDyyZ","level":3,"time":"2019-12-04T20:42:51+00:00","remoteAddr":"80.187.108.208","user":"user1","app":"core","method":"PUT","url":"\/remote.php\/dav\/files\/user1\/XXXX\/kann%20wieder%20weg\/WebServer%20Github%20Code\/DSC03883.JPG","message":{"Exception":"Doctrine\\DBAL\\Exception\\DriverException","Message":"An exception occurred while executing 'SELECT `id`, `uid`, `login_name`, `password`, `name`, `token`, `type`, `remember`, `last_activity`, `last_check`, `scope`, `expires`, `version` FROM `oc_authtoken` WHERE (`token` = ?) AND (`version` = ?)' with params [\"\", 1]:\n\nSQLSTATE[HY000]: General error: 2006 MySQL server has gone away","Code":0,"Trace":{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/User\/Session.php","line":240,"function":"validateSession","class":"OC\\User\\Session","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/legacy\/app.php","line":345,"function":"getUser","class":"OC\\User\\Session","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/legacy\/app.php","line":113,"function":"getEnabledApps","class":"OC_App","type":"::","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/legacy\/user.php","line":126,"function":"loadApps","class":"OC_App","type":"::","args":[["prelogin"]]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/base.php","line":707,"function":"setupBackends","class":"OC_User","type":"::","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/base.php","line":1081,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/remote.php","line":111,"args":["\/var\/customers\/webs\/cloud\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Driver\/PDOStatement.php","Line":117}},"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Macintosh) mirall\/2.6.1stable (build 20191105) (Nextcloud)","version":"17.0.1.1"}
[{"__class__":"Doctrine\\DBAL\\Driver\\PDOMySql\\Driver"},{"__class__":"Doctrine\\DBAL\\DBALException"},"An exception occurred while executing '\n\t\t\t\tSELECT `remote`, `share_token`, `password`, `mountpoint`, `owner`\n\t\t\t\tFROM `oc_share_external`\n\t\t\t\tWHERE `user` = ? AND `accepted` = ?\n\t\t\t':\n\nFailed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2006] MySQL server has gone away"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/ServerContainer.php","line":120,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OC\\Memcache\\Factory"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php","line":161,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OC\\Memcache\\Factory"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/pimple\/pimple\/src\/Pimple\/Container.php","line":114,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** ***"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/ServerContainer.php","line":120,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["MemCacheFactory"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/private\/Server.php","line":1535,"function":"query","class":"OC\\ServerContainer","type":"->","args":["MemCacheFactory"]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/base.php","line":910,"function":"getMemCacheFactory","class":"OC\\Server","type":"->","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/base.php","line":627,"function":"registerAutoloaderCache","class":"OC","type":"::","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/lib\/base.php","line":1081,"function":"init","class":"OC","type":"::","args":[]},{"file":"\/var\/customers\/webs\/cloud\/nextcloud\/remote.php","line":111,"args":["\/var\/customers\/webs\/cloud\/nextcloud\/lib\/base.php"],"function":"require_once"}],"File":"\/var\/customers\/webs\/cloud\/nextcloud\/3rdparty\/doctrine\/dbal\/lib\/Doctrine\/DBAL\/Connection.php","Line":914,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Macintosh) mirall\/2.6.1stable (build 20191105) (Nextcloud)","version":"17.0.1.1"}
{"reqId":"EQIGJ4Wwganu11z98Hqb","level":3,"time":"2019-12-05T20:00:48+00:00","remoteAddr":"87.123.23.139","user":"LaptopPC","app":"PHP","method":"PROPFIND","url":"\/remote.php\/dav\/files\/LaptopPC\/Ebay%20Bilder","message":"Empty row packet body at \/var\/customers\/webs\/cloud\/nextcloud\/apps\/serverinfo\/lib\/OperatingSystems\/DefaultOs.php#120","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.3 Safari\/605.1.15","version":"17.0.1.1"}
{"reqId":"Wrp9VpeoGltN2vDZtK4v","level":3,"time":"2019-12-05T20:42:21+00:00","remoteAddr":"87.123.23.139","user":"XXXXcloud","app":"PHP","method":"GET","url":"\/index.php\/settings\/admin\/serverinfo","message":"Invalid argument supplied for foreach() at \/var\/customers\/webs\/cloud\/nextcloud\/apps\/serverinfo\/lib\/OperatingSystems\/DefaultOs.php#120","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.3 Safari\/605.1.15","version":"17.0.1.1"}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => ‚ist das wichtig‚,
  'passwordsalt' => ‚ja‘,
  'secret' => ‚hab ich‚,
  'trusted_domains' => 
  array (
    0 => ‚meins.de',
  ),
  'data-directory' => '/var/customers/webs/cloud/data',
  'dbtype' => 'mysql',
  'version' => '17.0.1.1',
  'overwrite.cli.url' => 'https://meins.de',
  'dbname' => 'cloudsql1',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'cloudsql1',
  'dbpassword' => ‚strenggeheim‘,
  'installed' => true,
  'maintenance' => false,
  'mail_from_address' => 'administrator',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'meins.de',
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',
  'mysql.utf8mb4' => true,
  'mail_smtpauth' => 1,
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'updater.secret' => ’strength geheim’,
);

The output of your nginx/system log in /var/log/____:

2019/12/05 17:33:35 [error] 7201#7201: *32085 "/var/www/admin/index.php" is not found (2: No such file or directory), client: 199.229.249.149, server: meins.de$

Hy I found something strange on the system:
It should run on PHP 7.2 and NC tell me that I’m on 7.2.
Froxlor tell me I´n on php 7.2 but it also gives a error to add missing php curl.
I tried to install php 7.2 curl but it is already on the system.
The root on the consol tells me I´m on php7.3 :nerd_face: .
So I installed php 7.3 curl packet and now something happened to the system:
The Errors in NC are much less… but they are still there (I didn’t check if i have all needed php packages installed at 7.3)
So I would like to do following but I haven’t found how:
use only PHP 7.4 and remove all other PHP versions.
Set the System to use only PHP 7.4! not 7.5 ore something else.
A look to the php folder showed alot of PHP versions - where do they come from? Auto system update?
I hope someone can help me with these topics!
BR

From the log it seems, that your database is not running or not accessible, I’d check that first.

@ body well, that is true.
It seams that nginx and the database is breaking down with Load (upload from files to next cloud) it accure these error:

  1. Bad gateway
  2. Errors in .log file (see above).
  3. sometimes all web apps aren’t working as well. SSH is still active so the server itself is still reachable.
    After a couple of seconds (about 30s) everything is back to life.
    with the install of php 7.3 curl modul it went much better.
    How can I check the availability of mysql database under traffic?
    … before i upgrade nc everything worked fine and fast…

To determine, what is going wrong with your database, you should have a look at the mysql.log in /var/log. There should be something in it to shed some light on this issue. If the database restarts itself, you’re probably facing a data corruption in the database, which kills the mysqld, which then gets respawned. That would at leats fit with your description.

I have had a look into the log files - the mysql log is closely empty.
Sometimes it says it has no access to /var/www I cannot really see at the time stamp that this error is related to the malfunction of the server.

You probably don’t have the logging enabled in your mysqld server conf. Depending on the database used (mariadb/mysql) this config is saved in a different place.

However, for my MariaDB setup this config is in: /etc/mysql/mariadb.conf.d/50-server.cnf

Currently error logging is enabled on my instance… like this:

# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file        = /var/log/mysql/mysql.log
#general_log             = 1
#
# Error log - should be very few entries.
#
log_error = /var/log/mysql/error.log

You may want to check that on your db instance.

The error log settings on my server are the same like them you have posted.
The logging is still quite.
I have found something in my php7.2 log

[08-Dec-2019 01:31:03] NOTICE: error log file re-opened

[08-Dec-2019 20:31:23] NOTICE: Terminating …

[08-Dec-2019 20:31:23] NOTICE: exiting, bye-bye!

[08-Dec-2019 20:31:24] NOTICE: fpm is running, pid 2xxxx

[08-Dec-2019 20:31:24] NOTICE: ready to handle connections

[08-Dec-2019 20:31:24] NOTICE: systemd monitor interval set to 10000ms

semms that something went wrong but where?