Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 3.15.1 Multiple accounts sharing a folder - NOT! #7657

Closed
4 of 8 tasks
Bockeman opened this issue Dec 13, 2024 · 16 comments
Closed
4 of 8 tasks

[Bug]: 3.15.1 Multiple accounts sharing a folder - NOT! #7657

Bockeman opened this issue Dec 13, 2024 · 16 comments

Comments

@Bockeman
Copy link

⚠️ Before submitting, please verify the following: ⚠️

Bug description

On Windows 10 64-bit client, "Settings", the following message appeared after update to 3.15.1 :

Multiple accounts are sharing the folder F:/Video/.
This configuration is know[n] to lead to dataloss and is no longer supported.
Please consider removing this folder from the account and adding it again.

But there is only one nextcloud account on this client.
So this message is bogus.
Aside: What should I do, ignore the bogus message, or do what it says (remove, then add again)?

The log file for the corresponding folder sync contains:

#=#=#=# Syncrun started 2024-12-13T15:34:11Z
#=#=#=#=# Propagation starts 2024-12-13T15:34:15Z (last step: 3924 msec, total: 3924 msec)
#=#=#=# Syncrun finished 2024-12-13T15:34:15Z (last step: 13 msec, total: 3938 msec)
#=#=#=# Syncrun started 2024-12-13T15:34:20Z
#=#=#=#=# Propagation starts 2024-12-13T15:34:20Z (last step: 180 msec, total: 180 msec)
#=#=#=# Syncrun finished 2024-12-13T15:34:20Z (last step: 10 msec, total: 191 msec)
#=#=#=# Syncrun started 2024-12-13T15:49:35Z
#=#=#=#=# Propagation starts 2024-12-13T15:49:56Z (last step: 21005 msec, total: 21005 msec)
#=#=#=# Syncrun finished 2024-12-13T15:49:56Z (last step: 14 msec, total: 21019 msec)

(i.e. no error message)

Steps to reproduce

  1. Run nextcloud client as normal
  2. Monitor using "Settings"
  3. Observe 'Multiple accounts are sharing the folder ...'

Expected behavior

No bogus messages.

Which files are affected by this bug

None indicated.

Operating system

Windows

Which version of the operating system you are running.

Windows 10

Package

Official Windows MSI

Nextcloud Server version

30.0.1

Nextcloud Desktop Client version

3.15.1

Is this bug present after an update or on a fresh install?

Updated from a minor version (ex. 3.4.2 to 3.4.4)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

Are you using an external user-backend?

  • Default internal user-backend
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Nextcloud Server logs

Nothing relevant.

Additional info

Image

@claudiocandio
Copy link

Hi, same for me, I had to revert to 3.14.3

Image

Thanks

@mayonezo
Copy link
Contributor

I had the same problem. There were two .db files in my Nextcloud root folder. Deleting the older one got rid of the multiple accounts error. The Virtual filesystem error remains...

@claudiocandio
Copy link

I had the same problem. There were two .db files in my Nextcloud root folder. Deleting the older one got rid of the multiple accounts error. The Virtual filesystem error remains...

thank you @mayonezo I did remove the old .db files and the multiple accounts error is not there anymore, and yes the Virtual filesystem error remains.

@bernhardkaindl
Copy link

Same here.

@chris-blues
Copy link

+1

@Bockeman
Copy link
Author

Please note the spelling mistake in the error message (should be known, not know):

Multiple accounts are sharing the folder F:/Video/.
This configuration is know[n] to lead to dataloss and is no longer supported.
Please consider removing this folder from the account and adding it again.

@Bockeman
Copy link
Author

Removing the older .db and related files fixed the issue for me.

I don't suppose anyone will figure out what caused the additional .db file to be created.

However, it would be helpful to users if the 3.15.1 update that first detected and reported the duplication with the bogus "Multiple accounts" message, presented a different message instead:

More than one .db file has been detected.

This could be caused by having multiple accounts sharing folder F:/Video/
which is a configuration that is known to lead to dataloss and is no longer supported. 
Please consider removing this folder from the account and adding it again.

This could also be caused by some historical event that created a new .db file.
Please consider removing the older .db file(s).

@Gloryandel
Copy link

Prior to version 3.15.1, removing the synchronization link would not clean up the .db file. However, version 3.15.1 cleans up the .db file, so when adding synchronization, it is mistakenly assumed that synchronization already exists.

@Bockeman
Copy link
Author

@Gloryandel thanks for you insight.

However, your condition "when adding synchronization" does not apply in my case (and I guess also for other contributors above -- given they appear to see the problem on an existing sync'd folder).

Regardless, it does appear you have identified some code that has changed in 3.15.1 and that has thrown up some unexpected/undesirable behaviour.

Please could you, or other developer, progress this (e.g. assign action) to fix the problem you identified and disambiguate the error messaging.

@Gloryandel
Copy link

@Bockeman In fact, after I updated the app, the existing synchronization link had an error prompting multi-user sharing. Fortunately, my files were all synchronized. So I directly removed the synchronization link, cleaned up the .db and other residual files, and added it again to resume synchronization.

@camilasan
Copy link
Member

Hello All,

I would like to explain that the fact that the client allowed users to use the same location more than once to sync was always a bug. Specially with virtual files on Windows. We had cases before were this set up caused data loss.

I am sorry for the inconvenience with this change, but the only solution it is to fix the sync folder by removing the old .db files or to start a new sync in a different location.

We will change the text to be more helpful, that was a very good feedback, thanks for that. 3.15.2 is already in progress.

@Rello
Copy link
Contributor

Rello commented Dec 16, 2024

#7667

@balerdis
Copy link

balerdis commented Dec 16, 2024

I did the following in each directory that was reported, and it worked perfectly:

$ ls -lhart .*.db

and i removed all files except the last one

@chris-blues
Copy link

With 3.15.2 the message is much better! 👍

@stefan-franz
Copy link

With 3.15.2 / Linux Mint Flatpak - i have also the same wrong message: Multiple Accounts.....and the gui freezes.

@Bockeman
Copy link
Author

3.15.2 The message is now clear.
Solution: Remove any old .db files from the root of the sync folder on the client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants