Skip to content

[Bug]: memcache.local #56789

@Schubi2024

Description

@Schubi2024

⚠️ This issue respects the following points: ⚠️

Bug description

Bei aktiviertem memcache.local funktionieren einige Apps nach einiger Zeit nicht mehr. Es kommt die Fehlermeldung "Seite nicht gefunden".
Es sind nicht Core-Apps wie ocs_api_viewer, passwords, sharereview usw. betroffen.
Das Problem tritt bei
'memcache.local' => '\OC\Memcache\APCu'
und
'memcache.locking' => '\OC\Memcache\Redis'
auf.
Ein umschalten des 'memcache.local' hilft nur temporär für einige Zeit. Nach mehrmaligem hin her her schalten muss ich den 'memcache.local' deaktivieren etwas warten und kann dann von vorn mit aktivieren und deaktivieren anfangen.


When memcache.local is enabled, some apps stop working after a while. The error message "Page not found" appears.
Core apps such as ocs_api_viewer, passwords, sharereview, etc. are not affected.
The problem occurs with
'memcache.local' => '\OC\Memcache\APCu'
and
'memcache.locking' => '\OC\Memcache\Redis'.

Switching 'memcache.local' only helps temporarily for a while. After switching back and forth several times, I have to deactivate 'memcache.local', wait a while, and then I can start activating and deactivating again.

Image

Steps to reproduce

1.aktivieren: 'memcache.local' => '\OC\Memcache\APCu'
2.warten bis Fehler auftritt
3.aktivieren: 'memcache.local' => '\OC\Memcache\Redis'
4.warten bis Fehler auftritt
5.'memcache.local' komplett deaktivieren
6. warten und bei 1. wieder anfangen


  1. Activate: 'memcache.local' => '\OC\Memcache\APCu'
  2. Wait until an error occurs
  3. Activate: 'memcache.local' => '\OC\Memcache\Redis'
  4. Wait until an error occurs
  5. Completely deactivate 'memcache.local'
  6. Wait and start again at 1.

Expected behavior

Das die Apps mit aktiviertem 'memcache.local' wie unter NC 31 funktionieren.

Nextcloud Server version

32

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.4

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 31 to 32)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "nextcloud.my.de",
            "Nextcloud.my.local"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "32.0.2.2",
        "overwrite.cli.url": "https:\/\/nextcloud.my.de",
        "overwritehost": "nextcloud.my.de",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "activity_expire_days": 14,
        "auth.bruteforce.protection.enabled": true,
        "forbidden_filenames": [
            ".htaccess",
            "Thumbs.db",
            "thumbs.db"
        ],
        "cron_log": true,
        "enable_previews": true,
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Movie",
            "OC\\Preview\\PDF",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\Image",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\TIFF",
            "OC\\Preview\\MKV",
            "OC\\Preview\\MP4",
            "OC\\Preview\\AVI"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "filesystem_check_changes": 1,
        "check_data_directory_permissions": false,
        "default_phone_region": "DE",
        "default_language": "de",
        "default_locale": "de_DE",
        "lost_password_link": "disabled",
        "filelocking.enabled": "false",
        "allow_self_signed": true,
        "allow_local_address": true,
        "allow_local_remote_servers": true,
        "share_folder": "\/Shares",
        "htaccess.RewriteBase": "\/",
        "integrity.check.disabled": false,
        "knowledgebaseenabled": false,
        "logfile": "\/var\/tmp\/nextcloud.log",
        "loglevel": 2,
        "logtimezone": "Europe\/Berlin",
        "log_rotate_size": 104857600,
        "maintenance": false,
        "maintenance_window_start": 1,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "cache_app_config": true,
        "overwriteprotocol": "https",
        "preview_max_x": 2048,
        "preview_max_y": 2048,
        "preview_max_scale_factor": 1,
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "password": "***REMOVED SENSITIVE VALUE***",
            "timeout": 0.5,
            "dbindex": 1
        },
        "quota_include_external_storage": false,
        "skeletondirectory": "\/mnt\/nextclouddata\/benutzer_vorlage",
        "theme": "",
        "trashbin_retention_obligation": "auto, 7",
        "updater.release.channel": "stable",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "mail_smtptimeout": 30,
        "mail_smtpauthtype": "NTLM",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "app_install_overwrite": [],
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [
            "Speziale"
        ],
        "remember_login_cookie_lifetime": 0,
        "session_lifetime": 900,
        "session_keepalive": false,
        "auto_logout": true,
        "forbidden_filename_characters": [
            "<",
            ">",
            ":",
            "\"",
            "|",
            "?",
            "*",
            "\\",
            "\/"
        ],
        "forbidden_filename_extensions": [
            " ",
            ".",
            ".filepart",
            ".part"
        ],
        "memories.db.triggers.fcu": true,
        "memories.exiftool": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-glibc",
        "memories.vod.path": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "memories.gis_type": 1,
        "preview_max_memory": 2028,
        "preview_max_filesize_image": 512,
        "forbidden_filename_basenames": [
            "con",
            "prn",
            "aux",
            "nul",
            "com0",
            "com1",
            "com2",
            "com3",
            "com4",
            "com5",
            "com6",
            "com7",
            "com8",
            "com9",
            "com\u00b9",
            "com\u00b2",
            "com\u00b3",
            "lpt0",
            "lpt1",
            "lpt2",
            "lpt3",
            "lpt4",
            "lpt5",
            "lpt6",
            "lpt7",
            "lpt8",
            "lpt9",
            "lpt\u00b9",
            "lpt\u00b2",
            "lpt\u00b3"
        ],
        "defaultapp": "dashboard"
    }
}

List of activated Apps

Enabled:
  - activity: 5.0.0-dev.0
  - admin_audit: 1.22.0
  - announcementcenter: 7.2.2
  - bruteforcesettings: 5.0.0-dev.0
  - calendar: 6.1.0
  - circles: 32.0.0
  - cloud_federation_api: 1.16.0
  - collectives: 3.3.0
  - comments: 1.22.0
  - contacts: 8.1.0
  - contactsinteraction: 1.13.1
  - csp_editor: 1.8.0
  - dashboard: 7.12.0
  - dav: 1.34.2
  - deck: 1.16.2
  - external: 7.0.0
  - federatedfilesharing: 1.22.0
  - federation: 1.22.0
  - files: 2.4.0
  - files_accesscontrol: 3.0.2
  - files_antivirus: 6.1.0
  - files_automatedtagging: 3.0.1
  - files_downloadlimit: 5.0.0-dev.0
  - files_fulltextsearch: 32.0.2
  - files_pdfviewer: 5.0.0-dev.0
  - files_reminders: 1.5.0
  - files_retention: 3.0.0
  - files_sharing: 1.24.1
  - files_trashbin: 1.22.0
  - files_versions: 1.25.0
  - forms: 5.2.3
  - fulltextsearch: 32.0.0
  - fulltextsearch_elasticsearch: 32.0.0
  - impersonate: 3.0.0
  - integration_mastodon: 4.0.0
  - logreader: 5.0.0-dev.0
  - lookup_server_connector: 1.20.0
  - memories: 7.7.0
  - news: 27.2.0
  - nextcloud_announcements: 4.0.0-dev.0
  - notes: 4.12.4
  - notifications: 5.0.0-dev.0
  - notify_push: 1.2.1
  - oauth2: 1.20.0
  - ocs_api_viewer: 1.0.11
  - password_policy: 4.0.0-dev.0
  - passwords: 2025.11.20
  - photos: 5.0.0-dev.1
  - previewgenerator: 5.11.0
  - privacy: 4.0.0-dev.0
  - profile: 1.1.0
  - provisioning_api: 1.22.0
  - recommendations: 5.0.0-dev.0
  - related_resources: 3.0.0-dev.0
  - richdocuments: 9.0.2
  - richdocumentscode: 25.4.702
  - serverinfo: 4.0.0-dev.0
  - settings: 1.15.1
  - sharebymail: 1.22.0
  - sharereview: 2.0.0
  - spreed: 22.0.4
  - support: 4.0.0-dev.0
  - systemtags: 1.22.0
  - tables: 1.0.1
  - text: 6.0.1
  - theming: 2.7.0
  - thesearchpage: 1.2.16
  - twofactor_backupcodes: 1.21.0
  - twofactor_totp: 14.0.0
  - twofactor_webauthn: 2.4.1
  - updatenotification: 1.22.0
  - user_status: 1.12.0
  - viewer: 5.0.0-dev.0
  - weather_status: 1.12.0
  - webhook_listeners: 1.3.0
  - whiteboard: 1.4.2
  - workflow_script: 3.0.0
  - workflowengine: 2.14.0
Disabled:
  - app_api: 32.0.0 (installed 3.2.0)
  - encryption: 2.20.0
  - files_external: 1.24.0 (installed 1.23.0)
  - firstrunwizard: 5.0.0-dev.0 (installed 2.9.0)
  - survey_client: 4.0.0-dev.0 (installed 1.8.0)
  - suspicious_login: 10.0.0-dev.0
  - twofactor_nextcloud_notification: 6.0.0-dev.0 (installed 5.0.0)
  - user_ldap: 1.23.0

Nextcloud Signing status

Nextcloud Logs

Additional info

"cache_app_config": true, wurde von der Community vorgeschlagen brachte aber keine Erfolg.
Das Problem tritt unter Debian 12 und 13 sowie PHP 8.3 und 8.4 auf.

Das
'host' = '/var/run/redis/redis-server.sock',
'port' = 0,
oder das
'host' = '127.0.0.1',
'port' = 6379,
hat auch nicht geholfen.


"cache_app_config": true, was suggested by the community but did not work.
The problem occurs under Debian 12 and 13 as well as PHP 8.3 and 8.4.

The
'host' = '/var/run/redis/redis-server.sock',
'port' = 0,
or the
'host' = '127.0.0.1',
'port' = 6379,
did not help either.

Metadata

Metadata

Assignees

Type

Projects

Status

🏗️ In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions