Keine Verbindung zu Nextcloud - Server hat "500 Internal Server Error auf GET https://mycloud.lan/status.php geantwortet

Hi,
I don’t know was going on: I not Nextcloud specialist but: My Nextcloud has working since more 1 Jahr without any problem. Since today I can not access to my Nextcloud - Firefox do nothing (white background) an Nextcloud sync client on openssue show me:

Keine Verbindung zu Nextcloud - Server hat "500 Internal Server Error auf GET https://mycloud.lan/status.php geantwortet

I have not make any configuration on Nextcloud itself. Does somebody has any idea was is going wrong?

Log-files:
tail error.log
[Mon Nov 22 13:05:58.214755 2021] [core:notice] [pid 1462:tid 3069620800] AH00094: Command line: ‘/usr/sbin/apache2’
[Mon Nov 22 13:07:19.451587 2021] [mpm_event:notice] [pid 1462:tid 3069620800] AH00491: caught SIGTERM, shutting down
[Mon Nov 22 13:07:52.404955 2021] [mpm_event:notice] [pid 637:tid 3069186624] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.
1i configured – resuming normal operations
[Mon Nov 22 13:07:52.405765 2021] [core:notice] [pid 637:tid 3069186624] AH00094: Command line: ‘/usr/sbin/apache2’
[Mon Nov 22 13:24:07.548630 2021] [mpm_event:notice] [pid 637:tid 3069186624] AH00491: caught SIGTERM, shutting down
[Mon Nov 22 13:26:36.688914 2021] [mpm_event:notice] [pid 1359:tid 3069284928] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1
.1i configured – resuming normal operations
[Mon Nov 22 13:26:36.689314 2021] [core:notice] [pid 1359:tid 3069284928] AH00094: Command line: ‘/usr/sbin/apache2’
[Mon Nov 22 15:51:46.416590 2021] [mpm_event:notice] [pid 1359:tid 3069284928] AH00491: caught SIGTERM, shutting down
[Mon Nov 22 15:52:16.367479 2021] [mpm_event:notice] [pid 639:tid 3069403712] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.
1i configured – resuming normal operations
[Mon Nov 22 15:52:16.376304 2021] [core:notice] [pid 639:tid 3069403712] AH00094: Command line: ‘/usr/sbin/apache2’

tail access.log
10.10.10.1 - - [22/Nov/2021:19:50:55 +0100] “PROPFIND /remote.php/dav/addressbooks/users/rb/transamerica/ HTTP/1.1” 500 3507 “-” “Mozilla/5.0 (X11; Linux) KHTML/5.76.0 (like Gecko) Kon
queror/5 KIO/5.76”

3507 “-” “Mozilla/5.0 (X11; Linux) KHTML/5.76.0 (like Gecko) Konqueror/5
KIO/5.76”
10.10.10.1 - - [22/Nov/2021:19:50:59 +0100] “GET /status.php HTTP/1.1” 500 3507 “-” “Mozilla/5.0 (Linux) mirall/3.1.3git (Nextcloud)”
10.10.10.1 - - [22/Nov/2021:19:50:59 +0100] “GET /status.php HTTP/1.1” 500 3509 “-” “Mozilla/5.0 (Linux) mirall/3.1.3git (Nextcloud)”
10.10.10.1 - - [22/Nov/2021:19:51:31 +0100] “GET /status.php HTTP/1.1” 500 3507 “-” “Mozilla/5.0 (Linux) mirall/3.1.3git (Nextcloud)”
10.10.10.1 - - [22/Nov/2021:19:51:31 +0100] “GET /status.php HTTP/1.1” 500 3509 “-” “Mozilla/5.0 (Linux) mirall/3.1.3git (Nextcloud)”

sudo tail php7.4-fpm.log
[22-Nov-2021 13:07:19] NOTICE: Terminating …
[22-Nov-2021 13:07:19] NOTICE: exiting, bye-bye!
[22-Nov-2021 13:07:52] NOTICE: fpm is running, pid 563
[22-Nov-2021 13:07:52] NOTICE: ready to handle connections
[22-Nov-2021 13:07:52] NOTICE: systemd monitor interval set to 10000ms
[22-Nov-2021 15:51:46] NOTICE: Terminating …
[22-Nov-2021 15:51:46] NOTICE: exiting, bye-bye!
[22-Nov-2021 15:52:16] NOTICE: fpm is running, pid 571
[22-Nov-2021 15:52:16] NOTICE: ready to handle connections
[22-Nov-2021 15:52:16] NOTICE: systemd monitor interval set to 10000ms

sudo systemctl status mysqld.service
● mariadb.service - MariaDB 10.3.31 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2021-11-22 15:52:17 CET; 4h 3min ago
Docs: man:mysqld(8)
https://mariadb.com/kb/en/library/systemd/
Process: 568 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
Process: 579 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 590 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=cd /usr/bin/..; /usr/bin/galera_recovery; [ $? -eq 0 ] && systemctl set-environment _WSREP
Process: 827 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 829 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
Main PID: 775 (mysqld)
Status: “Taking your SQL requests now…”
Tasks: 33 (limit: 4915)
CGroup: /system.slice/mariadb.service
└─775 /usr/sbin/mysqld

Nov 22 15:52:15 nextcloud systemd[1]: Starting MariaDB 10.3.31 database server…
Nov 22 15:52:16 nextcloud mysqld[775]: 2021-11-22 15:52:16 0 [Note] /usr/sbin/mysqld (mysqld 10.3.31-MariaDB-0+deb10u1) starting as process 775 …
Nov 22 15:52:17 nextcloud systemd[1]: Started MariaDB 10.3.31 database server.
Nov 22 15:52:17 nextcloud /etc/mysql/debian-start[834]: /usr/bin/mysql_upgrade: the ‘–basedir’ option is always ignored
Nov 22 15:52:17 nextcloud /etc/mysql/debian-start[834]: Looking for ‘mysql’ as: /usr/bin/mysql
Nov 22 15:52:17 nextcloud /etc/mysql/debian-start[834]: Looking for ‘mysqlcheck’ as: /usr/bin/mysqlcheck
Nov 22 15:52:17 nextcloud /etc/mysql/debian-start[834]: This installation of MySQL is already upgraded to 10.3.31-MariaDB, use --force if you still need to run mysql_upgrade
Nov 22 15:52:17 nextcloud /etc/mysql/debian-start[899]: Checking for insecure root accounts.


Nextcloud version )_: ‘20.0.5.2’,

Operating system and version (eg, Ubuntu 20.04): Raspbian OS 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l GNU/Linux

Apache or nginx version (eg, Apache 2.4.25): 2.4
PHP version (eg, 7.4): 7.4

The issue you are facing:
Is this the first time you’ve seen this error? (Y/N): Y

Hallo, I had the same issue. I restored backup (it was working) and after update Raspberry (Raspbian 64 bit) - apt get update and upgrade I have the same issue…

I’ve make a new install of php - and suddenly it’s working now ???

sudo apt install php7.4 php7.4-cli php7.4-common php7.4-curl php7.4-gd php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-readline php7.4-xml php7.4-xsl php7.4-zip php7.4-bz2 libapache2-mod-php7.4 -y

I tried reinstall php (i was on 8.0) to 7.4 but it doesn´t help. 8.0 is not working to.

I think with “apt–get upgrade” you change your packages (e.g. php) to newer versions and then the backup does not work anymore. Perhaps a problem with PHP 8. Perhaps you can post the different package persons. Post e.g. output of “apt-get upgrade”.

what does
sudo -u www-data php /var/www/nextcloud/occ trashbin:cleanup --all-users

say? - it’s working?

Hallo, I restored backup and it´s ok now. I will wait with update/upgrade. Thanks a lot.