Windows client syncing wrong folders

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

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:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Unraid 6.12.13
  • Web server and version (e.g, Apache 2.4.25):
    • nginx 1.26.2
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx openresty/1.19.9.1
  • PHP version (e.g, 8.3):
    • 8.3.14
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • a few days ago
  • Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
    • docker
  • Are you using Cloudflare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

When I try to sync my Documents folder, the nextcloud client suddenly begins to also sync other root folders into the Documents folder on the server.
So far it seems to be Pictures, Music and Videos.

When it is done, it will then start to delete all files locally in the Pictures, Music and Videos folder.
This has never happened before, and I have no idea why it suddenly started doing it.
I have tried to downgrade and completely uninstall and reinstall the client, but nothing seem to fix it.

It also happens wether i’m using virtual files or not.

I also need to mention that the folders “Pictures, Music and Videos” does not exist in the local Documents folder.

Steps to replicate it (hint: details matter!):

  1. Create a sync between Documents folder on pc and Documents folder on server
  2. Start sync
  3. it does the thing

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

C:/Users/mikke/Documents/
# timestamp | duration | file | instruction | dir | modtime | etag | size | fileId | status | errorString | http result code | other size | other modtime | X-Request-ID
#=#=#=# Syncrun started 2024-11-29T20:31:30Z
#=#=#=#=# Propagation starts 2024-11-29T20:32:49Z (last step: 78637 msec, total: 78637 msec)
20:32:47||Billeder/BnS|8|1|1732906121||4096|02607710oco9ibhc7qhi|1|Ukendt fejl|201|0|0|f2dba4ca-77f0-453b-86dc-b10482eb6233|
20:32:47||Billeder/CSGO Overlay 1_2|8|1|1732906121||4096|02607711oco9ibhc7qhi|3|Ukendt fejl|201|0|0|36600819-f943-4606-8a6d-698f74317732|
20:32:47||Billeder/CSGOLegacy169|8|1|1732906121||4096|02607712oco9ibhc7qhi|3|Ukendt fejl|201|0|0|897d835e-6696-4be0-a60c-850d7636c19e|
20:32:47||Billeder/Camera Roll|8|1|1732906107||0|02607713oco9ibhc7qhi|1|Ukendt fejl|201|0|0|4d28683b-3e98-4f0d-8176-fe92e0f42667|
#=#=#=# Syncrun finished 2024-11-29T20:32:51Z (last step: 1953 msec, total: 80590 msec)

Turns out there was a hidden documents folder in my users folder that was messing everything up.
After deleting it, everything started working as normal again.

I had to uncheck “Hide protected operating system files” under foldersettings in windows before I could see the folder.
Enabling “show hidden files and folders” was not enough