Nextcloud deleted all files from local sincronization folder

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

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 :heart:

Nextcloud Hub 3 (25.0.13)
Linux 5.14.0-284.11.1.el9_2.x86_64 x86_64
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version Versión: 8.1.25

The issue you are facing:

I wanted to do a clean resincronization deleting all files from server but instead got my all local files deleted despite i selected the option in the client, “Keep Local files.”

Is this the first time you’ve seen this error? (Y/N):Y

Steps to replicate it:

  1. Windows Client Logged but disconected from VPN
  2. Delet All Files from the server through Web Interface
  3. Conect VPN and automatically all local files are deleted

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php $CONFIG = array ( 'htaccess.RewriteBase' => '/', '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' => 'ocddi8snvs1i', 'passwordsalt' => 'omhC8l1WJRslvKfGqpDoOfOQUF1INC', 'secret' => 'EM3L95Wm5KI1/7bMSVKjS5hc/5Q6KXjNCbgg75O7JF3z3Ns2', 'trusted_domains' => array ( 0 => '172.16.0.106', ), 'datadirectory' => '/var/www/html/data', 'dbtype' => 'mysql', 'version' => '25.0.13.2', 'overwrite.cli.url' => 'http://172.16.0.106', 'dbname' => 'nextcloud', 'dbhost' => 'db', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'xxxxxxxxx', 'dbpassword' => 'xxxxxxx', 'installed' => true, 'theme' => '', 'loglevel' => 0, 'maintenance' => false, 'bulkupload.enabled' => false, 'filelocking.enabled' => false, 'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory', ); ``` PASTE HERE ``` The output of your Apache/nginx/system log in `/var/log/____`: ``` PASTE HERE ``` PASTE HERE ``` 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. PASTE HERE ```