nextcloud / nextcloud/nextcloudpi
503 Service unavailable and calendar/contact loading
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 2.9k
- Forks
- 318
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
after problems with infinite calendar-load and "503 servicxe unavailabe" I exported all calendars/contact and data in nc-version 27.
Then setting up a new ncp-intance on rpi4.
Running wizard für external USB-Drive. Enabled ssh and log2ram.
Updating ncp to 1.52.4.
Setting up all users (only username and pw) and installed the app "bookmarks".
Updating nextcloud via ncp-config.
Installed imagick and libmagickcore.
Importing *.vcf, *.ics and all data for each user.
Was running good for 2 days without reboot. After reboot login for users via web is possible, but in data-tab "503 Service Unavailable". In Contacts are now imported contacts are shown. Most calendars are not loading.
I've added in config.php the redis-user 'default', but that changed nothing.
redis-server and php8.1-fpm are running.
System information
NextcloudPi diagnostics
NextcloudPi version v1.52.4
NextcloudPi image NextCloudPi_RaspberryPi_v1.52.2.img
OS Debian GNU/Linux 11. 5.15.61-v8+ (aarch64)
automount yes
USB devices sda
datadir /media/myCloudDrive/ncdata/data
data in SD no
data filesystem btrfs
data disk usage 4.4G/466G
rootfs usage 2.9G/29G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 27.0.1.2
HTTPD service up
PHP service up
MariaDB service up
Redis service up
HPB service up
Postfix service up
Internet check ok
Public IPv4 ***REMOVED SENSITIVE VALUE***
Public IPv6 ***REMOVED SENSITIVE VALUE***
Port 80 closed
Port 443 closed
IP ***REMOVED SENSITIVE VALUE***
Gateway ***REMOVED SENSITIVE VALUE***
Interface eth0
Certificates ***REMOVED SENSITIVE VALUE***
NAT loopback no
Uptime 3min
Nextcloud configuration
{
"system": {
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": {
"0": "localhost",
"7": "nextcloudpi",
"5": "nextcloudpi.local",
"8": "nextcloudpi.lan",
"3": "nextcloudpi",
"11": "2003:db:3f4a:4800:aa2:985d:b557:2051",
"1": "192.168.1.97",
"14": "nextcloudpi"
},
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "27.0.1.2",
"overwrite.cli.url": "https:\/\/nextcloudpi\/",
"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": "***REMOVED SENSITIVE VALUE***",
"user": "default",
"port": 0,
"timeout": 0,
"password": "***REMOVED SENSITIVE VALUE***"
},
"tempdirectory": "\/media\/myCloudDrive\/ncdata\/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\/myCloudDrive\/ncdata\/data\/nextcloud.log",
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"loglevel": "2",
"log_type": "file",
"default_phone_region": "DE"
}
}
HTTPd logs
[Sun Nov 12 19:36:54.451220 2023] [mpm_event:notice] [pid 1078:tid 548227511360] AH00489: Apache/2.4.56 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations
[Sun Nov 12 19:36:54.451298 2023] [core:notice] [pid 1078:tid 548227511360] AH00094: Command line: '/usr/sbin/apache2'
[Sun Nov 12 19:48:56.746367 2023] [mpm_event:notice] [pid 1078:tid 548227511360] AH00492: caught SIGWINCH, shutting down gracefully
[Sun Nov 12 19:49:04.722500 2023] [ssl:warn] [pid 643:tid 548138660928] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 12 19:49:04.722831 2023] [ssl:error] [pid 643:tid 548138660928] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=fv-az83-474 / issuer: CN=fv-az83-474 / serial: 138C9125F0C613A164DD420FEB2DF95A6552B53F / notbefore: Jul 19 12:36:44 2023 GMT / notafter: Jul 16 12:36:44 2033 GMT]
[Sun Nov 12 19:49:04.722859 2023] [ssl:error] [pid 643:tid 548138660928] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Nov 12 19:49:04.784523 2023] [ssl:warn] [pid 1144:tid 548138660928] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 12 19:49:04.784745 2023] [ssl:error] [pid 1144:tid 548138660928] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=fv-az83-474 / issuer: CN=fv-az83-474 / serial: 138C9125F0C613A164DD420FEB2DF95A6552B53F / notbefore: Jul 19 12:36:44 2023 GMT / notafter: Jul 16 12:36:44 2033 GMT]
[Sun Nov 12 19:49:04.784758 2023] [ssl:error] [pid 1144:tid 548138660928] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Nov 12 19:49:04.789359 2023] [mpm_event:notice] [pid 1144:tid 548138660928] AH00489: Apache/2.4.56 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations
[Sun Nov 12 19:49:04.789445 2023] [core:notice] [pid 1144:tid 548138660928] AH00094: Command line: '/usr/sbin/apache2'
[Sun Nov 12 19:59:57.960093 2023] [mpm_event:notice] [pid 1144:tid 548138660928] AH00492: caught SIGWINCH, shutting down gracefully
[Sun Nov 12 20:00:05.347877 2023] [ssl:warn] [pid 638:tid 548440577088] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 12 20:00:05.367315 2023] [ssl:error] [pid 638:tid 548440577088] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=fv-az83-474 / issuer: CN=fv-az83-474 / serial: 138C9125F0C613A164DD420FEB2DF95A6552B53F / notbefore: Jul 19 12:36:44 2023 GMT / notafter: Jul 16 12:36:44 2033 GMT]
[Sun Nov 12 20:00:05.367400 2023] [ssl:error] [pid 638:tid 548440577088] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Nov 12 20:00:05.449915 2023] [ssl:warn] [pid 1126:tid 548440577088] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Sun Nov 12 20:00:05.450241 2023] [ssl:error] [pid 1126:tid 548440577088] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: CN=fv-az83-474 / issuer: CN=fv-az83-474 / serial: 138C9125F0C613A164DD420FEB2DF95A6552B53F / notbefore: Jul 19 12:36:44 2023 GMT / notafter: Jul 16 12:36:44 2033 GMT]
[Sun Nov 12 20:00:05.450292 2023] [ssl:error] [pid 1126:tid 548440577088] AH02604: Unable to configure certificate localhost:4443:0 for stapling
[Sun Nov 12 20:00:05.456009 2023] [mpm_event:notice] [pid 1126:tid 548440577088] AH00489: Apache/2.4.56 (Debian) OpenSSL/1.1.1w configured -- resuming normal operations
[Sun Nov 12 20:00:05.456142 2023] [core:notice] [pid 1126:tid 548440577088] AH00094: Command line: '/usr/sbin/apache2'
Database logs
tail: cannot open '/var/log/mysql/*.log' for reading: No such file or directory
Nextcloud logs
{"reqId":"2BFTXl7fubQg1ECpCHqO","level":1,"time":"2023-11-08T20:52:58+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Repair DAV shares","userAgent":"--","version":"26.0.3.2","data":{"app":"updater"}}
{"reqId":"2BFTXl7fubQg1ECpCHqO","level":1,"time":"2023-11-08T20:52:58+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add background job to set the lookup server share state for users","userAgent":"--","version":"26.0.3.2","data":{"app":"updater"}}
{"reqId":"2BFTXl7fubQg1ECpCHqO","level":1,"time":"2023-11-08T20:52:58+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add token cleanup job","userAgent":"--","version":"26.0.3.2","data":{"app":"updater"}}
{"reqId":"2BFTXl7fubQg1ECpCHqO","level":1,"time":"2023-11-08T20:52:58+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Clean up abandoned apps","userAgent":"--","version":"26.0.3.2","data":{"app":"updater"}}
{"reqId":"2BFTXl7fubQg1ECpCHqO","level":1,"time":"2023-11-08T20:52:58+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Add possibly missing system config","userAgent":"--","version":"26.0.3.2","data":{"app":"updater"}}
{"reqId":"2BFTXl7fubQg1ECpCHqO","level":1,"time":"2023-11-08T20:52:58+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::startCheckCodeIntegrity: Starting code integrity check...","userAgent":"--","version":"26.0.3.2","data":{"app":"updater"}}
{"reqId":"2BFTXl7fubQg1ECpCHqO","level":1,"time":"2023-11-08T20:53:09+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::finishedCheckCodeIntegrity: Finished code integrity check","userAgent":"--","version":"26.0.3.2","data":{"app":"updater"}}
{"reqId":"2BFTXl7fubQg1ECpCHqO","level":1,"time":"2023-11-08T20:53:09+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::updateEnd: Update successful","userAgent":"--","version":"27.0.1.2","data":{"app":"updater"}}
{"reqId":"2BFTXl7fubQg1ECpCHqO","level":1,"time":"2023-11-08T20:53:09+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"--","version":"27.0.1.2","data":{"app":"updater"}}
{"reqId":"2BFTXl7fubQg1ECpCHqO","level":1,"time":"2023-11-08T20:53:09+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"27.0.1.2","data":{"app":"updater"}}
{"reqId":"ZUv2UscdwyhWWgFZMzT4gQAAEgM","level":3,"time":"2023-11-08T20:57:55+00:00","remoteAddr":"192.168.1.46","user":"--","app":"remote","method":"PROPFIND","url":"/remote.php/dav/calendars/ncp/","message":"read error on connection to /var/run/redis/redis.sock:0","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0","version":"27.0.1.2","exception":{"Exception":"RedisException","Message":"read error on connection to /var/run/redis/redis.sock:0","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":143,"function":"auth","class":"Redis","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":178,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":66,"function":"getInstance","class":"OC\\RedisFactory","type":"->"},{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":72,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/InfoParser.php","line":58,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":732,"function":"parse","class":"OC\\App\\InfoParser","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":434,"function":"getAppInfo","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":71,"function":"getAppInfo","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":155,"function":"buildAppNamespace","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":119,"function":"registerAutoloading","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":90,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":703,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1180,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/remote.php","line":119,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/RedisFactory.php","Line":143,"message":"read error on connection to /var/run/redis/redis.sock:0","exception":{},"CustomMessage":"read error on connection to /var/run/redis/redis.sock:0"}}
{"reqId":"ZUv2UscdwyhWWgFZMzT4gQAAEgM","level":3,"time":"2023-11-08T20:57:55+00:00","remoteAddr":"192.168.1.46","user":"--","app":"core","method":"PROPFIND","url":"/remote.php/dav/calendars/ncp/","message":"read error on connection to /var/run/redis/redis.sock:0","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/119.0","version":"27.0.1.2","exception":{"Exception":"RedisException","Message":"read error on connection to /var/run/redis/redis.sock:0","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":143,"function":"auth","class":"Redis","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/RedisFactory.php","line":178,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":66,"function":"getInstance","class":"OC\\RedisFactory","type":"->"},{"file":"/var/www/nextcloud/lib/private/Memcache/Redis.php","line":72,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/InfoParser.php","line":58,"function":"get","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":732,"function":"parse","class":"OC\\App\\InfoParser","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":434,"function":"getAppInfo","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":71,"function":"getAppInfo","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":155,"function":"buildAppNamespace","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":119,"function":"registerAutoloading","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":90,"function":"registerApps","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":703,"function":"runInitialRegistration","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":1180,"function":"init","class":"OC","type":"::"},{"file":"/var/www/nextcloud/remote.php","line":119,"args":["/var/www/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/RedisFactory.php","Line":143,"CustomMessage":"--"}}
Nextcloud logs were too long. Above Part 1.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Nextcloud log entry for the DAV request and read /var/www/nextcloud/lib/private/RedisFactory.php and lib/private/Memcache/Redis.php around the RedisException. Check the Redis socket and the reported service configuration on the Raspberry Pi, then compare the failing calendar, contact, and data requests. Done means identifying a reproducible cause and documenting or verifying the corrective change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- apache, php, raspberry-pi, redis
- Domain
- backend, databases, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 18/100