Redis accidentially deleted / Redis versehentlich gelöscht

Hallo zusammen.

Ich habe versehentlich die Redis-Instanz gelöscht. Ich habe es sofort neu installiert, aber Nextcloud zeigt trotzdem einen Fehler an.

Ist es möglich, Redis neu zu konfigurieren und diesen Fehler zu beheben, ohne die Nextcloud komplett neu zu installieren?

Hey. I accidentially deleted the Redis instance. I installed it again, but Nextcloud shows an error anyway. Is it possible to re-configure Redis and fix this error without reinstalling Nextcloud?

Log

{“reqId”:“wkTUN0sdKWbZp29vLZ9I”,“level”:3,“time”:“2020-05-20T14:45:02+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“cron”,“method”:“”,“url”:“–”,“message”:{“Exception”:“Exception”,“Message”:“Not installed”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/lib/base.php”,“line”:651,“function”:“checkInstalled”,“class”:“OC”,“type”:“::”,“args”:},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1089,“function”:“init”,“class”:“OC”,“type”:“::”,“args”:},{“file”:“/var/www/nextcloud/cron.php”,“line”:42,“args”:[“/var/www/nextcloud/lib/base.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/base.php”,“Line”:282,“CustomMessage”:“–”},“userAgent”:“–”,“version”:“18.0.4.2”}
{“reqId”:“oiPWT8LX8alrtYy6w3Sn”,“level”:2,“time”:“2020-05-20T15:00:19+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“appstoreFetcher”,“method”:“”,“url”:“–”,“message”:“Could not connect to appstore: cURL error 28: Connection timed out after 10001 milliseconds (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)”,“userAgent”:“–”,“version”:“18.0.4.2”}
{“reqId”:“XsVgSlo2OmPlJpAt1fj@6wAAVgA”,“level”:3,“time”:“2020-05-20T16:52:26+00:00”,“remoteAddr”:“192.168.188.58”,“user”:“daniel”,“app”:“text”,“method”:“POST”,“url”:“/index.php/apps/text/session/sync”,“message”:{“Exception”:“OCP\Files\NotFoundException”,“Message”:“”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/apps/text/lib/Service/DocumentService.php”,“line”:363,“function”:“getFileById”,“class”:“OCA\Text\Service\DocumentService”,“type”:“->”,“args”:[2202,“daniel”]},{“file”:“/var/www/nextcloud/apps/text/lib/Service/ApiService.php”,“line”:160,“function”:“getFileForSession”,“class”:“OCA\Text\Service\DocumentService”,“type”:“->”,“args”:[{“id”:1,“class”:“OCA\Text\Db\Session”},null]},{“file”:“/var/www/nextcloud/apps/text/lib/Controller/SessionController.php”,“line”:81,“function”:“sync”,“class”:“OCA\Text\Service\ApiService”,“type”:“->”,“args”:[2202,1,“II/ZJqi/H8sVJNjl6Wo9GV0DO28uzn7LJ2BY3/rzSkr0RhPJoyyz2NlwffReQ/qD”,0,null,false,false]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:170,“function”:“sync”,“class”:“OCA\Text\Controller\SessionController”,“type”:“->”,“args”:[2202,1,“II/ZJqi/H8sVJNjl6Wo9GV0DO28uzn7LJ2BY3/rzSkr0RhPJoyyz2NlwffReQ/qD”,0,null,false,false]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:99,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”,“args”:[{“class”:“OCA\Text\Controller\SessionController”},“sync”]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/App.php”,“line”:125,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”,“args”:[{“class”:“OCA\Text\Controller\SessionController”},“sync”]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php”,“line”:47,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”,“args”:[“OCA\Text\Controller\SessionController”,“sync”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“_route”:“text.Session.sync”}]},{“function”:“__invoke”,“class”:“OC\AppFramework\Routing\RouteActionHandler”,“type”:“->”,“args”:[{“_route”:“text.Session.sync”}]},{“file”:“/var/www/nextcloud/lib/private/Route/Router.php”,“line”:299,“function”:“call_user_func”,“args”:[{“class”:“OC\AppFramework\Routing\RouteActionHandler”},{“_route”:“text.Session.sync”}]},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1008,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”,“args”:[“/apps/text/session/sync”]},{“file”:“/var/www/nextcloud/index.php”,“line”:38,“function”:“handleRequest”,“class”:“OC”,“type”:“::”,“args”:}],“File”:“/var/www/nextcloud/apps/text/lib/Service/DocumentService.php”,“Line”:394,“CustomMessage”:“–”},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0”,“version”:“18.0.4.2”}
{“reqId”:“XsVgSlo2OmPlJpAt1fj@7AAAVwA”,“level”:3,“time”:“2020-05-20T16:52:26+00:00”,“remoteAddr”:“192.168.188.58”,“user”:“daniel”,“app”:“text”,“method”:“POST”,“url”:“/index.php/apps/text/session/sync”,“message”:{“Exception”:“OCP\Files\NotFoundException”,“Message”:“”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/apps/text/lib/Service/DocumentService.php”,“line”:363,“function”:“getFileById”,“class”:“OCA\Text\Service\DocumentService”,“type”:“->”,“args”:[2202,“daniel”]},{“file”:“/var/www/nextcloud/apps/text/lib/Service/ApiService.php”,“line”:160,“function”:“getFileForSession”,“class”:“OCA\Text\Service\DocumentService”,“type”:“->”,“args”:[{“id”:1,“class”:“OCA\Text\Db\Session”},null]},{“file”:“/var/www/nextcloud/apps/text/lib/Controller/SessionController.php”,“line”:81,“function”:“sync”,“class”:“OCA\Text\Service\ApiService”,“type”:“->”,“args”:[2202,1,“II/ZJqi/H8sVJNjl6Wo9GV0DO28uzn7LJ2BY3/rzSkr0RhPJoyyz2NlwffReQ/qD”,0,“# Documents\n\nNextcloud works well with all the common document formats. You can even collaborate with others on ODT and Markdown files!”,false,true]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:170,“function”:“sync”,“class”:“OCA\Text\Controller\SessionController”,“type”:“->”,“args”:[2202,1,“II/ZJqi/H8sVJNjl6Wo9GV0DO28uzn7LJ2BY3/rzSkr0RhPJoyyz2NlwffReQ/qD”,0,“# Documents\n\nNextcloud works well with all the common document formats. You can even collaborate with others on ODT and Markdown files!”,false,true]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:99,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”,“args”:[{“class”:“OCA\Text\Controller\SessionController”},“sync”]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/App.php”,“line”:125,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”,“args”:[{“class”:“OCA\Text\Controller\SessionController”},“sync”]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php”,“line”:47,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”,“args”:[“OCA\Text\Controller\SessionController”,“sync”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“_route”:“text.Session.sync”}]},{“function”:“__invoke”,“class”:“OC\AppFramework\Routing\RouteActionHandler”,“type”:“->”,“args”:[{“_route”:“text.Session.sync”}]},{“file”:“/var/www/nextcloud/lib/private/Route/Router.php”,“line”:299,“function”:“call_user_func”,“args”:[{“class”:“OC\AppFramework\Routing\RouteActionHandler”},{“_route”:“text.Session.sync”}]},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1008,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”,“args”:[“/apps/text/session/sync”]},{“file”:“/var/www/nextcloud/index.php”,“line”:38,“function”:“handleRequest”,“class”:“OC”,“type”:“::”,“args”:}],“File”:“/var/www/nextcloud/apps/text/lib/Service/DocumentService.php”,“Line”:394,“CustomMessage”:“–”},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0”,“version”:“18.0.4.2”}
{“reqId”:“XsVj4ro@R6ERok9FLawRrQAAVQM”,“level”:2,“time”:“2020-05-20T17:07:46+00:00”,“remoteAddr”:“91.35.241.33”,“user”:“–”,“app”:“no app in context”,“method”:“POST”,“url”:“/index.php/login”,“message”:“Login failed: admin (Remote IP: 91.35.241.33)”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0”,“version”:“18.0.4.2”}
{“reqId”:“XsVj75bhhD3Takyi@UObugAAigA”,“level”:2,“time”:“2020-05-20T17:08:02+00:00”,“remoteAddr”:“91.35.241.33”,“user”:“–”,“app”:“no app in context”,“method”:“POST”,“url”:“/index.php/login”,“message”:“Login failed: daniel (Remote IP: 91.35.241.33)”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0”,“version”:“18.0.4.2”}
{“reqId”:“XsVsBJbhhD3Takyi@UOh5QAAihw”,“level”:3,“time”:“2020-05-20T17:42:29+00:00”,“remoteAddr”:“91.35.241.33”,“user”:“daniel”,“app”:“text”,“method”:“POST”,“url”:“/index.php/apps/text/session/sync”,“message”:{“Exception”:“OCP\Files\NotFoundException”,“Message”:“”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/apps/text/lib/Service/DocumentService.php”,“line”:363,“function”:“getFileById”,“class”:“OCA\Text\Service\DocumentService”,“type”:“->”,“args”:[2408,“daniel”]},{“file”:“/var/www/nextcloud/apps/text/lib/Service/ApiService.php”,“line”:160,“function”:“getFileForSession”,“class”:“OCA\Text\Service\DocumentService”,“type”:“->”,“args”:[{“id”:4,“class”:“OCA\Text\Db\Session”},null]},{“file”:“/var/www/nextcloud/apps/text/lib/Controller/SessionController.php”,“line”:81,“function”:“sync”,“class”:“OCA\Text\Service\ApiService”,“type”:“->”,“args”:[2408,4,“VokbmukdvyC2KgLAJi7eHwQfJ3QmJmuq6Fx6WToUAe1EBlLK6txzidi2Q8BcQGVy”,0,null,false,false]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:170,“function”:“sync”,“class”:“OCA\Text\Controller\SessionController”,“type”:“->”,“args”:[2408,4,“VokbmukdvyC2KgLAJi7eHwQfJ3QmJmuq6Fx6WToUAe1EBlLK6txzidi2Q8BcQGVy”,0,null,false,false]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php”,“line”:99,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”,“args”:[{“class”:“OCA\Text\Controller\SessionController”},“sync”]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/App.php”,“line”:125,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:“->”,“args”:[{“class”:“OCA\Text\Controller\SessionController”},“sync”]},{“file”:“/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php”,“line”:47,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:“::”,“args”:[“OCA\Text\Controller\SessionController”,“sync”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“_route”:“text.Session.sync”}]},{“function”:“__invoke”,“class”:“OC\AppFramework\Routing\RouteActionHandler”,“type”:“->”,“args”:[{“_route”:“text.Session.sync”}]},{“file”:“/var/www/nextcloud/lib/private/Route/Router.php”,“line”:299,“function”:“call_user_func”,“args”:[{“class”:“OC\AppFramework\Routing\RouteActionHandler”},{“_route”:“text.Session.sync”}]},{“file”:“/var/www/nextcloud/lib/base.php”,“line”:1008,“function”:“match”,“class”:“OC\Route\Router”,“type”:“->”,“args”:[“/apps/text/session/sync”]},{“file”:“/var/www/nextcloud/index.php”,“line”:38,“function”:“handleRequest”,“class”:“OC”,“type”:“::”,“args”:}],“File”:“/var/www/nextcloud/apps/text/lib/Service/DocumentService.php”,“Line”:394,“CustomMessage”:“–”},“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:76.0) Gecko/20100101 Firefox/76.0”,“version”:“18.0.4.2”}

System

Nextcloud version: 20.0.4.0
auf einem Raspberry Pi 3

Thanks for your Support / Danke für eure Hilfe!
Daniel

Hallo @Deesh,

Redis is unabhängig von Nextcloud.

In Deiner config.php gibt es wenige Einträge dazu.
Siehe Memory caching — Nextcloud latest Administration Manual latest documentation

Dein OS hast Du nicht verraten.

Schon die docs gelesen?

Hallo @rakekniven,

danke für deine schnelle Antwort. Das OS nennt sich Nextcloudpi - Das ist eine Kombination aus Raspbian und Nextcloud.

Offensichtlich entsteht mein Fehler dadurch, dass Nextcloud versucht auf Redis zuzugreifen, aber keine Zugangsberechtigung hat. Muss ich für Nextcloud einen Benutzer auf Redis anlegen?

In der Dokumentation habe ich bereits geschaut, aber noch nicht den Absatz gelesen, den du mir verlinkt hast - Das werde ich mal nachholen.

Viele Grüße,
Daniel

Nein, in der Redis config kann ein Secret eingetragen werden. Falls dies der Fall ist, dann muss das auch in die config von NC eingetragen werden. Steht aber auch in den docs :slight_smile:

Also ich habe die Dokumentation durchgesehen und kann keinen Hinweis auf mein Problem finden. Redis läuft, Nextcloud erkennt das auch, aber zeigt mir trotzdem einen Error an.

Ich habe versucht, über nc-init die Konfiguration zurückzusetzen, aber bekomme leider nur die Meldung

[ nc-init ] (Sat Jan 9 23:29:33 CET 2021)
Setting up a clean Nextcloud instance... wait until message 'NC init done'
redis server without a password. Abort

zu dieser Meldung finde ich weder im Web, noch in der Dokumentation etwas :frowning:

Was kann ich noch versuchen?

Viele Grüße,
Daniel

Also ich bin jetzt nicht der redis profi, aber das sieht für mich so aus als wäre am redis server ein passwort zu konfigurieren welches dann im nextcloud config.php eingetragen werden muss, was dann eventuell das nc-init macht

nc-init resettet nur die datenbank und die nextcloud files, aber nicht die restliche Umgebung.

Bei meinem Ubuntu öffne ich die Datei /etc/redis/redis.conf und schaue nach der Variable requirepass.

Ist diese auskommentiert?
Dann einkommentieren und service neu starten.

Den Wert in config.php Deiner NC einfügen. Das steht wiederum sauber in den docs.
Dann sollte es laufen.

Mittlerweile habe ich den Fehler behoben. Ich habe in der config.php den Redis-Host auf ‘localhost’ und den Port auf 6379 geändert. Ich habe dann den Server rebooted, aber der Fehler bestand weiterhin. Aus Frust habe ich mich dann durch die Konfiguration geklickt und das nc-update ausgeführt. Danach hat wieder alles funktioniert.

Vielen Dank für eure Unterstützung!