⚠️ This issue respects the following points: ⚠️
Bug description
When I enable redis caching the server stops working and throws 500 errors.
Steps to reproduce
- Uncomment the setting in
config.php:
'memcache.local' => '\\OC\\Memcache\\APCu',
#'memcache.locking' => '\\OC\\Memcache\\Redis', ← ## This one ##
'redis' =>
array (
'host' => '/run/redis/redis.sock',
'port' => 0,
),
- restart
php-fpm with systemctl restart php-fpm
- In the webbrowser reload the page → All white and says error 500 in the request log.
Expected behavior
Well no error and loading the page fast (after warmup)
Nextcloud Server version
master
Operating system
Other
PHP engine version
PHP 8.3
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 28 to 29)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"my.domain.de"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "https:\/\/my.domain.de",
"dbtype": "pgsql",
"version": "30.0.0.14",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"logtimezone": "UTC",
"installed": true,
"appstore.experimental.enabled": true,
"mail_smtpmode": "smtp",
"mail_smtpsecure": "ssl",
"mail_smtpauth": 1,
"mail_smtpport": "465",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauthtype": "LOGIN",
"mail_sendmailmode": "smtp",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"maintenance": false,
"updater.release.channel": "stable",
"log_type": "systemd",
"syslog_tag": "Nextcloud",
"loglevel": 2,
"logfile": "",
"log_type_audit": "systemd",
"syslog_tag_audit": "Nextcloud-Audit",
"logfile_audit": "",
"logdateformat": "d. F Y H:i:s",
"customclient_android": "https:\/\/f-droid.org\/repository\/browse\/?fdid=com.nextcloud.client",
"app.mail.imaplog.enabled": true,
"theme": "",
"memcache.local": "\\OC\\Memcache\\APCu",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0
},
"mysql.utf8mb4": true,
"app_install_overwrite": [
"mail",
"onlyoffice",
"deck",
"news",
"polls",
"calendar",
"files_markdown",
"maps",
"contacts",
"spreed",
"documentserver_community",
"groupfolders",
"circles",
"richdocumentscode",
"suspicious_login",
"appointments",
"issuetemplate",
"bbb",
"impersonate"
],
"data-fingerprint": "bc67efc91548dde65549f2d69cc78629",
"default_phone_region": "DE",
"maintenance_window_start": 1
}
}
List of activated Apps
Enabled:
- activity: 3.0.0
- admin_audit: 1.20.0
- appointments: 2.1.10
- calendar: 5.0.0
- calendar_resource_management: 0.8.0
- circles: 30.0.0-dev
- cloud_federation_api: 1.13.0
- collectives: 2.14.3
- comments: 1.20.1
- contacts: 6.1.0
- contactsinteraction: 1.11.0
- dashboard: 7.10.0
- dav: 1.31.1
- deck: 1.13.1
- federatedfilesharing: 1.20.0
- federation: 1.20.0
- files: 2.2.0
- files_downloadlimit: 3.0.0
- files_pdfviewer: 3.0.0
- files_reminders: 1.3.0
- files_sharing: 1.22.0
- files_trashbin: 1.20.1
- files_versions: 1.23.0
- impersonate: 1.17.0
- issuetemplate: 0.7.0
- lookup_server_connector: 1.18.0
- mail: 4.0.0
- maps: 1.4.0
- news: 25.0.0-alpha8
- nextcloud_announcements: 2.0.0
- notifications: 3.0.0
- oauth2: 1.18.1
- password_policy: 2.0.0
- photos: 3.0.2
- polls: 7.2.3
- privacy: 2.0.0
- provisioning_api: 1.20.0
- recommendations: 3.0.0
- related_resources: 1.5.0
- richdocuments: 8.5.0
- richdocumentscode: 24.4.702
- serverinfo: 2.0.0
- settings: 1.13.0
- sharebymail: 1.20.0
- spreed: 20.0.0
- survey_client: 2.0.0
- suspicious_login: 8.0.0
- systemtags: 1.20.0
- tasks: 0.16.1
- text: 4.1.0
- theming: 2.5.0
- twofactor_backupcodes: 1.19.0
- updatenotification: 1.20.0
- viewer: 3.0.0
- webhook_listeners: 1.1.0-dev
- workflowengine: 2.12.0
Disabled:
- bbb: 2.6.0 (installed 2.6.0)
- bruteforcesettings: 3.0.0 (installed 2.1.0)
- encryption: 2.18.0 (installed 2.5.0)
- event_update_notification: 2.4.0 (installed 2.4.0)
- files_external: 1.22.0
- files_rightclick: 0.15.1 (installed 1.6.0)
- firstrunwizard: 3.0.0 (installed 2.15.0)
- forms: 4.2.4 (installed 4.2.4)
- holiday_calendars: 0.3.0 (installed 0.3.0)
- logreader: 3.0.0 (installed 2.14.0)
- phonetrack: 0.8.1 (installed 0.8.1)
- support: 2.0.0 (installed 1.4.0)
- theming_customcss: 1.17.0 (installed 1.17.0)
- twofactor_nextcloud_notification: 4.0.0
- twofactor_totp: 12.0.0-dev (installed 6.0.0)
- user_ldap: 1.21.0
- user_status: 1.10.0 (installed 1.1.1)
- weather_status: 1.10.0 (installed 1.1.0)
Nextcloud Signing status
no errors have been found
Nextcloud Logs
Additional info
This is actually Nextcloud 30 (but not selectable in the dropdown)
In the nginx error log there are errors like:
2024/09/15 11:49:23 [error] 4717#4717: *1517 FastCGI sent in stderr: "PHP message: PHP Fatal error: Access level to OC\Memcache\Redis::DEFAULT_TTL must be public (as in interface OCP\ICache) in /var/www/Nextcloud/lib/private/Memcache/Redis.php on line 34" while reading response header from upstream, client: [ipv4], server: nc.teilgedanken.de, request: "GET /index.php/apps/files/preview-service-worker.js HTTP/2.0", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "my.domain.de"
2024/09/15 11:49:27 [error] 4716#4716: *4594 FastCGI sent in stderr: "PHP message: PHP Fatal error: Access level to OC\Memcache\Redis::DEFAULT_TTL must be public (as in interface OCP\ICache) in /var/www/Nextcloud/lib/private/Memcache/Redis.php on line 34" while reading response header from upstream, client: [ipv6], server: nc.teilgedanken.de, request: "GET /apps/richdocuments/settings/fonts.json HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "my.domain.de"
Bug description
When I enable redis caching the server stops working and throws 500 errors.
Steps to reproduce
config.php:php-fpmwithsystemctl restart php-fpmExpected behavior
Well no error and loading the page fast (after warmup)
Nextcloud Server version
master
Operating system
Other
PHP engine version
PHP 8.3
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 28 to 29)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
{ "system": { "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "my.domain.de" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "overwrite.cli.url": "https:\/\/my.domain.de", "dbtype": "pgsql", "version": "30.0.0.14", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "logtimezone": "UTC", "installed": true, "appstore.experimental.enabled": true, "mail_smtpmode": "smtp", "mail_smtpsecure": "ssl", "mail_smtpauth": 1, "mail_smtpport": "465", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_smtpauthtype": "LOGIN", "mail_sendmailmode": "smtp", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "maintenance": false, "updater.release.channel": "stable", "log_type": "systemd", "syslog_tag": "Nextcloud", "loglevel": 2, "logfile": "", "log_type_audit": "systemd", "syslog_tag_audit": "Nextcloud-Audit", "logfile_audit": "", "logdateformat": "d. F Y H:i:s", "customclient_android": "https:\/\/f-droid.org\/repository\/browse\/?fdid=com.nextcloud.client", "app.mail.imaplog.enabled": true, "theme": "", "memcache.local": "\\OC\\Memcache\\APCu", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": 0 }, "mysql.utf8mb4": true, "app_install_overwrite": [ "mail", "onlyoffice", "deck", "news", "polls", "calendar", "files_markdown", "maps", "contacts", "spreed", "documentserver_community", "groupfolders", "circles", "richdocumentscode", "suspicious_login", "appointments", "issuetemplate", "bbb", "impersonate" ], "data-fingerprint": "bc67efc91548dde65549f2d69cc78629", "default_phone_region": "DE", "maintenance_window_start": 1 } }List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
This is actually Nextcloud 30 (but not selectable in the dropdown)
In the nginx error log there are errors like: