-
-
Notifications
You must be signed in to change notification settings - Fork 859
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: core.exception.ArrayIndexError@src/sync.d(8825): index [0] is out of bounds for array of length 0 #2883
Comments
This application version contains a serious bug and was replaced with v2.5.2. Please read: https://github.com/abraunegg/onedrive/releases/tag/v2.5.1 Please upgrade your version to v2.5.2 or build the client from source. 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 and compile following https://github.com/abraunegg/onedrive/blob/master/docs/install.md#building-using-dmd-reference-compiler
Unfortunately, because of your choice of distribution (Ubuntu) the LDC compiler, despite having debugging enabled - these details get stripped because of how Ubuntu packages the compiler used. The only way to resolve this is to manually compile the client using the instructions above and when recompiling use the following command:
As you are using v2.5.1 please urgently upgrade your client. |
@abraunegg Thank you for the detailed instructions. Here is the verbose log output from
Do you need anything else? |
Not at this stage - this pinpoints exactly where the issue is - thankyou. |
@datengraben To generate the debug log, please use this command: From all the log output at the moment, it looks like it is trying to create a folder online, but the code 'thinks' this is being created on a Shared Folder .... but there is nothing in the log output thus far that would indicate this ... thus I would like to dig a little deeper. When you email over the debug log, please can you also attach the items.sqlite3 file from |
@datengraben
Can you please provide, within reason, some online screenshots of the folder path tree online where this new local folder is supposed to be created? This will also just nail down a working theory I have. |
@datengraben Are you trying to sync | create a new local folder to an online path that is actually a Shared Folder? If you can confirm this that would be greatly appreciated. |
@datengraben
This is the crash I get - which the output is slightly different to you, however, hitting the same point code:
This is is why having your debug log will be helpful - as, if this is a shared folder - then great, if not, then why is this code being triggered for you, and the resulting response, which is a bug, but technically is not as this is not a shared folder thus there will never be that DB entry in there, thus that is why the code is failing. If you can get me:
That would be greatly appreciated |
I have the same problem after some Ubuntu 22.04 updates were installed this morning on version onedrive v2.5.2-1+np1+1.1. |
Yes I have a shared folder, which is shared by another user with me. This shared folder is in my onedrive root tree view.
You should got mail from datengraben@gmx.de Thank you! Where can I appreciate you work with some money? GH Sponsors? |
Please can you compile the following PR to potentially resolve your issue:
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:
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: When encountering the issue, the client should now respond in the following manner:
|
Does not work. Get the following:
Then:
Or:
in Contrast to:
rg, |
Thanks it seems to work! But the client does not respond in the assumed manner.
Without the single directory flag (which is not really needed, I found out), it works and does not fail.
But anyhow it works now. In the 2.5.2 version (tagged) it wouldn't work, either with or without the flag. I can open a new issue for the |
OK so this is now a different but related issue when using For this usage: So your issue - is not the same as the issue reported here - it is 100% different by the looks of it, and it is to do with Client Side Filtering. It has a similar failure, but is not the same bug. Please raise a new bug report and email a verbose debug log. |
Should I baseline the new bug report and debug log on version:
or version:
|
Please use the PR to generate the debug log as this gives the correct details. Because you use the OpenSuse Packages for Debian / Ubuntu platforms - those packages lack the correct details to debug properly .. the joys of using those platforms. |
@datengraben As tested:
The updated PR application version should be: Please can you validate this in your environment. |
Now onedrive works with the `--single-directory` flag. Thanks!
I've changed my configuration to enable `sync_business_shared_items` and the ERROR message "The requested --single-directory path..." does not appear.
So everything works fine now!
Thanks again.
Am Tue, Oct 08, 2024 at 01:30:04PM -0700 schrieb abraunegg:
… @datengraben
I have updated the PR to cater for the `--single-directory` use and the crash you were seeing.
As tested:
```
***@***.***:~/onedrive-pr2895$ ./onedrive -s --single-directory 'Sub Folder 2'
Using IPv4 and IPv6 (if configured) for all network operations
Attempting to contact Microsoft OneDrive Login Service
Successfully reached Microsoft OneDrive Login Service
Configuring Global Azure AD Endpoints
The OneDrive Client was asked to search for this directory online and create it if it's not located: ./Sub Folder 2
ERROR: The requested --single-directory path to sync is a Shared Folder online and 'sync_business_shared_items' is not enabled
***@***.***:~/onedrive-pr2895$
```
The updated PR application version should be: `onedrive v2.5.2-7-g84b2533`
Please can you validate this in your environment.
--
Reply to this email directly or view it on GitHub:
#2883 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
@datengraben |
…tion as it is in a Shared Online Folder (#2895) * Fix issue when attempting to create a new folder online, but this is in a Shared Folder, and 'sync_business_shared_items' is not being used * Add same check to ensure that if this is a Business Account and an online shared folder, 'sync_business_shared_items' needs to be enabled when using --single-directory flag
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
After upgrading to version 2.5.1 (from 2.4.25) of onedrive, I encountered the ArrayIndex out of bound exception, when either syncing normally or even resyncing the client state. I'm happy to help identifying the problem.
I've installed and upgrdaded via nix-env and the nixpkgs-unstable channel.
Operating System Details
uname: Linux thinkpad-p14s 6.8.0-45-generic #45~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Sep 11 15:25:05 UTC 2 x86_64 x86_64 x86_64 GNU/Linux lsb_release No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy
Client Installation Method
From 3rd Party Source (PPA, OpenSuSE Build Service etc)
OneDrive Account Type
Business | Office365
What is your OneDrive Application Version
2.5.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
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS nvme0n1 ├─nvme0n1p1 ext4 1.0 9036fc00-2e98-427c-8dc5-5346cf803b86 12,2G 80% /var/snap/firefox/common/host-hunspell │ / ├─nvme0n1p2 vfat FAT32 B7E7-1BEE 470M 1% /boot/efi └─nvme0n1p3 ext4 1.0 5ccd0465-830e-4371-883a-1cb9e8f9918d 61,2G 79% /home I removed loop devices for readability.
How do you use 'onedrive'
Onedrive folder is not shared with any other system or platform at the same time.
I only use it on one device and sync on demand (no system service).
Steps to reproduce the behaviour
I don't have any specific steps. Just sync or resyncing the application state.
Complete Verbose Log Output
Screenshots
No response
Other Log Information or Details
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: