Closed Intenos closed 1 year ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
Need your docker creation from portainer, you can copy/paste screenshots.
Do the below screenshots include the information you need?
That's all we need for now, considering v27 is brand new, we'll need to test.
No problem at all. Take your time, it´s not urgent for me. Thanks indeed for the great support!
For me it is already good to know, that for now, I don´t need to try to fix it by myself.
I have just encountered the same issue, but I think this warning was introduced by https://github.com/nextcloud/server/pull/37766 and it's not a bug?
According to this documentation, you also need to configure memcache.locking
instead of just memcache.local
I'm not sure if APCu should be used for filelocking, adding 'memcache.locking' => '\OC\Memcache\APCu',
does solve the warning. And here is a related post.
It might be worth installing Redis inside the container or just suggesting that users configure it on their own?
This looks to be an expectation that the server will have redis as a cache server as part of the infra for the new version of nextcloud. Implementing that in makes that notice go away. I would recommend updating the suggested docker compose file to include it, though the config.php needs some additional lines as well. Here are mine if it's helpful:
'htaccess.RewriteBase' => '/',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\APCu',
'redis' =>
array (
'host' => 'redis-nextcloud',
'port' => 6379,
'password' => '{redispassword}',
),
and my compose file
---
version: "2.1"
services:
nextcloud:
image: lscr.io/linuxserver/nextcloud
container_name: nextcloud
environment:
- PUID=1000
- PGID=100
- TZ=America/New_York
volumes:
- /path/to/config:/config
- /path/to/data:/data
depends_on:
- mariadb
- redis
ports:
- 8080:443
restart: unless-stopped
mariadb:
image: lscr.io/linuxserver/mariadb
container_name: mariadb
environment:
- PUID=1000
- PGID=100
- MYSQL_ROOT_PASSWORD={sqlrootpass}
- TZ=America/New_York
- MYSQL_DATABASE=nextcloud
- MYSQL_USER={sqluser}
- MYSQL_PASSWORD={sqlpassword}
volumes:
- /path/to/mariadb:/config
restart: unless-stopped
redis:
image: redis
container_name: redis-nextcloud
restart: always
command: redis-server --requirepass {redispassword}
ports:
- 6379:6379
Same issue here using separate nextcloud
and mariadb
linuxserver.io containers through Portainer
.
I'm not sure how to include redis inside the nextcloud container so it can be pointed to inside config.php
. Therefore I'll leave my instance as it is for now, as it only impacts performance.
I've created a separate redis
container, and pointed to it much like in #319 (comment). Except I had to point to the redis
internal ip address instead of container name as it wouldn't find it with its name even though they're on the same bridge
network.
Redis would not be included in the nextcloud container, you would run a separate redis container. depending on how you run containers, they can often see each other by name, so your nextcloud config would use redis
as the hostname if your redis container is named redis
. this is a good example: https://github.com/linuxserver/docker-nextcloud/issues/319#issuecomment-1594902588
We have not yet decided taking any action on this, but it will likely be documentation and possibly defaulting to APCu (easily editable by the user if they prefer Redis).
Hello,
i used this in my config.php
CONFIG = array ( 'memcache.local' => '\OC\Memcache\APCu', 'filelocking.enabled' => true, 'memcache.locking' => '\OC\Memcache\APCu',
No extra redis necessary.
Hello,
i used this in my config.php
CONFIG = array ( 'memcache.local' => '\OC\Memcache\APCu', 'filelocking.enabled' => true, 'memcache.locking' => '\OC\Memcache\APCu',
No extra redis necessary.
Fantastic. Worked for me as well! At least the warning disappears.
I'll be making a chance to include setting APCu up for file locking if file locking is not already set up some other way. The change will be a part of https://github.com/linuxserver/docker-nextcloud/pull/317
Hello,
i used this in my config.php
CONFIG = array ( 'memcache.local' => '\OC\Memcache\APCu', 'filelocking.enabled' => true, 'memcache.locking' => '\OC\Memcache\APCu',
No extra redis necessary.
Worked for me too.
Is there an existing issue for this?
Current Behavior
After upgrading to 27.0.0, I get the warning that no Memcache is installed:
I checked that the line 'memcache.local' => '\OC\Memcache\APCu', is available in the config.php
Expected Behavior
No warning.
Steps To Reproduce
Update to 27.0.0 via the updater in Nextcloud and recreate the container by pulling the latest version.
Environment
CPU architecture
x86-64
Docker creation
Container logs