Hallo,
es war mal wieder Zeit für ein Backup, also steckte ich wie zuvor die USB-HD an. Diesmal führte das jedoch dazu, dass nur noch ein Serverfehler angezeigt wurde (~ Nextcloud hatte keine Verbindung zum Filesystem o.ä.). Reboot per SSH ging noch, aber nur mit Gewalt (“sudo systemctl --force --force reboot”).
Danach kam die NC wieder korrekt hoch. Nur der Daemon scheint es nicht geschafft zu haben (keine LED, blinkt nur ganz kurz alle 10 s oder so), Nextbox-App zeigt nur “NextBox Backend Connection: testing”…
Logs wie folgt:
[PHP] Error: Error: file_get_contents(http://172.18.238.1:18585/status): failed to open stream: Connection refused at /var/www/html/custom_apps/nextbox/lib/Controller/PageController.php#38 at <<closure>>
0. <<closure>>
OC\Log\ErrorHandler::onError(2, "file_get_conten ... d", "/var/www/html/c ... p", 38, {path: "status"})
1. /var/www/html/custom_apps/nextbox/lib/Controller/PageController.php line 38
file_get_contents("http://172.18.238.1:18585/status")
2. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 218
OCA\Nextbox\Controller\PageController->forward("status")
3. /var/www/html/lib/private/AppFramework/Http/Dispatcher.php line 127
OC\AppFramework\Http\Dispatcher->executeController(OCA\Nextbox\Controller\PageController {}, "forward")
4. /var/www/html/lib/private/AppFramework/App.php line 157
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Nextbox\Controller\PageController {}, "forward")
5. /var/www/html/lib/private/Route/Router.php line 302
OC\AppFramework\App::main("OCA\\Nextbox\\C ... r", "forward", OC\AppFramework\ ... {}, {path: "status", ... "})
6. /var/www/html/lib/base.php line 993
OC\Route\Router->match("/apps/nextbox/forward/status")
7. /var/www/html/index.php line 37
OC::handleRequest()
GET /apps/nextbox/forward/status
from 192.168.178.44 by ... at 2021-10-09T16:31:02+00:00
{"reqId":"...","level":3,"time":"2021-10-09T16:31:02+00:00","remoteAddr":"192.168.178.44","user":"...","app":"PHP","method":"GET","url":"/apps/nextbox/forward/status","message":{"Exception":"Error","Message":"file_get_contents(http://172.18.238.1:18585/status): failed to open stream: Connection refused at /var/www/html/custom_apps/nextbox/lib/Controller/PageController.php#38","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"file_get_contents(http://172.18.238.1:18585/status): failed to open stream: Connection refused","/var/www/html/custom_apps/nextbox/lib/Controller/PageController.php",38,{"path":"status"}]},{"file":"/var/www/html/custom_apps/nextbox/lib/Controller/PageController.php","line":38,"function":"file_get_contents","args":["http://172.18.238.1:18585/status"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"forward","class":"OCA\\Nextbox\\Controller\\PageController","type":"->","args":["status"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Nextbox\\Controller\\PageController"},"forward"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Nextbox\\Controller\\PageController"},"forward"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Nextbox\\Controller\\PageController","forward",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"path":"status","_route":"nextbox.page.forward"}]},{"file":"/var/www/html/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/nextbox/forward/status"]},{"file":"/var/www/html/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:93.0) Gecko/20100101 Firefox/93.0","version":"21.0.0.18","id":"6161c41ec8e7e"}
Und:
nextuser@nextbox:~ $ sudo systemctl status nextbox-daemon.service
nextbox-daemon.service - NextBox System Daemon
Loaded: loaded (/lib/systemd/system/nextbox-daemon.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sat 2021-10-09 17:37:34 BST; 2s ago
Process: 8173 ExecStart=/usr/bin/nextbox-daemon (code=exited, status=1/FAILURE)
Main PID: 8173 (code=exited, status=1/FAILURE)