Support intro
Sorry to hear you’re facing problems
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
Nextcloud version (eg, 29.0.5): 29.0.3
Operating system and version (eg, Ubuntu 29.04): Ubuntu 22.04.4 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.52
PHP version (eg, 8.3): PHP Version 8.1.2-1ubuntu2.18
The issue you are facing:
File operations (upload, rename/move) are extremely slow. For example, MOVE commands are currently taking between 12 and 30 seconds per file.
Other info:
- mysql slow query logging at 2 seconds shows no correlated slow queries
- php-fpm in use
- running non-virtualized on (basically) dedicated server with i7 CPU, 8gb ram, newer HDD
- uptime load typically around 2-3
- htop shows 2.6gb out of 8 used; low CPU (<10%) all around
- NC setup warnings are minimal: Your web server is not properly set up to resolve
.well-known
URLs, server has no maintenance window start time configured, some headers are not set correctly on your instance (only security-related stuff) - NC is maintaining around 115,000 files taking up 414 GB
- All files are for a single user; it’s basically a one user system
Is this the first time you’ve seen this error? No. This started occurring perhaps a year ago and I keep NC version pretty well updated to the most recent stable version.
Steps to replicate it:
Move a file from one directory to another either via the web UI or desktop sync client
The output of your Nextcloud log in Admin > Logging:
No warning or error level information is related to this problem
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'XXX',
'passwordsalt' => 'XXX',
'secret' => 'XXX',
'allow_local_remote_servers' => true,
'trusted_domains' =>
array (
0 => 'localhost',
1 => '192.168.1.101',
2 => 'XXX',
3 => 'XXX.lan',
4 => 'ZZZ',
5 => '192.168.1.100',
6 => 'YYY',
7 => 'YYY.lan',
),
'datadirectory' => '/var/www/nextcloud/data',
'default_phone_region' => 'US',
'dbtype' => 'mysql',
'version' => '29.0.3.4',
'overwrite.cli.url' => 'http://192.168.1.101/nextcloud',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'filelocking.enabled' => true,
'mysql.utf8mb4' => true,
'dbuser' => 'oc_admin',
'dbpassword' => 'XXX',
'installed' => true,
'log_type' => 'file',
'logfile' => '/var/log/nextcloud/nextcloud.log',
'loglevel' => 2,
'logdateformat' => 'F d, Y H:i:s',
'maintenance' => false,
'mail_from_address' => 'XXX',
'mail_smtpmode' => 'sendmail',
'mail_domain' => 'XXX',
'mail_smtphost' => 'aspmx.l.google.com',
'mail_smtpport' => '25',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
),
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'theme' => '',
);
The output of your Apache/nginx/system log in /var/log/____
:
Note that I added a first column which is seconds to process request (e.g. 14 below is 14s to process that MOVE). I’ve included several other types of requests to illustrate that some are almost instant.
access.log:
14 192.168.1.100 - - [28/Jun/2024:13:27:19 -0500] "MOVE /nextcloud/remote.php/dav/files/chris/Pictures/2024/2024-06/2024_06_20%20IMG_1122.jpg HTTP/1.1" 201 755 "-" "Mozilla/5.0 (Windows) mirall/3.13.0stable-Win64 (build 20240423) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
0 199.204.58.31 - - [28/Jun/2024:13:27:38 -0500] "GET /nextcloud/index.php/apps/logreader/api/poll?lastReqId=OiFb8VC3hfkucstkCzrW HTTP/2.0" 200 556 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0"
0 199.204.58.31 - - [28/Jun/2024:13:27:39 -0500] "PUT /nextcloud/ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/2.0" 200 229 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0"
0 199.204.58.31 - - [28/Jun/2024:13:27:49 -0500] "GET /nextcloud/index.php/apps/logreader/api/poll?lastReqId=OiFb8VC3hfkucstkCzrW HTTP/2.0" 200 556 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0"
20 192.168.1.100 - - [28/Jun/2024:13:27:34 -0500] "MOVE /nextcloud/remote.php/dav/files/chris/Pictures/2024/2024-06/2024_06_20%20IMG_1123.jpg HTTP/1.1" 201 755 "-" "Mozilla/5.0 (Windows) mirall/3.13.0stable-Win64 (build 20240423) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
0 199.204.58.31 - - [28/Jun/2024:13:27:59 -0500] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0" 304 549 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0"
0 192.168.1.100 - - [28/Jun/2024:13:27:59 -0500] "GET /nextcloud/ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 1391 "-" "Mozilla/5.0 (Windows) mirall/3.13.0stable-Win64 (build 20240423) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
0 199.204.58.31 - - [28/Jun/2024:13:27:59 -0500] "GET /nextcloud/index.php/apps/logreader/api/poll?lastReqId=OiFb8VC3hfkucstkCzrW HTTP/2.0" 200 103 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0"
0 192.168.1.100 - - [28/Jun/2024:13:27:59 -0500] "GET /nextcloud/remote.php/dav/avatars/chris/128.png HTTP/1.1" 200 2640 "-" "Mozilla/5.0 (Windows) mirall/3.13.0stable-Win64 (build 20240423) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)"
Note that the timestamps below are not correlated to the slow request response times above. I do not think they are related.
error.log:
[Fri Jun 28 13:23:21.029788 2024] [access_compat:error] [pid 46919:tid 139720814208576] [client 127.0.0.1:33610] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Fri Jun 28 13:23:21.080431 2024] [access_compat:error] [pid 46956:tid 139720285730368] [client 192.168.1.101:53284] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Fri Jun 28 13:23:41.273382 2024] [access_compat:error] [pid 46956:tid 139720277337664] [client 127.0.0.1:40022] AH01797: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Fri Jun 28 13:25:28.858856 2024] [proxy_fcgi:error] [pid 46919:tid 139721510475328] [client 192.168.1.101:33116] AH01071: Got error 'Primary script unknown'
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.
No errors in the timeframe.