Problème Nextcloud - Redis server went away

Configuration de mon YunoHost

**Matériel:**old laptop or computer …
Accès Internet: ethernet à la maison
YunoHost version:
yunohost: 2.7.10(stable)

Impossibilité de synchroniser les fichiers et d’en créer de nouveaux depuis la mise à jour vers nextcloud 12.0.5-1

Erreur: RedisException: Redis server went away
RedisException: Redis server went away

Le service redis-server est pourtant démarré

systemctl status redis-server

● redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled)
Active: active (running) since lun 2018-04-09 11:23:03 CEST; 13s ago
Process: 2409 ExecStop=/usr/bin/redis-cli shutdown (code=exited, status=1/FAILURE)
Process: 2412 ExecStart=/usr/bin/redis-server /etc/redis/redis.conf (code=exited, status=0/SUCCESS)
Main PID: 2413 (redis-server)
CGroup: /system.slice/redis-server.service
└─2413 /usr/bin/redis-server 127.0.0.1:6379

avr 09 11:23:03 wind systemd[1]: Started Advanced key-value store.

Le log:

/var/www/nextcloud/lib/private/Memcache/Redis.php - line 112: Redis->incrBy(‘df8465f6287f9f0…’, 1)
/var/www/nextcloud/lib/private/Lock/MemcacheLockingProvider.php - line 73: OC\Memcache\Redis->inc(‘files/b99e8c53f…’)
/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 704: OC\Lock\MemcacheLockingProvider->acquireLock(‘files/b99e8c53f…’, 1)
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 588: OC\Files\Storage\Common->acquireLock(‘files/Documents…’, 1, Object(OC\Lock\MemcacheLockingProvider))
/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 588: OC\Files\Storage\Wrapper\Wrapper->acquireLock(‘files/Documents…’, 1, Object(OC\Lock\MemcacheLockingProvider))
/var/www/nextcloud/lib/private/Files/View.php - line 1932: OC\Files\Storage\Wrapper\Wrapper->acquireLock(‘files/Documents…’, 1, Object(OC\Lock\MemcacheLockingProvider))
/var/www/nextcloud/lib/private/Files/View.php - line 2041: OC\Files\View->lockPath(‘/Documents/test…’, 1, false)
/var/www/nextcloud/lib/private/Files/View.php - line 1332: OC\Files\View->lockFile(‘/Documents/test…’, 1)
/var/www/nextcloud/lib/private/Files/View.php - line 1379: OC\Files\View->getCacheEntry(Object(OCA\Files_Trashbin\Storage), ‘files/Documents…’, ‘/Documents/test…’)
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 214: OC\Files\View->getFileInfo(‘/Documents/test…’)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php - line 76: OCA\DAV\Connector\Sabre\Directory->getChild(‘test.txt’)
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/LockPlugin.php - line 59: Sabre\DAV\Tree->getNodeForPath(‘files/christoph…’)
[internal function] OCA\DAV\Connector\Sabre\LockPlugin->getLock(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 466: Sabre\Event\EventEmitter->emit(‘beforeMethod’, Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/apps/dav/lib/Server.php - line 258: Sabre\DAV\Server->exec()
/var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 33: OCA\DAV\Server->exec()
/var/www/nextcloud/remote.php - line 162: require_once(‘/var/www/nextcl…’)
{main}

EDIT: j’ai trouvé une solution temporaire en désactivant l’usage de Redis en tant que cache en modifiant /var/www/nextcloud/config/config.php

‘loglevel’ => 2,
‘filelocking.enabled’ => true,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘redis’ =>
array (
‘host’ => ‘localhost’,
‘port’ => ‘6379’,
‘timeout’ => ‘0.0’,
‘password’ => ‘’,
),
);

devient

‘loglevel’ => 2,
‘filelocking.enabled’ => true,
);

J’ai trouvé une autre solution qui permet de garder Redis:

Dans /etc/hosts j’ai commenté la ligne ::1 localhost (ipv6).

Après ça, tout va bien!