net::ERR_CONTENT_LENGTH_MISMATCH while loading server.css (Nextcloud 12)


I recently installed NC 12 on my Raspi 2.
Everything is working fine, so I decided to move the data-directory from /var/www/nextcloud/data to a mounted share on my NAS: /mnt/nextcloud.
After changing the config.php, I get the above mentioned error when I login to Nextcloud: net::ERR_CONTENT_LENGTH_MISMATCH when the server.css is being loaded.
The result is a missing CSS and a very poor display of the nextcloud frontend.

When I configure the data directory back to its original place, the stylesheet is loading fine.

I use Apache 2 as webserver.

Any ideas?


This somehow happened to me during upgrade. It seemed that gzipped file server.css.gzip was corrupted and Chrome had some problem with that (other browsers were okay).

I fixed this by manually gzipping server.css and replacing server.css.gzip.

I have a similar problem with an instance migrated to NC15:


also leading to CSS elements missing and an almost unusable user interface. However, only Chrome is affected. Creating a server.css.gz file did not solve the problem. Any ideas?