-
-
Notifications
You must be signed in to change notification settings - Fork 874
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: Can't sync OneDrive Personal Shared Folders due to inconsistent API response values #3136
Comments
+1 |
This is 100% unhelpful .... a +1 means zero ... you have an issue .. great .. however your issue may not be this actual issue. There are 2 problems at the moment:
So .. in future .. please do not use '+1' and actually provide some meaningful information or potentially perform the Basic Troubleshooting Steps to determine your actual issue and then quantify with data that this is your issue ... adding a +1 and your use of Ubuntu is unhelpful |
@rgcenteno I have sent a request for another file, please can you review your email. |
Same here, final output of
stacktrace looks the same, anything else relevant I can provide? I can try building from source if that helps |
Please re-build your client from 'master' and provide a debug log via email if you are encountering an issue. This will rule 'in' or 'out' the API Bug 'sea8xxxxxx' for your DriveID as a very specific error message is displayed. The debug log then will be checked for 15 character drive id lengths (#3115) which is currently being looked at and awaiting further evidence to finish resolving. This issue (#3136) appears to be 100% new - not related to the other 2 items. The challenge is - all of these manifest and crash the exact same way with v2.5.4 - however they are distinctly 3 separate issues. |
I built from source and ran
I don't think I'm hitting the DriveID bug as I'm not seeing any "ERROR:"s in the log:
These "ERROR" lines would be expected in the output for that bug, no? Lines 740 to 750 in 9051d0d
|
@K1ngjulien Please can you provide via email:
|
@rgcenteno So .. correlation of data shows that you are actually impacted by #3115 I will send this evidence and analysis via email to you. Post doing this, please can you use the details in #3115 to build your client from PR #3116 and generate a new debug log using this specific PR. @K1ngjulien |
@rgcenteno , @K1ngjulien I cannot replicate your issue, thus I need you to test this PR to work around the API Bug. To test the PR, first install all the require platform dependencies to build the client on your respective platforms. Please read https://github.com/abraunegg/onedrive/blob/master/docs/install.md#building-from-source---high-level-requirements and then follow correctly for your platform. Important Currently there is an issue with installing the DMD or LDC compiler using the documentation instructions: This is not something I can solve and I have emailed the appropriate folk and raised dlang/dmd#20830 Please augment the installation of DMD or LDC with your distribution version if it is available Once this is done, to clone the PR to resolve your issue, you can use a script like the following:
This script will create a local folder called To run the PR, you need to run the client from the PR build directory:
To install the PR, you will need to perform When running the PR, your version should be: If you still encounter an issue, please generate a new verbose debug log following this process: https://github.com/abraunegg/onedrive/wiki/Generate-debug-log-for-support |
Based on the latest debug logs, please can you rebuild your client to I sincerely appreciate your patience while we worked through this issue, which was particularly challenging as it could not be directly replicated. The problem arises when a Shared Folder has a drive ID of 16 characters starting with a zero, causing the OneDrive API to respond inconsistently by dropping the leading zero in some cases, turning the drive ID into a 15-character invalid item. Please can you advise if this now resolves your issue or if there is still a further problem in your environment. |
I got the same error as rgcenteno. I did share a new folder last night, although I'm not 100% sure the error hasn't been there before. I tried the #3116 PR / v2.5.4-28-gc803fb9 and I'm not getting the error anymore now. Syncing works as before. Thanks! |
@simonbusstra |
To those watching | impacted by this bug(s) I was working on this issue heavily yesterday (1st March 2025) and the solution was working rather well with all testing. This morning, when I was re validating the code, overnight there has been an account change to all of my OneDrive Personal accounts where the accounts now have the 'sea8cc6beffdb43d7976fbc7da445c639' Microsoft change. As such, when I now query the API for all the folders online, the /delta query that this client heavily uses no longer is providing the Shared Folder JSON data that the /delta query was providing yesterday before the 'sea8cc6beffdb43d7976fbc7da445c639' account change. I have raised a bug with Microsoft for this issue - but until this data quality issue from the Microsoft OneDrive API is fixed, a full resolution for this insideous series of bugs caused by this 'sea8cc6beffdb43d7976fbc7da445c639' change cannot be resolved. The new API bug is listed here: OneDrive/onedrive-api-docs#1891 |
To those watching | impacted by this bug(s) Caution This maybe a 100% coding fix - however at the moment this needs a workaround to also be implemented by impacted users Please can you test this updated PR and provide valuable feedback. To test the PR, first install all the require platform dependencies to build the client on your respective platforms. Please read https://github.com/abraunegg/onedrive/blob/master/docs/install.md#building-from-source---high-level-requirements and then follow correctly for your platform. Important Currently there is an issue with installing the DMD or LDC compiler using the documentation instructions: This is not something I can solve and I have emailed the appropriate folk and raised dlang/dmd#20830 Please augment the installation of DMD or LDC with your distribution version if it is available Once this is done, to clone the PR to resolve your issue, you can use a script like the following:
This script will create a local folder called Important Before running this PR please add to your configuration file This will bypass the new OneDrive API /delta bug OneDrive/onedrive-api-docs#1891 where OneDrive Personal Folder details are no longer sent in the /delta response when your account has been migrated to the new Microsoft OneDrive platform. You can tell when you are impacted as when you run the application in verbose mode, it will look like this:
To run the PR, you need to run the client from the PR build directory:
To install the PR, you will need to perform When running the PR, your version should be: If you still encounter an issue, please generate a new verbose debug log following this process: https://github.com/abraunegg/onedrive/wiki/Generate-debug-log-for-support |
To those watching | impacted by this bug(s) Please rebuild your PR client version to A further UPPERCASE / lowercase API inconsistency has been uncovered, that required remediation as part of this PR. Please can you ensure you are running this version + apply the Whilst your client will run slower due to manually building a /delta response, Microsoft need to fix their API to provide again the Shared Folder data in the /delta API query, that is now removed when your account is moved to their new backend platform. Please read OneDrive/onedrive-api-docs#1891 for details. |
I have run v2.5.4-29-g5d836ad with debug model. Command After some time, it halts execution with a segmentation fault.
Translation:
Local changes hasn't been reflected on cloud storage. Today I will test version v2.5.4-30-g43ba76c and I will post results. |
I have run v2.5.4-30-g43ba76c. Same error segmentation fault on console output:
Executions has taken too long 5 or 6 hours. I guess force_children_scan = "true" is the reason. I'm sending sqlite3 and debug file by email. |
To those watching | impacted by this bug(s) Please rebuild your PR client version to It potentially appears that Microsoft has resolved the /delta API query bug that failed to send OneDrive Personal Shared Folder details, thus potentially you may be able to stop the use of the If you get this sort of error or similar without
You need to re-enable When using this client version, please use Please can you test this client version and advise. |
I have run onedrive
Debug file was sent by email. |
Describe the bug
Using personal paid account.
Onedrive doesn't upload my change to cloud. If it is executed on non-verbosed mode it gives this exception:
I have tryied 3 versions of Onedrive app:
In every compilation I have purged ~/.config/onedrive folder for trying to avoid any config missconfiguration or some sqlite3 db inconsistency
Operating System Details
OS: Linux rafa-laptop 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux lsb_release -a: No LSB modules are available. Distributor ID: Linuxmint Description: Linux Mint 21.3 Release: 21.3 Codename: virginia
Client Installation Method
From Source
OneDrive Account Type
Personal
What is your OneDrive Application Version
onedrive v2.5.4-12-g9051d0d
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'
What are all your local file system partition types
How do you use 'onedrive'
My main computer is the computer which halts error. Only Linux Mint OS installed.
When I am using other computer, I use OneDrive via web. I use Onedrive on Android Mobile with official cliente an also in a Boox note air 4c with the tool that is integrated in this device.
Steps to reproduce the behaviour
Only needed to perform manually a sync:
onedrive --sync
It fails also with
onedrive --sync --resync
Complete Verbose Log Output
Screenshots
Console error when running onedrive --sync
Other Log Information or Details
Additional context
No response
The text was updated successfully, but these errors were encountered: