[Eisfair] Nextcloud: Login funktioniert nicht (loop)

Rolf Bensch azubi at bensch-net.de
Di Jul 27 19:48:11 CEST 2021


Hallo zusammen,

habe mir heute meine funktionierende NC-Installation geschrottet und bekomme sie nicht mehr zum Laufen. Hintergrund war, dass /var/nextcloud/data die Partition zum Überlaufen brachte. Daraufhin hatte ich NEXTCLOUD_DATA_DIR auf "/home/nextcloud" gesetzt und die Konfiguration ohne Fehlermeldung gespeichert. Fortan konnte ich mich nicht mehr in NC anmelden. Nach "anmelden" wird die Login-Seite neu geladen, eine Fehlermeldung erscheint nicht.

Was habe ich heute alles unternommen:
nach Überprüfung der Verzeichnisrechte und erneuten Abspeichern der Config gab's keine Verbesserung. /var/nexcloud wurde (vollständig?) nach /home/nextcloud verschoben. Ich hätte vermutet, dass nur data/ betroffen ist, war es aber nicht. Ein Login war nicht möglich.

Löschen des Parameters NEXTCLOUD_DATA_DIR in der Config und speichern derselben. Damit wurde alles wieder zurück nach /var/nextcloud geschoben. Augenscheinlich war alles in Ordnung, ein Login aber weiterhin nicht möglich.

Re-Installation von NC. -> keine Verbesserung

Backup der vergangenen Nacht von /var/nextcloud und /var/www/htdocs/nextcloud zurück gespielt. Login-Versuch schlägt weiter fehl

Server Neustart -> keine Verbesserung.

NC deinstalliert und wieder neu installiert. Neuen Admin-User gesetzt und keinerlei Daten restauriert. Ein Login ist auch mit dieser jungfräulichen Installation nicht möglich.

Erneut Backup der vergangenen Nacht von /var/nextcloud zurück gespielt - und das ist jetzt Sachstand - ein Login ist weiterhin nicht möglich.

Logfiles beim Anmeldeversuch:
/var/log/messages: keine Einträge
ssl_request_log: die Anfrage des Client ist sichtbar
access_log und error_log: keine Einträge
nextcloud.log: keine Einträge

Beim Speichern der Config gibt es in nextcloud.log auch keine Einträge. Der darin enthaltene letzte Eintrag ist:

{"reqId":"6TsufLok3OX5GB1SZGfq","level":3,"time":"2021-07-27 19:23:39+02:00","remoteAddr":"46.94.118.223","user":"nina","app":"core","method":"PROPFIND","url":"/nextcloud/remote.php/webdav/Handyfotos/","message":{"Exception":"Doctrine\\DBAL\\Query\\QueryException","Message":"More than 1000 expressions in a list are not allowed on Oracle.","Code":0,"Trace":[{"file":"/var/www/htdocs/nextcloud/lib/private/Comments/Manager.php","line":656,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/htdocs/nextcloud/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php","line":89,"function":"getNumberOfUnreadCommentsForObjects","class":"OC\\Comments\\Manager","type":"->","args":["files",["17429","17418","17441","17453","17477","And 2264 more entries, set log level to debug to see all entries"],{"__class__":"OC\\User\\User"}]},{"file":"/var/www/htdocs/nextcloud/apps/dav/lib/Connector/Sabre/CommentPropertiesPlugin.php","line":117,"function":"cacheDirectory","class":"OCA\\DAV\\Connector\\Sabre\\CommentPropertiesPlugin","type":"->","args":[{"__class__":"OCA\\DAV\\Connector\\Sabre\\Directory"}]},{"file":"/var/www/htdocs/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"handleGetProperties","class":"OCA\\DAV\\Connector\\Sabre\\CommentPropertiesPlugin","type":"->","args":[{"__class__":"Sabre\\DAV\\PropFind"},{"__class__":"OCA\\DAVHat jemand eine Idee wie ich das wieder zum Laufen bringe? \\Connector\\Sabre\\Directory"}]},{"file":"/var/www/htdocs/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1052,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["propFind",[{"__class__":"Sabre\\DAV\\PropFind"},{"__class__":"OCA\\DAV\\Connector\\Sabre\\Directory"}]]},{"file":"/var/www/htdocs/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":984,"function":"getPropertiesByNode","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\DAV\\PropFind"},{"__class__":"OCA\\DAV\\Connector\\Sabre\\Directory"}]},{"file":"/var/www/htdocs/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1661,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->","args":["Handyfotos",["{http://owncloud.org/ns}owner-id","{DAV:}creationdate","{DAV:}getetag","{http://owncloud.org/ns}permissions","{DAV:}getlastmodified","And 15 more entries, set log level to debug to see all entries"],1]},{"file":"/var/www/htdocs/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1646,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->","args":[{"elementMap":[],"contextUri":"/nextcloud/remote.php/webdav/","namespaceMap":{"DAV:":"d","http://sabredav.org/ns":"s","http://owncloud.org/ns":"oc","http://nextcloud.org/ns":"nc"},"classMap":[],"__class__":"Sabre\\Xml\\Writer"},{"__class__":"Generator"},false]},{"file":"/var/www/htdocs/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Generator"},false]},{"file":"/var/www/htdocs/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/htdocs/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PROPFIND",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/htdocs/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/htdocs/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/htdocs/nextcloud/apps/dav/appinfo/v1/webdav.php","line":84,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/htdocs/nextcloud/remote.php","line":167,"args":["/var/www/htdocs/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/htdocs/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","Line":268,"CustomMessage":"More than 1000 expressions in a list are not allowed on Oracle."},"userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.16.1","version":"21.0.3.1"}

Beim Speichern der Config ist auch nichts auffällig:

Activate configuration now (y/n) [yes]?
nextcloud version (eisfair-64): 1.12.1
Database type  : sqlite
Database server: localhost
Trusted domain(s): 192.168.0.206 www.bensch-net.info
Apache2 SSL support: enabled
SQLite3 PHP7-WEB support: enabled
SQLite3 PHP7-CLI support: enabled
Mail support: enabled
PHP7-WEB Redis cache: enabled
PHP7-CLI Redis cache: enabled
Redis support: enabled
PHP7-WEB memory limit: >= 512M
PHP7-CLI memory limit: >= 512M
PHP7-CLI configuration access: possible
creating logrotate configuration ...
creating cron script ...
setting access rights of '/var/www/htdocs/nextcloud' ...
   wait [ . ]
setting access rights of '/var/nextcloud' ...
   wait [ . ]
checking nextcloud install/upgrade requirements ...
Check indices of the share table.
Check indices of the filecache table.
Check indices of the twofactor_providers table.
Check indices of the login_flow_v2 table.
Check indices of the whats_new table.
Check indices of the cards table.
Check indices of the cards_properties table.
Check indices of the calendarobjects_props table.
Check indices of the schedulingobjects table.
Check indices of the oc_properties table.
Done.
All tables already up to date!
creating nextcloud configuration ...
creating cron job ...
nextcloud maintenance mode: disabled
checking nextcloud install/upgrade requirements ...
Check indices of the share table.
Check indices of the filecache table.
Check indices of the twofactor_providers table.
Check indices of the login_flow_v2 table.
Check indices of the whats_new table.
Check indices of the cards table.
Check indices of the cards_properties table.
Check indices of the calendarobjects_props table.
Check indices of the schedulingobjects table.
Check indices of the oc_properties table.
Done.
All tables already up to date!
finished.
Do you want to restart the webserver now (recommended) (y/n) [yes]?
  * Stopping Apache ...                                                                                            [  OK  ]
  * Starting Apache ...                                                                                            [  OK  ]
Press ENTER to continue

Im Netz gibt es einen Haufen Hinweise zu diesem Problem, meist aber für recht alte Versionen, die dann über ein Update des Betriebssystem gefixt werden. Weitergeholfen hat mir das nicht.

Besonders irritiert mich, dass eine jungfräuliche Installation ebenfalls den Fehler zeigt. Mit dem Restore des Backup hätte ich auch ein Ergebnis erwartet. Suche ich am falschen Ende? Hat jemand eine Idee wie ich das wieder zum Laufen bringe?

Grüße

Rolf


Mehr Informationen über die Mailingliste Eisfair