-
-
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
Bug: "A database statement execution error occurred: FOREIGN KEY constraint failed" #3122
Comments
This is always needed to identify where the issue is. Please generate a verbose debug log as per https://github.com/abraunegg/onedrive/wiki/Generate-debug-log-for-support |
Alright, that will take some time |
@cyb3rko A second item I would like you to do is to 'search' for all 'onedrive' binaries on your system:
Reference: #2796 For each binary that comes back, please then run I suspect your issue might actually be you have an older version of the client in a default path somewhere given:
|
@abraunegg I scanned my system for executables, the only result is Could the shell be another thing to consider? I'm using fish shell. After collecting the log I tried |
Unsure, however the client has no concept of the shell it is running under ... Please let me know when you have compressed the debug log and can provide the file for analysis. |
@abraunegg I already sent you the link yesterday via mail (but uncompressed). |
@cyb3rko The root cause of this issue are your globbing rules:
Essentially the globbing rule is being triggered, even when the number of path segments is less than the globbing rule - which is not correct, as the path up to the first wildcard must exist for that rule to apply. Will work on a fix shortly for you to test. |
* Add check for 'globbing' and 'wildcard' rules, that the number of segments before the first wildcard character need to match before the actual rule can be applied
@cyb3rko 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 Using this PR, and replicating the tree structure, the application of globbing rules no longer occurs for paths less than where the globbing exists in the actual rule:
Rule use, but not matched:
Rule use and matched:
|
Interesting, I will test it over the next few days (if I find some time). |
Given that the use of globbing ( Please can you test this PR as soon as possible so that this bug can be marked as fixed and resolved. |
I will test it out soon (but for a few days, as it was not always happening on every sync). Didn't you also use |
The syntax:
Or
Is vastly different to:
That you are using. All 3 examples are handled and processed with different code to ensure things are matched correctly. |
Describe the bug
After months of not using a PC, I've come back to using this tool. But ever since I'm having issues doing a sync.
Most of the time the following error occurs (I suppose mostly for the
.git/objects
directories).I always then do
--resync
which mostly works again until the next "normal" sync.The OneDrive plan I'm part of is "Microsoft 365 Family".
Operating System Details
Linux niko-cachy 6.13.2-2-cachyos #1 SMP PREEMPT_DYNAMIC Sat, 08 Feb 2025 17:46:21 +0000 x86_64 GNU/Linux LSB Version: n/a Distributor ID: cachyos Description: CachyOS Release: rolling Codename: n/a
Client Installation Method
From Distribution Package
OneDrive Account Type
Business | Office365
What is your OneDrive Application Version
onedrive --version
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'
Mainly I am syncing my files to OneDrive as backup solution.
Every few weeks I'm syncing those back to a second computer, same OS and same setup.
Steps to reproduce the behaviour
onedrive --sync
Complete Verbose Log Output
Is it needed? If so, I will generate it.
Screenshots
No response
Other Log Information or Details
Additional context
No response
The text was updated successfully, but these errors were encountered: