Nextcloud shows "Welcome to nginx!" or "404 Not Found"

I’m out of ideas for now…
Could you share theoutput of
ls -la /var/www/nextcloud
ls -la /etc/php/8.3/fpm/pool.d/ (php version may differ),
cat /etc/php/8.3/fpm/pool.d/nextcloud.conf
ls -la /etc/nginx/conf.d/nextcloud-domain.tld.d/
Are all services running in Webadmin>Tools>Services ?

I would like to note that http://mydomain.tld/anypath leads to this:

All services are running.

/var/www/nextcloud

total 1244
drwxr-x---  15 nextcloud www-data   4096 Dec 11 17:24 .
drwxr-xr-x+  5 root      root       4096 Dec 11 15:12 ..
drwxr-xr-x  42 nextcloud www-data   4096 Nov 20 10:03 3rdparty
drwxr-xr-x  55 nextcloud www-data   4096 Nov 20 10:00 apps
-rw-r--r--   1 nextcloud www-data  26350 Nov 20 09:58 AUTHORS
-rw-r--r--   1 nextcloud www-data     79 Dec 11 17:20 .bash_history
-rw-r--r--   1 nextcloud www-data   2395 Nov 20 09:58 composer.json
-rw-r--r--   1 nextcloud www-data   3400 Nov 20 09:58 composer.lock
drwxr-xr-x   2 nextcloud www-data   4096 Dec 11 15:24 config
-rw-r--r--   1 nextcloud www-data   3810 Nov 20 09:58 console.php
-rw-r--r--   1 nextcloud www-data  34520 Nov 20 09:58 COPYING
drwxr-xr-x  25 nextcloud www-data   4096 Nov 20 10:03 core
-rw-r--r--   1 nextcloud www-data   8188 Nov 20 09:58 cron.php
drwxr-xr-x   2 nextcloud www-data   4096 Dec 11 15:24 data
drwxr-xr-x   2 nextcloud www-data  24576 Nov 20 09:58 dist
-rw-r--r--   1 nextcloud www-data   4695 Dec 11 15:24 .htaccess
-rw-r--r--   1 nextcloud www-data    331 Nov 20 09:58 index.html
-rw-r--r--   1 nextcloud www-data   3485 Nov 20 09:58 index.php
drwxr-xr-x   7 nextcloud www-data   4096 Nov 20 09:58 lib
drwxr-xr-x   2 nextcloud www-data   4096 Nov 20 09:58 LICENSES
-rw-r--r--   1 nextcloud www-data    596 Nov 20 09:58 occ
drwxr-xr-x   2 nextcloud www-data   4096 Nov 20 09:58 ocs
drwxr-xr-x   2 nextcloud www-data   4096 Nov 20 09:58 ocs-provider
-rw-r--r--   1 nextcloud www-data   7338 Nov 20 09:58 package.json
-rw-r--r--   1 nextcloud www-data 998083 Nov 20 09:58 package-lock.json
-rw-r--r--   1 nextcloud www-data   2825 Nov 20 09:58 public.php
-rw-r--r--   1 nextcloud www-data   4521 Nov 20 09:58 remote.php
drwxr-xr-x   4 nextcloud www-data   4096 Nov 20 09:58 resources
-rw-r--r--   1 nextcloud www-data  44247 Nov 20 09:58 REUSE.toml
-rw-r--r--   1 nextcloud www-data     26 Nov 20 09:58 robots.txt
-rw-r--r--   1 nextcloud www-data   1361 Nov 20 09:58 status.php
drwxr-xr-x   3 nextcloud www-data   4096 Nov 20 09:58 themes
drwxr-xr-x   2 nextcloud www-data   4096 Nov 20 09:59 updater
-rw-r--r--   1 nextcloud www-data    271 Nov 20 09:58 .user.ini
-rw-r--r--   1 nextcloud www-data    385 Nov 20 10:02 version.php

/etc/php/8.3/fpm/pool.d/

total 36
drwxr-xr-x 2 root root  4096 Dec 11 17:24 .
drwxr-xr-x 4 root root  4096 Dec 11 15:14 ..
-r-------- 1 root root  1341 Dec 11 17:24 nextcloud.conf
-rw-r--r-- 1 root root 22096 Nov 20 11:50 www.conf

/etc/nginx/conf.d/nextcloud-domain.tld.d/

total 20
drwxr-xr-x 3 root root 4096 Dec 12 17:09 .
drwxr-xr-x 4 root root 4096 Aug 15  2024 ..
-r-------- 1 root root 7712 Dec 12 17:09 nextcloud.conf
drwxrwxrwx 2 root root 4096 Dec 11 15:17 nextcloud.d

/etc/nginx/sites-enabled/

total 8.0K
drwxr-xr-x 2 root root 4.0K Dec 26  2023 .
drwxr-xr-x 8 root root 4.0K Dec  8 22:29 ..

I’m out of ideas for now…

It seems like I’ve had this issue once before.
Perhaps I could do my backup first.
How does one do a nextcloud backup?

Even https://mydomain.tld/login ?

See :

Yeah, but my backup is only on my desktop now.
For whatever reason it had been written over.
But I’m using scp to copy it to my home folder on my server and then I’ll move it to
/home/yunohost.backup/archives.

Even https://mydomain.tld/login ?

No, that works!

[edit]

Oh, it looks like I need to deinstall nextcloud. I thought the backup would require the app to be functional.

[edit]

And it looks like the zipfile I managed to save is the only one that has the database, but it’s the broken one after the upgrade went wrong.

[edit]

It looks like I’ve lost my database completely :frowning: .
Although I do still have my agenda and contacts on my desktop’s thunderbird.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.