Найти тему

Nextcloud ошибка Internal Server Error The server encountered an internal error and was unable to complete your request. Please contact ...

Оглавление

По непонятным причинам возникла ошибка, пропал доступ к облаку:

Internal Server Error
The server encountered an internal error and was unable to complete your request.

Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.

More details can be found in the server log.

В логах были такие ошибки:

[22/Aug/2024:15:03:20 +0300] "GET /index.php/204 HTTP/1.1" 500 289
[22/Aug/2024:15:03:27 +0300] "GET /index.php/204 HTTP/1.1" 500 289

{"reqId":"D7AI0qXcigl3Pnn2k9mY","level":3,"time":"August 22, 2024 11:24:11","remoteAddr":"192.168.0.1","user":"--","app":"core","method":"GET","url":"/index.php/204","message":"Exception thrown: RedisException","userAgent":"Mozilla/5.0 (Windows) mirall/3.13.23.12-Win64 (build 20240708) (Nextcloud, windows-10.0.22000 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"29.0.4.1","exception":{"Exception":"RedisException","Message":"Redis server went away","Co>
{"reqId":"PlvU5G1NeXtfYSb8IqMr","level":3,"time":"August 22, 2024 11:25:01","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":"No such file or directory","userAgent":"--","version":"29.0.4.1","exception":{"Exception":"RedisException","Message":"No such file or directory","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":117,"function":"pconnect","class":"Redis","type":"->"},{"file":"/var/www/nextcloud/lib/priv

Суть проблемы:

У Redis слетели права доступа к папке с логами, в связи с чем служба не запускается.

Решение:

Повысить права доступа к папке пользователю из под которого запускается Redis

chmod -R 777 /var/log/redis/
Причем служба Redis стартует только с правами "777", с другими правами не заработало.

Проверить работу службы можно командой:

systemctl start redis-server.service

Если запустится и не выдаст ошибки, то все ОК.