Nextcloud DAV Problem

I have installed NextCloud 13.0.4 on my Banana Pi Server with Linux Gentoo and Apache 2.4.33. Currently my NextCloud didn’t syncronisize, neither on my Android 5.0.1 Smartphone with the NextCloud 3.2.0 App, nor on my Thunderbird with CardBook (Version 29.8) Addon. In Gentoo, you have to compile the System yourself , so here is my way to install apache and php:
[ebuild R ] www-servers/apache-2.4.33-r1:2::gentoo USE=“gdbm ssl threads -debug -doc -ldap -libressl (-selinux) -static -suexec” APACHE2_MODULES=“actions alias auth_basic auth_digest authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers http2 include info log_config logio mime mime_magic negotiation proxy proxy_html proxy_http rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias watchdog xml2enc -access_compat -asis -authn_dbd -authz_dbd -brotli -cache_disk -cache_socache -cern_meta -charset_lite -dbd -dumpio -ident -imagemap -lbmethod_bybusyness -lbmethod_byrequests -lbmethod_bytraffic -lbmethod_heartbeat -log_forensic -macro -md -proxy_ajp -proxy_balancer -proxy_connect -proxy_fcgi -proxy_ftp -proxy_scgi -proxy_wstunnel -ratelimit -remoteip -reqtimeout -slotmem_shm -substitute -version” APACHE2_MPMS=“worker -event -prefork”
[ebuild R ] dev-lang/php-7.1.18:7.1::gentoo USE=“acl apache2 berkdb bzip2 calendar cli crypt ctype curl exif fileinfo filter gd gdbm hash iconv intl ipv6 json mysql mysqli nls opcache pdo phar posix readline session simplexml sqlite ssl threads tokenizer truetype unicode xml xmlreader xmlwriter zip zlib -bcmath -cdb -cgi -cjk -coverage -debug -embed -enchant (-firebird) -flatfile -fpm -ftp -gmp -imap -inifile -iodbc -kerberos -ldap -ldap-sasl -libedit -libressl -mhash (-mssql) (-oci8-instant-client) -odbc -pcntl -phpdbg -postgres -qdbm -recode (-selinux) -session-mm -sharedmem -snmp -soap -sockets -spell -systemd -sysvipc {-test} -tidy -wddx -webp -xmlrpc -xpm -xslt”
I’ll think DAV is set up correctly, here is the URL to my server:
https://nextcloud.gladdle.rainyday-productions.de/remote.php/webdav/
But if i syncro with Cardbook this is the error log (From CardBook itself):
2018.07.07 17:03:58:138 : Validation module: Überprüfe ohne Suchauftrag auf https://nextcloud.gladdle.rainyday-productions.de/remote.php/webdav/
2018.07.07 17:04:00:168 : Validation module: Discovery-Phase 1 auf https://nextcloud.gladdle.rainyday-productions.de/remote.php/webdav/.well-known/carddav
2018.07.07 17:04:00:862 : Validation module: Synchronisation fehlgeschlagen (Schritt: discoverPhase1, URL: https://nextcloud.gladdle.rainyday-productions.de/remote.php/webdav/.well-known/carddav, Status: 404)
In the NextCloud => Admin => Log there are some entry’s, all with the same error:
Error PHP Maximum execution time of 3600 seconds exceeded at /var/www/g28piserver.nextcloud/lib/private/Log/ErrorHandler.php#40 2018-07-08 02:41:02
Error PHP Maximum execution time of 3600 seconds exceeded at /var/www/g28piserver.nextcloud/lib/private/Log.php#323 2018-07-08 01:36:01
Error PHP Maximum execution time of 3600 seconds exceeded at /var/www/g28piserver.nextcloud/lib/private/Log/ErrorHandler.php#96 2018-07-08 00:37:47
Error PHP Maximum execution time of 3600 seconds exceeded at /var/www/g28piserver.nextcloud/3rdparty/interfasys/lognormalizer/src/Normalizer.php#138 2018-07-07 23:56:19
Error PHP Maximum execution time of 3600 seconds exceeded at /var/www/g28piserver.nextcloud/lib/private/Log/ErrorHandler.php#96 2018-07-07 23:15:41
Error PHP Maximum execution time of 3600 seconds exceeded at /var/www/g28piserver.nextcloud/lib/private/Log/ErrorHandler.php#96 2018-07-07 22:34:34
Error PHP Maximum execution time of 3600 seconds exceeded at /var/www/g28piserver.nextcloud/lib/private/Config.php#89 2018-07-07 21:54:42
The Loglevel 2 in Nextcloud got some weird Entry’s, too (The IP Adress is mine):
{“reqId”:“W0DkqZxFzOyXIRxOyGFeSAAAABU”,“level”:3,“time”:“2018-07-07 18:18:45”,“remoteAddr”:“93.229.171.122”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/index.php/204",“message”:“Maximum execution time of 3600 seconds exceeded at /var/www/g28piserver.nextcloud/lib/private/Log/ErrorHandler.php#96”,“userAgent”:“Mozilla/5.0 (Android) ownCloud-android/3.2.0”,“version”:“13.0.4.0”}
{“reqId”:“W0Dgb5xFzOyXIRxOyGFeRgAAABI”,“level”:3,“time”:“2018-07-07 19:54:42”,“remoteAddr”:“93.229.171.122”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/index.php/204",“message”:“Maximum execution time of 3600 seconds exceeded at /var/www/g28piserver.nextcloud/lib/private/Config.php#89”,“userAgent”:“Mozilla/5.0 (Android) ownCloud-android/3.2.0”,“version”:“13.0.4.0”}
{“reqId”:“W0DZbJxFzOyXIRxOyGFePgAAAA4”,“level”:3,“time”:“2018-07-07 20:34:34”,“remoteAddr”:“93.229.171.122”,“user”:"–",“app”:“PHP”,“method”:“PROPFIND”,“url”:"/remote.php/webdav/",“message”:“Maximum execution time of 3600 seconds exceeded at /var/www/g28piserver.nextcloud/lib/private/Log/ErrorHandler.php#96”,“userAgent”:“Thunderbird CardBook/29.8 Lightning/5.4.9”,“version”:“13.0.4.0”}
{“reqId”:“W0DdGJxFzOyXIRxOyGFeRAAAAAA”,“level”:3,“time”:“2018-07-07 21:15:41”,“remoteAddr”:“93.229.171.122”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/index.php/204",“message”:“Maximum execution time of 3600 seconds exceeded at /var/www/g28piserver.nextcloud/lib/private/Log/ErrorHandler.php#96”,“userAgent”:“Mozilla/5.0 (Android) ownCloud-android/3.2.0”,“version”:“13.0.4.0”}
{“reqId”:“W0ETYZxFzOyXIRxOyGFeXAAAABU”,“level”:3,“time”:“2018-07-07 21:56:19”,“remoteAddr”:“93.229.171.122”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/index.php/204",“message”:“Maximum execution time of 3600 seconds exceeded at /var/www/g28piserver.nextcloud/3rdparty/interfasys/lognormalizer/src/Normalizer.php#138”,“userAgent”:“Mozilla/5.0 (Android) ownCloud-android/3.2.0”,“version”:“13.0.4.0”}
{“reqId”:“W0D7fpxFzOyXIRxOyGFeVgAAAA8”,“level”:3,“time”:“2018-07-07 22:37:47”,“remoteAddr”:“93.229.171.122”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/index.php/204",“message”:“Maximum execution time of 3600 seconds exceeded at /var/www/g28piserver.nextcloud/lib/private/Log/ErrorHandler.php#96”,“userAgent”:“Mozilla/5.0 (Android) ownCloud-android/3.2.0”,“version”:“13.0.4.0”}
{“reqId”:“W0EcxJxFzOyXIRxOyGFeYQAAABI”,“level”:3,“time”:“2018-07-07 23:36:01”,“remoteAddr”:“93.229.171.122”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/index.php/204",“message”:“Maximum execution time of 3600 seconds exceeded at /var/www/g28piserver.nextcloud/lib/private/Log.php#323”,“userAgent”:“Mozilla/5.0 (Android) ownCloud-android/3.2.0”,“version”:“13.0.4.0”}
{“reqId”:“W0DZlpxFzOyXIRxOyGFePwAAAAI”,“level”:3,“time”:“2018-07-08 00:41:02”,“remoteAddr”:“93.229.171.122”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/ocs/v2.php/apps/notifications/api/v2/notifications",“message”:“Maximum execution time of 3600 seconds exceeded at /var/www/g28piserver.nextcloud/lib/private/Log/ErrorHandler.php#40”,“userAgent”:“Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0”,“version”:“13.0.4.0”}
The Apache 2 error log got some entry’s, too:
[Sun Jul 08 03:11:18.423208 2018] [ssl:warn] [pid 8613:tid 3064631248] AH01909: nextcloud.gladdle.rainyday-productions.de:443:0 server certificate does NOT include an ID which matches the server name
[Sun Jul 08 13:15:32.898288 2018] [autoindex:error] [pid 12983:tid 2850026528] [client 93.229.174.67:50926] AH01276: Cannot serve directory /var/www/piserver.nextcloud/core/doc/user/_static/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive, referer: https://nextcloud.gladdle.rainyday-productions.de/core/doc/user/index.html
[Sun Jul 08 13:16:01.768393 2018] [authz_core:error] [pid 12982:tid 2803889184] [client 93.229.174.67:50951] AH01630: client denied by server configuration: /var/www/piserver.nextcloud/data/.ocdata
[Sun Jul 08 13:16:30.166921 2018] [authz_core:error] [pid 12982:tid 2761925664] [client 93.229.174.67:50967] AH01630: client denied by server configuration: /var/www/piserver.nextcloud/data/.ocdata
[Sun Jul 08 13:17:30.123958 2018] [php7:error] [pid 12983:tid 2831143968] [client 93.229.174.67:50986] PHP Fatal error: Class Doctrine\DBAL\Driver\PDOConnection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Doctrine\DBAL\Driver\Connection::beginTransaction) in /var/www/piserver.nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 30
[Sun Jul 08 13:18:43.623482 2018] [php7:error] [pid 12983:tid 2728350752] [client 93.229.174.67:57782] PHP Fatal error: Class Doctrine\DBAL\Driver\PDOConnection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Doctrine\DBAL\Driver\Connection::beginTransaction) in /var/www/piserver.nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 30
[Sun Jul 08 13:20:31.586351 2018] [authz_core:error] [pid 12983:tid 2694779936] [client 93.229.174.67:51046] AH01630: client denied by server configuration: /var/www/piserver.nextcloud/data/.ocdata
[Sun Jul 08 13:20:31.627569 2018] [php7:error] [pid 12983:tid 2694779936] [client 93.229.174.67:51046] PHP Fatal error: Class Doctrine\DBAL\Driver\PDOConnection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Doctrine\DBAL\Driver\Connection::beginTransaction) in /var/www/piserver.nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 30
[Sun Jul 08 13:20:31.631097 2018] [php7:error] [pid 12983:tid 2711565344] [client 93.229.174.67:51048] PHP Fatal error: Class Doctrine\DBAL\Driver\PDOConnection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Doctrine\DBAL\Driver\Connection::beginTransaction) in /var/www/piserver.nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 30
[Sun Jul 08 13:25:27.816267 2018] [authz_core:error] [pid 12982:tid 2669605920] [client 93.229.174.67:51132] AH01630: client denied by server configuration: /var/www/piserver.nextcloud/data/.ocdata
[Sun Jul 08 13:25:27.841250 2018] [php7:error] [pid 12983:tid 2652816416] [client 93.229.174.67:51129] PHP Fatal error: Class Doctrine\DBAL\Driver\PDOConnection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Doctrine\DBAL\Driver\Connection::beginTransaction) in /var/www/piserver.nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 30
[Sun Jul 08 13:25:27.857963 2018] [php7:error] [pid 12983:tid 2669601824] [client 93.229.174.67:51131] PHP Fatal error: Class Doctrine\DBAL\Driver\PDOConnection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Doctrine\DBAL\Driver\Connection::beginTransaction) in /var/www/piserver.nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 30
[Sun Jul 08 13:25:43.439152 2018] [authz_core:error] [pid 12982:tid 2644427808] [client 93.229.174.67:51143] AH01630: client denied by server configuration: /var/www/piserver.nextcloud/data/.ocdata
[Sun Jul 08 13:25:43.510114 2018] [php7:error] [pid 12983:tid 2778706976] [client 93.229.174.67:51142] PHP Fatal error: Class Doctrine\DBAL\Driver\PDOConnection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Doctrine\DBAL\Driver\Connection::beginTransaction) in /var/www/piserver.nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 30
[Sun Jul 08 13:26:13.303639 2018] [php7:error] [pid 12983:tid 2761921568] [client 93.229.174.67:51152] PHP Fatal error: Class Doctrine\DBAL\Driver\PDOConnection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Doctrine\DBAL\Driver\Connection::beginTransaction) in /var/www/piserver.nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 30
[Sun Jul 08 13:28:45.428912 2018] [php7:error] [pid 12983:tid 2812277792] [client 93.229.174.67:42601] PHP Fatal error: Class Doctrine\DBAL\Driver\PDOConnection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Doctrine\DBAL\Driver\Connection::beginTransaction) in /var/www/piserver.nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 30
[Sun Jul 08 13:38:56.184251 2018] [php7:error] [pid 12983:tid 2770314272] [client 93.229.174.67:42131] PHP Fatal error: Class Doctrine\DBAL\Driver\PDOConnection contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Doctrine\DBAL\Driver\Connection::beginTransaction) in /var/www/piserver.nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php on line 30
What have i forgotton? Which configuration file do you need to help me?

It looks like a third party app called Doctrine is freaking out. Try disabling it, although it’s could be of no effect. The errors it generates might be causing a problem with a third party’s function to normalize logs. That app is interfasys/lognormalizer. Try disabling that. That’s probably causing the problems.

Nextcloud is timing out in php in a routine meant to obfuscate passwords when written to a log file. It’s doing so in multiple places, and there isn’t a stack trace shown to determine causation. The stack trace is part of those extremely long lines.

Is the system memory usage ok? Too many php cgi instances will not run, just sort off crawl, with 1GB ram.