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, 20.0.5): 21.0.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04.2
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.41
PHP version (eg, 7.4): 7.4.3
The issue you are facing:
I noticed today that Nextcloud had deleted over 300GB of video files. I have set up the desktop client to sync a specific folder and I have ignored a sub-folder in this. I have been running it this way for about a year now.
For some reason it seems that the NC client tried to sync this folder, I say this because I can see the folder in the web-interface but it is empty. Somehow all the files are deleted and I cannot find them anywhere locally or on the server.
I have tried to use the TestDisk utility to recover the files but it was not possible
Is this the first time you’ve seen this error? (Y/N):
Yes
Steps to replicate it:
- Do not know how to replicate this
The output of your Nextcloud log in Admin > Logging:
{"reqId":"gd3qy6QLXc3Cw7PwORX7","level":3,"time":"2021-04-19T19:13:25+00:00","remoteAddr":"185.125.169.27","user":"bigboss","app":"no app in context","method":"PUT","url":"/remote.php/dav/uploads/bigboss/3596350639/0000000000000055","message":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 53643174 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 12402688 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":156,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php","line":46,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Upload\\UploadFolder","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":332,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":167,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":246,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Linux) mirall/3.2.0-20210410.072919.14fbf1b10-1.0~focal1 (Nextcloud, ubuntu-5.8.0-50-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"21.0.1.1","id":"608843b790737"}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'xxxxxxxxxx',
'passwordsalt' => 'xxxxxxxx',
'secret' => 'xxxxxxxxxxxx',
'trusted_domains' =>
array (
0 => 'xxxxxxxxx',
1 => 'xxxxxxxxxx',
2 => 'xxxxxxxxx',
3 => 'localhost',
),
'datadirectory' => '/mnt/cloud/data',
'dbtype' => 'mysql',
'version' => '21.0.1.1',
'overwrite.cli.url' => 'xxxxxxxx',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'xxxxxxx',
'dbpassword' => 'xxxxxxx',
'installed' => true,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
),
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
'updater.release.channel' => 'stable',
'default_phone_region' => 'xx',
);
The output of your Apache/nginx/system log in /var/log/____
:
[Tue Apr 27 00:00:01.235935 2021] [mpm_prefork:notice] [pid 980] AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
[Tue Apr 27 00:00:01.235947 2021] [core:notice] [pid 980] AH00094: Command line: '/usr/sbin/apache2'