Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Nextcloud instance is not working: Internal Server Error: The server encountered an internal error and was unable to complete your request

 
applications extensionsbackupdatabasedockerextensions

Symptoms

  • Nextcloud instance stop working after migration.

  • The following error shows up in web browser:

    external 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 following error shows up in Plesk Panel when accessing Extensions > My Extensions > Nextcloud:

    An unhandled exception has been thrown: RedisException: Connection refused in /var/www/vhosts/example.com/lib/private/RedisFactory.php:137
    Stack trace:
    #0 /var/www/vhosts/example.com/lib/private/RedisFactory.php(137): Redis->pconnect()
    #1 /var/www/vhosts/example.com/lib/private/RedisFactory.php(178): OCRedisFactory->create()
    #2 /var/www/vhosts/example.com/lib/private/Memcache/Redis.php(66): OCRedisFactory->getInstance()
    #3 /var/www/vhosts/example.com/lib/private/Memcache/Redis.php(72): OCMemcacheRedis->getCache()
    #4 /var/www/vhosts/example.com/lib/private/App/InfoParser.php(58): OCMemcacheRedis->get()
    #5 /var/www/vhosts/example.com/lib/private/App/AppManager.php(732): OCAppInfoParser->parse()
    #6 /var/www/vhosts/example.com/lib/private/legacy/OC_App.php(434): OCAppAppManager->getAppInfo()
    #7 /var/www/vhosts/example.com/lib/private/AppFramework/App.php(71): OC_App::getAppInfo()
    #8 /var/www/vhosts/example.com/lib/private/legacy/OC_App.php(155): OCAppFrameworkApp::buildAppNamespace()
    #9 /var/www/vhosts/example.com/lib/private/AppFramework/Bootstrap/Coordinator.php(119): OC_App::registerAutoloading()
    #10 /var/www/vhosts/example.com/lib/private/AppFramework/Bootstrap/Coordinator.php(90): OCAppFrameworkBootstrapCoordinator->registerApps()

  • Redis database parameters are configured in /var/www/vhosts/example.com/nextcloud/config/config.php:

    'redis' =>
    array (
    'host' => 'localhost',
    'port' => 6379,
    ),

Cause

Nextcloud is trying to connect to redis database that does not exist or was not migrated.

Resolution

Use Docker native utilities such as docker export and docker import to migrate the container from one host to another or redeploy the redis container and manually move files from volume mapping.

Note: This is considered an administrative task that should be performed by the server administrator

Workaround - Comment out redis connection details from config.php

  1. Connect to the server via SSH.

  2. Backup current config.php configuration file:

    # cp /var/www/vhosts/example.com/nextcloud/config/config.php{,.backup}

    Note: The config.php file is located in the config folder within the installation directory of Nextcloud

  3. Use vi or nano and edit the config file:

    # vi /var/www/vhosts/example.com/nextcloud/config/config.php

  4. Comment out redis section with /* and */. Should stay like this:

    /*
    'redis' =>
    array (
    'host' => 'localhost',
    'port' => 6379,
    ),
    */

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

You Are Always Safe When You Have an Up-To-Date Plesk Backup

Read More »

Plesk with Centralized Database and Network File System

Read More »

The Plesk HoliDeals Calendar is here (Part 2)

Read More »
Knowledge Base

Unable to open the Plesk Extensions page: Unable to connect to the extensions catalog: Connection timed out

Read More »

Node.js menu on a migrated subscription in Plesk doesn’t work: Call to a member function getPath() on null

Read More »

Attempt to issue a Let’s Encrypt SSL certificate for a Plesk domain fails: Could not obtain directory: cURL error 77

Read More »

Plesk migration fails with the warning: Service plan on source server has PHP handler that is not installed on the target server

Read More »

Hosting Wiki

  • RESTful Web Service
  • Docker
  • Server Redundancy
  • Cloud Service Architecture
  • Virtualizor
  • On-Demand Services
  • AMP
  • Bare Metal Server
  • Backup
  • Denial of Service
  • PhpMyAdmin
  • phpPgAdmin
  • Red Hat Virtualization
  • Virtuozzo
  • Oracle VM Server
  • Citrix Hypervisor
  • Server Virtualization Software
  • Windows Server
  • Virtualization
  • PHP
  • Redis
  • VirtualMin
  • Plesk
  • SQL database
  • NoSQL Database
  • Web Server
  • DNS Server
  • SSH
  • Email Virus Protection
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family