Nextcloud creating duplicate folders inside itself, recursively, for any sync after upgrading to v4.0.0 Windows Desktop Client

After I upgraded to v4.0.0 of the Windos Desktop Client Nextcloud, I synced some folders and noticed that after syncing, it created another folder with the directory name inside the directory, recursively. For example, I have the following files and folders:

src/
    folder/
        test2.js
        another-folder/
            test3.js
    test.js
dir/
    folder/

When I try to sync the test2.js file, it creates an empty folder for each directory the file is in like this:

src/
    src/    <-
    folder/
        folder/    <-
        test2.js
        another-folder/
            test3.js
    test.js
dir/
    folder/

This happens whenever any sync happens (editing a file, creating a file or folder, etc.) except for deletion.

I would like to downgrade the client until this issue is fixed. How do I downgrade? What are the exact steps to avoid losing any files and the long waits for Nextcloud to setup (i.e. rescanning all the files and folders)?

7 Likes

Same issue thought I was going insane

Same problem in our system. We had to downgrade the client version.

4 Likes

I’ve installed v. 4.0.1, and the problem was solved. Not yet in the stable channel.

1 Like

It’s quite insane that such an obvious and destructive bug slipped into the stable version lol, and I have no idea about how to clean up these duplicated folders

Hi, you don’t need to clean up those folders yourself. I recommend waiting for the upcoming update (v4.0.1), which fixes this issue.
Otherwise, if you really want to resolve it manually, you can check this link for the steps to clean up those folders: https://github.com/nextcloud/desktop/issues/8915
However, be careful when running the scan --all command — it may take a long time to complete, and you must not interrupt it while it’s running.

1 Like

Thanks for your reply!

I already switched to dev branch for my Windows NextCloud Client and updated to the latest version v4.0.1, but it seems those folders are still there and there is no something like auto deletion of these folders.

This is not the expected behavior. Could you provide screenshots of the issue? Before attaching information about the issue, please run

files:scan --all

on your server to update the database links. It is recommended that no one interact with the system during this operation.

I have performed the full scan and got the result below:


After this, I tried resyncing my folders using Windows NextCloud client, and those folders still exists.

Note: These folders are visible on both the server side and my own computer, with status “Synced”

Thank you for sharing your details with me. Please allow me to report the issue you’re experiencing to the developers so they can investigate it further. In the meantime, I kindly ask you to wait for my follow-up while I discuss it with them.

I also recommend checking that all Nextcloud plugins are fully up to date, and try deleting those folders as if they had been created by a regular user. I believe this might help resolve the issue.
I’ll be waiting for your confirmation.

I’ve already updated my NextCloud instance and all the installed plugins to the latest version, but nothing happened and those folders are still there.

Still, I have to say that the good news is that the at least the latest Windows client now doesn’t create new duplicated folders anymore.

For those already created, I think I would leave them along for now because finding and deleting them manually could be quite time consuming lol