Redis for memcache issue still shows up in warnings

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version 18.0.1
Operating system and version: Ubuntu Mate 18.04
Apache or nginx version: 2.4.29
PHP version: 7.2.24

The issue you are facing: Warnings from Overview page still state the following: "No memory cache has been configured. To enhance performance, please configure a memcache, if available. "

Is this the first time you’ve seen this error? (Y/N): Y, it has been there since the installation.

The output of ps as | grep redis :

image

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

'memcahce.local' => '\OC\Memcache\APCu',
  'memcache.distributed' => '\OC\Memcache\Redis',
  'filelocking.enabled' => true,
  'memcache.locking' => '\OC\Memcache\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 2.0,
    'dbindex' => 0,
  ),

Output of php -m

[PHP Modules]
apcu
bz2
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
igbinary
imagick
intl
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pgsql
Phar
posix
readline
recode
redis
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache


Output of getent group www-data

www-data:x:33:redis

Output of getent group redis

redis:x:138:www-data

redis.conf has been set with the following:

bind 127.0.0.1
protected-mode yes
port 0
unixsocket /var/run/redis/redis-server.sock
unixsocketperm 777

Output of redis-cli -p 0:

Could not connect to Redis at 127.0.0.1:0: Connection refused
Could not connect to Redis at 127.0.0.1:0: Connection refused
not connected>

Output of redis-cli -s /var/run/redis/redis-server.sock MONITOR:

OK
1583108531.131195 [0 unix:/var/run/redis/redis-server.sock] "SELECT" "0"
1583108531.428310 [0 unix:/var/run/redis/redis-server.sock] "SELECT" "0"
1583108532.099728 [0 unix:/var/run/redis/redis-server.sock] "SELECT" "0"
1583108536.073153 [0 unix:/var/run/redis/redis-server.sock] "SELECT" "0"
1583108538.026951 [0 unix:/var/run/redis/redis-server.sock] "SELECT" "0"
1583108538.209583 [0 unix:/var/run/redis/redis-server.sock] "GET" "0d079553b0e20bf8aef987f4f8c7a574/imagePath-21534aeba7e160d7d4b3c670f583be2f-core-actions/user.svg"
1583108538.210173 [0 unix:/var/run/redis/redis-server.sock] "GET" "0d079553b0e20bf8aef987f4f8c7a574/imagePath-21534aeba7e160d7d4b3c670f583be2f-settings-password.svg"
1583108538.210630 [0 unix:/var/run/redis/redis-server.sock] "GET" "0d079553b0e20bf8aef987f4f8c7a574/imagePath-21534aeba7e160d7d4b3c670f583be2f-core-clients/phone.svg"
1583108538.218612 [0 unix:/var/run/redis/redis-server.sock] "GET" "0d079553b0e20bf8aef987f4f8c7a574/imagePath-21534aeba7e160d7d4b3c670f583be2f-core-actions/settings-dark.svg"
1583108538.229607 [0 unix:/var/run/redis/redis-server.sock] "GET" "0d079553b0e20bf8aef987f4f8c7a574/imagePath-21534aeba7e160d7d4b3c670f583be2f-activity-activity-dark.svg"
1583108538.232821 [0 unix:/var/run/redis/redis-server.sock] "GET" "0d079553b0e20bf8aef987f4f8c7a574/imagePath-21534aeba7e160d7d4b3c670f583be2f-audioplayer-app-dark.svg"
1583108538.233856 [0 unix:/var/run/redis/redis-server.sock] "GET" "0d079553b0e20bf8aef987f4f8c7a574/imagePath-21534aeba7e160d7d4b3c670f583be2f-files_external-app-dark.svg"
1583108538.234402 [0 unix:/var/run/redis/redis-server.sock] "GET" "0d079553b0e20bf8aef987f4f8c7a574/imagePath-21534aeba7e160d7d4b3c670f583be2f-accessibility-app-dark.svg"
1583108538.236155 [0 unix:/var/run/redis/redis-server.sock] "GET" "0d079553b0e20bf8aef987f4f8c7a574/imagePath-21534aeba7e160d7d4b3c670f583be2f-core-actions/share.svg"
1583108538.239097 [0 unix:/var/run/redis/redis-server.sock] "GET" "0d079553b0e20bf8aef987f4f8c7a574/imagePath-21534aeba7e160d7d4b3c670f583be2f-workflowengine-app-dark.svg"
1583108538.241942 [0 unix:/var/run/redis/redis-server.sock] "GET" "0d079553b0e20bf8aef987f4f8c7a574/imagePath-21534aeba7e160d7d4b3c670f583be2f-privacy-app-dark.svg"
1583108538.243676 [0 unix:/var/run/redis/redis-server.sock] "GET" "0d079553b0e20bf8aef987f4f8c7a574/imagePath-21534aeba7e160d7d4b3c670f583be2f-settings-admin.svg"

I have honestly tried everything I can think of at this point and am desperate for any advice anyone can offer.

Many Thanks.

You have typo.
memcahce.local

You can also change apcu to redis and delete line memcache.distributed. Test to see what is the best for you.

Unixsocketperm 770 should be enough.

@catalyst1987
Did you find a solution?

Yes, I feel a bit stupid, but you were right about the misspelling in the config file. Once I corrected it, all worked fine. Many Thanks for your help and pointing that out to me. I greatly appreciate it.

1 Like