Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 18.0.2): 18.0.2
Operating system and version (eg, Ubuntu 20.04): Centos 7.7
Apache or nginx version (eg, Apache 2.4.25): nginx 1.17.3 as reverse proxy for apache 2…6
PHP version (eg, 7.1): php 7.2
The issue you are facing:
When I create a new user and try to login, nextcloud facing internal error with RedisException: Redis server went away
Is this the first time you’ve seen this error? (Y/N): no
Steps to replicate it:
- Installed nc with this Tutorial
- Changed configuration to use redis and APCu
- Created new normal user for testing (Admin-user works fine)
- Login as new user
The output of your Nextcloud log in Admin > Logging:
{"reqId":"Xqfaa1sF1wMbUJJmDxoKZQAAAAg","level":3,"time":"2020-04-28T09:25:32+02:00","remoteAddr":"90.186.127.103","user":"Anna","app":"index","method":"POST","url":"/nextcloud/index.php/login","message":{"Exception":"RedisException","Message":"Redis server went away","Code":0,"Trace":[{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Memcache/Redis.php","line":103,"function":"setnx","class":"Redis","type":"->","args":["264b9eae4a67eb8a63a3de38d71ce7cc/lockfiles/f209a7ea39e8a1bbd588aac9228d4f60",0]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Lock/MemcacheLockingProvider.php","line":81,"function":"add","class":"OC\\Memcache\\Redis","type":"->","args":["files/f209a7ea39e8a1bbd588aac9228d4f60",0]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Files/Storage/Common.php","line":747,"function":"acquireLock","class":"OC\\Lock\\MemcacheLockingProvider","type":"->","args":["files/f209a7ea39e8a1bbd588aac9228d4f60",2]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":593,"function":"acquireLock","class":"OC\\Files\\Storage\\Common","type":"->","args":["scanner::",2,{"__class__":"OC\\Lock\\MemcacheLockingProvider"}]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Files/Cache/Scanner.php","line":332,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->","args":["scanner::",2,{"__class__":"OC\\Lock\\MemcacheLockingProvider"}]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Files/View.php","line":1340,"function":"scan","class":"OC\\Files\\Cache\\Scanner","type":"->","args":["",false]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Files/View.php","line":1384,"function":"getCacheEntry","class":"OC\\Files\\View","type":"->","args":[{"cache":null,"scanner":{"__class__":"OC\\Files\\Cache\\Scanner"},"watcher":null,"propagator":null,"updater":{"__class__":"OC\\Files\\Cache\\Updater"},"__class__":"OCA\\Files_Trashbin\\Storage"},"","/Anna"]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Files/Node/Root.php","line":200,"function":"getFileInfo","class":"OC\\Files\\View","type":"->","args":["/Anna"]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Files/Node/Folder.php","line":146,"function":"get","class":"OC\\Files\\Node\\Root","type":"->","args":["/Anna"]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Files/Node/Root.php","line":383,"function":"nodeExists","class":"OC\\Files\\Node\\Folder","type":"->","args":["/Anna"]},{"function":"getUserFolder","class":"OC\\Files\\Node\\Root","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Files/Node/LazyRoot.php","line":65,"function":"call_user_func_array","args":[[{"__class__":"OC\\Files\\Node\\Root"},"getUserFolder"],["*** sensitive parameter replaced ***"]]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Files/Node/LazyRoot.php","line":282,"function":"__call","class":"OC\\Files\\Node\\LazyRoot","type":"->","args":["getUserFolder",["*** sensitive parameter replaced ***"]]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Server.php","line":1504,"function":"getUserFolder","class":"OC\\Files\\Node\\LazyRoot","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/User/Session.php","line":552,"function":"getUserFolder","class":"OC\\Server","type":"->","args":["*** sensitive parameter replaced ***"]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/User/Session.php","line":414,"function":"prepareUserLogin","class":"OC\\User\\Session","type":"->","args":[true,true]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Authentication/Login/CompleteLoginCommand.php","line":44,"function":"completeLogin","class":"OC\\User\\Session","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":40,"function":"process","class":"OC\\Authentication\\Login\\CompleteLoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Authentication/Login/LoggedInCheckCommand.php","line":50,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":40,"function":"process","class":"OC\\Authentication\\Login\\LoggedInCheckCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Authentication/Login/EmailLoginCommand.php","line":58,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":40,"function":"process","class":"OC\\Authentication\\Login\\EmailLoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Authentication/Login/UidLoginCommand.php","line":54,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":40,"function":"process","class":"OC\\Authentication\\Login\\UidLoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Authentication/Login/UserDisabledCheckCommand.php","line":57,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Authentication/Login/ALoginCommand.php","line":40,"function":"process","class":"OC\\Authentication\\Login\\UserDisabledCheckCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Authentication/Login/PreLoginHookCommand.php","line":53,"function":"processNextOrFinishSuccessfully","class":"OC\\Authentication\\Login\\ALoginCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Authentication/Login/Chain.php","line":108,"function":"process","class":"OC\\Authentication\\Login\\PreLoginHookCommand","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/orion-lucis/html/nextcloud/core/Controller/LoginController.php","line":300,"function":"process","class":"OC\\Authentication\\Login\\Chain","type":"->","args":[{"__class__":"OC\\Authentication\\Login\\LoginData"}]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"tryLogin","class":"OC\\Core\\Controller\\LoginController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\LoginController"},"tryLogin"]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\LoginController"},"tryLogin"]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\LoginController","tryLogin",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.login.tryLogin"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"core.login.tryLogin"}]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"core.login.tryLogin"}]},{"file":"/var/www/orion-lucis/html/nextcloud/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/login"]},{"file":"/var/www/orion-lucis/html/nextcloud/index.php","line":38,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/orion-lucis/html/nextcloud/lib/private/Memcache/Redis.php","Line":103,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0","version":"18.0.4.2"}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'ocui60735ap4',
'passwordsalt' => 'Sensitiv Data',
'secret' => 'Sensitiv Data',
'trusted_domains' =>
array (
0 => 'domain.de',
),
'datadirectory' => '/opt/nextcloud/data',
'dbtype' => 'mysql',
'version' => '18.0.4.2',
'overwrite.cli.url' => 'https://domain.de/nextcloud',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'nextcloud',
'dbpassword' => 'Sensitiv Data',
'installed' => true,
'memcache.local' => '\OC\Memcache\APCu',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array (
'host' => '/var/run/redis/redis.sock',
'port' => '6379',
'password' => 'Sensitiv Data',
'dbindex' => 0,
'timeout' => 1.5,
),
);
The output of your Apache/nginx/system log in /var/log/____
:
No relevant information
Redis uses an unix socket (like this Tutorial ).
The apache webserver runs behind an nginx revers proxy.
I’ve found some threads about this exception, but nothing worked so far. I hope anybody can help me.