nextcloud / nextcloud/nextcloudpi

Internal Server Error

Open
#1,652 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

has-updates
Dominant language
Shell
Stars
2.9k
Forks
318
PR merge metrics
No merged PRs in 30d

Description

I completed deleted the previous docker, and all the files left in appdata directory, pulled the latest, and started over. It worked for the past week until last night. This morning, all my nextcloud clients couldn't connect, and I believe the kill switch on my server got triggered; I restarted my unraid server. After all dockers were running, I got this error first
2022-11-03 10_57_41-Nextcloud
then it cycled between this and the previous one a little bit
2022-11-03 10_57_52-Window
now it gives only this:

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.

log seems to be a repeatition of this with different "reqId" and "time"

{"reqId":"Y2QEMoVcE1MMqBJs2Nd3ZgAAAEY","level":3,"time":"2022-11-03T18:10:58+00:00","remoteAddr":"69.75.39.170","user":"--","app":"remote","method":"GET","url":"/status.php","message":"WRONGPASS invalid username-password pair","userAgent":"Mozilla/5.0 (Windows) mirall/3.4.0stable-Win64 (build 20211129) (Nextcloud, windows-10.0.19044 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"24.0.5.1","exception":{"Exception":"RedisException","Message":"WRONGPASS invalid username-password pair","Code":0,"Trace":[{"file":"/data/nextcloud/lib/private/RedisFactory.php","line":143,"function":"auth","class":"Redis","type":"->","args":["*** sensitive parameters replaced "]},{"file":"/data/nextcloud/lib/private/RedisFactory.php","line":178,"function":"create","class":"OC\RedisFactory","type":"->"},{"file":"/data/nextcloud/lib/private/Memcache/Redis.php","line":43,"function":"getInstance","class":"OC\RedisFactory","type":"->"},{"file":"/data/nextcloud/lib/private/Memcache/Factory.php","line":118,"function":"__construct","class":"OC\Memcache\Redis","type":"->"},{"file":"/data/nextcloud/lib/private/Server.php","line":1106,"function":"createLocking","class":"OC\Memcache\Factory","type":"->"},{"file":"/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":162,"function":"OC\{closure}","class":"OC\Server","type":"->","args":[" sensitive parameters replaced "]},{"file":"/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":122,"function":"OC\AppFramework\Utility\{closure}","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":[" sensitive parameters replaced "]},{"file":"/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":129,"function":"offsetGet","class":"Pimple\Container","type":"->"},{"file":"/data/nextcloud/lib/private/ServerContainer.php","line":136,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":57,"function":"query","class":"OC\ServerContainer","type":"->"},{"file":"/data/nextcloud/lib/private/Server.php","line":2082,"function":"get","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/data/nextcloud/lib/private/Files/View.php","line":122,"function":"getLockingProvider","class":"OC\Server","type":"->"},{"file":"/data/nextcloud/lib/private/Server.php","line":454,"function":"__construct","class":"OC\Files\View","type":"->"},{"file":"/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":162,"function":"OC\{closure}","class":"OC\Server","type":"->","args":[" sensitive parameters replaced "]},{"file":"/data/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":122,"function":"OC\AppFramework\Utility\{closure}","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":[" sensitive parameters replaced ***"]},{"file":"/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":129,"function":"offsetGet","class":"Pimple\Container","type":"->"},{"file":"/data/nextcloud/lib/private/ServerContainer.php","line":136,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/data/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":57,"function":"query","class":"OC\ServerContainer","type":"->"},{"file":"/data/nextcloud/lib/private/Server.php","line":1445,"function":"get","class":"OC\AppFramework\Utility\SimpleContainer","type":"->"},{"file":"/data/nextcloud/lib/base.php","line":602,"function":"boot","class":"OC\Server","type":"->"},{"file":"/data/nextcloud/lib/base.php","line":1111,"function":"init","class":"OC","type":"::"},{"file":"/data/nextcloud/status.php","line":37,"args":["/data/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/data/nextcloud/lib/private/RedisFactory.php","Line":143,"CustomMessage":"--"}}`

I tried status.php, and it returned:

Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.

Please let me know what info is needed to solve this issue. Thanks in advance.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the RedisException trace in lib/private/RedisFactory.php and the status.php entry point, then compare the Redis-related configuration with the Docker setup described in the report. Done means the server and Nextcloud clients connect successfully without the WRONGPASS errors or repeated Internal Server Error responses.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, redis
Domain
backend, databases, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.