Hello Everybody,
I got a weird problem on a new Nextcloud Installation, here is the config :
Qnap 6 Disks of 4TB in RAID 6 -
Ubuntu 16.04 (fully updated) in a VM inside the QNAP - 14 GB of RAM
Nextcloud 13.0.2
MariaDB 10.2
Php 7.0
Apache2
Redis 3.0.6 - caching and locking
When someone upload from Nextcloud client a folder with files inside, i got a lot of errors with Database Deadlocks try restarting …
I reviewed several topics and i am in the good mode of READ-Commited and i disabled MariaDB binlog, but still get the same problem…
When i watch with HTOP or Netdata the server i quite all memory taken by Cached Memory, but i don’t know witch process is using it.
On my house server with the same config but with only 4GB of Ram, i don’t have a lot of Ram taken from Cached Memory.
Can someone help me to resolve this, i think it has something to do with Redis in his configuration.
this is Home Server
And this is the server of my client.
Edit here is the log i get :
{"reqId":"WJSH3j9VOki8a3KF5BRM","level":3,
"time":"2018-04-27T16:38:44+00:00",
"remoteAddr":"10.114.45.5","user":"USER",
"app":"no app in context","method":"PUT",
"url":"\/remote.php\/dav\/files\/USER\/images\/Nouveau%20dossier\/IMGP3441.JPG",
"message":"Exception: {\"Exception\":\"OCP\\\\AppFramework\\\\QueryException\",\
"Message\":\"Could not resolve filesService! Class filesService does not exist\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(118): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->resolve('filesService')\
#1 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/ServerContainer.php(132): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('filesService')\
#2 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/DependencyInjection\\\/DIContainer.php(441): OC\\\\ServerContainer->query('filesService')\
#3 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(74): OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer->query('filesService')\
#4 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(97): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->buildClass(Object(ReflectionClass))\
#5 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php(118): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->resolve('OCA\\\\\\\\Files_FullT...')\
#6 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/DependencyInjection\\\/DIContainer.php(467): OC\\\\AppFramework\\\\Utility\\\\SimpleContainer->query('OCA\\\\\\\\Files_FullT...')\
#7 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/DependencyInjection\\\/DIContainer.php(438): OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer->queryNoFallback('OCA\\\\\\\\Files_FullT...')\
#8 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_fulltextsearch\\\/lib\\\/Hooks\\\/FilesHooks.php(52): OC\\\\AppFramework\\\\DependencyInjection\\\\DIContainer->query('OCA\\\\\\\\Files_FullT...')\
#9 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/files_fulltextsearch\\\/lib\\\/Hooks\\\/FilesHooks.php(66): OCA\\\\Files_FullTextSearch\\\\Hooks\\\\FilesHooks::getController()\
#10 \\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/hook.php(106): OCA\\\\Files_FullTextSearch\\\\Hooks\\\\FilesHooks::onNewFile(Array)\
#11 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php(309): OC_Hook::emit('OC_Filesystem', 'post_create', Array)\
#12 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/File.php(241): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->emitPostHooks(false)\
#13 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/Directory.php(151): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\File->put(Resource id #22)\
#14 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(1096): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->createFile('IMGP3441.JPG', Resource id #22)\
#15 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(525): Sabre\\\\DAV\\\\Server->createFile('files\\\/USER...', Resource id #22, NULL)\
#16 [internal function]: Sabre\\\\DAV\\\\CorePlugin->httpPut(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\
#17 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/sabre\\\/event\\\/lib\\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\
#18 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(479): Sabre\\\\Event\\\\EventEmitter->emit('method:PUT', Array)\
#19 \\\/var\\\/www\\\/nextcloud\\\/3rdparty\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\
#20 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/dav\\\/lib\\\/Server.php(283): Sabre\\\\DAV\\\\Server->exec()\
#21 \\\/var\\\/www\\\/nextcloud\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(35): OCA\\\\DAV\\\\Server->exec()\
#22 \\\/var\\\/www\\\/nextcloud\\\/remote.php(164): require_once('\\\/var\\\/www\\\/nextcl...')\
#23 {main}\",\"File\":\"\\\/var\\\/www\\\/nextcloud\\\/lib\\\/private\\\/AppFramework\\\/Utility\\\/SimpleContainer.php\",\"Line\":103}","userAgent":"Mozilla\/5.0 (Macintosh) mirall\/2.3.3 (build 84) (Nextcloud)","version":"13.0.2.1"}
EDIT 2 : I disable REDIS and do the same test, i got the same amount of errors with the same logs… So REDIS is out of the problem…