Nextcloud Migration - no files / no adressbooks

I just migrate nextcloud from on eserve rto an new server how to describes in help of nextcloud.

Nextcloud starts well, user login works, but now files or adressbooks are shown for the users.

image

I also tried occ file-scan -all

an get this result:


Starting scan for user 1 out of 4 (User1)
Starting scan for user 2 out of 4 (User2)
Starting scan for user 3 out of 4 (JUser3)
Starting scan for user 4 out of 4 (User4)
+---------+-------+-----+---------+---------+--------+--------------+
| Folders | Files | New | Updated | Removed | Errors | Elapsed time |
+---------+-------+-----+---------+---------+--------+--------------+
| 311     | 16703 | 0   | 0       | 0       | 0      | 00:00:09     |
+---------+-------+-----+---------+---------+--------+--------------+

Nextcloud version 29.0.1
Operating system: Ubuntu 24.04
Apache 2.4.25
PHP 8.3

Any ideas for that issues?

Can you post a full screenshot? You are welcome to black out the URL and personal data.

Also have a look in the folder /path/to/nextcloud/data/username for the user names. Are there any folders and files there? Are the permissions correct with e.g. www-data:www-data?

It looks as if the files are available. So please post a complete screenshot. Thank you.

root@newserver:/media/nextcloud-data# ls -lsia
total 110492
 9699329      4 drwxrwx--- 12 www-data www-data      4096 Jun  6 10:55  .
       2      4 drwxr-xr-x  6 root     root          4096 Apr 14  2020  ..
 9699334      4 drwxr-xr-x 17 www-data www-data      4096 Okt 18  2023  appdata_oceo05bloi5y
 9963429      4 drwxr-xr-x  5 www-data www-data      4096 Jun  6 10:55  appdata_ocu697slscaq
 9699444   7140 -rw-r-----  1 www-data www-data   7306601 Mai  6 07:28  audit.log
 9700019 102448 -rw-r-----  1 www-data www-data 104872974 Apr 15 07:53  audit.log.1
10092556      4 drwxrwxr-x  4 www-data www-data      4096 Mär  4  2023  User1
 9699335      4 drwxr-xr-x  2 www-data www-data      4096 Mai 25 12:03  files_external
 9964127      4 drwxr-xr-x  3 www-data www-data      4096 Apr 21  2020  files_trashbin
 9699333      4 drwxr-xr-x  3 www-data www-data      4096 Aug 13  2018  __groupfolders
 9699442      4 -rw-r--r--  1 www-data www-data       542 Mai 25 12:03  .htaccess
 9699445      0 -rw-r--r--  1 www-data www-data         0 Mai 25 12:03  index.html
 9699330      4 drwxr-xr-x  8 www-data www-data      4096 Apr 22  2023  User2
 9699331      4 drwxr-xr-x  6 www-data www-data      4096 Apr 22  2023  User3
 9699621    108 -rw-r-----  1 www-data www-data    104038 Jun  6 10:55  nextcloud.log
 9699443      0 -rw-r--r--  1 www-data www-data         0 Mai 25 12:03  .ocdata
 9699448    568 -rw-r--r--  1 www-data www-data    581632 Jan  5  2017  owncloud.db
 9699449    176 -rw-r--r--  1 www-data www-data    172859 Mai 25 12:04  updater.log
 9699336      4 drwxr-xr-x  4 www-data www-data      4096 Mai 25 12:03  updater-oceo05blodww
 9699332      4 drwxr-xr-x  8 www-data www-data      4096 Mär 12  2023  User4

Unfortunately, I have no real idea. Have a look at the log files. Also check for the user logged in in the screenshot via “Dateien Einstellungen” (bottom left) whether the correct user name or folder is there (WebDAV setting).

So, I tired new install on a clean server with latest version.

Everthing seemsfine, except to work with nextcloud.

Seems there are no rights on the data dir.

I checked permission :

9699329 4 drwxrwx--- 12 www-data www-data 4096 Jun 6 11:03 nextcloud-data

And this error appears for Webdav:
“Your web server is not yet properly set up to allow file synchronization, because the WebDAV interface seems to be broken.”

Any ideas, what is missing?

Post rights of subdirs for the user. Do you use mountpoints. Post details.

 9699329      4 drwxrwx--- 12 www-data www-data      4096 Jun  6 11:03  .
       2      4 drwxr-xr-x  6 root     root          4096 Jun  7 15:14  ..
 9699334      4 drwxr-xr-x 17 www-data www-data      4096 Okt 18  2023  appdata_oceo05bloi7y
 9963429      4 drwxr-xr-x  5 www-data www-data      4096 Jun  6 10:55  appdata_ocu697slsCaq
 9699444   7140 -rw-r-----  1 www-data www-data   7306601 Mai  6 07:28  audit.log
 9700019 102448 -rw-r-----  1 www-data www-data 104872974 Apr 15 07:53  audit.log.1
10092556      4 drwxrwxr-x  4 www-data www-data      4096 Mär  4  2023  user1
 9699335      4 drwxr-xr-x  2 www-data www-data      4096 Jun  7 15:23  files_external
 9964127      4 drwxr-xr-x  3 www-data www-data      4096 Apr 21  2020  files_trashbin
 9699333      4 drwxr-xr-x  3 www-data www-data      4096 Aug 13  2018  __groupfolders
 9699442      4 -rw-r--r--  1 www-data www-data       542 Jun  7 15:23  .htaccess
 9699445      0 -rw-r--r--  1 www-data www-data         0 Jun  7 15:23  index.html
 9699330      4 drwxr-xr-x  8 www-data www-data      4096 Apr 22  2023  user2
 9699331      4 drwxr-xr-x  6 www-data www-data      4096 Apr 22  2023  user3
 9699621    472 -rw-r-----  1 www-data www-data    479007 Jun  8 08:36  nextcloud.log
 9699443      0 -rw-r--r--  1 www-data www-data         0 Jun  7 15:23  .ocdata
 9699448    568 -rw-r--r--  1 www-data www-data    581632 Jan  5  2017  owncloud.db
 9699449    188 -rw-r--r--  1 www-data www-data    185976 Jun  7 15:23  updater.log
 9699336      4 drwxr-xr-x  4 www-data www-data      4096 Jun  7 15:23  updater-oceo05bloi5y
 9699332      4 drwxr-xr-x  8 www-data www-data      4096 Mär 12  2023  user4

Mounts:
/dev/vdc1 on /media/NC-DATA type ext4 (rw,relatime)

fstab:

# /media/NC-DATA was on /dev/vdc1 during curtin installation
/dev/disk/by-uuid/e1XXXXe1-b628-4f62-XXXX-38ade087b9ab /media/NC-DATA ext4 defaults 0 2

Seems happen also on clean install.
On Mouse-Over you get also:

“You don’t have permission to upload or create files here”

what a long search :exploding_head:

just changed this

cgi.fix_pathinfo=1

in /etc/php/8.3/fpm/php.ini

Such small thing to get me 3 days crazy.

Now checking - seems to work so far…