Webinterface not working after upgrade

Support intro

Sorry to hear you’re facing problems :slight_frown:

If you’re urgently looking for support to keep your business running, consider checking out our paid support options.

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

Remember, the below information may be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Please delete everything above when creating your topic, just provide the following:

Nextcloud version (eg, 12.0.2): 12.0.4
Operating system and version (eg, Ubuntu 17.04): Ubuntu 16.04
Apache or nginx version (eg, Apache 2.4.25): nginx
PHP version (eg, 7.1): 7.0

The issue you are facing:
When accessing the web-interface the browser shows “Internal Server Error”. WebDAV/NC-Clients seems to be working.

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

Steps to replicate it:

After my first attempt to migrate to a new server and upgrade from NC11 to NC12 the login-button of web-interface were not working. Since I was not able to find a solution I started from beginnen (my working NC11 Setup on the other machine), did the migration and upgrade as instructed in the manual.

The output of your Nextcloud log in Admin > Logging:

{"reqId":"GOhG6TLzQTP0wjcv64ek","level":3,"time":"2018-01-07T08:40:28+00:00","remoteAddr":"84.161.146.153","user":"admin","app":"core","method":"GET","url":"\/apps\/files\/","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\NotFoundException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php(217): OC\\\\Files\\\\Node\\\\Node->getFileInfo()\\n#1 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php(117): OC\\\\Files\\\\Node\\\\Node->getPermissions()\\n#2 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/File.php(62): OC\\\\Files\\\\Node\\\\Node->checkPermissions(2)\\n#3 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/SimpleFS\\\/SimpleFile.php(95): OC\\\\Files\\\\Node\\\\File->putContent('html,body,div,s...')\\n#4 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/SCSSCacher.php(230): OC\\\\Files\\\\SimpleFS\\\\SimpleFile->putContent('html,body,div,s...')\\n#5 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/SCSSCacher.php(112): OC\\\\Template\\\\SCSSCacher->cache('\\\/var\\\/www\\\/nextcl...', '03b4383e0499f9d...', 'server.scss', Object(OC\\\\Files\\\\SimpleFS\\\\SimpleFolder), 'core\\\/css')\\n#6 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/CSSResourceLocator.php(105): OC\\\\Template\\\\SCSSCacher->process('\\\/var\\\/www\\\/nextcl...', 'core\\\/css\\\/server...', 'core')\\n#7 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/CSSResourceLocator.php(57): OC\\\\Template\\\\CSSResourceLocator->cacheAndAppendScssIfExist('\\\/var\\\/www\\\/nextcl...', 'core\\\/css\\\/server...')\\n#8 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/ResourceLocator.php(76): OC\\\\Template\\\\CSSResourceLocator->doFind('css\\\/server')\\n#9 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/TemplateLayout.php(225): OC\\\\Template\\\\ResourceLocator->find(Array)\\n#10 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/TemplateLayout.php(170): OC\\\\TemplateLayout::findStylesheetFiles(Array)\\n#11 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/template.php(205): OC\\\\TemplateLayout->__construct('error', '')\\n#12 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Template\\\/Base.php(132): OC_Template->fetchPage()\\n#13 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/template.php(342): OC\\\\Template\\\\Base->printPage()\\n#14 \\\/var\\\/www\\\/nextcloud\\\/index.php(67): OC_Template::printExceptionErrorPage(Object(OCP\\\\Files\\\\NotFoundException))\\n#15 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Node.php\",\"Line\":97}","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit\/604.4.7 (KHTML, like Gecko) Version\/11.0.2 Safari\/604.4.7","version":"12.0.4.3"}

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

<?php
$CONFIG = array (
  'instanceid' => 'occ65uljh4d0',
  'passwordsalt' => 'OBMjcmeiWylxkinif6YCswLlElBnuj',
  'secret' => 'VkXZ1yq5v6OICK7sCmBF0Nhu8XX3ST6gJTPRw8JuB6Y+LErd',
  'trusted_domains' => 
  array (
    0 => 'serverhostname',
    1 => 'mydomain.de',
    2 => 'dyndns.myfritz.net',
    3 => '127.0.0.1',
    4 => '192.168.1.120',
    5 => 'www.mydomain.de',
  ),
  'datadirectory' => '/srv/md0/nextcloud/data',
  'overwrite.cli.url' => 'https://mydomain.de',
  'overwriteprotocol' => 'https',
  'dbtype' => 'mysql',
  'version' => '12.0.4.3',
  'dbname' => 'nextcloudDB',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'DBUser',
  'dbpassword' => 'DBPassword',
  'logtimezone' => 'UTC',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'auth.bruteforce.protection.enabled' => false,
  'data-fingerprint' => 'a368d5b8d20171a463beaaff88046104',
);

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

PHP message: {"reqId":"2tn7DVLdRhptu7FvZvHz","level":3,"time":"2018-01-07T07:53:29+00:00","remoteAddr":"84.161.146.153","user":"--","app":"PHP","method":"GET","url":"\/status.php","message":"chmod(): Permission denied at \/var\/www\/nextcloud\/lib\/private\/Log\/File.php#134","userAgent":"Mozilla\/5.0 (Windows) mirall\/2.4.0 (build 8894)","version":"12.0.4.3"}" while reading upstream, client: 127.0.0.1, server: 127.0.0.1, request: "GET /status.php HTTP/1.0", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "mydomain.de"

I verified the file from the nginx-log is owned by www-data and has read/write rights.

No hints/ideas?

meanwhile I was able to verify that access thru Mobile/Desktop apps works without any issues. It’s just the webinterface running into that error.

What else can I do to troubleshoot this except checking for permissions on all folders/files?

It seems that the data dir and in this case the log file can not be written to by the web server user (should be www-data in your case). Could you check that?

I verified that. The data-directory and it’s above directory is owned by www-data and has 640 permissions.

How can the access thru Clients work if any permission to those directories would not allow that? and how can NC write it’s errors to that file if it would have no access?