Nextcloud web UI broken after upgrade from 16.0.4 to 16.0.6.1

Hi,
my nextcloud web ui is broken after the upgrade to 16.0.6. CSS seems to be the problem.

How can I fix this?

Thanks in advance!

ncp-report
<–! Paste this in GitHub report -->

NextCloudPi diagnostics

Cannot load Zend OPcache - it was already loaded
NextCloudPi version  v1.20.0
NextCloudPi image    NextCloudPi_10-23-18
distribution         Raspbian GNU/Linux 9 \n \l
automount            no
USB devices          sda sdb
datadir              /media/USBdrive/ncdata
data in SD           no
data filesystem      ext2/ext3
data disk usage      30G/288G
rootfs usage         1.9G/29G
swapfile             /dev/zram3
dbdir                /media/USBdrive/ncdatabase
Nextcloud check      ok
Nextcloud version    16.0.6.1
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
Postfix service      up
internet check       ok
port check 80        closed
port check 443       closed
IP                   ***REMOVED SENSITIVE VALUE***
gateway              ***REMOVED SENSITIVE VALUE***
interface            eth0
certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
uptime               16min

Nextcloud configuration

Cannot load Zend OPcache - it was already loaded
{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "1": "xxx",
            "2": "xxx",
            "7": "xxx",
            "8": "xxx",
            "11": "xxx"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "16.0.6.1",
        "overwrite.cli.url": "http:\/\/localhost\/",
        "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***"
        },
        "mail_smtpmode": "smtp",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "overwriteprotocol": "https",
        "maintenance": false,
        "loglevel": "2",
        "logfile": "\/media\/USBdrive\/ncdata\/nextcloud.log",
        "log_type": "file",
        "jpeg_quality": "60",
        "updater.release.channel": "production",
        "mail_sendmailmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "updater.secret": "***REMOVED SENSITIVE VALUE***"
    }
}

HTTPd logs

[Mon Dec 09 13:27:22.257589 2019] [core:error] [pid 1021:tid 1995555200] AH00046: child process 12750 still did not exit, sending a SIGKILL
[Mon Dec 09 13:27:23.259320 2019] [mpm_event:notice] [pid 1021:tid 1995555200] AH00491: caught SIGTERM, shutting down
[Mon Dec 09 13:27:41.220758 2019] [ssl:warn] [pid 718:tid 1996050816] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Dec 09 13:27:42.059810 2019] [ssl:warn] [pid 1036:tid 1996050816] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Dec 09 13:27:43.006430 2019] [mpm_event:notice] [pid 1036:tid 1996050816] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2s configured -- resuming normal operations
[Mon Dec 09 13:27:43.006657 2019] [core:notice] [pid 1036:tid 1996050816] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 09 13:32:38.881373 2019] [proxy_fcgi:error] [pid 1096:tid 1682662432] [client 192.168.178.9:56097] AH01071: Got error 'PHP message: PHP Notice:  Undefined index: app in /var/www/ncp-web/index.php on line 238\nPHP message: PHP Notice:  Undefined index: app in /var/www/ncp-web/index.php on line 244\n'
[Mon Dec 09 13:33:02.992258 2019] [proxy_fcgi:error] [pid 1096:tid 1699464224] [client 192.168.178.9:56165] AH01071: Got error 'PHP message: PHP Notice:  Undefined index: app in /var/www/ncp-web/index.php on line 238\nPHP message: PHP Notice:  Undefined index: app in /var/www/ncp-web/index.php on line 244\n'
[Mon Dec 09 13:46:55.979322 2019] [proxy_fcgi:error] [pid 1096:tid 1682662432] [client 192.168.178.9:56097] AH01067: Failed to read FastCGI header
[Mon Dec 09 13:46:55.979405 2019] [proxy_fcgi:error] [pid 1096:tid 1682662432] (104)Connection reset by peer: [client 192.168.178.9:56097] AH01075: Error dispatching request to :4443:
[Mon Dec 09 13:47:48.447682 2019] [proxy_fcgi:error] [pid 1095:tid 1749869600] [client 192.168.178.9:56416] AH01071: Got error 'PHP message: PHP Notice:  Undefined index: app in /var/www/ncp-web/index.php on line 238\nPHP message: PHP Notice:  Undefined index: app in /var/www/ncp-web/index.php on line 244\n'
[Mon Dec 09 13:47:57.076678 2019] [proxy_fcgi:error] [pid 1095:tid 1707865120] [client 192.168.178.9:56421] AH01071: Got error 'PHP message: PHP Notice:  Undefined index: app in /var/www/ncp-web/index.php on line 238\nPHP message: PHP Notice:  Undefined index: app in /var/www/ncp-web/index.php on line 244\n'
[Mon Dec 09 13:49:39.716721 2019] [proxy_fcgi:error] [pid 1095:tid 1691063328] [client 192.168.178.9:56421] AH01067: Failed to read FastCGI header
[Mon Dec 09 13:49:39.716818 2019] [proxy_fcgi:error] [pid 1095:tid 1691063328] (104)Connection reset by peer: [client 192.168.178.9:56421] AH01075: Error dispatching request to :4443:
[Mon Dec 09 13:49:39.973121 2019] [mpm_event:notice] [pid 1036:tid 1996050816] AH00491: caught SIGTERM, shutting down
[Mon Dec 09 13:50:04.670829 2019] [ssl:warn] [pid 705:tid 1995645312] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Dec 09 13:50:05.060671 2019] [ssl:warn] [pid 1007:tid 1995645312] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Mon Dec 09 13:50:06.003187 2019] [mpm_event:notice] [pid 1007:tid 1995645312] AH00489: Apache/2.4.25 (Raspbian) OpenSSL/1.0.2s configured -- resuming normal operations
[Mon Dec 09 13:50:06.003311 2019] [core:notice] [pid 1007:tid 1995645312] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 09 13:52:20.014148 2019] [proxy_fcgi:error] [pid 1083:tid 1682256928] [client 192.168.178.9:56524] AH01071: Got error 'PHP message: PHP Notice:  Undefined index: app in /var/www/ncp-web/index.php on line 238\nPHP message: PHP Notice:  Undefined index: app in /var/www/ncp-web/index.php on line 244\n'

Database logs

2019-12-09 13:49:42 1969472304 [Note] /usr/sbin/mysqld: Shutdown complete

2019-12-09 13:50:38 1988411408 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2019-12-09 13:50:38 1988411408 [Note] InnoDB: The InnoDB memory heap is disabled
2019-12-09 13:50:38 1988411408 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2019-12-09 13:50:38 1988411408 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2019-12-09 13:50:38 1988411408 [Note] InnoDB: Compressed tables use zlib 1.2.11
2019-12-09 13:50:38 1988411408 [Note] InnoDB: Using Linux native AIO
2019-12-09 13:50:38 1988411408 [Note] InnoDB: Using generic crc32 instructions
2019-12-09 13:50:38 1988411408 [Note] InnoDB: Initializing buffer pool, size = 370.0M
2019-12-09 13:50:38 1988411408 [Note] InnoDB: Completed initialization of buffer pool
2019-12-09 13:50:38 1988411408 [Note] InnoDB: Highest supported file format is Barracuda.
2019-12-09 13:50:39 1988411408 [Note] InnoDB: 128 rollback segment(s) are active.
2019-12-09 13:50:39 1988411408 [Note] InnoDB: Waiting for purge to start
2019-12-09 13:50:39 1988411408 [Note] InnoDB:  Percona XtraDB (http://www.percona.com) 5.6.39-83.1 started; log sequence number 4579982687
2019-12-09 13:50:39 1111487280 [Note] InnoDB: Dumping buffer pool(s) not yet started
2019-12-09 13:50:39 1988411408 [Note] Plugin 'FEEDBACK' is disabled.
2019-12-09 13:50:39 1988411408 [Note] Server socket created on IP: '127.0.0.1'.
2019-12-09 13:50:39 1988411408 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.1.35-MariaDB-1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  Raspbian testing-staging

Nextcloud logs

{"reqId":"Xe5CiH8AAQEAAARIyhkAAFQA","level":2,"time":"2019-12-09T12:48:54+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"core","method":"GET","url":"\/index.php\/apps\/calendar","message":"Failed to compile and\/or save \/var\/www\/nextcloud\/core\/css\/server.scss","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5CiH8AAQEAAARIyhkAAFQA","level":3,"time":"2019-12-09T12:48:55+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"cssresourceloader","method":"GET","url":"\/index.php\/apps\/calendar","message":"Could not find resource css\/server.css to load","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5DVn8AAQEAAAQ659UAAAAA","level":2,"time":"2019-12-09T12:52:23+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"core","method":"GET","url":"\/index.php\/apps\/files\/","message":"Failed to compile and\/or save \/var\/www\/nextcloud\/core\/css\/server.scss","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5DVn8AAQEAAAQ659UAAAAA","level":3,"time":"2019-12-09T12:52:23+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"cssresourceloader","method":"GET","url":"\/index.php\/apps\/files\/","message":"Could not find resource css\/server.css to load","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5Dmn8AAQEAAAQ65@AAAAIG","level":3,"time":"2019-12-09T12:52:43+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"PHP","method":"GET","url":"\/index.php\/core\/preview?fileId=7&x=32&y=32","message":"fopen(\/media\/USBdrive\/ncdata\/own_adm\/files\/music\/projekteva-letitrain.mp3): failed to open stream: No such file or directory at \/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#301","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5Dmn8AAQEAAAQ65@AAAAIG","level":3,"time":"2019-12-09T12:52:43+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"PHP","method":"GET","url":"\/index.php\/core\/preview?fileId=7&x=32&y=32","message":"unlink(): No such file or directory at \/var\/www\/nextcloud\/lib\/private\/Preview\/MP3.php#47","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5EFX8AAQEAAAQ65@YAAAkG","level":2,"time":"2019-12-09T12:55:31+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"core","method":"GET","url":"\/index.php\/apps\/files\/","message":"Failed to compile and\/or save \/var\/www\/nextcloud\/core\/css\/server.scss","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5EFX8AAQEAAAQ65@YAAAkG","level":3,"time":"2019-12-09T12:55:31+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"cssresourceloader","method":"GET","url":"\/index.php\/apps\/files\/","message":"Could not find resource css\/server.css to load","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5ESH8AAQEAAAQ66D8AAAoL","level":3,"time":"2019-12-09T12:55:36+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"PHP","method":"GET","url":"\/index.php\/core\/preview?fileId=7&x=32&y=32","message":"fopen(\/media\/USBdrive\/ncdata\/own_adm\/files\/music\/projekteva-letitrain.mp3): failed to open stream: No such file or directory at \/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#301","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5ESH8AAQEAAAQ66D8AAAoL","level":3,"time":"2019-12-09T12:55:36+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"PHP","method":"GET","url":"\/index.php\/core\/preview?fileId=7&x=32&y=32","message":"unlink(): No such file or directory at \/var\/www\/nextcloud\/lib\/private\/Preview\/MP3.php#47","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5EZ38AAQEAAAQ66EQAAAwf","level":2,"time":"2019-12-09T12:56:54+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"core","method":"GET","url":"\/index.php\/apps\/calendar","message":"Failed to compile and\/or save \/var\/www\/nextcloud\/core\/css\/server.scss","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5EZ38AAQEAAAQ66EQAAAwf","level":3,"time":"2019-12-09T12:56:54+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"cssresourceloader","method":"GET","url":"\/index.php\/apps\/calendar","message":"Could not find resource css\/server.css to load","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5EyH8AAQEAAAQ7UaoAAEYC","level":2,"time":"2019-12-09T12:58:35+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"core","method":"GET","url":"\/index.php\/apps\/files\/","message":"Failed to compile and\/or save \/var\/www\/nextcloud\/core\/css\/server.scss","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5EyH8AAQEAAAQ7UaoAAEYC","level":3,"time":"2019-12-09T12:58:36+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"cssresourceloader","method":"GET","url":"\/index.php\/apps\/files\/","message":"Could not find resource css\/server.css to load","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5FA38AAQEAAAQ7UgAAAEIL","level":3,"time":"2019-12-09T12:58:44+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"PHP","method":"GET","url":"\/index.php\/core\/preview?fileId=7&x=32&y=32","message":"fopen(\/media\/USBdrive\/ncdata\/own_adm\/files\/music\/projekteva-letitrain.mp3): failed to open stream: No such file or directory at \/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#301","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5FA38AAQEAAAQ7UgAAAEIL","level":3,"time":"2019-12-09T12:58:44+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"PHP","method":"GET","url":"\/index.php\/core\/preview?fileId=7&x=32&y=32","message":"unlink(): No such file or directory at \/var\/www\/nextcloud\/lib\/private\/Preview\/MP3.php#47","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5FI38AAQEAAAQ7UgUAAEgL","level":2,"time":"2019-12-09T13:00:01+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"core","method":"GET","url":"\/index.php\/apps\/files\/?dir=\/","message":"Failed to compile and\/or save \/var\/www\/nextcloud\/core\/css\/server.scss","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5FI38AAQEAAAQ7UgUAAEgL","level":3,"time":"2019-12-09T13:00:01+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"cssresourceloader","method":"GET","url":"\/index.php\/apps\/files\/?dir=\/","message":"Could not find resource css\/server.css to load","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5FVX8AAQEAAAQ7UhAAAFYL","level":3,"time":"2019-12-09T13:00:05+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"PHP","method":"GET","url":"\/index.php\/core\/preview?fileId=7&x=32&y=32","message":"fopen(\/media\/USBdrive\/ncdata\/own_adm\/files\/music\/projekteva-letitrain.mp3): failed to open stream: No such file or directory at \/var\/www\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#301","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}
{"reqId":"Xe5FVX8AAQEAAAQ7UhAAAFYL","level":3,"time":"2019-12-09T13:00:05+00:00","remoteAddr":"192.168.178.9","user":"own_adm","app":"PHP","method":"GET","url":"\/index.php\/core\/preview?fileId=7&x=32&y=32","message":"unlink(): No such file or directory at \/var\/www\/nextcloud\/lib\/private\/Preview\/MP3.php#47","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko\/20100101 Firefox\/71.0","version":"16.0.6.1"}

how do you access your instance? local or via internet?

why do i ask this? i can see that both ports of your instance are closed… 80 and 443. maybe it has something to do with that issue?! but i’m only guessing here…

I access NC via LAN and Internet. 443 is definitely open. This message shows 443 closed since the installation and is misleading. I dont’t know why it shows 443 closed. Maybe because I translate 443 to a TCP highport to hide the service from the outside.

Solved by restoring a backup.

I tried again the update to 16.0.6.1 with the same result. Web GUI is also broken after the update.

So I have to stay on 16.0.4 till a working version is available.