Browser display incorrect

Hi everyone,

I am new to nextcloud and I wanted to try it. But as I am new to database and server, I am having difficulties to make it run as intended.

I managed to install nextcloud using apache2 on an odroid xu4 with ubuntu18.04.
For the data folder, I am using an external HDD connected through USB.

My problem is that the browser is not displaying as it should be. After installation it displayed well but I couldn’t upload any files. I got the circle like something is loading but nothing happens.
I tried reinstall everything and got a similar problem.
I rebooted the system and now the display is wrong as if the css is not loading. I have a message on the page which states ‘You don’t have permission to upload or create files here’.

Here is the output of the ‘ls’ command on the mounted folder of the HDD:

$ ls -l
total 24
drwxrwx--- 5 www-data www-data  4096 May 10 05:36 data1
drwx------ 2 root     root     16384 Apr 21 13:59 lost+found
drwxr-xr-x 2 root     root      4096 May  9 15:22 test

The data1 is the folder where the data are stored.

The www-data user has full right over this folder, so I am wondering what is wrong. Maybe there is another files somewhere that needs access? If anyone has any idea about where to look or what to do, it would help a lot.

Thanks in advance,

I don’t think your problem is with the data folder. Check your web root.

I am not sure I understand what you mean with web root. Do you mean the nextcloud folder?
FYI, here are the right for the nextcloud folder where the site should be accessed.

/var/www/nextcloud# ls -l
total 148
drwxr-xr-x 33 www-data www-data  4096 Apr 22 19:29 3rdparty
-rw-r--r--  1 www-data www-data 15752 Apr 22 19:23 AUTHORS
-rw-r--r--  1 www-data www-data 34520 Apr 22 19:23 COPYING
drwxr-xr-x 44 www-data www-data  4096 May 10 05:28 apps
drwxr-xr-x  2 www-data www-data  4096 May 10 05:36 config
-rw-r--r--  1 www-data www-data  3910 Apr 22 19:23 console.php
drwxr-xr-x 23 www-data www-data  4096 Apr 22 19:29 core
-rw-r--r--  1 www-data www-data  5048 Apr 22 19:24 cron.php
drwxr-xr-x  2 www-data www-data  4096 May  9 15:43 data
-rw-r--r--  1 www-data www-data   156 Apr 22 19:24 index.html
-rw-r--r--  1 www-data www-data  2976 Apr 22 19:24 index.php
drwxr-xr-x  6 www-data www-data  4096 Apr 22 19:24 lib
-rw-r--r--  1 www-data www-data   283 Apr 22 19:24 occ
drwxr-xr-x  2 www-data www-data  4096 Apr 22 19:24 ocm-provider
drwxr-xr-x  2 www-data www-data  4096 Apr 22 19:24 ocs
drwxr-xr-x  2 www-data www-data  4096 Apr 22 19:24 ocs-provider
-rw-r--r--  1 www-data www-data  3056 Apr 22 19:24 public.php
-rw-r--r--  1 www-data www-data  5235 Apr 22 19:24 remote.php
drwxr-xr-x  4 www-data www-data  4096 Apr 22 19:24 resources
-rw-r--r--  1 www-data www-data    26 Apr 22 19:24 robots.txt
-rw-r--r--  1 www-data www-data  2381 Apr 22 19:24 status.php
drwxr-xr-x  3 www-data www-data  4096 Apr 22 19:24 themes
drwxr-xr-x  2 www-data www-data  4096 Apr 22 19:25 updater
-rw-r--r--  1 www-data www-data   362 Apr 22 19:29 version.php

Thanks for your help!

If you learn some basics about the web server you use to run Nextcloud, it will really help you in the long run.

There are two main folders involved in a Nextcloud installation. The first is the web root which is the root of the website where Nextcloud is installed. The other is the data folder, which is under the web root by default, but should be moved outside the web root for security reasons.

I have the same problem some times. I have to reset my system with my backup that it works again. Why is it that Nextcloud sometimes crashes like this? Is there a solution?

I had the same problem and did the following. I added the line ‘theme’ => ‘’, to the config.php file located in /var/www/html/nextcloud/config and restarted the service. (systemctl restart apache2)

I kept copy of the config.php file after I had some other problem with FS space and I saw that this line was missing in the backup compared to the active one.

Hope this help