Internal Server Error: New Memcache-Server

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

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:

{"reqId":"BUFELR3RUub7wUwZsmte","level":3,"time":"2020-03-28T10:51:43+00:00","remoteAddr":"192.168.2.10","user":"admin","app":"index","method":"GET","url":"/index.php/apps/files/?dir=/","message":{"Exception":"Exception","Message":"Error 47 interacting with memcached : SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY","Code":0,"Trace":[{"file":"/var/www/dl.ifnor/lib/private/Memcache/Memcached.php","line":117,"function":"verifyReturnCode","class":"OC\\Memcache\\Memcached","type":"->","args":[]},{"file":"/var/www/dl.ifnor/lib/private/URLGenerator.php","line":230,"function":"set","class":"OC\\Memcache\\Memcached","type":"->","args":["core-actions/delete.svg","/core/img/actions/delete.svg"]},{"file":"/var/www/dl.ifnor/lib/private/legacy/template/functions.php","line":237,"function":"imagePath","class":"OC\\URLGenerator","type":"->","args":["core","actions/delete.svg"]},{"file":"/var/www/dl.ifnor/lib/public/Template.php","line":48,"function":"image_path","args":["core","actions/delete.svg"]},{"file":"/var/www/dl.ifnor/apps/files/templates/simplelist.php","line":32,"function":"image_path","class":"OCP\\Template","type":"::","args":["core","actions/delete.svg"]},{"file":"/var/www/dl.ifnor/lib/private/Template/Base.php","line":179,"args":["/var/www/dl.ifnor/apps/files/templates/simplelist.php"],"function":"include"},{"file":"/var/www/dl.ifnor/lib/private/Template/Base.php","line":151,"function":"load","class":"OC\\Template\\Base","type":"->","args":["/var/www/dl.ifnor/apps/files/templates/simplelist.php",null]},{"file":"/var/www/dl.ifnor/lib/private/legacy/template.php","line":181,"function":"fetchPage","class":"OC\\Template\\Base","type":"->","args":[null]},{"file":"/var/www/dl.ifnor/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/dl.ifnor/apps/files/simplelist.php","line":37,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/dl.ifnor/apps/files/lib/Controller/ViewController.php","line":121,"args":["/var/www/dl.ifnor/apps/files/simplelist.php"],"function":"include"},{"file":"/var/www/dl.ifnor/apps/files/lib/Controller/ViewController.php","line":259,"function":"renderScript","class":"OCA\\Files\\Controller\\ViewController","type":"->","args":["files","simplelist.php"]},{"file":"/var/www/dl.ifnor/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->","args":["/","",null,false]},{"file":"/var/www/dl.ifnor/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\ViewController"},"index"]},{"file":"/var/www/dl.ifnor/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\ViewController"},"index"]},{"file":"/var/www/dl.ifnor/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files\\Controller\\ViewController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"files.view.index"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"files.view.index"}]},{"file":"/var/www/dl.ifnor/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"files.view.index"}]},{"file":"/var/www/dl.ifnor/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/files/"]},{"file":"/var/www/dl.ifnor/index.php","line":38,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/dl.ifnor/lib/private/Memcache/Memcached.php","Line":225,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15","version":"18.0.3.0"}
{"reqId":"BUFELR3RUub7wUwZsmte","level":3,"time":"2020-03-28T10:51:43+00:00","remoteAddr":"192.168.2.10","user":"admin","app":"core","method":"GET","url":"/index.php/apps/files/?dir=/","message":{"Exception":"Exception","Message":"Error 47 interacting with memcached : SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY","Code":0,"Trace":[{"file":"/var/www/dl.ifnor/lib/private/Memcache/Memcached.php","line":117,"function":"verifyReturnCode","class":"OC\\Memcache\\Memcached","type":"->","args":[]},{"file":"/var/www/dl.ifnor/lib/private/URLGenerator.php","line":230,"function":"set","class":"OC\\Memcache\\Memcached","type":"->","args":["core-actions/delete.svg","/core/img/actions/delete.svg"]},{"file":"/var/www/dl.ifnor/lib/private/legacy/template/functions.php","line":237,"function":"imagePath","class":"OC\\URLGenerator","type":"->","args":["core","actions/delete.svg"]},{"file":"/var/www/dl.ifnor/lib/public/Template.php","line":48,"function":"image_path","args":["core","actions/delete.svg"]},{"file":"/var/www/dl.ifnor/apps/files/templates/simplelist.php","line":32,"function":"image_path","class":"OCP\\Template","type":"::","args":["core","actions/delete.svg"]},{"file":"/var/www/dl.ifnor/lib/private/Template/Base.php","line":179,"args":["/var/www/dl.ifnor/apps/files/templates/simplelist.php"],"function":"include"},{"file":"/var/www/dl.ifnor/lib/private/Template/Base.php","line":151,"function":"load","class":"OC\\Template\\Base","type":"->","args":["/var/www/dl.ifnor/apps/files/templates/simplelist.php",null]},{"file":"/var/www/dl.ifnor/lib/private/legacy/template.php","line":181,"function":"fetchPage","class":"OC\\Template\\Base","type":"->","args":[null]},{"file":"/var/www/dl.ifnor/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/dl.ifnor/apps/files/simplelist.php","line":37,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/dl.ifnor/apps/files/lib/Controller/ViewController.php","line":121,"args":["/var/www/dl.ifnor/apps/files/simplelist.php"],"function":"include"},{"file":"/var/www/dl.ifnor/apps/files/lib/Controller/ViewController.php","line":259,"function":"renderScript","class":"OCA\\Files\\Controller\\ViewController","type":"->","args":["files","simplelist.php"]},{"file":"/var/www/dl.ifnor/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"index","class":"OCA\\Files\\Controller\\ViewController","type":"->","args":["/","",null,false]},{"file":"/var/www/dl.ifnor/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\ViewController"},"index"]},{"file":"/var/www/dl.ifnor/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\ViewController"},"index"]},{"file":"/var/www/dl.ifnor/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files\\Controller\\ViewController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"files.view.index"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"files.view.index"}]},{"file":"/var/www/dl.ifnor/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"files.view.index"}]},{"file":"/var/www/dl.ifnor/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/files/"]},{"file":"/var/www/dl.ifnor/index.php","line":38,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/dl.ifnor/lib/private/Memcache/Memcached.php","Line":225,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15","version":"18.0.3.0"}
{"reqId":"BUFELR3RUub7wUwZsmte","level":3,"time":"2020-03-28T10:51:43+00:00","remoteAddr":"192.168.2.10","user":"admin","app":"core","method":"GET","url":"/index.php/apps/files/?dir=/","message":{"Exception":"Exception","Message":"Error 47 interacting with memcached : SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY","Code":0,"Trace":[{"file":"/var/www/dl.ifnor/lib/private/Memcache/Memcached.php","line":117,"function":"verifyReturnCode","class":"OC\\Memcache\\Memcached","type":"->","args":[]},{"file":"/var/www/dl.ifnor/lib/private/Template/JSCombiner.php","line":199,"function":"set","class":"OC\\Memcache\\Memcached","type":"->","args":["core-merged-template-prepend.js.deps","{\"\\/var\\/www\\/dl.ifnor\\/core\\/js\\/merged-template-prepend.json\":1585392378,\"\\/var\\/www\\/dl.ifnor\\/core\\/js\\/mimetype.js\":1585392378,\"\\/var\\/www\\/dl.ifnor\\/core\\/js\\/mimetypelist.js\":1585392378,\"\\/var\\/www\\/dl.ifnor\\/core\\/js\\/select2-toggleselect.js\":1585392378}"]},{"file":"/var/www/dl.ifnor/lib/private/Template/JSCombiner.php","line":105,"function":"cache","class":"OC\\Template\\JSCombiner","type":"->","args":["/var/www/dl.ifnor/core/js","merged-template-prepend.js",{"__class__":"OC\\Files\\SimpleFS\\SimpleFolder"}]},{"file":"/var/www/dl.ifnor/lib/private/Template/JSResourceLocator.php","line":115,"function":"process","class":"OC\\Template\\JSCombiner","type":"->","args":["/var/www/dl.ifnor","core/js/merged-template-prepend.json","core"]},{"file":"/var/www/dl.ifnor/lib/private/Template/JSResourceLocator.php","line":71,"function":"cacheAndAppendCombineJsonIfExist","class":"OC\\Template\\JSResourceLocator","type":"->","args":["/var/www/dl.ifnor","core/js/merged-template-prepend.json"]},{"file":"/var/www/dl.ifnor/lib/private/Template/ResourceLocator.php","line":78,"function":"doFind","class":"OC\\Template\\JSResourceLocator","type":"->","args":["js/merged-template-prepend"]},{"file":"/var/www/dl.ifnor/lib/private/TemplateLayout.php","line":346,"function":"find","class":"OC\\Template\\ResourceLocator","type":"->","args":[["core/js/dist/main","js/merged-template-prepend","search/js/search","core/l10n/de","files_sharing/l10n/de","files_sharing/js/dist/main","notifications/l10n/de","notifications/js/notifications","search/l10n/de","search/js/searchprovider","js/files/fileinfo","js/files/client","files/l10n/de","files/js/merged-index"]]},{"file":"/var/www/dl.ifnor/lib/private/TemplateLayout.php","line":174,"function":"findJavascriptFiles","class":"OC\\TemplateLayout","type":"::","args":[["core/js/dist/main","js/merged-template-prepend","search/js/search","core/l10n/de","files_sharing/l10n/de","files_sharing/js/dist/main","notifications/l10n/de","notifications/js/notifications","search/l10n/de","search/js/searchprovider","js/files/fileinfo","js/files/client","files/l10n/de","files/js/merged-index"]]},{"file":"/var/www/dl.ifnor/lib/private/legacy/template.php","line":184,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["error",""]},{"file":"/var/www/dl.ifnor/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/dl.ifnor/lib/private/legacy/template.php","line":333,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/dl.ifnor/index.php","line":65,"function":"printExceptionErrorPage","class":"OC_Template","type":"::","args":[{"__class__":"Exception"},500]}],"File":"/var/www/dl.ifnor/lib/private/Memcache/Memcached.php","Line":225,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15","version":"18.0.3.0"}

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 :heart:

Nextcloud version (eg, 12.0.2): 18.0.3
Operating system and version (eg, Ubuntu 17.04): Debian GNU/Linux 10
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.38 (Debian)
PHP version (eg, 7.1): PHP 7.3.14-1~deb10u1

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. We have a Memcache-Server configured (old one)
  2. We have edited the IP in the config.php to the new Memcache-Server
  3. We got the error

The output of your Nextcloud log in Admin > Logging:

Can't do that...

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.

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'ocn7gvh5edc9',
  'passwordsalt' => '7iKXmqGbh3p1IRDjZ4s+4wTolJFU4W',
  'secret' => 'fQjLng99AOyuutwGnCeoZMtj3D4CbEnKWnITLRoU7mV3YmvP',
  'trusted_domains' => 
  array (
    0 => 'domain.com',
  ),
  'trusted_proxies' => 
  array (
    0 => '192.168.254.16',
    1 => '192.168.254.17',
  ),
  'datadirectory' => '/var/www/dl.ifnor/data',
  'dbtype' => 'mysql',
  'version' => '18.0.3.0',
  'overwrite.cli.url' => 'https://domain.com',
  'dbname' => 'ifnorre_ncdl',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ifncdl',
  'dbpassword' => 'CONFIDENTIAL',
  'installed' => true,
  'maintenance' => false,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'noreply',
  'mail_domain' => 'domain.com',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'plesk51.ifnormatik.com',
  'mail_smtpport' => '25',
  'mail_smtpname' => 'noreply@domain.com',
  'mail_smtppassword' => 'CONFIDENTIAL',
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Memcached',
  'memcached_servers' => 
  array (
    0 => 
    array (
      0 => '10.98.0.7',
      1 => 11211,
    ),
  ),
  'theme' => '',
  'loglevel' => 2,
  'updater.secret' => 'CONFIDENTIAL',
);

The output of your Apache/nginx/system log in /var/log/____:

There is nothing...