Closed DieBe closed 1 month ago
@DieBe Please can you test PR #2939 to resolve your issue.
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.
Once this is done, to clone the PR to resolve your issue, you can use a script like the following:
#!/bin/bash
PR=2939
rm -rf ./onedrive-pr${PR}
git clone https://github.com/abraunegg/onedrive.git onedrive-pr${PR}
cd onedrive-pr${PR}
git fetch origin pull/${PR}/head:pr${PR}
git checkout pr${PR}
# Configure and Build
./configure --enable-debug --enable-notifications; make clean; make;
./onedrive --version
This script will create a local folder called onedrive-pr2939
with the PR version.
To run the PR, you need to run the client from the PR build directory:
./onedrive <any other options needed>
To install the PR, you will need to perform sudo make install to install the PR version to your system.
When running the PR, your version should be: onedrive v2.5.2-26-gdb66e7b
or greater.
alex@onedrive-client-dev onedrive-pr2939]$ ./onedrive -s -v --resync --resync-auth
Reading configuration file: /home/alex/.config/onedrive/config
Configuration file successfully loaded
Using 'user' configuration path for application config and state data: /home/alex/.config/onedrive
Deleting the saved application sync status ...
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 ...
Application Version: onedrive v2.5.2-26-gdb66e7b
Account Type: personal
Default Drive ID: 66d53be8a5056eca
Default Root ID: 66D53BE8A5056ECA!101
Remaining Free Space: 4.70 GB (5046586572 bytes)
Sync Engine Initialised with new Onedrive API instance
All application operations will be performed in the configured local 'sync_dir' directory: /home/alex/OneDrive
Fetching /delta response from the OneDrive API for Drive ID: 66d53be8a5056eca
Processing API Response Bundle: 1 - Quantity of 'changes|items' in this bundle to process: 172
Skipping path - The Microsoft OneNote Notebook '/Documents/ETH' is not supported by this client
Skipping path - The Microsoft OneNote Notebook File '/Documents/ETH/Open Notebook.onetoc2' is not supported by this client
Skipping path - The Microsoft OneNote Notebook File '/Documents/ETH/Untitled Section.one' is not supported by this client
Processing API Response Bundle: 2 - Quantity of 'changes|items' in this bundle to process: 1
Finished processing /delta JSON response from the OneDrive API
Processing 164 applicable changes and items received from Microsoft OneDrive
............
This PR works around the OneDrive API not providing all data for the OneNote items.
I tested the pull request with ./onedrive --sync
, no errors appeared, everything worked as expected. I couldn't find the OneNote notebooks, so I guess they didn't get downloaded. (Which, at least for me, is no problem at all)
Let me know if you need any specific logs or tests of the pull request.
Thanks for the confirmation - so at least the original issue you faced is fixed by this PR
Closing issue as fix is merged into 'master'
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
When performing a sync, for some files and directories, the OneDrive API doesn't return the standard elements that it is supposed to, according to the documentation. This leads to the following error messages:
A database statement execution error occurred: NOT NULL constraint failed: item.type
(occuring much more often) orA database statement execution error occurred: FOREIGN KEY constraint failed
(rarer)Operating System Details
Client Installation Method
From Source
OneDrive Account Type
Personal
What is your OneDrive Application Version
onedrive v2.5.2-25-g2267a23
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'
OneDrive is also used from a Windows PC and two Android devices, occasionally from the Web UI
Steps to reproduce the behaviour
Perfom any
--sync
or--monitor
operation, no matter if with or without--resync
. A complete, clean reinstall also doesn't resolve it.Complete Verbose Log Output
Screenshots
No response
Other Log Information or Details
No response
Additional context
No response