[/details]
Nextcloud version: 25.03
Operating system and version : Linux 4.4.180+ x86_64 - Docker on synology NAS
CPU: Intel(R) Celeron(R) J4125 CPU @ 2.00GHz (4 cores)
Memory: 7.61 GB
PHP version (eg, 7.4): 8.1.16
The issue you are facing:
For several week now, I have a huge load on the CPU, average load of 15.0 up to 70.0.
I have 25 users, 3,000,000 files, 3.5 TB, the main usage is sync between the users, in a way that everyone syncs with local client to the server, and files being downloaded on a need basis.
The data, is accessed thru local external storage, I paused background jobs, and it reduced the load from about 70 to 20 but still it’s way to high, and I cant figure out where it comes from.
I don’t have a problem to upgrade the server to a stronger one, but from reading here, it seems that my server should be enough for 25 users.
htop screenshot:
Is this the first time you’ve seen this error? N
The output of your Nextcloud log in Admin > Logging of the last few hours, file names removed, user names changed to numbers:
{"reqId":"el0ovVxFIgQw6HhtCDWd","level":3,"time":"2023-02-21T06:52:33+00:00","remoteAddr":"172.22.0.1","user":"1","app":"no app in context","method":"POST","url":"/
{"reqId":"BQPbRQKVgEgblVJUPzRf","level":3,"time":"2023-02-21T06:54:46+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"POST","url":"/remote.php/dav
{"reqId":"BQPbRQKVgEgblVJUPzRf","level":3,"time":"2023-02-21T06:54:46+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"POST","url":"/
{"reqId":"xnyG4bu5F1w8GqXxWfhS","level":3,"time":"2023-02-21T06:55:53+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"PUT","url":"/remote.php/dav/
{"reqId":"xnyG4bu5F1w8GqXxWfhS","level":3,"time":"2023-02-21T06:55:53+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"PUT","url":"/r
{"reqId":"xnyG4bu5F1w8GqXxWfhS","level":3,"time":"2023-02-21T06:55:53+00:00","remoteAddr":"172.22.0.1","user":"2","app":"webdav","method":"PUT","url":"/remote.php/d
{"reqId":"NPoHhXaBP6PhlI9MqoAj","level":3,"time":"2023-02-21T07:16:12+00:00","remoteAddr":"172.22.0.1","user":"3","app":"no app in context","method":"PUT","url":"/r
{"reqId":"IBQkMYlrf0PfJjTh06iU","level":3,"time":"2023-02-21T07:16:12+00:00","remoteAddr":"172.22.0.1","user":"3","app":"no app in context","method":"PUT","url":"/r
{"reqId":"5ZiaiuGMUtC8U4qNPdSS","level":3,"time":"2023-02-21T07:16:12+00:00","remoteAddr":"172.22.0.1","user":"3","app":"no app in context","method":"PUT","url":"/r
{"reqId":"slC5dWx9lGVwSd0wH8I6","level":3,"time":"2023-02-21T07:16:34+00:00","remoteAddr":"172.22.0.1","user":"3","app":"PHP","method":"POST","url":"/remote.php/dav
{"reqId":"slC5dWx9lGVwSd0wH8I6","level":3,"time":"2023-02-21T07:16:34+00:00","remoteAddr":"172.22.0.1","user":"3","app":"no app in context","method":"POST","url":"/
{"reqId":"slC5dWx9lGVwSd0wH8I6","level":3,"time":"2023-02-21T07:16:34+00:00","remoteAddr":"172.22.0.1","user":"3","app":"PHP","method":"POST","url":"/remote.php/dav
{"reqId":"slC5dWx9lGVwSd0wH8I6","level":3,"time":"2023-02-21T07:16:34+00:00","remoteAddr":"172.22.0.1","user":"3","app":"no app in context","method":"POST","url":"/
{"reqId":"yN31Zsh4k7Ugtup15Fy9","level":3,"time":"2023-02-21T07:17:03+00:00","remoteAddr":"172.22.0.1","user":"3","app":"PHP","method":"PUT","url":"/remote.php/dav/
{"reqId":"yN31Zsh4k7Ugtup15Fy9","level":3,"time":"2023-02-21T07:17:03+00:00","remoteAddr":"172.22.0.1","user":"3","app":"no app in context","method":"PUT","url":"/r
{"reqId":"yN31Zsh4k7Ugtup15Fy9","level":3,"time":"2023-02-21T07:17:03+00:00","remoteAddr":"172.22.0.1","user":"3","app":"webdav","method":"PUT","url":"/remote.php/d
{"reqId":"1KGgVZfolgMDO0jPEasF","level":3,"time":"2023-02-21T07:17:03+00:00","remoteAddr":"172.22.0.1","user":"3","app":"PHP","method":"PUT","url":"/remote.php/dav/
{"reqId":"1KGgVZfolgMDO0jPEasF","level":3,"time":"2023-02-21T07:17:03+00:00","remoteAddr":"172.22.0.1","user":"3","app":"no app in context","method":"PUT","url":"/r
{"reqId":"1KGgVZfolgMDO0jPEasF","level":3,"time":"2023-02-21T07:17:03+00:00","remoteAddr":"172.22.0.1","user":"3","app":"webdav","method":"PUT","url":"/remote.php/d
{"reqId":"X287PoP6NPyU2PZ2Onku","level":3,"time":"2023-02-21T07:34:37+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"POST","url":"/remote.php/dav
{"reqId":"X287PoP6NPyU2PZ2Onku","level":3,"time":"2023-02-21T07:34:37+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"POST","url":"/
{"reqId":"OJHV5v4cgTDQvWtIPfXt","level":3,"time":"2023-02-21T07:37:00+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"PUT","url":"/remote.php/dav/
{"reqId":"OJHV5v4cgTDQvWtIPfXt","level":3,"time":"2023-02-21T07:37:00+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"PUT","url":"/r
{"reqId":"OJHV5v4cgTDQvWtIPfXt","level":3,"time":"2023-02-21T07:37:00+00:00","remoteAddr":"172.22.0.1","user":"2","app":"webdav","method":"PUT","url":"/remote.php/d
{"reqId":"bi6cig9e31NiGO8yId1j","level":3,"time":"2023-02-21T07:38:38+00:00","remoteAddr":"172.22.0.1","user":"4","app":"no app in context","method":"POST","url":"/
{"reqId":"I1DuIhOAllP95MFgYhOQ","level":3,"time":"2023-02-21T07:42:16+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"POST","url":"/remote.php/dav
{"reqId":"I1DuIhOAllP95MFgYhOQ","level":3,"time":"2023-02-21T07:42:16+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"POST","url":"/
{"reqId":"mq6XDHJBMCb0E0d4mHig","level":3,"time":"2023-02-21T07:44:40+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"PUT","url":"/remote.php/dav/
{"reqId":"mq6XDHJBMCb0E0d4mHig","level":3,"time":"2023-02-21T07:44:40+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"PUT","url":"/r
{"reqId":"mq6XDHJBMCb0E0d4mHig","level":3,"time":"2023-02-21T07:44:40+00:00","remoteAddr":"172.22.0.1","user":"2","app":"webdav","method":"PUT","url":"/remote.php/d
{"reqId":"S8WtbWibfLZqoGTrjsfE","level":3,"time":"2023-02-21T07:47:26+00:00","remoteAddr":"172.22.0.1","user":"4","app":"PHP","method":"POST","url":"/remote.php/dav
{"reqId":"A8cEPhK92Hz7eGiGepau","level":3,"time":"2023-02-21T07:50:11+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"POST","url":"/remote.php/dav
{"reqId":"A8cEPhK92Hz7eGiGepau","level":3,"time":"2023-02-21T07:50:11+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"POST","url":"/
{"reqId":"NDH0tCvLHvOo4qTsR5W7","level":3,"time":"2023-02-21T07:52:34+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"PUT","url":"/remote.php/dav/
{"reqId":"NDH0tCvLHvOo4qTsR5W7","level":3,"time":"2023-02-21T07:52:34+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"PUT","url":"/r
{"reqId":"NDH0tCvLHvOo4qTsR5W7","level":3,"time":"2023-02-21T07:52:34+00:00","remoteAddr":"172.22.0.1","user":"2","app":"webdav","method":"PUT","url":"/remote.php/d
{"reqId":"da381vPOrLaDk4TvUOPd","level":3,"time":"2023-02-21T08:09:28+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"POST","url":"/remote.php/dav
{"reqId":"da381vPOrLaDk4TvUOPd","level":3,"time":"2023-02-21T08:09:29+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"POST","url":"/
{"reqId":"KxLNwLmLYth7GgcT5l3z","level":3,"time":"2023-02-21T08:11:49+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"PUT","url":"/remote.php/dav/
{"reqId":"KxLNwLmLYth7GgcT5l3z","level":3,"time":"2023-02-21T08:11:49+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"PUT","url":"/r
{"reqId":"KxLNwLmLYth7GgcT5l3z","level":3,"time":"2023-02-21T08:11:49+00:00","remoteAddr":"172.22.0.1","user":"2","app":"webdav","method":"PUT","url":"/remote.php/d
{"reqId":"lIx7qLXqsAQFodSfl36Y","level":3,"time":"2023-02-21T08:43:15+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"POST","url":"/remote.php/dav
{"reqId":"lIx7qLXqsAQFodSfl36Y","level":3,"time":"2023-02-21T08:43:15+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"POST","url":"/
{"reqId":"4ldg26kOA3VFxpZOxseO","level":3,"time":"2023-02-21T08:45:43+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"PUT","url":"/remote.php/dav/
{"reqId":"4ldg26kOA3VFxpZOxseO","level":3,"time":"2023-02-21T08:45:43+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"PUT","url":"/r
{"reqId":"4ldg26kOA3VFxpZOxseO","level":3,"time":"2023-02-21T08:45:43+00:00","remoteAddr":"172.22.0.1","user":"2","app":"webdav","method":"PUT","url":"/remote.php/d
{"reqId":"fF9syNWNWvfxLGUCQ1cr","level":3,"time":"2023-02-21T08:51:27+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"POST","url":"/remote.php/dav
{"reqId":"fF9syNWNWvfxLGUCQ1cr","level":3,"time":"2023-02-21T08:51:27+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"POST","url":"/
{"reqId":"5De4nHjUwHPj0xkfX9HN","level":3,"time":"2023-02-21T08:53:57+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"PUT","url":"/remote.php/dav/
{"reqId":"5De4nHjUwHPj0xkfX9HN","level":3,"time":"2023-02-21T08:53:57+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"PUT","url":"/r
{"reqId":"5De4nHjUwHPj0xkfX9HN","level":3,"time":"2023-02-21T08:53:57+00:00","remoteAddr":"172.22.0.1","user":"2","app":"webdav","method":"PUT","url":"/remote.php/d
{"reqId":"AWRYphR8Yyx2wnXlXsbZ","level":3,"time":"2023-02-21T08:59:19+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"POST","url":"/remote.php/dav
{"reqId":"AWRYphR8Yyx2wnXlXsbZ","level":3,"time":"2023-02-21T08:59:19+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"POST","url":"/
{"reqId":"tFQbPDN5J3wGtSI5tKTp","level":3,"time":"2023-02-21T09:01:44+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"PUT","url":"/remote.php/dav/
{"reqId":"tFQbPDN5J3wGtSI5tKTp","level":3,"time":"2023-02-21T09:01:44+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"PUT","url":"/r
{"reqId":"tFQbPDN5J3wGtSI5tKTp","level":3,"time":"2023-02-21T09:01:44+00:00","remoteAddr":"172.22.0.1","user":"2","app":"webdav","method":"PUT","url":"/remote.php/d
{"reqId":"Ta0qgLhJh3AODCT86LAd","level":3,"time":"2023-02-21T09:23:05+00:00","remoteAddr":"172.22.0.1","user":"2","app":"PHP","method":"POST","url":"/remote.php/dav
{"reqId":"Ta0qgLhJh3AODCT86LAd","level":3,"time":"2023-02-21T09:23:06+00:00","remoteAddr":"172.22.0.1","user":"2","app":"no app in context","method":"POST","url":"/
{"reqId":"uedgmf2rdUsST9il2Crs","level":2,"time":"2023-02-21T09:23:06+00:00","remoteAddr":"172.22.0.1","user":"--","app":"core","method":"GET","url":"/apps/files/?d
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'htaccess.RewriteBase' => '/',
'overwriteprotocol' => 'https',
'memcache.local' => '\\OC\\Memcache\\APCu',
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'instanceid' => '*****************',
'passwordsalt' => '************************',
'secret' => '*************************',
'trusted_domains' =>
array (
0 => '192*****:8082',
1 => 'local.******:8083',
),
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '25.0.3.2',
'overwrite.cli.url' => 'https://local.******:8083',
'dbname' => '*************',
'dbhost' => 'mariadb',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '*********',
'dbpassword' => '************',
'installed' => true,
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => '****',
'mail_domain' => '*********',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'smtp.gmail.com',
'mail_smtpport' => '465',
'mail_smtpname' => '************',
'mail_smtppassword' => '**************',
'loglevel' => 2,
'loglevel_frontend' => 2,
'filesystem_check_changes' => 1,
'filelocking.enabled' => true,
'simpleSignUpLink.shown' => false,
'maintenance' => false,
'theme' => '',
);
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
[PHP] Error: Error: exif_read_data(): File not supported at /var/www/html/lib/private/Metadata/Provider/ExifProvider.php#59 at <<closure>>
0. <<closure>>
OC\Log\ErrorHandler::onError(2, "exif_read_data(): File not supported", "/var/www/html/l ... p", 59)
1. /var/www/html/lib/private/Metadata/Provider/ExifProvider.php line 59
exif_read_data(null, "ANY_TAG", true)
2. /var/www/html/lib/private/Metadata/MetadataManager.php line 68
OC\Metadata\Provider\ExifProvider->execute(OC\Files\Node\File {})
3. /var/www/html/lib/private/Metadata/FileEventListener.php line 101
OC\Metadata\MetadataManager->generateMetadata(OC\Files\Node\File {}, false)
4. /var/www/html/lib/private/EventDispatcher/ServiceEventListener.php line 87
OC\Metadata\FileEventListener->handle(OCP\Files\Events\Node\NodeWrittenEvent {})
5. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251
OC\EventDispatcher\ServiceEventListener->__invoke(OCP\Files\Events\Node\NodeWrittenEvent {}, "OCP\\Files\\Eve ... t", Symfony\Componen ... {})
6. /var/www/html/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73
Symfony\Component\EventDispatcher\EventDispatcher->callListeners([Closure {}], "OCP\\Files\\Eve ... t", OCP\Files\Events\Node\NodeWrittenEvent {})
7. /var/www/html/lib/private/EventDispatcher/EventDispatcher.php line 88
Symfony\Component\EventDispatcher\EventDispatcher->dispatch(OCP\Files\Events\Node\NodeWrittenEvent {}, "OCP\\Files\\Eve ... t")
8. /var/www/html/lib/private/EventDispatcher/EventDispatcher.php line 100
OC\EventDispatcher\EventDispatcher->dispatch("OCP\\Files\\Eve ... t", OCP\Files\Events\Node\NodeWrittenEvent {})
9. /var/www/html/lib/private/Files/Node/HookConnector.php line 118
OC\EventDispatcher\EventDispatcher->dispatchTyped(OCP\Files\Events\Node\NodeWrittenEvent {})
10. /var/www/html/lib/private/legacy/OC_Hook.php line 106
OC\Files\Node\HookConnector->postWrite([true,"/EVR Draw ... "])
11. /var/www/html/lib/private/Files/View.php line 1294
OC_Hook::emit("OC_Filesystem", "post_write", [true,"/EVR Draw ... "])
12. /var/www/html/lib/private/Files/View.php line 1222
OC\Files\View->runHooks(["update","write"], "/EVR Drawings_w ... g", true)
13. /var/www/html/lib/private/Files/View.php line 705
OC\Files\View->basicOperation("file_put_contents", "/oleg@evr-motor ... g", ["update","write"], null)
14. /var/www/html/lib/private/Files/Node/Folder.php line 192
OC\Files\View->file_put_contents("/1 ... g", null)
15. /var/www/html/apps/dav/lib/BulkUpload/BulkUploadPlugin.php line 92
OC\Files\Node\Folder->newFile("/******_w ... g", null)
16. /var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
OCA\DAV\BulkUpload\BulkUploadPlugin->httpPost(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
17. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 472
Sabre\DAV\Server->emit("method:POST", [Sabre\HTTP\Requ ... }])
18. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 253
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
19. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 321
Sabre\DAV\Server->start()
20. /var/www/html/apps/dav/lib/Server.php line 360
Sabre\DAV\Server->exec()
21. /var/www/html/apps/dav/appinfo/v2/remote.php line 35
OCA\DAV\Server->exec()
22. /var/www/html/remote.php line 171
require_once("/var/www/html/a ... p")
POST /remote.php/dav/bulk
from 172.22.0.1 by 1 at 2023-02-21T09:38:31+00:00
[webdav] Error: Sabre\DAV\Exception: Error while copying file to target location (copied: -1 bytes, expected filesize: 133683 bytes) at <<closure>>
0. /var/www/html/apps/dav/lib/Connector/Sabre/Directory.php line 151
OCA\DAV\Connector\Sabre\File->put(null)
1. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 1098
OCA\DAV\Connector\Sabre\Directory->createFile("bransoft has se ... f", null)
2. /var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 504
Sabre\DAV\Server->createFile("files/2 ... f", null, null)
3. /var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
4. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 472
Sabre\DAV\Server->emit("method:PUT", [Sabre\HTTP\Requ ... }])
5. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 253
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
6. /var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php line 321
Sabre\DAV\Server->start()
7. /var/www/html/apps/dav/lib/Server.php line 360
Sabre\DAV\Server->exec()
8. /var/www/html/apps/dav/appinfo/v2/remote.php line 35
OCA\DAV\Server->exec()
9. /var/www/html/remote.php line 171
require_once("/var/www/html/a ... p")
PUT /remote.php/dav/files/2/E************.pdf
from 172.22.0.1 by 2 at 2023-02-21T09:26:53+00:00