Internal server Error after Update to 17.0.2

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:

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

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

The issue you are facing:
I got a internal Server Error after upgrading Nextcloud to 17.0.2.

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

Steps to replicate it:

  1. Upgrade from 17.0.1 to 17.0.2

The output of your Nextcloud log in Admin > Logging:
I can’t because I can’t login.
Internal Server Error

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

<?php $CONFIG = array ( 'instanceid' => 'ocn7gvh5edc9', 'passwordsalt' => '****', 'secret' => '****', 'trusted_domains' => array ( 0 => 'dl.ifnormatik.com', ), 'datadirectory' => '/var/www/dl.ifnor/data', 'dbtype' => 'mysql', 'version' => '17.0.2.1', 'overwrite.cli.url' => 'https://dl.ifnormatik.com', 'dbname' => 'ifnorre_ncdl', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'ifncdl', 'dbpassword' => '*****', 'installed' => true, 'maintenance' => false, 'mail_smtpmode' => 'smtp', 'mail_smtpsecure' => 'tls', 'mail_sendmailmode' => 'smtp', 'mail_from_address' => '*****', 'mail_domain' => '*****', 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpauth' => 1, 'mail_smtphost' => '********', 'mail_smtpport' => '25', 'mail_smtpname' => 'noreply@ifnormatik.com', 'mail_smtppassword' => '******', 'ldapIgnoreNamingRules' => false, 'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory', 'memcache.local' => '\\OC\\Memcache\\APCu', 'memcache.distributed' => '\\OC\\Memcache\\Memcached', 'memcached_servers' => array ( 0 => array ( 0 => '192.168.254.6', 1 => 11211, ), ), 'updater.secret' => '****', 'theme' => '', 'loglevel' => 2, ); Error-Log from Nextcloud-Log: {"reqId":"ywpENYnbS05raDm89mOT","level":3,"time":"2020-01-21T09:24:21+00:00","remoteAddr":"178.197.225.186","user":"admin","app":"PHP","method":"GET","url":"\/index.php\/apps\/files\/","message":"Undefined variable: server at \/var\/www\/dl.ifnor\/apps\/metadata\/lib\/AppInfo\/Application.php#31","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.4 Safari\/605.1.15","version":"17.0.2.1"} {"reqId":"ywpENYnbS05raDm89mOT","level":3,"time":"2020-01-21T09:24:21+00:00","remoteAddr":"178.197.225.186","user":"admin","app":"index","method":"GET","url":"\/index.php\/apps\/files\/","message":{"Exception":"Exception","Message":"Call to a member function getContentSecurityPolicyManager() on null","Code":0,"Trace":[{"file":"\/var\/www\/dl.ifnor\/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\/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":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"files.view.index"}]},{"file":"\/var\/www\/dl.ifnor\/lib\/base.php","line":997,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/apps\/files\/"]},{"file":"\/var\/www\/dl.ifnor\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/www\/dl.ifnor\/lib\/private\/AppFramework\/Http\/Dispatcher.php","Line":109,"Previous":{"Exception":"Error","Message":"Call to a member function getContentSecurityPolicyManager() on null","Code":0,"Trace":[{"file":"\/var\/www\/dl.ifnor\/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\/dl.ifnor\/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"},{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"},{"__class__":"Closure"}],"*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"\/var\/www\/dl.ifnor\/lib\/private\/EventDispatcher\/SymfonyAdapter.php","line":59,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"file":"\/var\/www\/dl.ifnor\/apps\/files\/lib\/Controller\/ViewController.php","line":271,"function":"dispatch","class":"OC\\EventDispatcher\\SymfonyAdapter","type":"->","args":["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]},{"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":126,"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":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"files.view.index"}]},{"file":"\/var\/www\/dl.ifnor\/lib\/base.php","line":997,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/apps\/files\/"]},{"file":"\/var\/www\/dl.ifnor\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/www\/dl.ifnor\/apps\/metadata\/lib\/AppInfo\/Application.php","Line":31},"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/13.0.4 Safari\/605.1.15","version":"17.0.2.1"}

---------------8< ----------------
“Undefined variable: server at /var/www/dl.ifnor/apps/metadata/lib/AppInfo/Application.php#31”
--------------->8-----------------

Look here: Metadata v 0.11.0 broke my system
and
here: Internal error after app update

2 Likes