-
-
Notifications
You must be signed in to change notification settings - Fork 868
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: Synced file is removed when updated on the remote while being processed by onedrive #2699
Comments
@jtomkiew The resolution path however for you is to upgrade to v2.5.0-rc1. Please read in detail the client architecture documentation for v2.5.0 to evaluate if your use case above is taken care of, as this version has been a 100% total re-write including all logic handling. The specific client architecture documentation can be found here: https://github.com/abraunegg/onedrive/blob/onedrive-v2.5.0-release-candidate-1/docs/client-architecture.md Post reading this document, what I suggest is that you upgrade your client to v2.5.0-rc1 and re-perform your testing using this client version. To upgrade to v2.5.0-rc1 will require you to manually compile the client for your system. Please read:
Please perform all your testing again with v2.5.0-rc1. |
Thanks @abraunegg, I'll verify this on 2.5.0-rc1 and let you know. |
@jtomkiew |
I just did the test (sorry for the delay) and it seems to behave the same way in this scenario:
|
@jtomkiew |
@jtomkiew |
* Update docker.md to clarify where to install Docker from * Potentially resolve #2699 - needs testing by reporter
@abraunegg I was wondering if it is possible to get file version information from the API to determine if we need to duplicate local file or not (i.e. if file has the same hash and modification date as one of the previous versions, then we can just overwrite local file), but this is just some food for thought. Feel free to close this issue at your leisure. Thanks! |
The client already does this taking into account timestamp, size and hash of the file, before determining if the local file needs to be preserved. Closing this issue as original issue is resolved. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Describe the bug
onedrive
attempts to sync remote file changes from OneDrive, but then fails while downloading that file (hash mis-match, as the file was modified on the remote while being processed byonedrive
),onedrive
then detects that the local file is missing (as it failed to download and replace), and commits that to OneDrive as deleted.Operating System Details
Linux fedora 6.8.4-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Apr 4 20:45:21 UTC 2024 x86_64 GNU/Linux Fedora release 39 (Thirty Nine)
Client Installation Method
From Distribution Package
OneDrive Account Type
Personal
What is your OneDrive Application Version
2.4.25
What is your OneDrive Application Configuration
What is your 'curl' version
Where is your 'sync_dir' located
Local
What are all your system 'mount points'
not applicable for this issue
What are all your local file system partition types
not applicable for this issue
How do you use 'onedrive'
Sync from OneDrive on Windows 10 to
onedrive
on Fedora 39 (for this issue simplicity only consider this direction).Steps to reproduce the behaviour
You can do this naturally, by accident, but the following is a sure way to trigger the issue:
onedrive
service on Fedora - we'll be triggering syncs on demandonedrive
on Fedora (onedrive --synchronize
) - there should be no issuesonedrive
on Fedora (repeat until error is reported in the log) - the file is removed byonedrive
(you can also verify that in OneDrive in recent changes - it will displayed that the file was deleted).Complete Verbose Log Output
Screenshots
No response
Other Log Information or Details
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: