Closed kayzzen01 closed 1 week ago
@kayzzen01
Please can you compile the following PR:
git clone https://github.com/abraunegg/onedrive.git
cd onedrive
git fetch origin pull/2838/head:pr2838
git checkout pr2838
To build the PR, please follow the steps to prepare your system to build the client as detailed here: https://github.com/abraunegg/onedrive/blob/master/docs/install.md#building-from-source---high-level-requirements
When building the client, please use the following:
./configure --enable-debug; make clean; make;
When running the PR, your version should be: onedrive v2.5.0-6-g1a5e0b3
or greater.
I have tested this PR with the following, using your 'sync_list' configuration:
./onedrive -m -v
......
[M] New local file added: Documents/new_local_file2.txt
New items to upload to Microsoft OneDrive: 1
Total New Data to Upload: 21 Bytes
Uploading new file: Documents/new_local_file2.txt ... done
[M] Total number of local file(s) added or changed: 1
........
The result is that the new local file, is correctly picked up, and uploaded within a couple of seconds to Microsoft OneDrive as per expectation.
@kayzzen01
Please can you respond
@abraunegg,
Sorry for the delay. Today has been a busy day. In an hour I will carry out the procedures you requested.
@kayzzen01
Please can you respond
Hi @abraunegg,
The syncs are being performed within about 1 second of making any modification. As per your evidence above.
.....
Processing API Response Bundle: 1 - Quantity of 'changes|items' in this bundle to process: 0
Finished processing /delta JSON response from the OneDrive API
No changes or items that can be applied were discovered while processing the data received from Microsoft OneDrive
Sync with Microsoft OneDrive is complete
[M] Local file changed: Config/text-file-new01.txt
Uploading modified file: Config/text-file-new01.txt ... done
[M] Total number of local file(s) added or changed: 1
.....
Working as expected! :clap:
Can you also confirm, based on prior experience with v2.4.x - this is acting as it did before v2.5.0
Im just trying to confirm i've also not now inadvertantly broken something else with 'sync_list' operations with this fix.
Any feedback on that is greatly appreciated.
Yes, version 2.5.0 is working similarly to version 2.4.x.
I don't know if it's relevant to the case. I say similar because I'm finding version 2.5.0 faster than version 2.4.x in synchronizing events.
Sep 22 09:45:53 arch onedrive[814]: Attempting to contact Microsoft OneDrive Login Service
Sep 22 09:45:54 arch onedrive[814]: Successfully reached Microsoft OneDrive Login Service
Sep 22 09:45:54 arch onedrive[814]: Starting a sync with Microsoft OneDrive
Sep 22 09:45:54 arch onedrive[814]: Syncing changes from Microsoft OneDrive ...
Sep 22 09:45:58 arch onedrive[814]: Sync with Microsoft OneDrive is complete
And even during the verification process, the modified file was uploaded.
I tested on versions 2.5.0 and onedrive v2.5.0-8-ge275d8d
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
Real-time synchronization is not occurring, changes are only processed based on the 'monitor_interval' time.
Operating System Details
Client Installation Method
From Source
OneDrive Account Type
Personal
What is your OneDrive Application Version
2.5.0
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'
I only use it on my personal desktop. I'm not using it on Windows and I have a cell phone that syncs photos to OneDrive.
Steps to reproduce the behaviour
When updating/modifying or renaming or deleting a file. These modifications will only be reflected in OneDrive when the 'monitor_interval' is performed.
Complete Verbose Log Output
Screenshots
No response
Other Log Information or Details
No response
Additional context
No response