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

Fix files on external storages #17

Open
AlessioP3 opened this issue Jan 20, 2022 · 8 comments
Open

Fix files on external storages #17

AlessioP3 opened this issue Jan 20, 2022 · 8 comments

Comments

@AlessioP3
Copy link

Hi,
I have run the unsolvable_files.sh script.
The script lists me a list of files, but at this point I don't know how to proceed to fix the files

All these files are on an external drive connected via USB.

Thank you in advance.

@artonge
Copy link
Collaborator

artonge commented Jan 20, 2022

How is Nextcloud connected to them? External storage?

@AlessioP3
Copy link
Author

Yes, I connected the external drive to nextcloud via the nextcloud application called "external storage support"

@artonge
Copy link
Collaborator

artonge commented Jan 20, 2022

The script does not support that currently. Feel free to make a pull request to add support for external storage :)

@AlessioP3
Copy link
Author

Thank you for your reply.
Could you please explain what the problem is with these files and tell me theoretically what the script should do to correct the files?

@artonge artonge changed the title fix files Fix files on external storages Jan 27, 2022
@artonge
Copy link
Collaborator

artonge commented Jan 27, 2022

The problem is that the script is not currently able to know where they are located.

While in theory this could be done, it is probably easier for you to take the output of the script and run touch on every listed file.

@AlessioP3
Copy link
Author

thank you for the suggestion, I ran touch on the files and the problem was solved.
After a few days, however, the problem returned on other files.

I have identified the client that is generating the problem every time it modifies a file.
In order to understand how to solve the root of the problem, can you tell me what is causing the error?

@artonge
Copy link
Collaborator

artonge commented Feb 8, 2022

The desktop client version 3.4.0 included several fixes for the Virtual files feature on Windows. Unfortunately one of those fixes had a side effect that removes the modification time from files and trigger an upload to the server of those files with invalid metadata.

The latest updates of both the client and the server should prevent this behaviour.

@jahill92
Copy link

Hello @artonge
Any idea on how to address this issue for external Samba stores?
I have a central external smb store that every user has access to and a user dir external storage configured with $user as share.
Since the SMB access is not transparent to the system I cant run touch on the files.

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

No branches or pull requests

3 participants