Internal Server error after running ncp-dist-upgrade

Nextcloud version: 26.0.3.2
Operating system and version (eg, Ubuntu 24.04): Debian GNU/Linux 12
Apache: Apache/2.4.61 (Debian)
PHP version: PHP 8.1.29

Today raspberry pi prompted me to run sudo ncp-dist-upgrade. So I did. After that when trying to access the normal Nextcloud webui I get the following error:

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

I am able to visit the configuration webui at 192.168.148.42:4443 normally.

This is the output of ncp-report

NextcloudPi diagnostics
grep: /etc/apache2/sites-available/nextcloud.conf: No such file or directory
NextcloudPi version  v1.54.2
NextcloudPi image    NextcloudPi_07-09-23
OS                   Debian GNU/Linux 12. 6.1.21-v8+ (aarch64)
automount            yes
USB devices          sda 
datadir              /media/drive/data
data in SD           no
data filesystem      btrfs
data disk usage      1.5T/1.9T
rootfs usage         18G/117G
swapfile             /var/swap
dbdir                /var/lib/mysql
Nextcloud check      ok
Nextcloud version    26.0.3.2
HTTPD service        up
PHP service          up
MariaDB service      up
Redis service        up
HPB service          down
Postfix service      up
Internet check       ok
Public IPv4          ***REMOVED SENSITIVE VALUE***
Public IPv6          ***REMOVED SENSITIVE VALUE***
Port 80              open
Port 443             open
IP                   ***REMOVED SENSITIVE VALUE***
Gateway              ***REMOVED SENSITIVE VALUE***
Interface            eth0
Certificates         ***REMOVED SENSITIVE VALUE***
NAT loopback         no
Uptime               44min
Nextcloud configuration

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": {
            "0": "localhost",
            "1": "192.168.148.42",
            "7": "nextcloudpi",
            "5": "nextcloudpi.local",
            "8": "nextcloudpi.lan",
            "3": "pi",
            "11": "XXXX",
            "14": "nextcloudpi",
            "20": "XXXX"
        },
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "26.0.3.2",
        "overwrite.cli.url": "https:\/\/pi\/",
        "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***",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "'/var/run/redis/redis.sock'",
            "port": 0,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "tempdirectory": "\/media\/USBdrive\/data\/tmp",
        "mail_smtpmode": "sendmail",
        "mail_smtpauthtype": "LOGIN",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "preview_max_x": "2048",
        "preview_max_y": "2048",
        "jpeg_quality": "60",
        "overwriteprotocol": "https",
        "maintenance": false,
        "logfile": "\/media\/USBdrive\/data\/nextcloud.log",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "loglevel": "2",
        "log_type": "file",
        "theme": ""
    }
}

HTTPd logs
[Sun Jul 14 01:19:14.581712 2024] [mpm_event:notice] [pid 11391:tid 11391] AH00489: Apache/2.4.61 (Debian) OpenSSL/3.0.13 configured -- resuming normal operations
[Sun Jul 14 01:19:14.581835 2024] [core:notice] [pid 11391:tid 11391] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jul 14 01:22:07.971360 2024] [proxy_fcgi:error] [pid 11392:tid 11394] [remote 192.168.148.44:55513] AH01067: Failed to read FastCGI header
[Sun Jul 14 01:22:07.971483 2024] [proxy_fcgi:error] [pid 11392:tid 11394] (104)Connection reset by peer: [remote 192.168.148.44:55513] AH01075: Error dispatching request to :4443: 
[Sun Jul 14 01:22:08.141595 2024] [mpm_event:notice] [pid 11391:tid 11391] AH00492: caught SIGWINCH, shutting down gracefully
[Sun Jul 14 01:22:11.577956 2024] [core:warn] [pid 11391:tid 11391] AH00045: child process 11392 still did not exit, sending a SIGTERM
[Sun Jul 14 01:22:13.580222 2024] [core:warn] [pid 11391:tid 11391] AH00045: child process 11392 still did not exit, sending a SIGTERM
[Sun Jul 14 01:22:15.582523 2024] [core:warn] [pid 11391:tid 11391] AH00045: child process 11392 still did not exit, sending a SIGTERM
[Sun Jul 14 01:22:17.584774 2024] [core:error] [pid 11391:tid 11391] AH00046: child process 11392 still did not exit, sending a SIGKILL
[Sun Jul 14 01:22:27.658995 2024] [ssl:warn] [pid 760:tid 760] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Jul 14 01:22:27.672024 2024] [ssl:error] [pid 760:tid 760] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=arm-build.pitowers.org / issuer: CN=arm-build.pitowers.org / serial: 538580C6ABBA0F9CBBC1CB89453D22AABBCA9327 / notbefore: May  3 03:01:35 2023 GMT / notafter: Apr 30 03:01:35 2033 GMT]
[Sun Jul 14 01:22:27.672167 2024] [ssl:error] [pid 760:tid 760] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Jul 14 01:22:27.992404 2024] [ssl:warn] [pid 943:tid 943] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Jul 14 01:22:28.004222 2024] [ssl:error] [pid 943:tid 943] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=arm-build.pitowers.org / issuer: CN=arm-build.pitowers.org / serial: 538580C6ABBA0F9CBBC1CB89453D22AABBCA9327 / notbefore: May  3 03:01:35 2023 GMT / notafter: Apr 30 03:01:35 2033 GMT]
[Sun Jul 14 01:22:28.004309 2024] [ssl:error] [pid 943:tid 943] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Jul 14 01:22:28.058640 2024] [mpm_event:notice] [pid 943:tid 943] AH00489: Apache/2.4.61 (Debian) OpenSSL/3.0.13 configured -- resuming normal operations
[Sun Jul 14 01:22:28.058779 2024] [core:notice] [pid 943:tid 943] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jul 14 02:03:07.749513 2024] [authnz_external:error] [pid 949:tid 982] (10)No child processes: [remote 192.168.148.44:55852] Could not get status from child process, referer: https://192.168.148.42:4443/
[Sun Jul 14 02:03:07.749679 2024] [authnz_external:error] [pid 949:tid 982] [remote 192.168.148.44:55852] AuthExtern pwauth [/usr/sbin/pwauth]: Failed (-5) for user ncp, referer: https://192.168.148.42:4443/
[Sun Jul 14 02:03:07.749704 2024] [auth_basic:error] [pid 949:tid 982] [remote 192.168.148.44:55852] AH01617: user ncp: authentication failure for "/img/loading-small.gif": Password Mismatch, referer: https://192.168.148.42:4443/
Database logs

tail: cannot open '/var/log/mysql/*.log' for reading: No such file or directory

Nextcloud logs
{"reqId":"ZKs-tDC6HhJ94WEJ-xf4eAAAAFY","level":3,"time":"2023-07-09T23:11:49+00:00","remoteAddr":"IP_ADRESS","user":"username","app":"PHP","method":"POST","url":"/remote.php/dav/bulk","message":"Unknown: POST data can't be buffered; all data discarded at Unknown#0","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.9.0git (build 16016) (Nextcloud, osx-21.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)","version":"26.0.1.1","data":{"app":"PHP"}}

{"reqId":"ZKs-t769URQSrg-OxloyKAAAAAU","level":3,"time":"2023-07-09T23:11:51+00:00","remoteAddr":"IP_ADRESS","user":"username","app":"PHP","method":"PUT","url":"/remote.php/dav/files/username/zettel-11-hausaufgaben.pdf","message":"fread(): file created in the system's temporary directory at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#55","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.9.0git (build 16016) (Nextcloud, osx-21.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)","version":"26.0.1.1","data":{"app":"PHP"}}

{"reqId":"ZKs-t769URQSrg-OxloyKAAAAAU","level":3,"time":"2023-07-09T23:11:51+00:00","remoteAddr":"IP_ADRESS","user":"username","app":"PHP","method":"PUT","url":"/remote.php/dav/files/username/zettel-11-hausaufgaben.pdf","message":"fread(): Unable to create temporary file, Check permissions in temporary files directory. at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#55","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.9.0git (build 16016) (Nextcloud, osx-21.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)","version":"26.0.1.1","data":{"app":"PHP"}}

{"reqId":"ZKs-t769URQSrg-OxloyKAAAAAU","level":3,"time":"2023-07-09T23:11:51+00:00","remoteAddr":"IP_ADRESS","user":"username","app":"no app in context","method":"PUT","url":"/remote.php/dav/files/username/zettel-11-hausaufgaben.pdf","message":"Expected filesize of 79733 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 8192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.9.0git (build 16016) (Nextcloud, osx-21.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)","version":"26.0.1.1","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 79733 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 8192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":149,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":366,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":297,"message":"Expected filesize of 79733 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 8192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","exception":{},"CustomMessage":"Expected filesize of 79733 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 8192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."}}

{"reqId":"ZKs-9jC6HhJ94WEJ-xf4jQAAAFI","level":3,"time":"2023-07-09T23:12:54+00:00","remoteAddr":"IP_ADRESS","user":"username","app":"webdav","method":"POST","url":"/remote.php/dav/bulk","message":"Unknown error while seeking content","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.9.0git (build 16016) (Nextcloud, osx-21.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)","version":"26.0.1.1","exception":{"Exception":"Sabre\\DAV\\Exception","Message":"Unknown error while seeking content","Code":500,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/BulkUpload/MultipartRequestParser.php","line":129,"function":"isAt","class":"OCA\\DAV\\BulkUpload\\MultipartRequestParser","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/BulkUpload/BulkUploadPlugin.php","line":71,"function":"isAtLastBoundary","class":"OCA\\DAV\\BulkUpload\\MultipartRequestParser","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPost","class":"OCA\\DAV\\BulkUpload\\BulkUploadPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":366,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/BulkUpload/MultipartRequestParser.php","Line":111,"message":"Unknown error while seeking content","exception":{},"CustomMessage":"Unknown error while seeking content"}}

{"reqId":"ZKs-9jC6HhJ94WEJ-xf4jQAAAFI","level":3,"time":"2023-07-09T23:12:54+00:00","remoteAddr":"IP_ADRESS","user":"username","app":"PHP","method":"POST","url":"/remote.php/dav/bulk","message":"Unknown: POST data can't be buffered; all data discarded at Unknown#0","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.9.0git (build 16016) (Nextcloud, osx-21.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)","version":"26.0.1.1","data":{"app":"PHP"}}

{"reqId":"ZKs--DC6HhJ94WEJ-xf4kAAAAFc","level":3,"time":"2023-07-09T23:12:56+00:00","remoteAddr":"IP_ADRESS","user":"username","app":"PHP","method":"PUT","url":"/remote.php/dav/files/username/zettel-11-hausaufgaben.pdf","message":"fread(): file created in the system's temporary directory at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#55","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.9.0git (build 16016) (Nextcloud, osx-21.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)","version":"26.0.1.1","data":{"app":"PHP"}}

{"reqId":"ZKs--DC6HhJ94WEJ-xf4kAAAAFc","level":3,"time":"2023-07-09T23:12:56+00:00","remoteAddr":"IP_ADRESS","user":"username","app":"PHP","method":"PUT","url":"/remote.php/dav/files/username/zettel-11-hausaufgaben.pdf","message":"fread(): Unable to create temporary file, Check permissions in temporary files directory. at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#55","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.9.0git (build 16016) (Nextcloud, osx-21.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)","version":"26.0.1.1","data":{"app":"PHP"}}

{"reqId":"ZKs--DC6HhJ94WEJ-xf4kAAAAFc","level":3,"time":"2023-07-09T23:12:56+00:00","remoteAddr":"IP_ADRESS","user":"username","app":"no app in context","method":"PUT","url":"/remote.php/dav/files/username/zettel-11-hausaufgaben.pdf","message":"Expected filesize of 79733 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 8192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.9.0git (build 16016) (Nextcloud, osx-21.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)","version":"26.0.1.1","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 79733 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 8192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":149,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":366,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":297,"message":"Expected filesize of 79733 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 8192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","exception":{},"CustomMessage":"Expected filesize of 79733 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 8192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."}}

{"reqId":"ZKs_WiQ5WeqTMfFT8EjrgQAAAAY","level":3,"time":"2023-07-09T23:14:34+00:00","remoteAddr":"IP_ADRESS","user":"username","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/user_status/api/v1/user_status?format=json","message":"RedisException: read error on connection to /var/run/redis/redis.sock:0 at /var/www/nextcloud/lib/private/Memcache/Redis.php#56","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.9.0git (build 16016) (Nextcloud, osx-21.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)","version":"26.0.1.1","data":{"app":"PHP"}}

{"reqId":"ZKs_WkHwxjvuWR8Vf1O0EgAAAEA","level":3,"time":"2023-07-09T23:14:34+00:00","remoteAddr":"IP_ADRESS","user":"username","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications?format=json","message":"RedisException: read error on connection to /var/run/redis/redis.sock:0 at /var/www/nextcloud/lib/private/Memcache/Redis.php#56","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.9.0git (build 16016) (Nextcloud, osx-21.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)","version":"26.0.1.1","data":{"app":"PHP"}}

{"reqId":"ZKs_WiQ5WeqTMfFT8EjrggAAAAc","level":3,"time":"2023-07-09T23:14:34+00:00","remoteAddr":"IP_ADRESS","user":"username","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/username/","message":"RedisException: read error on connection to /var/run/redis/redis.sock:0","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.9.0git (build 16016) (Nextcloud, osx-21.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)","version":"26.0.1.1","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"RedisException: read error on connection to /var/run/redis/redis.sock:0","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"{closure}","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":77,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":174,"function":"handleException"}],"File":"/var/www/nextcloud/remote.php","Line":75,"message":"RedisException: read error on connection to /var/run/redis/redis.sock:0","exception":{},"CustomMessage":"RedisException: read error on connection to /var/run/redis/redis.sock:0"}}

{"reqId":"ymMbtiGiDWgtGvn8nsQZ","level":2,"time":"2023-07-09T23:20:10+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Temporary directory /media/ssd/data/tmp is not present or writable","userAgent":"--","version":"26.0.1.1","data":[]}

{"reqId":"h5BKIFTELNbW1Xn9lFYC","level":2,"time":"2023-07-09T23:20:11+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Temporary directory /media/ssd/data/tmp is not present or writable","userAgent":"--","version":"26.0.1.1","data":[]}

{"reqId":"ZKtA40HwxjvuWR8Vf1O0QQAAAEM","level":3,"time":"2023-07-09T23:21:07+00:00","remoteAddr":"IP_ADRESS","user":"username","app":"index","method":"GET","url":"/index.php/apps/theming/img/core/filetypes/application-pdf.svg","message":"Could not create folder","userAgent":"Mozilla/5.0 (Macintosh) mirall/3.9.0git (build 16016) (Nextcloud, osx-21.6.0 ClientArchitecture: arm64 OsArchitecture: arm64)","version":"26.0.1.1","exception":{"Exception":"OCP\\Files\\NotPermittedException","Message":"Could not create folder","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/AppData/AppData.php","line":147,"function":"newFolder","class":"OC\\Files\\Node\\Folder","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ImageManager.php","line":383,"function":"newFolder","class":"OC\\Files\\AppData\\AppData","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ImageManager.php","line":173,"function":"getRootFolder","class":"OCA\\Theming\\ImageManager","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ImageManager.php","line":190,"function":"getCacheFolder","class":"OCA\\Theming\\ImageManager","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/Controller/IconController.php","line":91,"function":"getCachedImage","class":"OCA\\Theming\\ImageManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":230,"function":"getThemedIcon","class":"OCA\\Theming\\Controller\\IconController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":137,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1056,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Node/Folder.php","Line":166,"CustomMessage":"--"}}

{"reqId":"ZKtA9kHwxjvuWR8Vf1O0ZAAARhY","level":3,"time":"2023-07-09T23:21:26+00:00","remoteAddr":"IP_ADRESS","user":"username","app":"PHP","method":"PUT","url":"/remote.php/webdav/ok.mp3","message":"fread(): file created in the system's temporary directory at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#55","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36","version":"26.0.1.1","data":{"app":"PHP"}}

{"reqId":"ZKtA9kHwxjvuWR8Vf1O0ZAAARhY","level":3,"time":"2023-07-09T23:21:26+00:00","remoteAddr":"IP_ADRESS","user":"username","app":"PHP","method":"PUT","url":"/remote.php/webdav/ok.mp3","message":"fread(): Unable to create temporary file, Check permissions in temporary files directory. at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#55","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36","version":"26.0.1.1","data":{"app":"PHP"}}

{"reqId":"ZKtA9kHwxjvuWR8Vf1O0ZAAARhY","level":3,"time":"2023-07-09T23:21:26+00:00","remoteAddr":"IP_ADRESS","user":"username","app":"no app in context","method":"PUT","url":"/remote.php/webdav/ok.mp3","message":"Expected filesize of 528818 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 8192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36","version":"26.0.1.1","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 528818 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 8192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":149,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php","line":85,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":297,"message":"Expected filesize of 528818 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 8192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","exception":{},"CustomMessage":"Expected filesize of 528818 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 8192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."}}

{"reqId":"BxLEed97VCHlx1Lo9EcL","level":2,"time":"2023-07-09T23:29:04+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Temporary directory /media/ssd1/ncdata/data/tmp is not present or writable","userAgent":"--","version":"26.0.1.1","data":[]}

{"reqId":"6bXypA3ZpVrxmrXATI8B","level":2,"time":"2023-07-09T23:29:05+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message":"Temporary directory /media/ssd1/ncdata/data/tmp is not present or writable","userAgent":"--","version":"26.0.1.1","data":[]}

NOTE: The last entries in the logs seem to be from 2023

So far I have tried:

  • Fiddeling with the redis configuration → but doesn’t seem to be the problem
  • Repairing the permissions using the nc-fix-permissions tool.

I suspect apache2 is causing the problems but I am not really sure if thats true.

Perhaps you may take a look there:
Did ncp-dist-upgrade break your (Raspberry Pi) installation? Here’s how to get it back

Tried this while waiting for my question to be accepted. Sadly I am still getting an internal server error.
I looked into the apache2 nc-error.log and found the following:

[Sun Jul 14 03:37:28.131557 2024] [core:error] [pid 949:tid 1030] [client 39.109.126.254:53564] AH10244: invalid URI path (/cgi-bin/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/bin/sh)
[Sun Jul 14 03:37:29.812578 2024] [core:error] [pid 949:tid 1036] [client 39.109.126.254:53714] AH10244: invalid URI path (/cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/bin/sh)
[Sun Jul 14 16:35:55.806832 2024] [proxy_fcgi:error] [pid 32902:tid 32914] [remote IP:60438] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught OCP\\HintException: [0]: Memcache \\OC\\Memcache\\Redis not available for local cache (Is the matching PHP module installed and enabled?)\n\n  thrown in /var/www/nextcloud/lib/private/Memcache/Factory.php on line 90'
[Sun Jul 14 16:36:15.810012 2024] [proxy_fcgi:error] [pid 32902:tid 32940] [remote IP:60440] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught OCP\\HintException: [0]: Memcache \\OC\\Memcache\\Redis not available for local cache (Is the matching PHP module installed and enabled?)\n\n  thrown in /var/www/nextcloud/lib/private/Memcache/Factory.php on line 90'
[Sun Jul 14 16:36:24.268240 2024] [proxy_fcgi:error] [pid 32902:tid 32909] [remote IP:60440] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught OCP\\HintException: [0]: Memcache \\OC\\Memcache\\Redis not available for local cache (Is the matching PHP module installed and enabled?)\n\n  thrown in /var/www/nextcloud/lib/private/Memcache/Factory.php on line 90'
[Sun Jul 14 16:36:27.010014 2024] [proxy_fcgi:error] [pid 32902:tid 32914] [remote IP:60440] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught OCP\\HintException: [0]: Memcache \\OC\\Memcache\\Redis not available for local cache (Is the matching PHP module installed and enabled?)\n\n  thrown in /var/www/nextcloud/lib/private/Memcache/Factory.php on line 90'
[Sun Jul 14 16:36:54.904319 2024] [proxy_fcgi:error] [pid 32902:tid 32918] [remote IP:60443] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught OCP\\HintException: [0]: Memcache \\OC\\Memcache\\Redis not available for local cache (Is the matching PHP module installed and enabled?)\n\n  thrown in /var/www/nextcloud/lib/private/Memcache/Factory.php on line 90'
[Sun Jul 14 16:36:55.112148 2024] [proxy_fcgi:error] [pid 32902:tid 32921] [remote IP:60443] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught OCP\\HintException: [0]: Memcache \\OC\\Memcache\\Redis not available for local cache (Is the matching PHP module installed and enabled?)\n\n  thrown in /var/www/nextcloud/lib/private/Memcache/Factory.php on line 90'
[Sun Jul 14 16:37:04.079922 2024] [proxy_fcgi:error] [pid 32902:tid 32925] [remote IP:60444] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught OCP\\HintException: [0]: Memcache \\OC\\Memcache\\Redis not available for local cache (Is the matching PHP module installed and enabled?)\n\n  thrown in /var/www/nextcloud/lib/private/Memcache/Factory.php on line 90'
[Sun Jul 14 16:37:04.562838 2024] [proxy_fcgi:error] [pid 32902:tid 32931] [remote IP:60444] AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught OCP\\HintException: [0]: Memcache \\OC\\Memcache\\Redis not available for local cache (Is the matching PHP module installed and enabled?)\n\n  thrown in /var/www/nextcloud/lib/private/Memcache/Factory.php on line 90'
[Sun Jul 14 16:47:07.186044 2024] [proxy_fcgi:error] [pid 38563:tid 38661] (70007)The timeout specified has expired: [client 195.170.172.128:45410] AH01075: Error dispatching request to : (reading input brigade)

So try first to update nc to 27 then to 28 and then try ncp-dist-upgrade.

2 Likes

Thank you very much! The problem solved itself after updating to the newest version of nextcloud 28

1 Like

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