-
-
Notifications
You must be signed in to change notification settings - Fork 871
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
onedrive repeat Processing same number of onedrive items and eventually fails sync #1237
Comments
@xmoiduts
This is 100% normal - the OneDrive API provides these details.
As this is a 'personal' account, and this behaviour sounds very similar to the OneDrive API deltaLink bug, I am marking this as an API issue. This was apparently solved yesterday, so please can you recheck your process. References: |
Given that the API issue was resolved >24hrs ago, has the sync process returned to normal behavior for you? Please can you advise. |
Our Acronis Microsoft 365 backup solution https://www.acronis.com/en-us/solutions/backup/office-365/ is still affected by the issue. |
Suggest then that you contact Acronis for support. I cannot help you. If you want OneDrive API support on this issue, you need to comment on these API threads: |
I'm from Acronis. |
@Konstantin-Margorin That Acronis still presents an issue, shows that the issue might still persist, however, what 'end user accounts' are experiencing the issue - Personal or Business (Office 365 etc)? I can confirm that the API, for 'personal' account types, the deltaLink response is now different (as per before the broken change) - and agin just tested, still presents the correct data. For Business accounts - right now I am getting an API 504 error, so I cannot reliably test.
That would be my advice - specifically comment in OneDrive/onedrive-api-docs#1424. 1408 was when the response was totally garbled and generated a 400 error, which is not the case this time around. |
@Konstantin-Margorin |
I tested it today and everything runs smoothly. When analyzing my logs as well as the OneDrive/onedrive-api-docs#1424 |
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. |
Note: Before submitting a bug report, please ensure you are running the latest 'onedrive' client as built from 'master' and by using the latest available DMD compiler. Refer to the readme on building the client for your system.
[Yes, I rebuilt and used the latest version]
Bug Report Details
Describe the bug
A clear and concise description of what the bug is.
Onedrive constantly (repeat / stuck in) reporting "Processing the same number of Onedrive items to ensure ... " and will eventually fail syncing (typically after 1-5 hours, resulting in a failed
$?
.);Using --resync will succeed a single standalone sync and generate duplicated hostname-attached filenames , but the syncing issue still exists and will happen next time when not using --resync. (I don't think resyncing every time is a good option because it corrupts filenames of modified one (hostname attached) and my full resync takes several hours where it is supposed to be <30 minutes.)
More details in 'Context' part.
Application and Operating System Details:
uname -a
Linux onedriver24 5.4.0-51-generic #56-Ubuntu SMP Mon Oct 5 14:28:49 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
(An DigitalOcean VPS)
No GUI
Personal
Build from source
Build once, save in block storage and re-install in every new server instance which are of the save Operating System within the same VPS provider.
dmd --version
orldmd2 --version
DMD64 D Compiler v2.095.0
onedrive --version
onedrive v2.4.9-6-g1c6dd42
(but 2.4.7.x also have this issue)onedrive --display-config
curl --version
Local directory (mounted block storage within the VPS provider)
mount
lsblk -f
sda
is the attached block storage (DigitalOcean Volumes)The OneDrive folder is shared with another windows 10 machine (my personal computer) while the block storage
sda
is only accessible by the server. I avoid to do any operations on the sync_path during the Linux onedrive sync. When not syncing (Linux onedrive completely not running), I modify some files in the sync_path.Note: Please generate a full debug log whilst reproducing the issue as per https://github.com/abraunegg/onedrive/wiki/Generate-debug-log-for-support and email to support@mynas.com.au
The log is too big so I didn't generate it full, but may be enough to address the issue.
To Reproduce
Steps to reproduce the behavior if not causing an application crash:
(I can't reproduce it from scratch, it happened after running normally for months)
If issue is replicated by a specific 'file' or 'path' please archive the file and path tree & email to support@mynas.com.au
"I also think there would be a file that triggers the issue, but in --verbose mode it didn't give me any clue, see screenshot".
Complete Verbose Log Output
A clear and full log of the problem when running the application in the following manner (ie, not in monitor mode):
Run the application in a separate terminal window or SSH session and provide the entire application output including the error & crash. When posing the logs, Please format log output to make it easier to read. See https://guides.github.com/features/mastering-markdown/ for more details.
Application Log Output:
(See screenshots)
Screenshots

If applicable, add screenshots to help explain your problem.
Additional context
I have a spider script that collects information on a website. In order to code locally and run the script remotely, I chose to use OneDrive to share data between my computer and cloud server(s).
Everyday a new server is launched, attaching block storage within the same data-canter, installing the self-pre-compiled DMD/onedrive and run my script that downloads/modifies some files. Then an standalone onedrive sync is performed to send those data to MS/OneDrive service, the server is afterwards destroyed.
This approach worked seamlessly for several months, about one week ago it started failing to sync and causing chaos(duplicated files with hostnames attached to filenames, which I know is a feature). It was then onedrive version 2.4.7.19. but upgrading to 2.4.9 won't help.
I tried to --resync; deleting all sqlite indices then --resync; deleting all onedrive files on the server then perform fresh (re)sync. Everytime resync works, but when not adding --resync(ing), the verbose message tells me it stuck somewhere. A normal sync often give flunctuating
Processed onedrive items
numbers like [207,213,199,204,...], while now it gives [200,200,200,200,...] .Bug Report Checklist
The text was updated successfully, but these errors were encountered: