Damn, after my daily Nextcloud backup (maintenance mode, MariaDB dump, install+data dir rsync), I recognized the desktop sync client is not reconnecting. Also mobile phone throws errors on syncing contacts and calendars via DAVdroid.
Checked the backup log and everything seemed to gone well. The database dump size is as expected, no dmesg
errors that would indicate an disk I/O error.
Maintenance mode was successfully enabled and disabled after backup finished, according to my backup script (that runs fine for … years).
Did fsck
on source and backup target drives and mysqlcheck
, both didn’t find any issue.
The errors are the following:
Running occ
command:
An unhandled exception has been thrown:
ArgumentCountError: Too few arguments to function OCA\DAV\Command\SyncSystemAddressBook::__construct(), 0 passed in /var/www/nextcloud/lib/private/Console/Application.php on line 222 and exactly 1 expected in /var/www/nextcloud/apps/dav/lib/Command/SyncSystemAddressBook.php:38
Stack trace:
#0 /var/www/nextcloud/lib/private/Console/Application.php(222): OCA\DAV\Command\SyncSystemAddressBook->__construct()
#1 /var/www/nextcloud/lib/private/Console/Application.php(134): OC\Console\Application->loadCommandsFromInfoXml(Array)
#2 /var/www/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#4 {main}
But this only shows up, if maintenance mode is disabled. If it’s enabled, the help/usage info shows up, occ maintenance:repair
and such can be run. Did this, with following output:
Failed to load repair step for dav: Repair step 'OCA\DAV\Migration\FixBirthdayCalendarComponent' is unknown
Failed to load repair step for dav: Repair step 'OCA\DAV\Migration\CalDAVRemoveEmptyValue' is unknown
Failed to load repair step for dav: Repair step 'OCA\DAV\Migration\BuildCalendarSearchIndex' is unknown
Failed to load repair step for dav: Repair step 'OCA\DAV\Migration\RefreshWebcalJobRegistrar' is unknown
Failed to load repair step for files_sharing: Repair step 'OCA\Files_Sharing\Migration\OwncloudGuestShareType' is unknown
Failed to load repair step for files_sharing: Repair step 'OCA\Files_Sharing\Migration\SetPasswordColumn' is unknown
Failed to load repair step for oauth2: Repair step 'OCA\OAuth2\Migration\SetTokenExpiration' is unknown
Failed to load repair step for twofactor_backupcodes: Repair step 'OCA\TwoFactorBackupCodes\Migration\CheckBackupCodes' is unknown
- Repair MySQL collation
- All tables already have the correct collation -> nothing to do
- Repair mime types
- Clean tags and favorites
- 0 tags of deleted users have been removed.
- 0 tags for delete files have been removed.
- 0 tag entries for deleted tags have been removed.
- 0 tags with no entries have been removed.
- Repair invalid shares
- Remove shares of a users root folder
- Move .step file of updater to backup location
- Fix potential broken mount points
- No mounts updated
- Repair invalid paths in file cache
- Add log rotate job
- Clear frontend caches
- Image cache cleared
- SCSS cache cleared
- JS cache cleared
- Clear every generated avatar on major updates
- Add preview background cleanup job
- Queue a one-time job to cleanup old backups of the updater
- Repair pending cron jobs
- No need to repair pending cron jobs.
- Extract the vcard uid and store it in the db
Nextcloud log of first minute after backup has finished:
{"reqId":"ma7RnfCU4ZHm8Ru24STK","level":4,"time":"2018-12-01T04:26:09+01:00","remoteAddr":"46.59.179.64","user":"Micha","app":"webdav","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/Micha\/","message":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Error: Class 'OCA\\DAV\\CardDAV\\AddressBookRoot' not found","Code":0,"Trace":[{"function":"{closure}","args":["*** sensitive parameters replaced ***"]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[{"__class__":"Closure"},["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":466,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["beforeMethod",["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"\/var\/www\/nextcloud\/remote.php","line":72,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/remote.php","line":168,"function":"handleException","args":[{"__class__":"Error"}]}],"File":"\/var\/www\/nextcloud\/remote.php","Line":70,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.0v2.5.0 (build 20181112) (Nextcloud)","version":"15.0.0.8"}
{"reqId":"ma7RnfCU4ZHm8Ru24STK","level":3,"time":"2018-12-01T04:26:10+01:00","remoteAddr":"46.59.179.64","user":"Micha","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/Micha\/","message":"Cannot modify headerinformation - headers already sent by (output started at \/var\/www\/nextcloud\/apps\/dav\/lib\/CardDAV\/AddressBookRoot.php:1) at \/var\/www\/nextcloud\/3rdparty\/sabre\/http\/lib\/Sapi.php#58","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.0v2.5.0 (build 20181112) (Nextcloud)","version":"15.0.0.8"}
{"reqId":"ma7RnfCU4ZHm8Ru24STK","level":3,"time":"2018-12-01T04:26:10+01:00","remoteAddr":"46.59.179.64","user":"Micha","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/Micha\/","message":"Cannot modify headerinformation - headers already sent by (output started at \/var\/www\/nextcloud\/apps\/dav\/lib\/CardDAV\/AddressBookRoot.php:1) at \/var\/www\/nextcloud\/3rdparty\/sabre\/http\/lib\/Sapi.php#63","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.0v2.5.0 (build 20181112) (Nextcloud)","version":"15.0.0.8"}
{"reqId":"EEkFcocf5YX62Hvil2sY","level":4,"time":"2018-12-01T04:26:41+01:00","remoteAddr":"46.59.179.64","user":"Micha","app":"webdav","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/Micha\/","message":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Error: Class 'OCA\\DAV\\CardDAV\\AddressBookRoot' not found","Code":0,"Trace":[{"function":"{closure}","args":["*** sensitive parameters replaced ***"]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[{"__class__":"Closure"},["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":466,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["beforeMethod",["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"\/var\/www\/nextcloud\/remote.php","line":72,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/remote.php","line":168,"function":"handleException","args":[{"__class__":"Error"}]}],"File":"\/var\/www\/nextcloud\/remote.php","Line":70,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.0v2.5.0 (build 20181112) (Nextcloud)","version":"15.0.0.8"}
{"reqId":"EEkFcocf5YX62Hvil2sY","level":3,"time":"2018-12-01T04:26:41+01:00","remoteAddr":"46.59.179.64","user":"Micha","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/Micha\/","message":"Cannot modify headerinformation - headers already sent by (output started at \/var\/www\/nextcloud\/apps\/dav\/lib\/CardDAV\/AddressBookRoot.php:1) at \/var\/www\/nextcloud\/3rdparty\/sabre\/http\/lib\/Sapi.php#58","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.0v2.5.0 (build 20181112) (Nextcloud)","version":"15.0.0.8"}
{"reqId":"EEkFcocf5YX62Hvil2sY","level":3,"time":"2018-12-01T04:26:41+01:00","remoteAddr":"46.59.179.64","user":"Micha","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/Micha\/","message":"Cannot modify headerinformation - headers already sent by (output started at \/var\/www\/nextcloud\/apps\/dav\/lib\/CardDAV\/AddressBookRoot.php:1) at \/var\/www\/nextcloud\/3rdparty\/sabre\/http\/lib\/Sapi.php#63","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.0v2.5.0 (build 20181112) (Nextcloud)","version":"15.0.0.8"}
{"reqId":"pC7JEykJzcsclt3A7GuH","level":4,"time":"2018-12-01T04:27:13+01:00","remoteAddr":"46.59.179.64","user":"Micha","app":"webdav","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/Micha\/","message":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Error: Class 'OCA\\DAV\\CardDAV\\AddressBookRoot' not found","Code":0,"Trace":[{"function":"{closure}","args":["*** sensitive parameters replaced ***"]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[{"__class__":"Closure"},["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":466,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["beforeMethod",["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"\/var\/www\/nextcloud\/remote.php","line":72,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/remote.php","line":168,"function":"handleException","args":[{"__class__":"Error"}]}],"File":"\/var\/www\/nextcloud\/remote.php","Line":70,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.0v2.5.0 (build 20181112) (Nextcloud)","version":"15.0.0.8"}
{"reqId":"pC7JEykJzcsclt3A7GuH","level":3,"time":"2018-12-01T04:27:13+01:00","remoteAddr":"46.59.179.64","user":"Micha","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/Micha\/","message":"Cannot modify headerinformation - headers already sent by (output started at \/var\/www\/nextcloud\/apps\/dav\/lib\/CardDAV\/AddressBookRoot.php:1) at \/var\/www\/nextcloud\/3rdparty\/sabre\/http\/lib\/Sapi.php#58","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.0v2.5.0 (build 20181112) (Nextcloud)","version":"15.0.0.8"}
{"reqId":"pC7JEykJzcsclt3A7GuH","level":3,"time":"2018-12-01T04:27:13+01:00","remoteAddr":"46.59.179.64","user":"Micha","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/Micha\/","message":"Cannot modify headerinformation - headers already sent by (output started at \/var\/www\/nextcloud\/apps\/dav\/lib\/CardDAV\/AddressBookRoot.php:1) at \/var\/www\/nextcloud\/3rdparty\/sabre\/http\/lib\/Sapi.php#63","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.0v2.5.0 (build 20181112) (Nextcloud)","version":"15.0.0.8"}
{"reqId":"jVD1267rP7gvY3BI36Pf","level":4,"time":"2018-12-01T04:27:45+01:00","remoteAddr":"46.59.179.64","user":"Micha","app":"webdav","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/Micha\/","message":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Error: Class 'OCA\\DAV\\CardDAV\\AddressBookRoot' not found","Code":0,"Trace":[{"function":"{closure}","args":["*** sensitive parameters replaced ***"]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/event\/lib\/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[{"__class__":"Closure"},["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":466,"function":"emit","class":"Sabre\\Event\\EventEmitter","type":"->","args":["beforeMethod",["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]]},{"file":"\/var\/www\/nextcloud\/3rdparty\/sabre\/dav\/lib\/DAV\/Server.php","line":254,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"\/var\/www\/nextcloud\/remote.php","line":72,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/remote.php","line":168,"function":"handleException","args":[{"__class__":"Error"}]}],"File":"\/var\/www\/nextcloud\/remote.php","Line":70,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.0v2.5.0 (build 20181112) (Nextcloud)","version":"15.0.0.8"}
{"reqId":"jVD1267rP7gvY3BI36Pf","level":3,"time":"2018-12-01T04:27:45+01:00","remoteAddr":"46.59.179.64","user":"Micha","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/Micha\/","message":"Cannot modify headerinformation - headers already sent by (output started at \/var\/www\/nextcloud\/apps\/dav\/lib\/CardDAV\/AddressBookRoot.php:1) at \/var\/www\/nextcloud\/3rdparty\/sabre\/http\/lib\/Sapi.php#58","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.0v2.5.0 (build 20181112) (Nextcloud)","version":"15.0.0.8"}
{"reqId":"jVD1267rP7gvY3BI36Pf","level":3,"time":"2018-12-01T04:27:45+01:00","remoteAddr":"46.59.179.64","user":"Micha","app":"PHP","method":"PROPFIND","url":"\/nextcloud\/remote.php\/dav\/files\/Micha\/","message":"Cannot modify headerinformation - headers already sent by (output started at \/var\/www\/nextcloud\/apps\/dav\/lib\/CardDAV\/AddressBookRoot.php:1) at \/var\/www\/nextcloud\/3rdparty\/sabre\/http\/lib\/Sapi.php#63","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.5.0v2.5.0 (build 20181112) (Nextcloud)","version":"15.0.0.8"}
Since nothing else changed, I guess it has something to do with NC15 RC2 update (from Beta 2) earlier this day. There was also another error on calendar sync between update and before, I see if I can add this as well, but need to sleep now .
I hope someone has an idea where to start debug. Of course I could revert to Beta 2 from backup, but I would like to check what has gone wrong first.