Unknown Internal Server Error

From today I can’t access to my cloud I have an internal server exception but I don’t have tutch to my server so I don’t realy know whats apend now. I hop you can help me to understand that.

So this is my report :

Nextcloud version : 16.0.7
Operating system and version : Ubuntu 18.04.3 LTS
Apache or nginx version : Apache 2.4.29
PHP version : 7.4

My Network :

The issue you are facing:

Is this the first time you’ve seen this error? : YES

Steps to replicate it: No Ideas

The output of your Nextcloud log in Admin > Logging:

{ 
   "reqId":"0pgrYbJQdRN09Ypp7HCf",
   "level":3,
   "time":"2020-01-21T17:25:34+00:00",
   "remoteAddr":"192.168.1.59",
   "user":"Parrot",
   "app":"PHP",
   "method":"GET",
   "url":"\/index.php\/apps\/files\/",
   "message":"Undefined variable: server at \/var\/www\/html\/nextcloud\/apps\/metadata\/lib\/AppInfo\/Application.php#31",
   "userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/79.0.3945.130 Safari\/537.36",
   "version":"16.0.7.1"
}{ 
   "reqId":"0pgrYbJQdRN09Ypp7HCf",
   "level":3,
   "time":"2020-01-21T17:25:34+00:00",
   "remoteAddr":"192.168.1.59",
   "user":"Parrot",
   "app":"index",
   "method":"GET",
   "url":"\/index.php\/apps\/files\/",
   "message":{ 
      "Exception":"Error",
      "Message":"Call to a member function getContentSecurityPolicyManager() on null",
      "Code":0,
      "Trace":[ 
         { 
            "file":"\/var\/www\/html\/nextcloud\/3rdparty\/symfony\/event-dispatcher\/EventDispatcher.php",
            "line":212,
            "function":"OCA\\Metadata\\AppInfo\\{closure}",
            "class":"OCA\\Metadata\\AppInfo\\Application",
            "type":"->",
            "args":[ 
               "*** sensitive parameters replaced ***"
            ]
         },
         { 
            "file":"\/var\/www\/html\/nextcloud\/3rdparty\/symfony\/event-dispatcher\/EventDispatcher.php",
            "line":44,
            "function":"doDispatch",
            "class":"Symfony\\Component\\EventDispatcher\\EventDispatcher",
            "type":"->",
            "args":[ 
               [ 
                  [ 
                     "OCA\\Activity\\Hooks",
                     "onLoadFilesAppScripts"
                  ],
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  [ 
                     "OCA\\Files_Versions\\Hooks",
                     "onLoadFilesAppScripts"
                  ],
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  },
                  { 
                     "__class__":"Closure"
                  }
               ],
               "*** sensitive parameter replaced ***",
               "*** sensitive parameter replaced ***"
            ]
         },
         { 
            "file":"\/var\/www\/html\/nextcloud\/apps\/files\/lib\/Controller\/ViewController.php",
            "line":268,
            "function":"dispatch",
            "class":"Symfony\\Component\\EventDispatcher\\EventDispatcher",
            "type":"->",
            "args":[ 
               "*** sensitive parameter replaced ***",
               "*** sensitive parameter replaced ***"
            ]
         },
         { 
            "file":"\/var\/www\/html\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php",
            "line":166,
            "function":"index",
            "class":"OCA\\Files\\Controller\\ViewController",
            "type":"->",
            "args":[ 
               "\/PPE",
               "",
               null,
               false
            ]
         },
         { 
            "file":"\/var\/www\/html\/nextcloud\/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\/html\/nextcloud\/lib\/private\/AppFramework\/App.php",
            "line":126,
            "function":"dispatch",
            "class":"OC\\AppFramework\\Http\\Dispatcher",
            "type":"->",
            "args":[ 
               { 
                  "__class__":"OCA\\Files\\Controller\\ViewController"
               },
               "index"
            ]
         },
         { 
            "file":"\/var\/www\/html\/nextcloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php",
            "line":47,
            "function":"main",
            "class":"OC\\AppFramework\\App",
            "type":"::",
            "args":[ 
               "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\/html\/nextcloud\/lib\/private\/Route\/Router.php",
            "line":297,
            "function":"call_user_func",
            "args":[ 
               { 
                  "__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"
               },
               { 
                  "_route":"files.view.index"
               }
            ]
         },
         { 
            "file":"\/var\/www\/html\/nextcloud\/lib\/base.php",
            "line":972,
            "function":"match",
            "class":"OC\\Route\\Router",
            "type":"->",
            "args":[ 
               "\/apps\/files\/"
            ]
         },
         { 
            "file":"\/var\/www\/html\/nextcloud\/index.php",
            "line":42,
            "function":"handleRequest",
            "class":"OC",
            "type":"::",
            "args":[ 

            ]
         }
      ],
      "File":"\/var\/www\/html\/nextcloud\/apps\/metadata\/lib\/AppInfo\/Application.php",
      "Line":31,
      "CustomMessage":"--"
   },
   "userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/79.0.3945.130 Safari\/537.36",
   "version":"16.0.7.1"
}

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

<?php
$CONFIG = array (
  'instanceid' => 'oc9gsj5f75e1',
  'passwordsalt' => 'fo0MwFKigIkFhKvyr/Q64GhMgl0oZd',
  'secret' => 'VeXvOWcB9uWPDY/HNpC1MARZyhhEvtaK0UJt5kc7TTSD0m3f',
  'trusted_domains' => 
  array (
    0 => '192.168.1.64', //Local Adresse of Server
    1 => 'proxi*******.net', //my domaine
  ),
  'datadirectory' => '/mnt/Datastore/nextcloud',
  'dbtype' => 'mysql',
  'version' => '16.0.7.1',
  'overwrite.cli.url' => 'http://192.168.1.62',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'Confidential',
  'dbpassword' => 'Confidential',
  'installed' => true,
  'maintenance' => false,
  'mysql.utf8mb4' => true,
  'updater.release.channel' => 'production',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'Confidential',
  'mail_domain' => 'gmail.com',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'Confidential',
  'mail_smtppassword' => 'Confidential',
  'overwriteprotocol' => 'https',
  'version_retention_obligation' => 'auto',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'simpleSignUpLink.shown' => false,
  'theme' => '',
  'loglevel' => 2,
);

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

Everything looks normal here

If you would have used the search function of this forum, you had seen that a problem has been reported with the metadata v0.11.0 app. This problem has been fixed in v0.11.1. So disable the app, make sure your server is back online again, update the app and re-enable it afterwards.

1 Like

Yes it work ! Sorry for this usless topic and thanks for your help @j-ed