-
-
Notifications
You must be signed in to change notification settings - Fork 864
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
Synchronize doesn't delete files and folders on Sharepoint library #1408
Comments
@MichaKersloot Will spend some time tomorrow investigating and attempting to replicate |
Hi @abraunegg Thank you for your time on forehand. If you need anything, please don't hesitate to ask. |
@MichaKersloot
and I cannot replicate nor find an issue. When using
The debug log / data you have also provided via email also does not show any deletion activity or any sort. Please can you re-do your testing, but this time, please:
Example for file delete:
Example for file move:
|
Hi, thanx for you effort. off course now it works for new files.: 1st run: moving the file to another folder 2nd run: It looks like it also is deleting files that other users have moved. So some assumptions from me. File handling is done on basis of the local database? I know the application crashed several times in the last week, so I guess the local database is not up-to-date with the actual situation on Sharepoint. As the local database was somehow corrupted it didn't detect moved and/or deleted files and does not process them on Sharepoint. Resync picks up the new files and it looks like they are processed correctly. How can I get Sharepoint in sync with the local system now? Seems resync doesn't take the Sharepoint side in account? |
Deleting these where - locally or on OneDrive .. because they were present on your local file system and now they are not?
The application 100% relies on the local database. Also, if the application crashes - raise an issue, as it shouldn't crash, but at the same time the local DB cache file will not get corrupted. You only need to use The issue here is, in an upload only + resync scenario, the client is not fetching any remote state - as in, what files are present online, what files are not present online, what has been uploaded previously locally - the client has zero idea because
The
So how can you get the state back to a true sync state in an easy way ... this 'might' work:
|
Closing issue as not a bug or issue with the client |
Hi @abraunegg , thank you very much for you time to answer my problem! I hope I can clear things a bit up for 'documentation' reasons. I was using the --upload-only option because we are in a migration project to Microsoft 365 and I had to make sure local data is leading. If I now remove the --upload-only flag data will duplicate because it exists on a different path in Sharepoint as it does local. For me, the application stopped because it seemed to struggle with Desktop.ini files that somehow ended up in the dataset. I changed the config to exclude them and was then requested to apply the --resync option. I'm in the lucky position I have enough local storage, so for now I'm starting over again by making a local snapshot and sync that to Sharepoint, run the application with --monitor and update the local snapshot. As it is part of a migration, this situation is only needed for a short time. Thanks for the Idea of running --upload-only --dry-run as it could be used the other way around for me ;-) Maybe I can use the --download-only --dry-run to see what is currently in Sharepoint that shouldn't be there and if it is acceptable, delete those files from sharepoint and start uploading again. For now it seems 2.4.11 seems to complete a full run where 2.4.10 did stop. But I've learned to catch the first error / problem and not to try to work around it. Thanks again for your time and extensive explanation. |
I think this is a case of RTFM: https://github.com/abraunegg/onedrive/blob/master/docs/USAGE.md#performing-a-sync
The application would not have struggled with these files - they would have simply be excluded by default - see: #1277 (comment) .. so this would not have been your issue.
I do not support anyone running anything older than the current release of the client. v2.4.10 contains 13 bugs - some would have been impacting to SharePoint use - see: https://github.com/abraunegg/onedrive/releases/tag/v2.4.11. There are also 3 bugs fixed post this, and these also would be impacting to SharePoint use. You are using 'master' at the moment, so at least you are using the right code for the client. |
Hi, I was running master all the time, but the project started some time ago. Sorry for being very cautious, but I really, really want to be sure the local files are not touched. For I'm using a snapshot of the local data to get onedrive in sync. I find onedrive --monitor --verbose does stop after a few hours without any apparent reason. The echo $? gives me errorlevel 141. As soon as I've gathered more info I'll submit a new issue. The debug option (2x --verbose) generates too much data to have it running over a longer time, so I'm trying some options to get relevant data. |
The client is most likely exiting due to this known issue: This is nothing I can fix, this is a network issue where the network connection between you and OneDrive fails, which the client is unable to recover from. Please do a verbose debug log + HTTPS debugging to determine if your cause is the same using the following process: https://github.com/abraunegg/onedrive/wiki/Generate-https-debug-log-for-support Usually unfortunately, each time this issue has been seen, most users are attempting to access a European Microsoft Data Centre. Given your location, I suspect this issue is the same one as mentioned above. |
thanks again for the prompt response. I'll try to fetch some debug logging, but as it only happens now and then, the logfiles are getting huge. Would it be 'dangerous' to put the onedrive --monitor command in a loop with a sleep 60 to automatically restart it for the time being? And yes, this would probably be the European Microsoft Data Centre ;-) |
I would refer to this as a work around for the client stopping without any visible reason: #753 (comment) |
@abraunegg For de debug log. It ends with:
As you seem to state this probably is a curl / ssl problem and this system is rather old I'm not sure you want to proceed on this one? |
@MichaKersloot
Given however:
It is most likely the same issue that plagues MS EU Data Centers (or there is some sort of ISP / Government MITM inspection going on ...) If you system is also really old, it is certainly not worth pursuing this issue any further. |
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. |
Bug Report Details
I want to migrate to O365 and have setup some sharepoint libraries. Syncing works and everything is uploaded. But when on the source files are moved or deleted those files are not changed in SharePoint when a next synchronize is started. I'm using the --upload-only flag and when I omit this, the now extra files in SharePoint are going to be downloaded. I've tried --resync and that doesn't solve it.
Application and Operating System Details:
Client Configuration:
Curl Version:
bak--files01--vg-home ext4 8427f1d4-e74d-4b6e-b72e-dfaa5f9c5ed8 /home
To Reproduce
onedrive --confdir=/root/.config/onedrive/organisation/ --synchronize --verbose --upload-only
Log file is mailed + screenshot to show de difference between local and SharePoint
The text was updated successfully, but these errors were encountered: