Web-UI Login nicht möglich, aber nextcloud selber läuft samt Synchro Apps, Kalender und Aufgaben

Nutze nun schon seit über einem Jahr Nextcloud auf meinem UnRaid-Server und stoße nun aber auf ein seltsames Problem.

Meine Konfiguration:
Linux-Server UnRaid in der Version 6.9.2
NC 21 im Docker-Container von Linux-Server IO
SWAG (Letsencrypt)-Container als Reverse-Proxy mit eigener Subdomain
DuckDNS-Container für dyn. DNS

Mein Problem:

Ein Login über das Web-UI von Nextcloud spuckt nur einen “Internal Server Error” aus.
Die Apps (Android und iOS) haben aber nach wie vor Verbindung zu NC und ich kann auch Dateien hoch- bzw. runterladen und es synchronisiert sich alles. Auch der Sync über CalDav für Kalender und Aufgaben funktioniert problemlos.
Der NC-Client auf meinem Win10-PC müsste sich neu anmelden und dies klappt eben nicht, weil die Anmeldung ja per Web-UI bestätigt werden müsste.

Die Container (NC und Swag) habe ich schon neu installiert - in den Logs der Container sieht auch alles sauber aus.

Im Nextcloud.log taucht aber ein Fehler im Zusammenhang mit dem Theme auf, wenn ich das richtig deute:

 Agent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0","version":"21.0.1.1"}
{"reqId":"OiW0ysdcsI9jtOXDRA5v","level":3,"time":"2021-05-19T06:29:53+00:00","remoteAddr":"207.180.213.38","user":"--","app":"core","method":"GET","url":"/login","message":{"Exception":"RuntimeException","Message":"image not found: image:favicon-mask.svg webroot: serverroot:/config/www/nextcloud","Code":0,"Trace":[{"file":"/config/www/nextcloud/lib/private/legacy/template/functions.php","line":238,"function":"imagePath","class":"OC\\URLGenerator","type":"->"},{"file":"/config/www/nextcloud/core/templates/layout.guest.php","line":20,"function":"image_path"},{"file":"/config/www/nextcloud/lib/private/Template/Base.php","line":178,"args":["/config/www/nextcloud/core/templates/layout.guest.php"],"function":"include"},{"file":"/config/www/nextcloud/lib/private/Template/Base.php","line":150,"function":"load","class":"OC\\Template\\Base","type":"->"},{"file":"/config/www/nextcloud/lib/private/legacy/OC_Template.php","line":180,"function":"fetchPage","class":"OC\\Template\\Base","type":"->"},{"file":"/config/www/nextcloud/lib/private/legacy/OC_Template.php","line":211,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/config/www/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->"},{"file":"/config/www/nextcloud/lib/private/legacy/OC_Template.php","line":332,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/config/www/nextcloud/index.php","line":63,"function":"printExceptionErrorPage","class":"OC_Template","type":"::"}],"File":"/config/www/nextcloud/lib/private/URLGenerator.php","Line":238,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0","version":"21.0.1.1"}
{"reqId":"Y5d1alsQkKVxzjJqTzUt","level":3,"time":"2021-05-19T09:19:34+00:00","remoteAddr":"ipxxx","user":"userxxx","app":"no app in context","method":"GET","url":"/ocs/v2.php/cloud/capabilities?format=json","message":{"Exception":"RuntimeException","Message":"image not found: image:logo/logo.svg webroot: serverroot:/config/www/nextcloud","Code":0,"Trace":[{"file":"/config/www/nextcloud/apps/theming/lib/ThemingDefaults.php","line":249,"function":"imagePath","class":"OC\\URLGenerator","type":"->"},{"file":"/config/www/nextcloud/apps/theming/lib/Capabilities.php","line":84,"function":"getLogo","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/config/www/nextcloud/lib/private/CapabilitiesManager.php","line":72,"function":"getCapabilities","class":"OCA\\Theming\\Capabilities","type":"->"},{"file":"/config/www/nextcloud/core/Controller/OCSController.php","line":107,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"getCapabilities","class":"OC\\Core\\Controller\\OCSController","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/config/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/config/www/nextcloud/ocs/v1.php","line":63,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/config/www/nextcloud/ocs/v2.php","line":24,"args":["/config/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/config/www/nextcloud/lib/private/URLGenerator.php","Line":238,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.15.1","version":"21.0.1.1"}
{"reqId":"yaRjpicZEQDPcXcfmEH2","level":3,"time":"2021-05-19T09:19:59+00:00","remoteAddr":"ipxxx","user":"userxxx","app":"PHP","method":"GET","url":"/index.php/apps/files/api/v1/thumbnail/256/256/SofortUpload/Camera/20210518_220152.jpg","message":"Allowed memory size of 536870912 bytes exhausted (tried to allocate 28672 bytes) at /config/www/nextcloud/lib/private/legacy/OC_Image.php#512","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.15.1","version":"21.0.1.1"}
{"reqId":"yudw2flsHb9Ea7YQwfKH","level":3,"time":"2021-05-19T09:20:22+00:00","remoteAddr":"ipxxx","user":"userxxx","app":"no app in context","method":"GET","url":"/ocs/v2.php/cloud/capabilities?format=json","message":{"Exception":"RuntimeException","Message":"image not found: image:logo/logo.svg webroot: serverroot:/config/www/nextcloud","Code":0,"Trace":[{"file":"/config/www/nextcloud/apps/theming/lib/ThemingDefaults.php","line":249,"function":"imagePath","class":"OC\\URLGenerator","type":"->"},{"file":"/config/www/nextcloud/apps/theming/lib/Capabilities.php","line":84,"function":"getLogo","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/config/www/nextcloud/lib/private/CapabilitiesManager.php","line":72,"function":"getCapabilities","class":"OCA\\Theming\\Capabilities","type":"->"},{"file":"/config/www/nextcloud/core/Controller/OCSController.php","line":107,"function":"getCapabilities","class":"OC\\CapabilitiesManager","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"getCapabilities","class":"OC\\Core\\Controller\\OCSController","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/config/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/config/www/nextcloud/ocs/v1.php","line":63,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/config/www/nextcloud/ocs/v2.php","line":24,"args":["/config/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/config/www/nextcloud/lib/private/URLGenerator.php","Line":238,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.15.1","version":"21.0.1.1"}

In der Tat habe ich vor kurzem das Theme geändert, allerdings nur den Text auf der Login-Seite - keine Grafiken etc.

Kann das das Problem sein und wie bekomme ich wieder einen Web-Login hin?

Danke fürs Lesen und antworten

Bitte füge vor und nach dem Logdateiauszug jeweils eine Zeile mit drei Backticks (```) ein damit diese besser zu lesen sind.

Danke für den Hinweis - habe es geändert.
Hatte es eigentlich als </> Code formatiert gehabt, aber anscheinend hat er das nicht übernommen…

Prüfe, ob die angegebene Logo-Dateien (./core/img/favicon-mask.svg und ./core/img/logo/logo.svg) existieren. Falls nein, lade Dir die Nextcloud Archivdatei aus dem Internet und extrahiere die fehlende Dateien in das entsprechende Verzeichnis und korrigiere anschließend die Zugriffs- und Besitzrechte.

Habe die Dateien aus einem Backup ziehen können - um jetzt leider festzustellen, dass das Problem wohl doch größer ist. Aber immerhin kommt die Fehlermeldung “Internal Server Error” jetzt wieder in bunt mit Logos :slight_smile:

Apps, bereits angemeldeter Win-Client und caldav etc. funktionieren nach wie vor.

Das nextcloud.log meldet folgendes :

/Container.php","line":118,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/config/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":203,"function":"offsetGet","class":"Pimple\\Container","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/App.php","line":149,"function":"offsetGet","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/config/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/config/www/nextcloud/ocs/v1.php","line":63,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/config/www/nextcloud/ocs/v2.php","line":24,"args":["/config/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/config/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows) mirall/3.2.1stable-Win64 (build 20210428) (Nextcloud, windows-10.0.19042 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"21.0.1.1"}
{"reqId":"F1J0oMvSHQoJWI5tL5Zf","level":3,"time":"2021-05-20T20:06:24+00:00","remoteAddr":"ipxxx","user":"userxxx","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"Error: Interface 'OC\\Security\\RateLimiting\\Backend\\IBackend' not found at /config/www/nextcloud/lib/private/Security/RateLimiting/Backend/MemoryCache.php#42","userAgent":"Mozilla/5.0 (Windows) mirall/3.2.1stable-Win64 (build 20210428) (Nextcloud, windows-10.0.19042 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"21.0.1.1"}

Die Datei IBackend.php finde ich zwar im Backup, aber die lässt sich so leider nicht kopieren.

Ich hätte noch das automatische Backup vonm letzten Upgrade von NC20 auf NC21, falls ein Downgrade hilfreich wäre. Allerdings weiß ich auch nicht, wie das geht…

Was heißt dies genau? Woran scheitert der Kopiervirgang?

Erst wenn ich sie umbenenne in “Backend.php” lässt sie sich kopieren. Das “I” vornedran sieht eher wie eine römische 1 aus als ein großes i. Vielleicht kennzeinet das Datei irgendwie.

Auch ein Update auf der Konsole schlägt deswegen fehl:

Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4

Current version is 21.0.1.

Update to Nextcloud 21.0.2 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-21.0.2.zip
Open changelog ↗

Steps that will be executed:
[ ] Check for expected files
[ ] Check for write permissions
[ ] Create backup
[ ] Downloading
[ ] Verify integrity
[ ] Extracting
[ ] Enable maintenance mode
[ ] Replace entry points
[ ] Delete old files
[ ] Move new files in place
[ ] Done

Start update? [y/N] y

Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.

[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[ ] Delete old files ...PHP Warning:  rmdir(/config/www/nextcloud/updater/../lib/private/Security/RateLimiting/Backend): Directory not empty in phar:///config/www/nextcloud/updater/updater.phar/lib/Updater.php on line 871
[✘] Delete old files failed
Could not rmdir: /config/www/nextcloud/updater/../lib/private/Security/RateLimiting/Backend

Downgrade würde über ein Tag im Repository beim Ziehen des Container von linuxserver.io funktionieren, oder?

Ich sehe leider immer noch keine PRÄZISE Fehlermeldung die angezeigt wird wenn Du versuchst die Datei auf der Konsole zu kopieren. Es existieren in der Tat Dateien die mit einem großen “i” beginnen, dies ist jedoch kein Grund dass man die Datei nicht kopieren können sollte.

Welchen Befehl gibst Du EXAKT auf der Konsole ein und was wird dann genau ausgegeben?

Das passiert auf der Konsole:


root@UNR-Server:/mnt/user/nextcloud/updater-oc8w2zq8wh8z/backups/nextcloud-20.0.9.1-1617974184/lib/private/Security/RateLimiting/Backend# ls -l
total 8
-rw-rw-rw- 1 nobody users 2037 Apr  9 15:19 IBackend.php
-rw-rw-rw- 1 nobody users 3582 Apr  9 15:19 MemoryCache.php
root@UNR-Server:/mnt/user/nextcloud/updater-oc8w2zq8wh8z/backups/nextcloud-20.0.9.1-1617974184/lib/private/Security/RateLimiting/Backend# cp IBackend.php /mnt/cache/appdata/nextcloud/www/nextcloud/lib/private/Security/RateLimiting/Backend/
cp: cannot create regular file '/mnt/cache/appdata/nextcloud/www/nextcloud/lib/private/Security/RateLimiting/Backend/IBackend.php': File exists
root@UNR-Server:/mnt/user/nextcloud/updater-oc8w2zq8wh8z/backups/nextcloud-20.0.9.1-1617974184/lib/private/Security/RateLimiting/Backend# cd /mnt/cache/appdata/nextcloud/www/nextcloud/lib/private/Security/RateLimiting/Backend/
root@UNR-Server:/mnt/cache/appdata/nextcloud/www/nextcloud/lib/private/Security/RateLimiting/Backend# ls -l
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
/bin/ls: cannot access 'IBackend.php': No such file or directory
total 0
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
-????????? ? ? ? ?            ? IBackend.php
root@UNR-Server:/mnt/cache/appdata/nextcloud/www/nextcloud/lib/private/Security/RateLimiting/Backend# 

Datei ist also wohl vorhanden aber ohne jegliche Zuordnung??

Na ja, ich hatte zwar nach dem Kopierbefehl gefragt und nicht nach den Meldungen des update-Skriptes, jedoch erkenne ich aus Deinen bisherigen Informationsfragmenten, dass Du

  • scheinbar eine Container-Umgebung verwendest.
  • Das Nextcloud-Verzeichnis scheinbar einhängst.

Bei einem gemountetem Verzeichnis musst Du sicher stellen, dass Du auch in ein Verzeichnis schreiben kannst. Da ich selbst aber keine Docker-Umgebung verwende kann ich Dir diesbezüglich nicht mehr weiterhelfen. Da gibt es andere Spezialisten in diesem Forum die sich damit besser auskennen.

Danke für den Support bisher!
Ich denke, ich versuche alles neu aufzusetzen und das automatische Backup mit der Vers. 20.0.9.1 zurückzuspielen. Gibt es da irgendwo eine Anleitung oder kopiert man den Inhalt des Backup dann einfach über die Installation drüber?