Skip to content
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/clientSideFiltering.d(667): index [0] is out of bounds for array of length 0 #2896

Closed
elburgl69 opened this issue Oct 8, 2024 · 5 comments
Labels
Bug Something isn't working Fixed
Milestone

Comments

@elburgl69
Copy link

Describe the bug

After installing some linux updates on ubuntu 22.04, syncing stopt working and ended with the error message "core.exception.ArrayIndexError@src/clientSideFiltering.d(667): index [0] is out of bounds for array of length 0".

Operating System Details

Linux LT-LEO-FINAL-22-04 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

Client Installation Method

From Source

OneDrive Account Type

Personal

What is your OneDrive Application Version

onedrive v2.5.2-6-gc9b51ac

What is your OneDrive Application Configuration

Application version                          = onedrive v2.5.2-6-gc9b51ac
Compiled with                                = DMD 2109
User Application Config path                 = /home/leo/.config/onedrive
System Application Config path               = /etc/onedrive
Applicable Application 'config' location     = /home/leo/.config/onedrive/config
Configuration file found in config location  = false - using application defaults
Applicable 'sync_list' location              = /home/leo/.config/onedrive/sync_list
Applicable 'items.sqlite3' location          = /home/leo/.config/onedrive/items.sqlite3
Config option 'drive_id'                     = 
Config option 'sync_dir'                     = ~/OneDrive
Config option 'enable_logging'               = false
Config option 'log_dir'                      = /var/log/onedrive
Config option 'disable_notifications'        = false
Config option 'skip_dir'                     = 
Config option 'skip_dir_strict_match'        = false
Config option 'skip_file'                    = ~*|.~*|*.tmp|*.swp|*.partial
Config option 'skip_dotfiles'                = false
Config option 'skip_symlinks'                = false
Config option 'monitor_interval'             = 300
Config option 'monitor_log_frequency'        = 12
Config option 'monitor_fullscan_frequency'   = 12
Config option 'read_only_auth_scope'         = false
Config option 'dry_run'                      = false
Config option 'upload_only'                  = false
Config option 'download_only'                = false
Config option 'local_first'                  = false
Config option 'check_nosync'                 = false
Config option 'check_nomount'                = false
Config option 'resync'                       = false
Config option 'resync_auth'                  = false
Config option 'cleanup_local_files'          = false
Config option 'classify_as_big_delete'       = 1000
Config option 'disable_upload_validation'    = false
Config option 'disable_download_validation'  = false
Config option 'bypass_data_preservation'     = false
Config option 'no_remote_delete'             = false
Config option 'remove_source_files'          = false
Config option 'sync_dir_permissions'         = 700
Config option 'sync_file_permissions'        = 600
Config option 'space_reservation'            = 52428800
Config option 'application_id'               = d50ca740-c83f-4d1b-b616-12c519384f0c
Config option 'azure_ad_endpoint'            = 
Config option 'azure_tenant_id'              = 
Config option 'user_agent'                   = ISV|abraunegg|OneDrive Client for Linux/v2.5.2-6-gc9b51ac
Config option 'force_http_11'                = false
Config option 'debug_https'                  = false
Config option 'rate_limit'                   = 0
Config option 'operation_timeout'            = 3600
Config option 'dns_timeout'                  = 60
Config option 'connect_timeout'              = 10
Config option 'data_timeout'                 = 60
Config option 'ip_protocol_version'          = 0
Config option 'threads'                      = 8
Compile time option --enable-notifications   = false

Selective sync 'sync_list' configured        = true
sync_list config option 'sync_root_files'    = false
sync_list contents:
Documenten
AdjudantenSlim
Kerstmuziek
Muziek De Zwolse Polle
Muziek klinkers
Muziek Madmess
Obsidian
Apps/remotely-save
SOT
/

Config option 'sync_business_shared_items'   = false

Config option 'webhook_enabled'              = false

What is your 'curl' version

curl 7.81.0 (x86_64-pc-linux-gnu) libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.1.0 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.18
Release-Date: 2022-01-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd

Where is your 'sync_dir' located

Local

What are all your system 'mount points'

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=16241168k,nr_inodes=4060292,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=3256448k,mode=755,inode64)
/dev/nvme1n1p3 on / type ext4 (rw,relatime,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k,inode64)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
bpf on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=6970)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
ramfs on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
/var/lib/snapd/snaps/bare_5.snap on /snap/bare/5 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/audacity_1175.snap on /snap/audacity/1175 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/code_169.snap on /snap/code/169 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/code_170.snap on /snap/code/170 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/core_16928.snap on /snap/core/16928 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/core_17200.snap on /snap/core/17200 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/core18_2829.snap on /snap/core18/2829 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/core18_2846.snap on /snap/core18/2846 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/core20_2318.snap on /snap/core20/2318 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/core20_2379.snap on /snap/core20/2379 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/core22_1612.snap on /snap/core22/1612 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/core22_1621.snap on /snap/core22/1621 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/cups_1052.snap on /snap/cups/1052 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/cups_1058.snap on /snap/cups/1058 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/dbeaver-ce_324.snap on /snap/dbeaver-ce/324 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/dbeaver-ce_326.snap on /snap/dbeaver-ce/326 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/firefox_4955.snap on /snap/firefox/4955 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/firefox_5014.snap on /snap/firefox/5014 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-28-1804_198.snap on /snap/gnome-3-28-1804/198 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-34-1804_93.snap on /snap/gnome-3-34-1804/93 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-38-2004_119.snap on /snap/gnome-3-38-2004/119 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/gnome-3-38-2004_143.snap on /snap/gnome-3-38-2004/143 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/gnome-42-2204_172.snap on /snap/gnome-42-2204/172 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/gnome-42-2204_176.snap on /snap/gnome-42-2204/176 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/gtk2-common-themes_13.snap on /snap/gtk2-common-themes/13 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/gtk-common-themes_1535.snap on /snap/gtk-common-themes/1535 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/kf5-5-108-qt-5-15-10-core22_5.snap on /snap/kf5-5-108-qt-5-15-10-core22/5 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/mysql-workbench-community_13.snap on /snap/mysql-workbench-community/13 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/obsidian_34.snap on /snap/obsidian/34 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/obsidian_35.snap on /snap/obsidian/35 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/p7zip-desktop_220.snap on /snap/p7zip-desktop/220 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/postman_254.snap on /snap/postman/254 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/postman_248.snap on /snap/postman/248 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/qt515-core20_31.snap on /snap/qt515-core20/31 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/qt515-core20_32.snap on /snap/qt515-core20/32 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/snap-store_1113.snap on /snap/snap-store/1113 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/snap-store_1216.snap on /snap/snap-store/1216 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/snapd_21759.snap on /snap/snapd/21759 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/snapd-desktop-integration_178.snap on /snap/snapd-desktop-integration/178 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/snapd_21465.snap on /snap/snapd/21465 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/snapd-desktop-integration_247.snap on /snap/snapd-desktop-integration/247 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/var/lib/snapd/snaps/spotify_78.snap on /snap/spotify/78 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
/dev/nvme1n1p3 on /var/snap/firefox/common/host-hunspell type ext4 (ro,noexec,noatime,errors=remount-ro)
/var/lib/snapd/snaps/spotify_79.snap on /snap/spotify/79 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
tmpfs on /run/qemu type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
/dev/nvme1n1p4 on /home type ext4 (rw,relatime)
/dev/nvme1n1p1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/snapd/ns type tmpfs (rw,nosuid,nodev,noexec,relatime,size=3256448k,mode=755,inode64)
nsfs on /run/snapd/ns/cups.mnt type nsfs (rw)
nsfs on /run/snapd/ns/snapd-desktop-integration.mnt type nsfs (rw)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=3256448k,nr_inodes=814112,mode=700,uid=1000,gid=33,inode64)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=33)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=33)
nsfs on /run/snapd/ns/snap-store.mnt type nsfs (rw)
/var/lib/snapd/snaps/bitcoin-core_172.snap on /snap/bitcoin-core/172 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide)
nsfs on /run/snapd/ns/bitcoin-core.mnt type nsfs (rw)

What are all your local file system partition types

NAME        FSTYPE    FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0       squashfs  4.0                                                    0   100% /snap/audacity/1175
loop1       squashfs  4.0                                                    0   100% /snap/bare/5
loop2       squashfs  4.0                                                    0   100% /snap/code/169
loop3       squashfs  4.0                                                    0   100% /snap/code/170
loop4       squashfs  4.0                                                    0   100% /snap/core/16928
loop5       squashfs  4.0                                                    0   100% /snap/core/17200
loop6       squashfs  4.0                                                    0   100% /snap/core18/2829
loop7       squashfs  4.0                                                    0   100% /snap/core18/2846
loop8       squashfs  4.0                                                    0   100% /snap/core20/2318
loop9       squashfs  4.0                                                    0   100% /snap/core20/2379
loop10      squashfs  4.0                                                    0   100% /snap/core22/1612
loop11      squashfs  4.0                                                    0   100% /snap/core22/1621
loop12      squashfs  4.0                                                    0   100% /snap/cups/1052
loop13      squashfs  4.0                                                    0   100% /snap/cups/1058
loop14      squashfs  4.0                                                    0   100% /snap/dbeaver-ce/324
loop15      squashfs  4.0                                                    0   100% /snap/dbeaver-ce/326
loop16      squashfs  4.0                                                    0   100% /snap/firefox/4955
loop17      squashfs  4.0                                                    0   100% /snap/firefox/5014
loop18      squashfs  4.0                                                    0   100% /snap/gnome-3-28-1804/198
loop19      squashfs  4.0                                                    0   100% /snap/gnome-3-34-1804/93
loop20      squashfs  4.0                                                    0   100% /snap/gnome-3-38-2004/119
loop21      squashfs  4.0                                                    0   100% /snap/gnome-3-38-2004/143
loop22      squashfs  4.0                                                    0   100% /snap/gnome-42-2204/172
loop23      squashfs  4.0                                                    0   100% /snap/gnome-42-2204/176
loop24      squashfs  4.0                                                    0   100% /snap/gtk2-common-themes/13
loop25      squashfs  4.0                                                    0   100% /snap/gtk-common-themes/1535
loop26      squashfs  4.0                                                    0   100% /snap/kf5-5-108-qt-5-15-10-core22/5
loop27      squashfs  4.0                                                    0   100% /snap/mysql-workbench-community/13
loop28      squashfs  4.0                                                    0   100% /snap/obsidian/34
loop29      squashfs  4.0                                                    0   100% /snap/obsidian/35
loop30      squashfs  4.0                                                    0   100% /snap/p7zip-desktop/220
loop31      squashfs  4.0                                                    0   100% /snap/postman/254
loop32      squashfs  4.0                                                    0   100% /snap/postman/248
loop33      squashfs  4.0                                                    0   100% /snap/qt515-core20/31
loop34      squashfs  4.0                                                    0   100% /snap/qt515-core20/32
loop35      squashfs  4.0                                                    0   100% /snap/snap-store/1113
loop36      squashfs  4.0                                                    0   100% /snap/snap-store/1216
loop37      squashfs  4.0                                                    0   100% /snap/snapd/21759
loop38      squashfs  4.0                                                    0   100% /snap/snapd/21465
loop39      squashfs  4.0                                                    0   100% /snap/snapd-desktop-integration/178
loop40      squashfs  4.0                                                    0   100% /snap/snapd-desktop-integration/247
loop41      squashfs  4.0                                                    0   100% /snap/spotify/78
loop42      squashfs  4.0                                                    0   100% /snap/spotify/79
loop43                                                                       0   100% /snap/bitcoin-core/172
nvme0n1                                                                               
├─nvme0n1p1 vfat      FAT32       2C8F-F837                                           
├─nvme0n1p2                                                                           
├─nvme0n1p3 BitLocker 2                                                               
└─nvme0n1p4 ntfs                  10DC8CF6DC8CD77E                                    
nvme1n1                                                                               
├─nvme1n1p1 vfat      FAT32       B458-D624                              62,1M    35% /boot/efi
├─nvme1n1p2 swap      1           4757cf70-1c48-467f-9e31-59fa0188ff4d                [SWAP]
├─nvme1n1p3 ext4      1.0         01ef6cfe-d8ab-4a00-a75b-1227f04f1a1b   40,3G    51% /var/snap/firefox/common/host-hunspell
│                                                                                     /
└─nvme1n1p4 ext4      1.0         3188f472-5e22-4ab6-9d58-9f9c903fc87a   73,7G    86% /home

How do you use 'onedrive'

Sync my personal files accross devices and some folders shared with my by others.

Steps to reproduce the behaviour

./onedrive --sync

Complete Verbose Log Output

No user or system config file found, using application defaults
Using 'user' configuration path for application config and state data: /home/leo/.config/onedrive

DEPRECIATION WARNING: --synchronize has been deprecated in favour of --sync or -s
DEPRECIATION WARNING: Deprecated commands will be removed in a future release.

Application configuration file has been updated, checking if --resync needed
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-6-gc9b51ac
Account Type:         personal
Default Drive ID:     93eae7b7db6cef53
Default Root ID:      93EAE7B7DB6CEF53!142
Remaining Free Space: 997.90 GB (1071486966169 bytes)
Sync Engine Initialised with new Onedrive API instance
All application operations will be performed in the configured local 'sync_dir' directory: /home/leo/OneDrive
Fetching /delta response from the OneDrive API for Drive ID: 93eae7b7db6cef53
Processing API Response Bundle: 1 - Quantity of 'changes|items' in this bundle to process: 244
Including path - included by sync_list config: ./SOT
Attempting to perform a database vacuum to optimise database
Database vacuum is complete
core.exception.ArrayIndexError@src/clientSideFiltering.d(667): index [0] is out of bounds for array of length 0
----------------
??:? onArrayIndexError [0x5b80528b02ee]
??:? _d_arraybounds_indexp [0x5b8052852c57]
src/clientSideFiltering.d:667 bool clientSideFiltering.ClientSideFiltering.matchFirstSegmentToPathFirstSegment(immutable(char)[], immutable(char)[]) [0x5b80528210b0]
src/clientSideFiltering.d:337 bool clientSideFiltering.ClientSideFiltering.isPathExcluded(immutable(char)[]) [0x5b805281e844]
src/clientSideFiltering.d:152 bool clientSideFiltering.ClientSideFiltering.isPathExcludedViaSyncList(immutable(char)[]) [0x5b805281d5ec]
src/sync.d:3983 bool syncEngine.SyncEngine.checkJSONAgainstClientSideFiltering(std.json.JSONValue) [0x5b80527f01fa]
src/sync.d:1335 void syncEngine.SyncEngine.processDeltaJSONItem(std.json.JSONValue, ulong, int, ulong, bool) [0x5b80527dfd1a]
src/sync.d:1021 void syncEngine.SyncEngine.fetchOneDriveDeltaAPIResponse(immutable(char)[], immutable(char)[], immutable(char)[]) [0x5b80527dda4d]
src/sync.d:568 void syncEngine.SyncEngine.syncOneDriveAccountToLocalDisk() [0x5b80527db8a1]
src/main.d:1239 void main.performStandardSyncProcess(immutable(char)[], monitor.Monitor) [0x5b80526946f9]
src/main.d:787 _Dmain [0x5b8052691604]

Screenshots

No response

Other Log Information or Details

./onedrive --synchronize --verbose --verbose

No user or system config file found, using application defaults
Using 'user' configuration path for application config and state data: /home/leo/.config/onedrive

DEPRECIATION WARNING: --synchronize has been deprecated in favour of --sync or -s
DEPRECIATION WARNING: Deprecated commands will be removed in a future release.

Application configuration file has been updated, checking if --resync needed
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-6-gc9b51ac
Account Type:         personal
Default Drive ID:     93eae7b7db6cef53
Default Root ID:      93EAE7B7DB6CEF53!142
Remaining Free Space: 997.90 GB (1071486966169 bytes)
Sync Engine Initialised with new Onedrive API instance
All application operations will be performed in the configured local 'sync_dir' directory: /home/leo/OneDrive
Fetching /delta response from the OneDrive API for Drive ID: 93eae7b7db6cef53
Processing API Response Bundle: 1 - Quantity of 'changes|items' in this bundle to process: 244
Including path - included by sync_list config: ./SOT
Attempting to perform a database vacuum to optimise database
Database vacuum is complete
core.exception.ArrayIndexError@src/clientSideFiltering.d(667): index [0] is out of bounds for array of length 0
----------------
??:? onArrayIndexError [0x5b80528b02ee]
??:? _d_arraybounds_indexp [0x5b8052852c57]
src/clientSideFiltering.d:667 bool clientSideFiltering.ClientSideFiltering.matchFirstSegmentToPathFirstSegment(immutable(char)[], immutable(char)[]) [0x5b80528210b0]
src/clientSideFiltering.d:337 bool clientSideFiltering.ClientSideFiltering.isPathExcluded(immutable(char)[]) [0x5b805281e844]
src/clientSideFiltering.d:152 bool clientSideFiltering.ClientSideFiltering.isPathExcludedViaSyncList(immutable(char)[]) [0x5b805281d5ec]
src/sync.d:3983 bool syncEngine.SyncEngine.checkJSONAgainstClientSideFiltering(std.json.JSONValue) [0x5b80527f01fa]
src/sync.d:1335 void syncEngine.SyncEngine.processDeltaJSONItem(std.json.JSONValue, ulong, int, ulong, bool) [0x5b80527dfd1a]
src/sync.d:1021 void syncEngine.SyncEngine.fetchOneDriveDeltaAPIResponse(immutable(char)[], immutable(char)[], immutable(char)[]) [0x5b80527dda4d]
src/sync.d:568 void syncEngine.SyncEngine.syncOneDriveAccountToLocalDisk() [0x5b80527db8a1]
src/main.d:1239 void main.performStandardSyncProcess(immutable(char)[], monitor.Monitor) [0x5b80526946f9]
src/main.d:787 _Dmain [0x5b8052691604]
leo:~/projects/onedrive> ./onedrive --synchronize --verbose --verbose
DEBUG: Application started
DEBUG: Process ID: 7ABECD421A60
DEBUG: User UID:   1000
DEBUG: User GID:   33
DEBUG: User Name:  leo
DEBUG: Application Version: onedrive v2.5.2-6-gc9b51ac
DEBUG: Application Compiled With: DMD 2109
DEBUG: Passed in 'cliArgs': ["./onedrive", "--synchronize"]
DEBUG: Note: --confdir and --verbose are not listed in 'cliArgs' array
DEBUG: Passed in --confdir if present: 
DEBUG: Passed in --verbose count if present: 2
DEBUG: runtime_environment: HOME environment variable detected, expansion of '~' should be possible
DEBUG: runtime_environment: Calculated defaultHomePath: /home/leo
DEBUG: configDirBase: WARNING - no XDG_CONFIG_HOME environment variable set
DEBUG: configDirBase: /home/leo/.config
DEBUG: configDirName: Configuring application to use calculated config path
DEBUG: refreshTokenFilePath =   /home/leo/.config/onedrive/refresh_token
DEBUG: deltaLinkFilePath =      /home/leo/.config/onedrive/delta_link
DEBUG: databaseFilePath =       /home/leo/.config/onedrive/items.sqlite3
DEBUG: databaseFilePathDryRun = /home/leo/.config/onedrive/items-dryrun.sqlite3
DEBUG: uploadSessionFilePath =  /home/leo/.config/onedrive/session_upload
DEBUG: userConfigFilePath =     /home/leo/.config/onedrive/config
DEBUG: syncListFilePath =       /home/leo/.config/onedrive/sync_list
DEBUG: systemConfigFilePath =   /etc/onedrive/config
DEBUG: configBackupFile =       /home/leo/.config/onedrive/.config.backup
DEBUG: configHashFile =         /home/leo/.config/onedrive/.config.hash
DEBUG: syncListHashFile =       /home/leo/.config/onedrive/.sync_list.hash
DEBUG: 
DEBUG: DEPRECIATION WARNING: --synchronize has been deprecated in favour of --sync or -s
DEBUG: DEPRECIATION WARNING: Deprecated commands will be removed in a future release.
DEBUG: 
DEBUG: Configuring Client Side Filtering (Selective Sync)
DEBUG: Configuring skip_dir ...
DEBUG: skip_dir: 
DEBUG: Selective Sync Directory Mask: Regex!char("^$", "i")
DEBUG: Configuring skip_dir_strict_match ...
DEBUG: skip_dir_strict_match: false
DEBUG: Configuring skip_dotfiles ...
DEBUG: skip_dotfiles: false
DEBUG: Configuring skip_file ...
DEBUG: skip_file: ~*|.~*|*.tmp|*.swp|*.partial
DEBUG: Selective Sync File Mask: Regex!char("^~.*$|^\\.~.*$|^.*\\.tmp$|^.*\\.swp$|^.*\\.partial$", "i")
DEBUG: sync_dir: Setting runtimeSyncDirectory from config value 'sync_dir'
DEBUG: sync_dir: A '~' was found in the configured 'sync_dir', automatically expanding as SHELL and USER environment variable is set
DEBUG: sync_dir: runtimeSyncDirectory set to: /home/leo/OneDrive
DEBUG: --------------- Application Runtime Configuration ---------------
DEBUG: Application version                          = onedrive v2.5.2-6-gc9b51ac
DEBUG: Compiled with                                = DMD 2109
DEBUG: User Application Config path                 = /home/leo/.config/onedrive
DEBUG: System Application Config path               = /etc/onedrive
DEBUG: Applicable Application 'config' location     = /home/leo/.config/onedrive/config
DEBUG: Configuration file found in config location  = false - using application defaults
DEBUG: Applicable 'sync_list' location              = /home/leo/.config/onedrive/sync_list
DEBUG: Applicable 'items.sqlite3' location          = /home/leo/.config/onedrive/items.sqlite3
DEBUG: Config option 'drive_id'                     = 
DEBUG: Config option 'sync_dir'                     = ~/OneDrive
DEBUG: Config option 'enable_logging'               = false
DEBUG: Config option 'log_dir'                      = /var/log/onedrive
DEBUG: Config option 'disable_notifications'        = false
DEBUG: Config option 'skip_dir'                     = 
DEBUG: Config option 'skip_dir_strict_match'        = false
DEBUG: Config option 'skip_file'                    = ~*|.~*|*.tmp|*.swp|*.partial
DEBUG: Config option 'skip_dotfiles'                = false
DEBUG: Config option 'skip_symlinks'                = false
DEBUG: Config option 'monitor_interval'             = 300
DEBUG: Config option 'monitor_log_frequency'        = 12
DEBUG: Config option 'monitor_fullscan_frequency'   = 12
DEBUG: Config option 'read_only_auth_scope'         = false
DEBUG: Config option 'dry_run'                      = false
DEBUG: Config option 'upload_only'                  = false
DEBUG: Config option 'download_only'                = false
DEBUG: Config option 'local_first'                  = false
DEBUG: Config option 'check_nosync'                 = false
DEBUG: Config option 'check_nomount'                = false
DEBUG: Config option 'resync'                       = false
DEBUG: Config option 'resync_auth'                  = false
DEBUG: Config option 'cleanup_local_files'          = false
DEBUG: Config option 'classify_as_big_delete'       = 1000
DEBUG: Config option 'disable_upload_validation'    = false
DEBUG: Config option 'disable_download_validation'  = false
DEBUG: Config option 'bypass_data_preservation'     = false
DEBUG: Config option 'no_remote_delete'             = false
DEBUG: Config option 'remove_source_files'          = false
DEBUG: Config option 'sync_dir_permissions'         = 700
DEBUG: Config option 'sync_file_permissions'        = 600
DEBUG: Config option 'space_reservation'            = 52428800
DEBUG: Config option 'application_id'               = d50ca740-c83f-4d1b-b616-12c519384f0c
DEBUG: Config option 'azure_ad_endpoint'            = 
DEBUG: Config option 'azure_tenant_id'              = 
DEBUG: Config option 'user_agent'                   = ISV|abraunegg|OneDrive Client for Linux/v2.5.2-6-gc9b51ac
DEBUG: Config option 'force_http_11'                = false
DEBUG: Config option 'debug_https'                  = false
DEBUG: Config option 'rate_limit'                   = 0
DEBUG: Config option 'operation_timeout'            = 3600
DEBUG: Config option 'dns_timeout'                  = 60
DEBUG: Config option 'connect_timeout'              = 10
DEBUG: Config option 'data_timeout'                 = 60
DEBUG: Config option 'ip_protocol_version'          = 0
DEBUG: Config option 'threads'                      = 8
DEBUG: Compile time option --enable-notifications   = false
DEBUG: 
DEBUG: Selective sync 'sync_list' configured        = true
DEBUG: sync_list config option 'sync_root_files'    = false
DEBUG: sync_list contents:
DEBUG: Documenten
DEBUG: AdjudantenSlim
DEBUG: Kerstmuziek
DEBUG: Muziek De Zwolse Polle
DEBUG: Muziek klinkers
DEBUG: Muziek Madmess
DEBUG: Obsidian
DEBUG: Apps/remotely-save
DEBUG: SOT
DEBUG: /
DEBUG: 
DEBUG: Config option 'sync_business_shared_items'   = false
DEBUG: 
DEBUG: Config option 'webhook_enabled'              = false
DEBUG: 
DEBUG: --------------------DEVELOPER_OPTIONS----------------------------
DEBUG: Config option 'force_children_scan'          = false
DEBUG: 
DEBUG: -----------------------------------------------------------------
DEBUG: Configuring default new folder permissions as: 700
DEBUG: Configuring default new file permissions as: 600
DEBUG: Application configuration file has been updated, checking if --resync needed
DEBUG: Using this configBackupFile: /home/leo/.config/onedrive/.config.backup
DEBUG: Updating sync_list hash
DEBUG: Using IPv4 and IPv6 (if configured) for all network operations
DEBUG: Testing network to ensure network connectivity to Microsoft OneDrive Service
DEBUG: Attempting to contact Microsoft OneDrive Login Service
DEBUG: Successfully reached Microsoft OneDrive Login Service
DEBUG: applicationVersion:       2.5.2
DEBUG: latestVersion:            2.5.2
DEBUG: publishedDate:            2024-Sep-29 06:08:58Z
DEBUG: currentTime:              2024-Oct-08 10:21:03Z
DEBUG: releaseGracePeriod:       2024-Oct-29 06:08:58Z
DEBUG: CurlEngine getCurlInstance() called
DEBUG: CurlEngine curlEnginePool current size: 0
DEBUG: CurlEngine curlEnginePool is empty - constructing a new CurlEngine instance
DEBUG: Configuring Global Azure AD Endpoints
DEBUG: Authorised State: true
DEBUG: Configured clientId          d50ca740-c83f-4d1b-b616-12c519384f0c
DEBUG: Configured userAgent         ISV|abraunegg|OneDrive Client for Linux/v2.5.2-6-gc9b51ac
DEBUG: Configured authScope:        &scope=Files.ReadWrite%20Files.ReadWrite.All%20Sites.ReadWrite.All%20offline_access&response_type=code&prompt=login&redirect_uri=
DEBUG: Configured authUrl:          https://login.microsoftonline.com/common/oauth2/v2.0/authorize
DEBUG: Configured redirectUrl:      https://login.microsoftonline.com/common/oauth2/nativeclient
DEBUG: Configured tokenUrl:         https://login.microsoftonline.com/common/oauth2/v2.0/token
DEBUG: Configured driveUrl:         https://graph.microsoft.com/v1.0/me/drive
DEBUG: Configured driveByIdUrl:     https://graph.microsoft.com/v1.0/drives/
DEBUG: Configured sharedWithMeUrl:  https://graph.microsoft.com/v1.0/me/drive/sharedWithMe
DEBUG: Configured itemByIdUrl:      https://graph.microsoft.com/v1.0/me/drive/items/
DEBUG: Configured itemByPathUrl:    https://graph.microsoft.com/v1.0/me/drive/root:/
DEBUG: Configured siteSearchUrl:    https://graph.microsoft.com/v1.0/sites?search
DEBUG: Configured siteDriveUrl:     https://graph.microsoft.com/v1.0/sites/
DEBUG: OneDrive API releaseCurlEngine() Called
DEBUG: CurlEngine releaseEngine() called on instance id: ervg1X7DilYmzJaQ
DEBUG: CurlEngine curlEnginePool size before release: 0
DEBUG: CurlEngine cleanup() called on instance id: ervg1X7DilYmzJaQ
DEBUG: CurlEngine curlEnginePool size after release: 1
DEBUG: SQLite Threadsafe database value: 1
DEBUG: Initialised TaskPool worker with threads: 8
DEBUG: Using Curl defaults for HTTP operational protocol version (potentially HTTP/2)
DEBUG: CurlEngine getCurlInstance() called
DEBUG: CurlEngine curlEnginePool current size: 1
DEBUG: CurlEngine was in a valid state - returning existing CurlEngine instance
DEBUG: CurlEngine instance ID: ervg1X7DilYmzJaQ
DEBUG: Read token from appConfig
DEBUG: Authorised State: true
DEBUG: CurlEngine getCurlInstance() called
DEBUG: CurlEngine curlEnginePool current size: 0
DEBUG: CurlEngine curlEnginePool is empty - constructing a new CurlEngine instance
DEBUG: Read token from appConfig
DEBUG: Authorised State: true
DEBUG: Getting Account Default Drive Details
DEBUG: Request URL = https://graph.microsoft.com/v1.0/me/drive
DEBUG: Microsoft OneDrive Access Token has expired. Must generate a new Microsoft OneDrive Access Token
DEBUG: Need to generate a new access token for Microsoft OneDrive
DEBUG: Request URL = https://login.microsoftonline.com/common/oauth2/v2.0/token
DEBUG: HTTP Response Headers: ["strict-transport-security":"max-age=31536000; includeSubDomains", "x-ms-ests-server":"2.1.19005.9 - SEC ProdSlices", "x-xss-protection":"0", "p3p":"CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "x-ms-request-id":"e8364013-3686-4dc1-a160-48f8606c5c05", "x-ms-srs":"1.P", "date":"Tue, 08 Oct 2024 10:21:03 GMT", "x-content-type-options":"nosniff", "content-length":"1710", "set-cookie":"stsservicecookie=estsfd; path=/; secure; samesite=none; httponly", "cache-control":"no-store, no-cache", "expires":"-1", "pragma":"no-cache", "content-type":"application/json; charset=utf-8"]
DEBUG: HTTP Status Line: 200 OK (1.1)
DEBUG: CurlEngine cleanup() called on instance id: tZuvmqIMcD4rhw3L
DEBUG: Updating appConfig.refreshToken with updated refreshToken
DEBUG: Updating refreshToken on disk
DEBUG: Setting file permissions for: /home/leo/.config/onedrive/refresh_token
DEBUG: HTTP Response Headers: ["strict-transport-security":"max-age=31536000", "x-ms-ags-diagnostic":"{\"ServerInfo\":{\"DataCenter\":\"West Europe\",\"Slice\":\"E\",\"Ring\":\"5\",\"ScaleUnit\":\"006\",\"RoleInstance\":\"AM1PEPF0003F4CD\"}}", "odata-version":"4.0", "date":"Tue, 08 Oct 2024 10:21:03 GMT", "client-request-id":"ae5c13ec-1bec-48e9-8306-4caac93e0718", "request-id":"ae5c13ec-1bec-48e9-8306-4caac93e0718", "cache-control":"no-store", "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: tZuvmqIMcD4rhw3L
DEBUG: OneDrive Account Default Drive Details:      {"@odata.context":"https:\/\/graph.microsoft.com\/v1.0\/$metadata#drives\/$entity","driveType":"personal","id":"93eae7b7db6cef53","owner":{"user":{"displayName":"Leo van Elburg","id":"93eae7b7db6cef53"}},"quota":{"deleted":15735381,"remaining":1071486966169,"state":"normal","storagePlanInformation":{"upgradeAvailable":false},"total":1104880336896,"used":33393370727}}
DEBUG: CurlEngine getCurlInstance() called
DEBUG: CurlEngine curlEnginePool current size: 0
DEBUG: CurlEngine curlEnginePool is empty - constructing a new CurlEngine instance
DEBUG: Read token from appConfig
DEBUG: Authorised State: true
DEBUG: Seeking available quota for this drive id: 93eae7b7db6cef53
DEBUG: Request URL = https://graph.microsoft.com/v1.0/drives/93eae7b7db6cef53/?select=quota
DEBUG: Existing Microsoft OneDrive Access Token Expires: 2024-Oct-08 13:21:03.7763491
DEBUG: HTTP Response Headers: ["strict-transport-security":"max-age=31536000", "x-ms-ags-diagnostic":"{\"ServerInfo\":{\"DataCenter\":\"West Europe\",\"Slice\":\"E\",\"Ring\":\"5\",\"ScaleUnit\":\"002\",\"RoleInstance\":\"AM2PEPF0000BE1A\"}}", "odata-version":"4.0", "date":"Tue, 08 Oct 2024 10:21:04 GMT", "client-request-id":"742f0523-3793-4624-b015-9b2660318121", "request-id":"742f0523-3793-4624-b015-9b2660318121", "cache-control":"no-store", "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: yoBGYSFjEZlfQK5h
DEBUG: OneDrive API releaseCurlEngine() Called
DEBUG: CurlEngine releaseEngine() called on instance id: yoBGYSFjEZlfQK5h
DEBUG: CurlEngine curlEnginePool size before release: 0
DEBUG: CurlEngine cleanup() called on instance id: yoBGYSFjEZlfQK5h
DEBUG: CurlEngine curlEnginePool size after release: 1
DEBUG: Quota Details: {"@odata.context":"https:\/\/graph.microsoft.com\/v1.0\/$metadata#drives\/$entity","quota":{"deleted":15735381,"remaining":1071486966169,"state":"normal","storagePlanInformation":{"upgradeAvailable":false},"total":1104880336896,"used":33393370727}}
DEBUG: Reported Available Online Quota for driveID '93eae7b7db6cef53': 1071486966169
DEBUG: onlineDriveDetails: ["93eae7b7db6cef53":DriveDetailsCache("93eae7b7db6cef53", false, true, 1071486966169)]
DEBUG: appConfig.accountType                 = personal
DEBUG: appConfig.defaultDriveId              = 93eae7b7db6cef53
DEBUG: cachedOnlineDriveData.quotaRemaining  = 1071486966169
DEBUG: cachedOnlineDriveData.quotaAvailable  = true
DEBUG: cachedOnlineDriveData.quotaRestricted = false
DEBUG: OneDrive API releaseCurlEngine() Called
DEBUG: CurlEngine releaseEngine() called on instance id: tZuvmqIMcD4rhw3L
DEBUG: CurlEngine curlEnginePool size before release: 1
DEBUG: CurlEngine cleanup() called on instance id: tZuvmqIMcD4rhw3L
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: tZuvmqIMcD4rhw3L
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-Oct-08 13:21:03.7763491
DEBUG: HTTP Response Headers: ["strict-transport-security":"max-age=31536000", "x-ms-ags-diagnostic":"{\"ServerInfo\":{\"DataCenter\":\"West Europe\",\"Slice\":\"E\",\"Ring\":\"5\",\"ScaleUnit\":\"006\",\"RoleInstance\":\"AM1PEPF0003F4CD\"}}", "odata-version":"4.0", "date":"Tue, 08 Oct 2024 10:21:03 GMT", "client-request-id":"18ca5540-6758-48f1-9337-86037863c083", "request-id":"18ca5540-6758-48f1-9337-86037863c083", "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: tZuvmqIMcD4rhw3L
DEBUG: OneDrive Account Default Root Details:       {"@odata.context":"https:\/\/graph.microsoft.com\/v1.0\/$metadata#users('elburgl69%40hotmail.com')\/drive\/root\/$entity","cTag":"adDo5M0VBRTdCN0RCNkNFRjUzITE0Mi42Mzg2MzkzODUxOTU3MDAwMDA","createdBy":{"user":{"displayName":"Leo van Elburg","id":"93eae7b7db6cef53"}},"createdDateTime":"2008-04-06T21:08:27.647Z","eTag":"aOTNFQUU3QjdEQjZDRUY1MyExNDIuMTI3","fileSystemInfo":{"createdDateTime":"2008-04-06T21:08:27.646Z","lastModifiedDateTime":"2023-05-19T00:35:41.783Z"},"folder":{"childCount":21,"view":{"sortBy":"name","sortOrder":"ascending","viewType":"thumbnails"}},"id":"93EAE7B7DB6CEF53!142","lastModifiedBy":{"application":{"displayName":"OneDrive iPhone","id":"4c051d0d"},"user":{"displayName":"Leo van Elburg","id":"93eae7b7db6cef53"}},"lastModifiedDateTime":"2024-10-07T22:55:19.57Z","name":"root","parentReference":{"driveId":"93eae7b7db6cef53","driveType":"personal"},"root":{},"size":33499894010,"webUrl":"https:\/\/onedrive.live.com\/?cid=93eae7b7db6cef53"}
DEBUG: appConfig.defaultRootId      = 93EAE7B7DB6CEF53!142
DEBUG: saveItem - creating DB item from this JSON: {"@odata.context":"https:\/\/graph.microsoft.com\/v1.0\/$metadata#users('elburgl69%40hotmail.com')\/drive\/root\/$entity","cTag":"adDo5M0VBRTdCN0RCNkNFRjUzITE0Mi42Mzg2MzkzODUxOTU3MDAwMDA","createdBy":{"user":{"displayName":"Leo van Elburg","id":"93eae7b7db6cef53"}},"createdDateTime":"2008-04-06T21:08:27.647Z","eTag":"aOTNFQUU3QjdEQjZDRUY1MyExNDIuMTI3","fileSystemInfo":{"createdDateTime":"2008-04-06T21:08:27.646Z","lastModifiedDateTime":"2023-05-19T00:35:41.783Z"},"folder":{"childCount":21,"view":{"sortBy":"name","sortOrder":"ascending","viewType":"thumbnails"}},"id":"93EAE7B7DB6CEF53!142","lastModifiedBy":{"application":{"displayName":"OneDrive iPhone","id":"4c051d0d"},"user":{"displayName":"Leo van Elburg","id":"93eae7b7db6cef53"}},"lastModifiedDateTime":"2024-10-07T22:55:19.57Z","name":"root","parentReference":{"driveId":"93eae7b7db6cef53","driveType":"personal"},"root":{},"size":33499894010,"webUrl":"https:\/\/onedrive.live.com\/?cid=93eae7b7db6cef53"}
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: tZuvmqIMcD4rhw3L
DEBUG: CurlEngine curlEnginePool size before release: 1
DEBUG: CurlEngine cleanup() called on instance id: tZuvmqIMcD4rhw3L
DEBUG: CurlEngine curlEnginePool size after release: 2
DEBUG: OneDrive API releaseCurlEngine() Called
DEBUG: CurlEngine releaseEngine() called on instance id: ervg1X7DilYmzJaQ
DEBUG: CurlEngine curlEnginePool size before release: 2
DEBUG: CurlEngine cleanup() called on instance id: ervg1X7DilYmzJaQ
DEBUG: CurlEngine curlEnginePool size after release: 3
DEBUG: Perform a Full Scan True-Up: false
DEBUG: driveIdToQuery was empty, setting to appConfig.defaultDriveId
DEBUG: driveIdToQuery: 93eae7b7db6cef53
DEBUG: itemIdToQuery was empty, setting to appConfig.defaultRootId
DEBUG: itemIdToQuery: 93EAE7B7DB6CEF53!142
DEBUG: DeltaLink Query (driveId): 93eae7b7db6cef53
DEBUG: DeltaLink Query (id):      93EAE7B7DB6CEF53!142
DEBUG: Zero deltaLink available for use, we will be performing a full online scan
DEBUG: CurlEngine getCurlInstance() called
DEBUG: CurlEngine curlEnginePool current size: 3
DEBUG: CurlEngine was in a valid state - returning existing CurlEngine instance
DEBUG: CurlEngine instance ID: ervg1X7DilYmzJaQ
DEBUG: Read token from appConfig
DEBUG: Authorised State: true
DEBUG: ------------------------------------------------------------------
DEBUG: selectedDriveId:   93eae7b7db6cef53
DEBUG: selectedItemId:    93EAE7B7DB6CEF53!142
DEBUG: providedDeltaLink: 
DEBUG: ------------------------------------------------------------------
DEBUG: Request URL = https://graph.microsoft.com/v1.0/drives/93eae7b7db6cef53/items/93EAE7B7DB6CEF53!142/delta?select=id,name,eTag,cTag,deleted,file,folder,root,fileSystemInfo,remoteItem,parentReference,size
DEBUG: Existing Microsoft OneDrive Access Token Expires: 2024-Oct-08 13:21:03.7763491
DEBUG: HTTP Response Headers: ["strict-transport-security":"max-age=31536000", "x-ms-ags-diagnostic":"{\"ServerInfo\":{\"DataCenter\":\"West Europe\",\"Slice\":\"E\",\"Ring\":\"5\",\"ScaleUnit\":\"008\",\"RoleInstance\":\"AM2PEPF000258F1\"}}", "odata-version":"4.0", "date":"Tue, 08 Oct 2024 10:21:04 GMT", "client-request-id":"6b4460e7-9fb4-4e1e-a0f1-d43c2ff52d39", "request-id":"6b4460e7-9fb4-4e1e-a0f1-d43c2ff52d39", "cache-control":"no-store", "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: ervg1X7DilYmzJaQ
DEBUG: Setting currentDeltaLink to @odata.nextLink: https://graph.microsoft.com/v1.0/drives/93eae7b7db6cef53/items/93EAE7B7DB6CEF53!142/delta?select=id%2cname%2ceTag%2ccTag%2cdeleted%2cfile%2cfolder%2croot%2cfileSystemInfo%2cremoteItem%2cparentReference%2csize&token=aTE09NjM4NjM5Mzg1MTk1NzA7SUQ9OTNFQUU3QjdEQjZDRUY1MyExNDI7TFI9NjM4NjM5Nzk2NjQ2NjA7RVA9MjA7U0k9ODU7RExFUD0wO0xJRD0zMTA3ODU7RkQ9VHJ1ZTtCVT1UcnVlO1NHPTE7U089MjtQST0z
DEBUG: ------------------------------------------------------------------
DEBUG: Processing OneDrive Item 1 of 244 from API Response Bundle 1
DEBUG: Raw JSON OneDrive Item: {"cTag":"adDo5M0VBRTdCN0RCNkNFRjUzITE0Mi42Mzg2MzkzODUxOTU3MDAwMDA","eTag":"aOTNFQUU3QjdEQjZDRUY1MyExNDIuMTI3","fileSystemInfo":{"createdDateTime":"2008-04-06T21:08:27.646Z","lastModifiedDateTime":"2023-05-19T00:35:41.783Z"},"folder":{"childCount":0,"view":{"sortBy":"name","sortOrder":"ascending","viewType":"thumbnails"}},"id":"93EAE7B7DB6CEF53!142","name":"root","parentReference":{"driveId":"93eae7b7db6cef53","driveType":"personal","id":"93EAE7B7DB6CEF53!0","path":"\/drive\/root:"},"root":{},"size":33499894010}
DEBUG: This item is not a OneDrive deletion change
DEBUG: defaultRootId                                        = 93EAE7B7DB6CEF53!142
DEBUG: 'search id'                                          = 93EAE7B7DB6CEF53!142
DEBUG: id == defaultRootId                                  = true
DEBUG: isItemRoot(onedriveJSONItem)                         = true
DEBUG: onedriveJSONItem['name'].str == 'root'               = true
DEBUG: itemHasParentReferenceId                             = true
DEBUG: JSON item will flagged as a 'root' item
DEBUG: objectParentDriveId                                  = 93eae7b7db6cef53
DEBUG: handleItemAsRootObject                               = true
DEBUG: itemHasParentReferenceId                             = true
DEBUG: itemIsDeletedOnline                                  = false
DEBUG: Handling change immediately as 'root item', or has no parent reference id or is a deleted item
DEBUG: Handing JSON object as OneDrive 'root' object
DEBUG: Initial JSON item processing time: 208 μs and 1 hnsec
DEBUG: ------------------------------------------------------------------
DEBUG: Processing OneDrive Item 2 of 244 from API Response Bundle 1
DEBUG: Raw JSON OneDrive Item: {"cTag":"adDo5M0VBRTdCN0RCNkNFRjUzITI4OTk3OC42Mzg1Njg5ODMyOTE0MzAwMDA","eTag":"aOTNFQUU3QjdEQjZDRUY1MyEyODk5NzguMg","fileSystemInfo":{"createdDateTime":"2023-11-03T09:12:54.363Z","lastModifiedDateTime":"2023-11-03T09:12:54.363Z"},"folder":{"childCount":0,"view":{"sortBy":"name","sortOrder":"ascending","viewType":"thumbnails"}},"id":"93EAE7B7DB6CEF53!289978","name":"SOT","parentReference":{"driveId":"93eae7b7db6cef53","driveType":"personal","id":"93EAE7B7DB6CEF53!142","name":"root:","path":"\/drive\/root:"},"size":108240002}
DEBUG: This item is not a OneDrive deletion change
DEBUG: defaultRootId                                        = 93EAE7B7DB6CEF53!142
DEBUG: 'search id'                                          = 93EAE7B7DB6CEF53!289978
DEBUG: id == defaultRootId                                  = false
DEBUG: isItemRoot(onedriveJSONItem)                         = false
DEBUG: onedriveJSONItem['name'].str == 'root'               = false
DEBUG: itemHasParentReferenceId                             = true
DEBUG: Attempting to calculate local filesystem path for 93eae7b7db6cef53 and 93EAE7B7DB6CEF53!142
DEBUG: Path to check against 'sync_list' entries: ./SOT
DEBUG: ******************* SYNC LIST RULES EVALUATION START *******************
DEBUG: Evaluation against 'sync_list' rules for this input path: /SOT
DEBUG: [S]exludeExactMatch       = false
DEBUG: [S]excludeParentMatched   = false
DEBUG: [S]excludeAnywhereMatched = false
DEBUG: [S]excludeWildcardMatched = false
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: Documenten
DEBUG: anywhere 'sync_list' inclusion rule: Documenten
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: AdjudantenSlim
DEBUG: anywhere 'sync_list' inclusion rule: AdjudantenSlim
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: Kerstmuziek
DEBUG: anywhere 'sync_list' inclusion rule: Kerstmuziek
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: Muziek De Zwolse Polle
DEBUG: anywhere 'sync_list' inclusion rule: Muziek De Zwolse Polle
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: Muziek klinkers
DEBUG: anywhere 'sync_list' inclusion rule: Muziek klinkers
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: Muziek Madmess
DEBUG: anywhere 'sync_list' inclusion rule: Muziek Madmess
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: Obsidian
DEBUG: anywhere 'sync_list' inclusion rule: Obsidian
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: Apps/remotely-save
DEBUG: anywhere 'sync_list' inclusion rule: Apps/remotely-save
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: SOT
DEBUG: anywhere 'sync_list' inclusion rule: SOT
DEBUG: anywhere rule 'canFind' MATCH
DEBUG: Evaluation against 'sync_list' rule result: anywhere rule matched and must be included
DEBUG: ------------------------------------------------------------------------
DEBUG: [F]exludeExactMatch       = false
DEBUG: [F]excludeParentMatched   = false
DEBUG: [F]excludeAnywhereMatched = false
DEBUG: [F]excludeWildcardMatched = false
DEBUG: Evaluation against 'sync_list' final result: included for sync
DEBUG: ******************* SYNC LIST RULES EVALUATION END *********************
DEBUG: Adding this Raw JSON OneDrive Item to jsonItemsToProcess array for further processing
DEBUG: Initial JSON item processing time: 668 μs and 8 hnsecs
DEBUG: ------------------------------------------------------------------
DEBUG: Processing OneDrive Item 3 of 244 from API Response Bundle 1
DEBUG: Raw JSON OneDrive Item: {"cTag":"adDo5M0VBRTdCN0RCNkNFRjUzITMxMTI3My42Mzg2MjQ0NDc2MDc0MDAwMDA","eTag":"aOTNFQUU3QjdEQjZDRUY1MyEzMTEyNzMuMA","fileSystemInfo":{"createdDateTime":"2024-09-20T15:59:20.74Z","lastModifiedDateTime":"2024-09-20T15:59:20.74Z"},"folder":{"childCount":0,"view":{"sortBy":"name","sortOrder":"ascending","viewType":"thumbnails"}},"id":"93EAE7B7DB6CEF53!311273","name":"OfficeMobile","parentReference":{"driveId":"93eae7b7db6cef53","driveType":"personal","id":"93EAE7B7DB6CEF53!142","name":"root:","path":"\/drive\/root:"},"size":0}
DEBUG: This item is not a OneDrive deletion change
DEBUG: defaultRootId                                        = 93EAE7B7DB6CEF53!142
DEBUG: 'search id'                                          = 93EAE7B7DB6CEF53!311273
DEBUG: id == defaultRootId                                  = false
DEBUG: isItemRoot(onedriveJSONItem)                         = false
DEBUG: onedriveJSONItem['name'].str == 'root'               = false
DEBUG: itemHasParentReferenceId                             = true
DEBUG: Attempting to calculate local filesystem path for 93eae7b7db6cef53 and 93EAE7B7DB6CEF53!142
DEBUG: Path to check against 'sync_list' entries: ./OfficeMobile
DEBUG: ******************* SYNC LIST RULES EVALUATION START *******************
DEBUG: Evaluation against 'sync_list' rules for this input path: /OfficeMobile
DEBUG: [S]exludeExactMatch       = false
DEBUG: [S]excludeParentMatched   = false
DEBUG: [S]excludeAnywhereMatched = false
DEBUG: [S]excludeWildcardMatched = false
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: Documenten
DEBUG: anywhere 'sync_list' inclusion rule: Documenten
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: AdjudantenSlim
DEBUG: anywhere 'sync_list' inclusion rule: AdjudantenSlim
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: Kerstmuziek
DEBUG: anywhere 'sync_list' inclusion rule: Kerstmuziek
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: Muziek De Zwolse Polle
DEBUG: anywhere 'sync_list' inclusion rule: Muziek De Zwolse Polle
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: Muziek klinkers
DEBUG: anywhere 'sync_list' inclusion rule: Muziek klinkers
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: Muziek Madmess
DEBUG: anywhere 'sync_list' inclusion rule: Muziek Madmess
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: Obsidian
DEBUG: anywhere 'sync_list' inclusion rule: Obsidian
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: Apps/remotely-save
DEBUG: anywhere 'sync_list' inclusion rule: Apps/remotely-save
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: SOT
DEBUG: anywhere 'sync_list' inclusion rule: SOT
DEBUG: No anywhere rule 'canFind' MATCH .. trying a regex match
DEBUG: ------------------------------ NEW RULE --------------------------------
DEBUG: Evaluation against INCLUSION 'sync_list' rule: /
DEBUG: Running exactMatchRuleSegmentsToPathSegments()
DEBUG: Rule Segments: []
DEBUG: Input Segments: ["OfficeMobile"]
DEBUG: Running matchFirstSegmentToPathFirstSegment()
DEBUG: Rule Segments: []
DEBUG: Input Segments: ["OfficeMobile"]
DEBUG: Failure scope was called
DEBUG: performSynchronisedExitProcess called by: failureScope
DEBUG: Shutting down Sync Engine instance
DEBUG: SyncEngine: Waiting for all internal threads to complete
DEBUG: Shutting down processPool in a thread blocking manner
DEBUG: Shutdown Sync Engine instance is complete
DEBUG: CurlEngine releaseAllCurlInstances() called
DEBUG: CurlEngine curlEnginePool size to release: 2
DEBUG: CurlEngine cleanup() called on instance id: yoBGYSFjEZlfQK5h
DEBUG: CurlEngine shutdownCurlHTTPInstance() called on instance id: yoBGYSFjEZlfQK5h
DEBUG: HTTP instance still active: yoBGYSFjEZlfQK5h
DEBUG: HTTP instance isStopped state before http.shutdown(): false
DEBUG: HTTP instance isStopped state post http.shutdown(): true
DEBUG: HTTP instance shutdown and destroyed: yoBGYSFjEZlfQK5h
DEBUG: CurlEngine released
DEBUG: CurlEngine cleanup() called on instance id: tZuvmqIMcD4rhw3L
DEBUG: CurlEngine shutdownCurlHTTPInstance() called on instance id: tZuvmqIMcD4rhw3L
DEBUG: HTTP instance still active: tZuvmqIMcD4rhw3L
DEBUG: HTTP instance isStopped state before http.shutdown(): false
DEBUG: HTTP instance isStopped state post http.shutdown(): true
DEBUG: HTTP instance shutdown and destroyed: tZuvmqIMcD4rhw3L
DEBUG: CurlEngine released
DEBUG: CurlEngine releaseAllCurlInstances() completed
DEBUG: Shutting down Client Side Filtering instance
DEBUG: Shutdown of Client Side Filtering instance is complete
DEBUG: Shutting down Database instance
DEBUG: Attempting to perform a database vacuum to optimise database
DEBUG: Counting open SQL statements
DEBUG: Database vacuum is complete
DEBUG: Shutdown of Database instance is complete
DEBUG: Shutting down Application Configuration instance
DEBUG: Shutdown of Application Configuration instance is complete
DEBUG: Application is exiting
DEBUG: Shutting down Application Logging instance
core.exception.ArrayIndexError@src/clientSideFiltering.d(667): index [0] is out of bounds for array of length 0
----------------
??:? onArrayIndexError [0x5928436c72ee]
??:? _d_arraybounds_indexp [0x592843669c57]
src/clientSideFiltering.d:667 bool clientSideFiltering.ClientSideFiltering.matchFirstSegmentToPathFirstSegment(immutable(char)[], immutable(char)[]) [0x5928436380b0]
src/clientSideFiltering.d:337 bool clientSideFiltering.ClientSideFiltering.isPathExcluded(immutable(char)[]) [0x592843635844]
src/clientSideFiltering.d:152 bool clientSideFiltering.ClientSideFiltering.isPathExcludedViaSyncList(immutable(char)[]) [0x5928436345ec]
src/sync.d:3983 bool syncEngine.SyncEngine.checkJSONAgainstClientSideFiltering(std.json.JSONValue) [0x5928436071fa]
src/sync.d:1335 void syncEngine.SyncEngine.processDeltaJSONItem(std.json.JSONValue, ulong, int, ulong, bool) [0x5928435f6d1a]
src/sync.d:1021 void syncEngine.SyncEngine.fetchOneDriveDeltaAPIResponse(immutable(char)[], immutable(char)[], immutable(char)[]) [0x5928435f4a4d]
src/sync.d:568 void syncEngine.SyncEngine.syncOneDriveAccountToLocalDisk() [0x5928435f28a1]
src/main.d:1239 void main.performStandardSyncProcess(immutable(char)[], monitor.Monitor) [0x5928434ab6f9]
src/main.d:787 _Dmain [0x5928434a8604]

Additional context

No response

@elburgl69 elburgl69 added the Bug Something isn't working label Oct 8, 2024
@abraunegg abraunegg added this to the v2.5.3 milestone Oct 8, 2024
@abraunegg
Copy link
Owner

@elburgl69
Why do you have a / as your last line of your sync list file?

sync_list contents:
Documenten
AdjudantenSlim
Kerstmuziek
Muziek De Zwolse Polle
Muziek klinkers
Muziek Madmess
Obsidian
Apps/remotely-save
SOT
/      <------ WHY ???????

Please read the documentation on correctly formatting 'sync_list' for use and then retry the application please.

abraunegg added a commit that referenced this issue Oct 9, 2024
* Fix that a 'sync_list' entry of '/' will cause a index [0] is out of bounds for array of length 0 error when checking path segments
@abraunegg
Copy link
Owner

@elburgl69
Please can you test PR #2897 to resolve your issue. To clone the PR to resolve your issue, you can use a script like the following:

#!/bin/bash

PR=2897

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-pr2897 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-6-g8978276 or greater.

When encountering the issue, the client should now respond in the following manner:

......
ERROR: Invalid sync_list rule '/' detected. Please use 'sync_root_files = "true"' or --sync-root-files option to sync files in the root path.
......

@elburgl69
Copy link
Author

I confirm PR2897 works. Thanks for your effort.

@abraunegg
Copy link
Owner

Thanks for the confirmation, will merge the PR to master

@abraunegg
Copy link
Owner

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.

Repository owner locked as resolved and limited conversation to collaborators Oct 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working Fixed
Projects
None yet
Development

No branches or pull requests

2 participants