No access to Nextcloud-website due to Internal Server Error

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

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, 20.0.5): 20.0.8.1
Operating system and version (eg, Ubuntu 20.04): Debian 9
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.25
PHP version (eg, 7.4): PHP 7.2.34-18+0~20210223.60+debian9~1.gbpb21322

The issue you are facing:
I am using NextcloudPi (v1.35.0) with autoupdates enabled
After almost 2 years of runnnig Nextcloud with NextcloudPi and never any issues i got this a couple of days ago:

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.

Probably this happend after an autoupdate…
And before that happend i never have touched the whole system. There was no need for it

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

The output of your Nextcloud log in Admin > Logging:

The log is 88Mbytes so i probably don´t post it here :) and to the more readable log on the website i have no access due to the error...

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

"system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "11": "2003:e2:573b:f800:76d4:35ff:fecc:8406",
            "1": "192.168.178.27",
            "5": "nextcloudpi.local",
            "7": "nextcloudpi",
            "8": "nextcloudpi.lan",
            "3": "******",
            "20": "*******",
            "21": "192.168.178.27",
            "22": "192.168.178.27",
            "4": "*******"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "20.0.8.1",
        "overwrite.cli.url": "https:\/\/*******\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "tempdirectory": "\/media\/*******\/ncdata\/tmp",
        "mail_smtpmode": "sendmail",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "jpeg_quality": "60",
        "overwriteprotocol": "https",
        "htaccess.RewriteBase": "\/",
        "loglevel": "2",
        "log_type": "file",
        "maintenance": false,
        "logfile": "\/media\/*******\/ncdata\/nextcloud.log",
        "mail_sendmailmode": "smtp"
    }

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

[Mon Mar 15 12:26:24.379278 2021] [authz_host:error] [pid 23022:tid 139872329848576] [client 192.168.178.203:61555] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Mar 15 12:26:24.544605 2021] [authz_host:error] [pid 23022:tid 139872346633984] [client 192.168.178.203:61555] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Mon Mar 15 12:26:33.721085 2021] [authz_host:error] [pid 23022:tid 139872329848576] [client 192.168.178.203:61555] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Mar 15 12:26:33.811023 2021] [authz_host:error] [pid 23022:tid 139872355026688] [client 192.168.178.203:61555] AH01753: access check of 'localhost' to /img/download.svg failed, reason: unable to get the remote host name
[Mon Mar 15 12:26:33.811023 2021] [authz_host:error] [pid 23022:tid 139872329848576] [client 192.168.178.203:61555] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Mon Mar 15 12:26:33.811253 2021] [authz_host:error] [pid 23022:tid 139872355026688] [client 192.168.178.203:61555] AH01753: access check of 'localhost' to /img/delete.svg failed, reason: unable to get the remote host name
[Mon Mar 15 12:26:33.811394 2021] [authz_host:error] [pid 23022:tid 139872355026688] [client 192.168.178.203:61555] AH01753: access check of 'localhost' to /img/defaults.svg failed, reason: unable to get the remote host name
[Mon Mar 15 12:34:15.898813 2021] [authz_host:error] [pid 23022:tid 139872346633984] [client 192.168.178.203:62124] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Mon Mar 15 12:41:29.661378 2021] [authz_host:error] [pid 23022:tid 139872346633984] [client 192.168.178.203:62511] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name

There is no need to post the whole log file, analyse its content on the console, extract the related error message and post it here. BTW, on the console commands like “tail”, “grep” etc. exist to reduce the number of log lines displayed :wink:

i know :flushed:… but anyway, i could´t find anything thats worth showing…

…yet

I should also note, that Nextcloud/NextcloudPi ist the only thing running on the server.
And the the ncp.log doesn´t show an error…
And here the ncp system info:

Unfortunately it most likely won’t be possible to narrow down the problem without more detailed information from your site. The app works fine on my server.

Thats good to hear. The app itself seems to still work fine too as you can see e.g. from the screenshot.
Since i don´t know what´s causing the issue i don´t know what to provide. :man_shrugging:
I would have guessed, that there probably is a problem related with apache because of the error log.

Good point. It seems that your server has a DNS name resolution problem.

Thats maybe the issue?:

/apache2/nc-error.log:

[Mon Mar 15 16:14:48.776310 2021] [proxy_fcgi:error] [pid 23021:tid 139871867868928] [client 158.181.77.76:65406] AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught OC\HintException: [0]: Memcache \OC\Memcache\Redis not available for local cache (Is the matching PHP module installed and enabled?)\n\n thrown in /var/www/nextcloud/lib/private/Memcache/Factory.php on line 98\n’

So whats the matching PHP module? Has 7.2 become too old since the last update?

/var/www/nextcloud/occ log:watch

in a terminal and call the cloud via web. Post the output.

If it’s a php-problem: I had it just on my NextcloudPi. Search for my username …

Spielmops

Error    remote             OC\HintException: Memcache          2021-03-15T16:05:49+00:00 
                              \OC\Memcache\Redis not available                              
                              for local cache at                                            
                              lib/private/Memcache/Factory.php                              
                              line 98                                                       
                                                                                            
                               0. .../Server.php line 677                                   
                                  OC\Memcache\Factory->__construct(                           
                                    "e9b54dc132235b239dff8 ... 2",                           
                                    ... {},                                                 
                                    "\\OC\\Memc ... s",                                     
                                    "\\OC\\Memc ... s",                                     
                                    "\\OC\\Memc ... s"                                      
                                  )                                                         
                               1. .../SimpleContainer.php line 155                           
                                  OC\Server->OC\{closure}(                                  
                                    "*** sensitive parameters replaced * ... *"                           
                                  )                                                         
                               2. .../Container.php line 118                                
                                  OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(                           
                                    ... *"                                                  
                                  )                                                         
                               3. .../SimpleContainer.php line 122                           
                                  Pimple\Container->offsetGet(                              
                                    "OC\\Memcache\\F ... y"                                 
                                  )                                                         
                               4. .../ServerContainer.php line 156                           
                                  OC\AppFramework\Utility\SimpleContainer->query(                           
                                    ... y",                                                 
                                    ... ue                                                  
                                  )                                                         
                               5. .../Server.php line 1677                                  
                                  OC\ServerContainer->query(                                
                                    "OC\\Memcache\\Fac ... y"                               
                                  )                                                         
                               6. .../Server.php line 1017                                  
                                  OC\Server->getMemCacheFactory(                            
                                                                                            
                                  )                                                         
                               7. .../SimpleContainer.php line 155                           
                                  OC\Server->OC\{closure}(                                  
                                    "*** sensitive parameters replaced * ... *"                           
                                  )                                                         
                               8. .../Container.php line 118                                
                                  OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(                           
                                    ... *"                                                  
                                  )                                                         
                               9. .../SimpleContainer.php line 122                           
                                  Pimple\Container->offsetGet(                              
                                    "OCP\\Lock\\ILockingPr ... r"                           
                                  )                                                         
                              10. .../ServerContainer.php line 156                           
                                  OC\AppFramework\Utility\SimpleContainer->query(                           
                                    "OC ... r",                                             
                                    ... ue                                                  
                                  )                                                         
                              11. .../Server.php line 1977                                  
                                  OC\ServerContainer->query(                                
                                    "OCP\\Lock\\ILockingProv ... r"                           
                                  )                                                         
                              12. .../View.php line 118                                     
                                  OC\Server->getLockingProvider(                            
                                                                                            
                                  )                                                         
                              13. .../Server.php line 395                                   
                                  OC\Files\View->__construct(                               
                                                                                            
                                  )                                                         
                              14. .../SimpleContainer.php line 155                           
                                  OC\Server->OC\{closure}(                                  
                                    "*** sensitive parameters replaced * ... *"                           
                                  )                                                         
                              15. .../Container.php line 118                                
                                  OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(                           
                                    ... *"                                                  
                                  )                                                         
                              16. .../SimpleContainer.php line 122                           
                                  Pimple\Container->offsetGet(                              
                                    "OC\\Files\\Node\\HookCon ... r"                           
                                  )                                                         
                              17. .../ServerContainer.php line 156                           
                                  OC\AppFramework\Utility\SimpleContainer->query(                           
                                    "OC\\F ... r",                                          
                                    ... ue                                                  
                                  )                                                         
                              18. .../Server.php line 1324                                  
                                  OC\ServerContainer->query(                                
                                    "OC\\Files\\Node\\HookConne ... r"                           
                                  )                                                         
                              19. .../base.php line 595                                     
                                  OC\Server->boot(                                          
                                                                                            
                                  )                                                         
                              20. .../base.php line 1091                                    
                                  OC::init(                                                 
                                                                                            
                                  )                                                         
                              21. status.php line 37                                        
                                  require_once("\/var\/ ... p")                             

  Error    remote             OC\HintException: Memcache          2021-03-15T16:05:49+00:00 
                              \OC\Memcache\Redis not available                              
                              for local cache at                                            
                              lib/private/Memcache/Factory.php                              
                              line 98                                                       
                                                                                            
                               0. .../Server.php line 677                                   
                                  OC\Memcache\Factory->__construct(                           
                                    "e9b54dc132235b239dff8 ... 2",                           
                                    ... {},                                                 
                                    "\\OC\\Memc ... s",                                     
                                    "\\OC\\Memc ... s",                                     
                                    "\\OC\\Memc ... s"                                      
                                  )                                                         
                               1. .../SimpleContainer.php line 155                           
                                  OC\Server->OC\{closure}(                                  
                                    "*** sensitive parameters replaced * ... *"                           
                                  )                                                         
                               2. .../Container.php line 118                                
                                  OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(                           
                                    ... *"                                                  
                                  )                                                         
                               3. .../SimpleContainer.php line 122                           
                                  Pimple\Container->offsetGet(                              
                                    "OC\\Memcache\\F ... y"                                 
                                  )                                                         
                               4. .../ServerContainer.php line 156                           
                                  OC\AppFramework\Utility\SimpleContainer->query(                           
                                    ... y",                                                 
                                    ... ue                                                  
                                  )                                                         
                               5. .../Server.php line 1677                                  
                                  OC\ServerContainer->query(                                
                                    "OC\\Memcache\\Fac ... y"                               
                                  )                                                         
                               6. .../Server.php line 1017                                  
                                  OC\Server->getMemCacheFactory(                            
                                                                                            
                                  )                                                         
                               7. .../SimpleContainer.php line 155                           
                                  OC\Server->OC\{closure}(                                  
                                    "*** sensitive parameters replaced * ... *"                           
                                  )                                                         
                               8. .../Container.php line 118                                
                                  OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(                           
                                    ... *"                                                  
                                  )                                                         
                               9. .../SimpleContainer.php line 122                           
                                  Pimple\Container->offsetGet(                              
                                    "OCP\\Lock\\ILockingPr ... r"                           
                                  )                                                         
                              10. .../ServerContainer.php line 156                           
                                  OC\AppFramework\Utility\SimpleContainer->query(                           
                                    "OC ... r",                                             
                                    ... ue                                                  
                                  )                                                         
                              11. .../Server.php line 1977                                  
                                  OC\ServerContainer->query(                                
                                    "OCP\\Lock\\ILockingProv ... r"                           
                                  )                                                         
                              12. .../View.php line 118                                     
                                  OC\Server->getLockingProvider(                            
                                                                                            
                                  )                                                         
                              13. .../Server.php line 395                                   
                                  OC\Files\View->__construct(                               
                                                                                            
                                  )                                                         
                              14. .../SimpleContainer.php line 155                           
                                  OC\Server->OC\{closure}(                                  
                                    "*** sensitive parameters replaced * ... *"                           
                                  )                                                         
                              15. .../Container.php line 118                                
                                  OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}(                           
                                    ... *"                                                  
                                  )                                                         
                              16. .../SimpleContainer.php line 122                           
                                  Pimple\Container->offsetGet(                              
                                    "OC\\Files\\Node\\HookCon ... r"                           
                                  )                                                         
                              17. .../ServerContainer.php line 156                           
                                  OC\AppFramework\Utility\SimpleContainer->query(                           
                                    "OC\\F ... r",                                          
                                    ... ue                                                  
                                  )                                                         
                              18. .../Server.php line 1324                                  
                                  OC\ServerContainer->query(                                
                                    "OC\\Files\\Node\\HookConne ... r"                           
                                  )                                                         
                              19. .../base.php line 595                                     
                                  OC\Server->boot(                                          
                                                                                            
                                  )                                                         
                              20. .../base.php line 1091                                    
                                  OC::init(                                                 
                                                                                            
                                  )                                                         
                              21. status.php line 37                                        
                                  require_once("\/var\/ ... p")

That was my error-output too.

1 Like

What about “php-redis” ?

1 Like

Probably php8.0-redis …

Spielmops

Puhhhh, that was fortunately not so hard…
I installed php7.2-redis since it was not installed.

To find out about all the php packages i used this:
dpkg --get-selections | grep -i php

everything is running again!! thank you very much for your time and help

1 Like

Maybe i am not quite finished.
Today the server was not responding anymore (even local via ssh) so i had to restart it physically.
I found some errors in the nextcloud log and wanted to ask how and if i have to fix it.
Here the log since i installed the php redis module:

[PHP] Error: RedisException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error. at /var/www/nextcloud/lib/private/Memcache/Redis.php#65

at 2021-03-16T23:20:43+00:00


[PHP] Error: include(): Failed opening '/var/www/nextcloud/lib/composer/composer/../../../lib/private/Log/ExceptionSerializer.php' for inclusion (include_path='/var/www/nextcloud/apps/news/vendor/pear/net_url2:/var/www/nextcloud/3rdparty/pear/archive_tar:/var/www/nextcloud/3rdparty/pear/console_getopt:/var/www/nextcloud/3rdparty/pear/pear-core-minimal/src:/var/www/nextcloud/3rdparty/pear/pear_exception:/var/www/nextcloud/apps') at /var/www/nextcloud/lib/composer/composer/ClassLoader.php#444

at 2021-03-16T23:20:44+00:00


[no app in context] Fatal: RedisException: read error on connection to /var/run/redis/redis.sock:0 at <<closure>>

 0. /var/www/nextcloud/lib/private/Memcache/Redis.php line 65
    Redis->setex("f84123fa217b6f9 ... 0", 3600, "\"\\/index.php\ ... "")
 1. /var/www/nextcloud/lib/private/Route/CachingRouter.php line 62
    OC\Memcache\Redis->set("localhost#/inde ... 0", "/index.php/apps ... 7", 3600)
 2. /var/www/nextcloud/lib/private/URLGenerator.php line 83
    OC\Route\CachingRouter->generate("accessibility.accessibility.getCss", {md5: "a82fd95db10ff25dfad39f07372ebe37"})
 3. /var/www/nextcloud/apps/accessibility/lib/AppInfo/Application.php line 83
    OC\URLGenerator->linkToRoute("accessibility.accessibility.getCss", {md5: "a82fd95db10ff25dfad39f07372ebe37"})
 4. /var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php line 68
    OCA\Accessibility\AppInfo\Application->injectCss(OC\User\Session {}, OC\AllConfig {}, OC\URLGenerator {})
 5. /var/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php line 52
    OC\AppFramework\Bootstrap\FunctionInjector->injectFn([OCA\Accessibili ... "])
 6. /var/www/nextcloud/apps/accessibility/lib/AppInfo/Application.php line 61
    OC\AppFramework\Bootstrap\BootContext->injectFn([OCA\Accessibili ... "])
 7. /var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php line 168
    OCA\Accessibility\AppInfo\Application->boot(OC\AppFramework\Bootstrap\BootContext {})
 8. /var/www/nextcloud/lib/private/legacy/OC_App.php line 191
    OC\AppFramework\Bootstrap\Coordinator->bootApp("accessibility")
 9. /var/www/nextcloud/lib/private/legacy/OC_App.php line 131
    OC_App::loadApp("accessibility")
10. /var/www/nextcloud/lib/private/Console/Application.php line 127
    OC_App::loadApps()
11. /var/www/nextcloud/console.php line 99
    OC\Console\Application->loadCommands(Symfony\Componen ... {}, Symfony\Componen ... {})
12. /var/www/nextcloud/occ line 11
    require_once("/var/www/nextcloud/console.php")

at 2021-03-17T11:25:20+00:00

Nextcloud seems to run fine but i have the feeling that it will only be short-lived…