Mehrere Fehler nach Update Debian Trixie, PHP und Nextcloud Hub 26 Summer (35.0.2)

Hallo Leute,

ich bekomme nach den Updates Fehler, wegen Datenbank und WebDAV-Endpunkt.

Ich würde ungern das Fullbackup zurückspielen und dachte mir ich versuch es mal hier.

Aber zuerst die Fragen:

  • Bei welchen Anbieter? Lokal?

  • Auf welcher Hardware? PC, Raspberry PI (NextcloudPi)

  • Betriebssystem sowie Version ALLER beteiligten Systeme: Debian Trixie

  • Nextcloud Version: 35.0.2

  • PHP Version: PHP 8.4.27 (cli) (built: Oct 21 2026 07:53:46) (NTS)

  • Welche Datenbank? mariadb from 11.8.6-MariaDB, client 15.2

  • Apache/2.4.69 (Debian)

  • Läuft NC? Ja, bedingt. Login geht, es sind aber keine Daten verfügbar. Alles direkt auf dem raspi

  • Netzwerk Aufgliederung: Router>Switch>PI>

  • Wurden vor kurzen Server Updates gemacht? Ja von Debian Bookworm auf Trixie, PHP 8.3 auf 8.4, Nextcloud 34.0.5 auf 35.0.2

  • Habt ihr die Logs angesehen von Nextcloud und von System? Ja im Nextcloud Log steht nur ein Fehler: ServerExceptionServer error: `GET https://apps.nextcloud.com/api/v1/apps.json` resulted in a `503 Service Unavailable` response: 503 Service Temporarily Unavailable 503 Service Temporarily Una (truncated…)

    Failed to connect to the app store

  • Bei was für einer Aktion ist der Fehler aufgetreten? Bei keiner, es werden Fehler in der Systemprüfung angezeigt und die Daten aus dem data Verzeichnis werden nicht angezeigt.

  • In der Systemprüfung wir eine fehlerhafte Konfiguration angezeigt.
    Es gibt einige Fehler in der Systemkonfiguration.

    • WebDAV-Endpunkt

      Der Webserver ist noch nicht hinreichend für Datei-Synchronisierung konfiguriert, da die WebDAV-Schnittstelle vermutlich nicht funktioniert. Damit diese Prüfung ausgeführt werden kann, muß sichergestellt sein, dass der Webserver eine Verbindung zu sich selbst herstellen kann. Daher muss er in der Lage sein, mindestens eine seiner `trusted_domains` oder `overwrite.cli.url` aufzulösen und eine Verbindung zu ihnen herzustellen. Dieser Fehler kann das Ergebnis einer serverseitigen DNS-Nichtübereinstimmung oder einer ausgehenden Firewall-Regel sein.

    • .well-known URLs

      Der Webserver ist nicht ordnungsgemäß für die Auflösung von `.well-known`-URLs eingerichtet. Fehler bei: `/.well-known/caldav`

    • Fehler im Protokoll

      3 Fehler in den Protokollen seit 15. Oktober 2026, 10:10:59

    • Datenbankkonfiguration

      1 Datenbanküberprüfung ist fehlgeschlagen. Zeige Ergebnisse an …

Hier meine Config, erstellt mit list system:

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "1": "192.168.2.2",
            "2": "meinewebseite.de",
            "11": "84**REMOVED SENSITIVE VALUE***",
            "14": "**REMOVED SENSITIVE VALUE***.local",
            "3": "**REMOVED SENSITIVE VALUE***.local",
            "12": "[2003**REMOVED SENSITIVE VALUE***]"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "35.0.2.2",
        "overwrite.cli.url": "https:\/\/meinewebseite.de\/",
        "htaccess.RewriteBase": "\/",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "serverid": 1,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "tempdirectory": "\/srv\/nextcloud\/ncdata\/data\/tmp",
        "mail_smtpmode": "sendmail",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "DE",
        "preview_max_x": 2048,
        "preview_max_y": 2048,
        "jpeg_quality": 60,
        "overwriteprotocol": "https",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "loglevel": "2",
        "log_type": "file",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [
            "user",
            "admin",
            "support"
        ],
        "twofactor_enforced_excluded_groups": [],
        "has_rebuilt_cache": true,
        "maintenance": false,
        "maintenance_window_start": "1",
        "logfile": "\/srv\/nextcloud\/ncdata\/data\/nextcloud.log",
        "data-fingerprint": "***REMOVED SENSITIVE VALUE***",
        "theme": "",
        "memories.db.triggers.fcu": true,
        "memories.exiftool": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/eperl-aarch64-glibc",
        "memories.vod.path": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-aarch64"
    }
}

Komisch, dass die Config hier immer automatisch meinen Rechnernamen.local zieht (trusted_domains 14,3).

Im serverinfo#database Bereich in Nextcloud gibt es viele Meldungen mit:

Server has been up 0.0 h; counter-based statistics need at least 24 h to be reliable.

Vielleicht liegt das aber auch an dem `.well-known`-URLs.

Hier ist mir aber nicht klar wo ich das setzen muss , ausser vielleich in der .htaccess.

Hier die aus dem Data Verzeichnis:

# Generated by Nextcloud on 2026-10-21 19:17:24
# Section for Apache 2.4 to 2.6
<IfModule mod_authz_core.c>
  Require all denied
</IfModule>
<IfModule mod_access_compat.c>
  Order Allow,Deny
  Deny from all
  Satisfy All
</IfModule>

# Section for Apache 2.2
<IfModule !mod_authz_core.c>
  <IfModule !mod_access_compat.c>
    <IfModule mod_authz_host.c>
      Order Allow,Deny
      Deny from all
    </IfModule>
    Satisfy All
  </IfModule>
</IfModule>

# Section for Apache 2.2 to 2.6
<IfModule mod_autoindex.c>
  IndexIgnore *
</IfModule>

Hier die aus dem Nextcloud Verzeichnis:

IfModule mod_headers.c>
    <IfModule mod_setenvif.c>
        <IfModule mod_fcgid.c>
            SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
            RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
        </IfModule>
        <IfModule mod_proxy_fcgi.c>
            SetEnvIfNoCase Authorization "(.+)" HTTP_AUTHORIZATION=$1
        </IfModule>
        <IfModule mod_lsapi.c>
            SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
            RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
        </IfModule>
    </IfModule>

    <IfModule mod_env.c>
        # Add security and privacy related headers
        # Avoid doubled headers by unsetting headers in "onsuccess" table,
        # then add headers to "always" table: https://github.com/nextcloud/server/pull/19002

        <If "%{REQUEST_URI} =~ m#/login$#">
            # Only on the login page we need any Origin or Referer header set.
            Header onsuccess unset Referrer-Policy
            Header always set Referrer-Policy "same-origin"
        </If>
        <Else>
            Header onsuccess unset Referrer-Policy
            Header always set Referrer-Policy "no-referrer"
        </Else>

        Header onsuccess unset X-Content-Type-Options
        Header always set X-Content-Type-Options "nosniff"

        Header onsuccess unset X-Frame-Options
        Header always set X-Frame-Options "SAMEORIGIN"

        Header onsuccess unset X-Permitted-Cross-Domain-Policies
        Header always set X-Permitted-Cross-Domain-Policies "none"

        Header onsuccess unset X-Robots-Tag
        Header always set X-Robots-Tag "noindex, nofollow"

        SetEnv modHeadersAvailable true
    </IfModule>

    # Add cache control for static resources
    <FilesMatch "\.(css|js|mjs|svg|gif|png|jpg|webp|ico|wasm|tflite)$">
        <If "%{QUERY_STRING} =~ /(^|&)v=/">
            Header set Cache-Control "max-age=15778463, immutable"
        </If>
        <Else>
            Header set Cache-Control "max-age=15778463"
        </Else>
    </FilesMatch>

    # Let browsers cache OTF and WOFF files for a week
    <FilesMatch "\.(otf|woff2?)$">
        Header set Cache-Control "max-age=604800"
    </FilesMatch>
</IfModule>

<IfModule mod_php.c>
    php_value default_charset 'UTF-8'
    php_value output_buffering 0
    <IfModule mod_env.c>
        SetEnv htaccessWorking true
    </IfModule>
</IfModule>

<IfModule mod_mime.c>
    AddType image/svg+xml svg svgz
    AddType application/wasm wasm
    AddEncoding gzip svgz
    # Serve ESM javascript files (.mjs) with correct mime type
    AddType text/javascript js mjs
</IfModule>

<IfModule mod_dir.c>
    DirectoryIndex index.php index.html
</IfModule>

<IfModule pagespeed_module>
    ModPagespeed Off
</IfModule>

#############
#### Rewrites
#############

<IfModule mod_rewrite.c>
    RewriteEngine on

##
## Rule: Workaround for WebDAV with apache+php-cgi
##
## Context:
##    - Sets the environment variable `HTTP_AUTHORIZATION` to the value of the `Authorization` request header
##    - Always executed before and along with other rules (no `L` used)
##    - XXX: *May* be replaced with an equivalent SetEnvIf in theory
##    - XXX: SetEnvIf approach is already in use above for mod_proxy_cgi / mod_lsapi / mod_fcgid
##

    RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

##
## Rule: Workaround for WebDAV with MS DavClnt
##
## Context: 
##    - DavClnt attempts an OPTIONS request against `/` instead of the specified endpoint
##    - Redirects the client to the endpoint rather than the login page (which confuses DavClnt)
##

    RewriteCond %{HTTP_USER_AGENT} DavClnt
    RewriteRule ^$ /remote.php/webdav/ [L,R=302]

##
## Rule: Map the RFC 8615 / RFC 6764 compliant well-known URI for CardDAV to our Remote DAV endpoint
##

    RewriteRule ^\.well-known/carddav /remote.php/dav/ [R=301,L]

##
## Rule: Map the RFC 8615 / RFC 6764 compliant well-known URI for CalDAV to our Remote DAV endpoint
##

    RewriteRule ^\.well-known/caldav /remote.php/dav/ [R=301,L]

##
## Rule: Map /remote* --> /remote.php* including the query string
##
## Context:
##    - XXX: Is this even used anymore? Seems a relic from <NC12
##

    RewriteRule ^remote/(.*) remote.php [L]

##
## Rule: Prevent access to non-public files
##

    RewriteRule ^(?:build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]

##
## Rule: Maps most RFC 8615 compliant well-known URIs to our main frontend controller (/index.php) by default
##
## Context:
##    - Intentionally excludes URIs used for HTTPS certificate verifications
##        - RFC 8555 / ACME HTTP Challenges (acme-challenge) 
##        - File-based Validations (pki-validation)
##    - XXX: Sometimes we are using `/index.php` and other times `index.php` as our replacement URI; this may be incorrect
##

    RewriteRule ^\.well-known/(?!acme-challenge|pki-validation) /index.php [L]

##
## Rule: Map the ocm-provider handling to our main frontend controller (/index.php)
##
## Context:
##    - XXX: Sometimes we are using `/index.php` and other times `index.php` as our replacement URI; this may be incorrect
##

    RewriteRule ^ocm-provider/?$ index.php [L]

##
## Rule: Prevent access to more non-public files
##
## Context:
##    - XXX It may make sense to merge some of these with the others (i.e. the ones that don't need to be last)
##

    RewriteRule ^(?:\.(?!well-known)|autotest|occ|issue|indie|db_|console).* - [R=404,L]

</IfModule>

# Clients like xDavv5 on Android, or Cyberduck, use chunked requests.
# When FastCGI or FPM is used with apache, requests arrive to Nextcloud without any content.
# This leads to the creation of empty files.
# The following directive will force the problematic requests to be buffered before being forwarded to Nextcloud.
# This way, the "Transfer-Encoding" header is removed, the "Content-Length" header is set, and the request content is proxied to Nextcloud.
# Here are more information about the issue:
#  - https://docs.cyberduck.io/mountainduck/issues/fastcgi/
#  - https://docs.nextcloud.com/server/latest/admin_manual/issues/general_troubleshooting.html#troubleshooting-webdav

<IfModule mod_setenvif.c>
    SetEnvIfNoCase Transfer-Encoding "chunked" proxy-sendcl=1
</IfModule>

# Apache disabled the sending of the server-side content-length header
# in their 2.4.59 patch updated which breaks some use-cases in Nextcloud.
# Setting ap_trust_cgilike_cl allows to bring back the usual behaviour.
# See https://bz.apache.org/bugzilla/show_bug.cgi?id=68973

<IfModule mod_env.c>
    SetEnv ap_trust_cgilike_cl
</IfModule>

AddDefaultCharset utf-8
Options -Indexes
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####

ErrorDocument 403 /index.php/error/403
ErrorDocument 404 /index.php/error/404
<IfModule mod_rewrite.c>
  Options -MultiViews
  RewriteRule ^core/js/oc.js$ index.php [PT,E=PATH_INFO:$1]
  RewriteRule ^core/preview.png$ index.php [PT,E=PATH_INFO:$1]
  RewriteCond %{REQUEST_FILENAME} !\.(css|js|mjs|svg|gif|ico|jpg|jpeg|png|webp|html|otf|ttf|woff2?|map|webm|mp4|mp3|ogg|wav|flac|wasm|tflite)$
  RewriteCond %{REQUEST_FILENAME} !/core/ajax/update\.php
  RewriteCond %{REQUEST_FILENAME} !/core/img/(favicon\.ico|manifest\.json)$
  RewriteCond %{REQUEST_FILENAME} !/(cron|public|remote|status)\.php
  RewriteCond %{REQUEST_FILENAME} !/ocs/v(1|2)\.php
  RewriteCond %{REQUEST_FILENAME} !/robots\.txt
  RewriteCond %{REQUEST_FILENAME} !/(ocs-provider|updater)/
  RewriteCond %{REQUEST_URI} !^/\.well-known/(acme-challenge|pki-validation)/.*
  RewriteCond %{REQUEST_FILENAME} !/richdocumentscode(_arm64)?/proxy.php$
  RewriteRule . index.php [PT,E=PATH_INFO:$1]
  RewriteBase /
  <IfModule mod_env.c>
    SetEnv front_controller_active true
    <IfModule mod_dir.c>
      DirectorySlash off
    </IfModule>
  </IfModule>
</IfModule>

Ein “curl -I https://meinewebseite.de/.well-known/caldav” zeigt:

HTTP/2 301 
strict-transport-security: max-age=15768000; includeSubDomains
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-permitted-cross-domain-policies: none
x-robots-tag: noindex, nofollow
referrer-policy: no-referrer
location: https://meinewebseite.de/remote.php/dav/
content-type: text/html; charset=iso-8859-1
date: Thu, 22 Oct 2026 07:24:05 GMT
server: Apache/2.4.69 (Debian)

Wenn ich den Link im Browser aufrufe bekomme ich “Access denied”!

Bin für jeden Tipp dankbar.

Und ja, ich hätte vielleicht eins nach dem andern installieren sollen, aber da ich ein Backup hatte, dachte ich jetzt gilt’s.

Beste Grüße

buzzzz

Als geneigter nextcloudpi user nehme ich doch nicht den “Schraubenzieher” in die Hand :grinning_face:
ncp 1.58.x unterstützt debian13, php8.3 und nc 33.x und nicht mehr zur Zeit.

Ok und was ist mit dem PHP Update?

Dann werde wohl wieder zurück gehen müssen.

Nur komisch, das mir der SSH Login immer ein Update auf Trixie vorgeschlagen hat.

Welche ncp-version läuft denn?
Ab ncp 1.58 sollte es angeboten werden.

Es läuft ncp 1.58. Das lief auch schon vor dem Update.

Gibt es eine gute Quelle, wo man sich da auf dem Stand halten kann?

Wie wäre es, wenn ich das letzte Release 1.58 ( Releases · nextcloud/nextcloudpi · GitHub ) nehme, auf Nextcloud 34.0.5 update und dann mein Backup aus dem NC-Panel einspiele?

Auf einer Debian 13 AMD 64 PC-VM läuft Nextcloudpi mit php 8.3.36 und Nextcloud 35 Problemlos.
nur die ARM-Pakete dauern wohl noch.

ncp updates werden Dir in der ssh konsole angezeigt.

@buzzzz Du könntest dann mit Hilfe von ernolf’s phpupdater versuchen, die php Version auf php8.3 zu bringen

Ich bin mir nicht sicher, ob ich mit dem Murks weitermachen soll, oder lieber das Fullbackup (dd disk image) zurücksichere und nur ein PHP Update versuche, oder gleich ein neues Release 1.58 , mit Nextcloud 33.0.2 PHP 8.3 Debian trixie installiere und mein nextcloud-bkp_20261021_1792604025.tar.gz als nc-panel restore einspiele. Da müsste ich aver vorher auf NC34 gehen.

Das Eine tun und das Andere nicht lassen.
Versuch es in der von Dir aufgeführten Reihenfolge.
Solange Du Sicherheitskopien Deiner Ausgangspunkte behältst…

Ich habe wieder zurückgesichert. Da ich das php 8.3 von sury.org verwende, habe ich festgestellt das es dort eine Version 8.3.36 gibt. Seltsam nur, ich habe die unattented Upgrades aktiv und anscheinend kein Update bekommen. Installiert war noch ein 8.3.13, oder so.

Jetzt lasse ich erstmal den raspi mit dem Stand weiterlaufen. Eine 2. M.2 SSD ist bestellt. Da werde ich das Test release for v1.58.0 (debian 13 update) ausprobieren.