Getting Transactional file locking should be configured to use memory-based locking

memcache

#1

I have upgraded my owncloud from 9 to version 10.0.8. I am running Ubuntu 16.04.4
So far it’s working fine
I have enabled also the use of memcache.local

I am getting a warning saying Transactional file locking should be configured to use memory-based locking

I’ve installed redis by following instruction here. I tested, it’s working fine.

I’ve activated the use of Transactional File Locking by following this guide.

However, despite doing it, I am still getting a warning saying Transactional file locking should be configured to use memory-based locking

Here’s my memcache setting in config.php
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘filelocking.enabled’ => true,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘redis’ => [
‘host’ => ‘localhost’,
‘port’ => 6379,
‘timeout’ => 0.0,
‘password’ => ‘’, // Optional, if not defined no password will be used.
],


#2

Could it be a caching issue? Try to restart apache or the empty the cache by refreshing the page with ctrl + F5


#3

Hi dmitry,

I tried doing that, even restarting the server. But it shows the same.

Regards,
Edmon Uyan


#4

could you stop and start the redis-server service?


#5

I restarted the redis service by typing

sudo systemctl restart redis

So far, it’s still showing this alert:

Security & setup warnings
Transactional file locking should be configured to use memory-based locking, not the default slow database-based locking. See the documentation ↗ for more information.

#6

This is what appears:

This is my config.php


#7

I got it to work. Re-read the instruction and found that redis is not enough. I’ve not read that Redis needs phpredis installed as well!

There was no problem with config.php at all.


#8

Glad to hear that the doc helped you out :slight_smile:


#9

Yah! Appreciate your help as well :slight_smile: