Open KunYi opened 2 days ago
@KunYi This issue was never seen in >12 months of testing, it could be unique to your environment.
Please build the client from 'source' and create a proper debug log please. To do this:
When building from source, please enable debugging:
./configure --enable-debug make clean; make;
To create a debug log output, please follow:
onedrive --sync --verbose --verbose > debug_output.log 2>&1
Thanks.
okay, I run the below steps to get the debug_output.log
$ wget https://github.com/abraunegg/onedrive/archive/refs/tags/v2.5.0.tar.gz
$ tar xvf v2.5.0.tar.gz
$ cd onedrive-2.5.0
$./configure --enable-debug make clean; make;
$./onedrive --sync --verbose --verbose > debug_output.log 2>&1
@KunYi Thanks for the debug log.
I am unable to reproduce this on Ubuntu 22.x using the same packages that Linux Mint 21.3 uses.
I am currently installing Linux Mint 21.3.
I rebuild v2.4.25 still work on my system
/tmp/onedrive-2.4.25$ ./onedrive --synchronize --verbose
Using 'user' Config Dir: /home/kunyi/.config/onedrive
Using 'system' Config Dir: /etc/onedrive
No user or system config file found, using application defaults
Checking Application Version ...
INFO: A new onedrive client version is available. Please upgrade your client version when possible.
Current Application Version: 2.4.25
Version Available: 2.5.0
Initializing the OneDrive API ...
Configuring Global Azure AD Endpoints
Using Curl defaults for all HTTP operations
Opening the item database ...
All operations will be performed in: /home/kunyi/OneDrive
ERROR: OneDrive account currently has zero space available. Please free up some space online.
Application version: v2.4.25
Account Type: personal
Default Drive ID: 30484cda412a1d29
Default Root ID: 30484CDA412A1D29!785
Remaining Free Space: 0
Fetching details for OneDrive Root
OneDrive Root exists in the database
Initializing the Synchronization Engine ...
Syncing changes and items from OneDrive ...
Applying changes of Path ID: 30484CDA412A1D29!785
ERROR: OneDrive account currently has zero space available. Please free up some space online.
Processing 346 OneDrive items to ensure consistent local state
Processing 354 OneDrive items to ensure consistent local state
Processing 348 OneDrive items to ensure consistent local state
Processing 315 OneDrive items to ensure consistent local state
Processing 357 OneDrive items to ensure consistent local state
Processing 351 OneDrive items to ensure consistent local state
Processing 333 OneDrive items to ensure consistent local state
Downloading file 桌面/舊的 Firefox 資料/93hplpwu.default-release/storage/default/https+++de.aliexpress.com/cache/caches.sqlite-wal ... done.
Downloading file 桌面/舊的 Firefox 資料/93hplpwu.default-release/storage/default/https+++de.aliexpress.com/cache/caches.sqlite-shm ... done.
Downloading file 桌面/舊的 Firefox 資料/93hplpwu.default-release/storage/default/https+++de.aliexpress.com/cache/caches.sqlite ... done.
Downloading file 桌面/舊的 Firefox 資料/93hplpwu.default-release/storage/default/https+++de.aliexpress.com/cache/.padding ... done.
Downloading file 桌面/舊的 Firefox 資料/93hplpwu.default-release/storage/default/https+++de.aliexpress.com/idb/699410867wtenbe-iplucs-h.sqlite-wal ... done.
Downloading file 桌面/舊的 Firefox 資料/93hplpwu.default-release/storage/default/https+++de.aliexpress.com/idb/699410867wtenbe-iplucs-h.sqlite-shm ... done.
Downloading file 桌面/舊的 Firefox 資料/93hplpwu.default-release/storage/default/https+++de.aliexpress.com/idb/699410867wtenbe-iplucs-h.sqlite ... done.
Downloading file 桌面/舊的 Firefox 資料/93hplpwu.default-release/storage/default/https+++de.aliexpress.com/ls/usage ... done.
@KunYi I am unable to reproduce this on Linux Mint 21.3 using the default package as provided by the OpenSuSE Repository:
So I suspect this is something very specific to your system|platform|cpu architecture.
The debug log gives me some clues, I will look at a change to see if this alleviate the issue for you.
@KunYi
Please can you compile the following PR which will give some further insight as to the issue you are specifically facing:
git clone https://github.com/abraunegg/onedrive.git
cd onedrive
git fetch origin pull/2808/head:pr2808
git checkout pr2808
To build the PR, please follow the prior steps:
./configure --enable-debug make clean; make;
There is no need for a debug log, the following execution is all you need to do:
./onedrive -s -v
When running the PR, your version should be: onedrive v2.5.0-1-g3f887d0
or greater
I fully expect this to fail, but this will tell me what value this item is, which is causing your client to fail, and will then dictate the direction of the fix.
for PR2808 onedrive v2.5.0-1-g3f887d0
DEBUG: Quota Details: {"@odata.context":"https:\/\/graph.microsoft.com\/v1.0\/$metadata#drives\/$entity","quota":{"deleted":0,"remaining":-107374183,"state":"exceeded","storagePlanInformation":{"upgradeAvailable":true},"total":42949672960,"used":43057047143}}
DEBUG: Reported Available Online Quota for driveID '30484cda412a1d29': 18446744073602177433
DEBUG: quotaRemainingValue: 18446744073602177433
DEBUG: OneDrive API releaseCurlEngine() Called
@KunYi Please can you rebuild your client from the provided PR and re-test for this issue.
The root cause is that you are out of space online, however the application was not handling this correctly, which is why this was crashing for you. I was able to repeat your crash by hardcoding some values whilst developing this fix.
Please can you test this in your environment.
@KunYi Please can you rebuild your client from the provided PR and re-test for this issue.
The root cause is that you are out of space online, however the application was not handling this correctly, which is why this was crashing for you. I was able to repeat your crash by hardcoding some values whilst developing this fix.
Please can you test this in your environment.
I rebuild and re-test on https://github.com/abraunegg/onedrive/issues/2806#issuecomment-2352073348 you can check it.
@KunYi No - you will need to re-pull the PR and rebuild 100%
When running the updated PR, your client version will be onedrive v2.5.0-2-gf5eb3b1
@abraunegg the new PR look work well
DEBUG: OneDrive API releaseCurlEngine() Called
DEBUG: CurlEngine releaseEngine() called on instance id: Wx2mLu0deZRPgEkN
DEBUG: CurlEngine curlEnginePool size before release: 0
DEBUG: CurlEngine cleanup() called on instance id: Wx2mLu0deZRPgEkN
DEBUG: CurlEngine curlEnginePool size after release: 1
DEBUG: Quota Details: {"@odata.context":"https:\/\/graph.microsoft.com\/v1.0\/$metadata#drives\/$entity","quota":{"deleted":0,"remaining":-107374183,"state":"exceeded","storagePlanInformation":{"upgradeAvailable":true},"total":42949672960,"used":43057047143}}
DEBUG: ERROR: OneDrive account currently has zero space available. Please free up some space online or purchase additional capacity.
DEBUG: Reported Available Online Quota for driveID '30484cda412a1d29': -107374183
DEBUG: onlineDriveDetails: ["30484cda412a1d29":DriveDetailsCache("30484cda412a1d29", false, false, -107374183)]
DEBUG: ERROR: OneDrive account currently has zero space available. Please free up some space online or purchase additional capacity.
DEBUG: appConfig.accountType = personal
DEBUG: appConfig.defaultDriveId = 30484cda412a1d29
DEBUG: cachedOnlineDriveData.quotaRemaining = -107374183
DEBUG: cachedOnlineDriveData.quotaAvailable = false
DEBUG: cachedOnlineDriveData.quotaRestricted = false
DEBUG: OneDrive API releaseCurlEngine() Called
DEBUG: CurlEngine releaseEngine() called on instance id: L5iJo4QXeySqmpt8
DEBUG: CurlEngine curlEnginePool size before release: 1
DEBUG: CurlEngine cleanup() called on instance id: L5iJo4QXeySqmpt8
DEBUG: CurlEngine curlEnginePool size after release: 2
DEBUG: CurlEngine getCurlInstance() called
DEBUG: CurlEngine curlEnginePool current size: 2
DEBUG: CurlEngine was in a valid state - returning existing CurlEngine instance
DEBUG: CurlEngine instance ID: L5iJo4QXeySqmpt8
DEBUG: Read token from appConfig
DEBUG: Authorised State: true
DEBUG: Getting Account Default Root Details
DEBUG: Request URL = https://graph.microsoft.com/v1.0/me/drive/root
DEBUG: Existing Microsoft OneDrive Access Token Expires: 2024-Sep-16 16:06:23.5289955
DEBUG: HTTP Response Headers: ["strict-transport-security":"max-age=31536000", "x-ms-ags-diagnostic":"{\"ServerInfo\":{\"DataCenter\":\"Korea Central\",\"Slice\":\"E\",\"Ring\":\"4\",\"ScaleUnit\":\"001\",\"RoleInstance\":\"SE1PEPF00000915\"}}", "odata-version":"4.0", "date":"Mon, 16 Sep 2024 07:06:25 GMT", "client-request-id":"b17cd120-eac6-49eb-9d7b-df4c941e8ccb", "request-id":"b17cd120-eac6-49eb-9d7b-df4c941e8ccb", "cache-control":"private", "content-type":"application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8"]
DEBUG: HTTP Status Line: 200 (2.0)
DEBUG: CurlEngine cleanup() called on instance id: L5iJo4QXeySqmpt8
DEBUG: OneDrive Account Default Root Details: {"@odata.context":"https:\/\/graph.microsoft.com\/v1.0\/$metadata#users('kunichen%40hotmail.com')\/drive\/root\/$entity","cTag":"adDozMDQ4NENEQTQxMkExRDI5ITc4NS42Mzg2MTQ2Mjc5NjMxNzAwMDA","createdBy":{"user":{"displayName":"Chen Kun-Yi","id":"30484cda412a1d29"}},"createdDateTime":"2007-08-05T11:59:38.073Z","eTag":"aMzA0ODRDREE0MTJBMUQyOSE3ODUuNTU","fileSystemInfo":{"createdDateTime":"2007-08-05T11:59:38.073Z","lastModifiedDateTime":"2023-05-27T00:44:21.507Z"},"folder":{"childCount":27,"view":{"sortBy":"lastModifiedDateTime","sortOrder":"ascending","viewType":"thumbnails"}},"id":"30484CDA412A1D29!785","lastModifiedBy":{"application":{"displayName":"OneDrive website","id":"44048800"},"user":{"displayName":"Chen Kun-Yi","id":"30484cda412a1d29"}},"lastModifiedDateTime":"2024-09-09T07:13:16.317Z","name":"root","parentReference":{"driveId":"30484cda412a1d29","driveType":"personal"},"root":{},"size":42674878489,"webUrl":"https:\/\/onedrive.live.com\/?cid=30484cda412a1d29"}
DEBUG: appConfig.defaultRootId = 30484CDA412A1D29!785
DEBUG: saveItem - creating DB item from this JSON: {"@odata.context":"https:\/\/graph.microsoft.com\/v1.0\/$metadata#users('kunichen%40hotmail.com')\/drive\/root\/$entity","cTag":"adDozMDQ4NENEQTQxMkExRDI5ITc4NS42Mzg2MTQ2Mjc5NjMxNzAwMDA","createdBy":{"user":{"displayName":"Chen Kun-Yi","id":"30484cda412a1d29"}},"createdDateTime":"2007-08-05T11:59:38.073Z","eTag":"aMzA0ODRDREE0MTJBMUQyOSE3ODUuNTU","fileSystemInfo":{"createdDateTime":"2007-08-05T11:59:38.073Z","lastModifiedDateTime":"2023-05-27T00:44:21.507Z"},"folder":{"childCount":27,"view":{"sortBy":"lastModifiedDateTime","sortOrder":"ascending","viewType":"thumbnails"}},"id":"30484CDA412A1D29!785","lastModifiedBy":{"application":{"displayName":"OneDrive website","id":"44048800"},"user":{"displayName":"Chen Kun-Yi","id":"30484cda412a1d29"}},"lastModifiedDateTime":"2024-09-09T07:13:16.317Z","name":"root","parentReference":{"driveId":"30484cda412a1d29","driveType":"personal"},"root":{},"size":42674878489,"webUrl":"https:\/\/onedrive.live.com\/?cid=30484cda412a1d29"}
DEBUG: Flagging object as a directory
DEBUG: Updating DB Item object with correct values as this is a 'root' object
DEBUG: ROOT JSON Item HAS parentReference .... setting item.driveId = jsonItem['parentReference']['driveId'].str
DEBUG: OneDrive API releaseCurlEngine() Called
DEBUG: CurlEngine releaseEngine() called on instance id: L5iJo4QXeySqmpt8
DEBUG: CurlEngine curlEnginePool size before release: 1
$./onedrive --sync --verbose
No user or system config file found, using application defaults
Using 'user' configuration path for application config and state data: /home/kunyi/.config/onedrive
Using IPv4 and IPv6 (if configured) for all network operations
Attempting to contact Microsoft OneDrive Login Service
Successfully reached Microsoft OneDrive Login Service
Checking Application Version ...
Attempting to initialise the OneDrive API ...
Configuring Global Azure AD Endpoints
The OneDrive API was initialised successfully
Opening the item database ...
ERROR: OneDrive account currently has zero space available. Please free up some space online or purchase additional capacity.
ERROR: OneDrive account currently has zero space available. Please free up some space online or purchase additional capacity.
Application Version: onedrive v2.5.0-2-gf5eb3b1
Account Type: personal
Default Drive ID: 30484cda412a1d29
Default Root ID: 30484CDA412A1D29!785
Remaining Free Space: 0 KB
Sync Engine Initialised with new Onedrive API instance
All application operations will be performed in the configured local 'sync_dir' directory: /home/kunyi/OneDrive
Fetching /delta response from the OneDrive API for Drive ID: 30484cda412a1d29
Processing API Response Bundle: 1 - Quantity of 'changes|items' in this bundle to process: 342
Processing API Response Bundle: 2 - Quantity of 'changes|items' in this bundle to process: 353
Processing API Response Bundle: 3 - Quantity of 'changes|items' in this bundle to process: 372
Processing API Response Bundle: 4 - Quantity of 'changes|items' in this bundle to process: 360
Processing API Response Bundle: 5 - Quantity of 'changes|items' in this bundle to process: 342
Processing API Response Bundle: 6 - Quantity of 'changes|items' in this bundle to process: 348
Processing API Response Bundle: 7 - Quantity of 'changes|items' in this bundle to process: 346
Processing API Response Bundle: 8 - Quantity of 'changes|items' in this bundle to process: 354
Processing API Response Bundle: 9 - Quantity of 'changes|items' in this bundle to process: 348
Processing API Response Bundle: 10 - Quantity of 'changes|items' in this bundle to process: 315
Processing API Response Bundle: 11 - Quantity of 'changes|items' in this bundle to process: 357
Processing API Response Bundle: 12 - Quantity of 'changes|items' in this bundle to process: 351
Processing API Response Bundle: 13 - Quantity of 'changes|items' in this bundle to process: 333
Processing API Response Bundle: 14 - Quantity of 'changes|items' in this bundle to process: 325
Processing API Response Bundle: 15 - Quantity of 'changes|items' in this bundle to process: 354
Processing API Response Bundle: 16 - Quantity of 'changes|items' in this bundle to process: 358
Processing API Response Bundle: 17 - Quantity of 'changes|items' in this bundle to process: 365
Processing API Response Bundle: 18 - Quantity of 'changes|items' in this bundle to process: 399
Processing API Response Bundle: 19 - Quantity of 'changes|items' in this bundle to process: 406
Processing API Response Bundle: 20 - Quantity of 'changes|items' in this bundle to process: 406
Processing API Response Bundle: 21 - Quantity of 'changes|items' in this bundle to process: 406
Processing API Response Bundle: 22 - Quantity of 'changes|items' in this bundle to process: 406
Processing API Response Bundle: 23 - Quantity of 'changes|items' in this bundle to process: 406
Processing API Response Bundle: 24 - Quantity of 'changes|items' in this bundle to process: 406
Processing API Response Bundle: 25 - Quantity of 'changes|items' in this bundle to process: 406
Processing API Response Bundle: 26 - Quantity of 'changes|items' in this bundle to process: 406
Processing API Response Bundle: 27 - Quantity of 'changes|items' in this bundle to process: 406
Processing API Response Bundle: 28 - Quantity of 'changes|items' in this bundle to process: 350
Describe the bug
when upgrade to latest version
and run
Operating System Details
Client Installation Method
From Distribution Package
OneDrive Account Type
Personal
What is your OneDrive Application Version
onedrive v2.5.0-1+np1+1.1
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'
with windows system shared OneDrive folder, but not same time use.
Steps to reproduce the behaviour
just run 'onedrive --synchronize'
Complete Verbose Log Output
Screenshots
Other Log Information or Details
No response
Additional context
No response