Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using memcached does not setup correctly #17

Closed
patrickjahns opened this issue Feb 13, 2018 · 1 comment
Closed

Using memcached does not setup correctly #17

patrickjahns opened this issue Feb 13, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@patrickjahns
Copy link
Contributor

When using the following environment variables

      - OWNCLOUD_MEMCACHED_ENABLED=true
      - OWNCLOUD_MEMCACHED_HOST=memcached

The configuration during boot process is not properly setup, since https://github.com/owncloud-docker/base/blob/master/rootfs/etc/owncloud.d/55-redis.sh will override (remove) the params again.

Log output:

owncloud_1   | Enabling memcached config...
owncloud_1   | System config value memcache.distributed set to string \OC\Memcache\Memcached
owncloud_1   | System config value memcache.locking set to string \OC\Memcache\Memcached
owncloud_1   | System config value memcached_servers set to string MEMCACHED
owncloud_1   | Disabling redis config...
owncloud_1   | System config value memcache.distributed deleted
owncloud_1   | System config value memcache.locking deleted
owncloud_1   | System config value redis deleted
owncloud_1   | Enabling file locking...

Relevant output of occ config:list

    "system": {
        "datadirectory": "\/mnt\/data\/files",
        "updatechecker": "false",
        "upgrade.disable-web": true,
        "apps_paths": [
            {
                "path": "\/var\/www\/owncloud\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/owncloud\/custom",
                "url": "\/custom",
                "writable": true
            }
        ],
        "dbtype": "mysql",
        "dbhost": "db:3306",
        "dbname": "owncloud",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "trusted_domains": [
            "localhost"
        ],
        "mysql.utf8mb4": true,
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "overwrite.cli.url": "http:\/\/localhost\/",
        "version": "10.0.6.1",
        "logtimezone": "UTC",
        "installed": true,
        "instanceid": "ocnraeq9ny4u",
        "filelocking.enabled": "true",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "loglevel": "2",
        "default_language": "en",
        "htaccess.RewriteBase": "\/",
        "memcached_servers": [
            "memcached",
            11211
        ]
    },

Expected behavior

memcache.distributed and memcache.locking stay configured with \OC\Memcache\Memcached

@patrickjahns patrickjahns added the bug Something isn't working label Feb 13, 2018
@tboerger
Copy link
Contributor

Solved via #24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants