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: Segmentation fault upgrading from 2.4 to 2.5 with --single-directory option against a Shared Folder #3078

Closed
tomaskovacik opened this issue Jan 17, 2025 · 10 comments · Fixed by #3082

Comments

@tomaskovacik
Copy link

Describe the bug

after upgrading to version 2.5.x, onedrive is seg faulting on 1st run when option --single-direcory is specified. Without "--single-direcory" first run finish successfully and next run is fine again with --single-direcory

Operating System Details

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.1 LTS
Release:	24.04
Codename:	noble

Client Installation Method

From Source

OneDrive Account Type

SharePoint

What is your OneDrive Application Version

onedrive v2.5.3-35-gd0354ff

What is your OneDrive Application Configuration

Reading configuration file: /home/xxx/.config/onedrive/config
Configuration file successfully loaded
Application version                          = onedrive v2.5.3-35-gd0354ff
Compiled with                                = LDC 2106
Curl version                                 = libcurl/8.12.0-DEV OpenSSL/3.0.13 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 nghttp2/1.59.0 librtmp/2.3 OpenLDAP/2.6.7
User Application Config path                 = /home/xxx/.config/onedrive
System Application Config path               = /etc/onedrive
Applicable Application 'config' location     = /home/xxx/.config/onedrive/config
Configuration file found in config location  = true - using 'config' file values to override application defaults
Applicable 'sync_list' location              = /home/xxx/.config/onedrive/sync_list
Applicable 'items.sqlite3' location          = /home/xxx/.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 'permanent_delete'             = false
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.3-35-gd0354ff
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
Config option 'max_curl_idle'                = 120
Compile time option --enable-notifications   = false

Selective sync 'sync_list' configured        = false

Config option 'sync_business_shared_items'   = true
Config option 'Shared Files Directory'       = /home/xxx/OneDrive/Files Shared With Me

Config option 'webhook_enabled'              = false

What is your 'curl' version

curl 8.12.0-DEV (x86_64-pc-linux-gnu) libcurl/8.12.0-DEV OpenSSL/3.0.13 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 nghttp2/1.59.0 librtmp/2.3 OpenLDAP/2.6.7
Release-Date: [unreleased]
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli HSTS HTTP2 HTTPS-proxy IDN IPv6 Largefile libz NTLM PSL SSL threadsafe 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=15981108k,nr_inodes=3995277,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=3203980k,mode=755,inode64)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
/dev/mapper/ubuntu--vg-root 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)
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=32,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=6733)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,nosuid,nodev,relatime,pagesize=2M)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (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)
/var/lib/snapd/snaps/android-studio_161.snap on /snap/android-studio/161 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/canonical-livepatch_286.snap on /snap/canonical-livepatch/286 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/bare_5.snap on /snap/bare/5 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/chromium_3010.snap on /snap/chromium/3010 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/chromium_3019.snap on /snap/chromium/3019 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/core_17200.snap on /snap/core/17200 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/core18_2846.snap on /snap/core18/2846 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/core20_2434.snap on /snap/core20/2434 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/core24_609.snap on /snap/core24/609 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/core22_1722.snap on /snap/core22/1722 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/cups_1067.snap on /snap/cups/1067 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/firefox_5437.snap on /snap/firefox/5437 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/fingerpaint_6.snap on /snap/fingerpaint/6 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-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,x-gvfs-hide)
/var/lib/snapd/snaps/firefox_5561.snap on /snap/firefox/5561 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-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,x-gvfs-hide)
/var/lib/snapd/snaps/gaming-graphics-core22_184.snap on /snap/gaming-graphics-core22/184 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-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,x-gvfs-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,x-gvfs-hide)
/var/lib/snapd/snaps/gnome-46-2404_48.snap on /snap/gnome-46-2404/48 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-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,x-gvfs-hide)
/var/lib/snapd/snaps/kicad_15.snap on /snap/kicad/15 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/intellij-idea-community_562.snap on /snap/intellij-idea-community/562 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/mesa-2404_143.snap on /snap/mesa-2404/143 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/lnav_2760.snap on /snap/lnav/2760 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/postman_254.snap on /snap/postman/254 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/powershell_277.snap on /snap/powershell/277 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/slack_178.snap on /snap/slack/178 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/snapd_23258.snap on /snap/snapd/23258 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-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,x-gvfs-hide)
/var/lib/snapd/snaps/spotify_81.snap on /snap/spotify/81 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/snapd_23545.snap on /snap/snapd/23545 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/speedtest_9.snap on /snap/speedtest/9 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/spotify_82.snap on /snap/spotify/82 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/thunderbird_609.snap on /snap/thunderbird/609 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/dev/mapper/ubuntu--vg-root on /var/snap/firefox/common/host-hunspell type ext4 (ro,noexec,noatime,errors=remount-ro)
/var/lib/snapd/snaps/wine-platform-6-stable_19.snap on /snap/wine-platform-6-stable/19 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/wine-platform-runtime_397.snap on /snap/wine-platform-runtime/397 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)
tmpfs on /run/qemu type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
/dev/nvme0n1p2 on /boot type ext2 (rw,relatime)
/dev/nvme0n1p1 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=3203980k,mode=755,inode64)
nsfs on /run/snapd/ns/cups.mnt type nsfs (rw)
nsfs on /run/snapd/ns/canonical-livepatch.mnt type nsfs (rw)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=3203976k,nr_inodes=800994,mode=700,uid=1000,gid=1000,inode64)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
nsfs on /run/snapd/ns/snap-store.mnt type nsfs (rw)
nsfs on /run/snapd/ns/thunderbird.mnt type nsfs (rw)
nsfs on /run/snapd/ns/firefox.mnt type nsfs (rw)
nsfs on /run/snapd/ns/slack.mnt type nsfs (rw)
/var/lib/snapd/snaps/powershell_279.snap on /snap/powershell/279 type squashfs (ro,nodev,relatime,errors=continue,threads=single,x-gdu.hide,x-gvfs-hide)

What are all your local file system partition types

NAME                                          FSTYPE      FSVER    LABEL UUID                                   FSAVAIL FSUSE% MOUNTPOINTS
loop0                                         squashfs    4.0                                                         0   100% /snap/android-studio/161
loop1                                         squashfs    4.0                                                         0   100% /snap/canonical-livepatch/286
loop2                                         squashfs    4.0                                                         0   100% /snap/bare/5
loop3                                         squashfs    4.0                                                         0   100% /snap/chromium/3010
loop4                                         squashfs    4.0                                                         0   100% /snap/chromium/3019
loop5                                         squashfs    4.0                                                         0   100% /snap/core/17200
loop6                                         squashfs    4.0                                                         0   100% /snap/core18/2846
loop7                                         squashfs    4.0                                                         0   100% /snap/core20/2434
loop8                                         squashfs    4.0                                                         0   100% /snap/core24/609
loop9                                         squashfs    4.0                                                         0   100% /snap/core22/1722
loop10                                        squashfs    4.0                                                         0   100% /snap/cups/1067
loop11                                        squashfs    4.0                                                         0   100% /snap/firefox/5437
loop12                                        squashfs    4.0                                                         0   100% /snap/fingerpaint/6
loop13                                        squashfs    4.0                                                         0   100% /snap/gnome-3-28-1804/198
loop14                                        squashfs    4.0                                                         0   100% /snap/firefox/5561
loop15                                        squashfs    4.0                                                         0   100% /snap/gnome-3-34-1804/93
loop16                                        squashfs    4.0                                                         0   100% /snap/gaming-graphics-core22/184
loop17                                        squashfs    4.0                                                         0   100% /snap/gnome-42-2204/176
loop18                                        squashfs    4.0                                                         0   100% /snap/gnome-3-38-2004/143
loop19                                        squashfs    4.0                                                         0   100% /snap/gnome-46-2404/48
loop20                                        squashfs    4.0                                                         0   100% /snap/gtk-common-themes/1535
loop21                                        squashfs    4.0                                                         0   100% /snap/kicad/15
loop22                                        squashfs    4.0                                                         0   100% /snap/intellij-idea-community/562
loop23                                        squashfs    4.0                                                         0   100% /snap/mesa-2404/143
loop24                                        squashfs    4.0                                                         0   100% /snap/lnav/2760
loop25                                        squashfs    4.0                                                         0   100% /snap/postman/254
loop26                                        squashfs    4.0                                                         0   100% /snap/powershell/277
loop27                                        squashfs    4.0                                                         0   100% /snap/slack/178
loop28                                        squashfs    4.0                                                         0   100% /snap/snapd/23258
loop29                                        squashfs    4.0                                                         0   100% /snap/snap-store/1216
loop30                                        squashfs    4.0                                                         0   100% /snap/spotify/81
loop31                                        squashfs    4.0                                                         0   100% /snap/snapd/23545
loop32                                        squashfs    4.0                                                         0   100% /snap/spotify/82
loop33                                        squashfs    4.0                                                         0   100% /snap/speedtest/9
loop34                                        squashfs    4.0                                                         0   100% /snap/thunderbird/609
loop35                                                                                                                0   100% /snap/wine-platform-6-stable/19
loop36                                        squashfs    4.0                                                         0   100% /snap/wine-platform-runtime/397
loop37                                                                                                                0   100% /snap/powershell/279
nvme0n1                                                                                                                        
├─nvme0n1p1                                   vfat        FAT32          C21F-0E10                               463,8M     9% /boot/efi
├─nvme0n1p2                                   ext2        1.0            38efec66-adbc-445c-affb-863055addf6c      262M    39% /boot
└─nvme0n1p3                                   crypto_LUKS 1              7627f944-f796-4390-9acb-85b4c70085c6                  
  └─luks-7627f944-f796-4390-9acb-85b4c70085c6 LVM2_member LVM2 001       3IIvUr-lP2p-U68B-TLF0-pGc1-TV2n-LkbUgS                
    ├─ubuntu--vg-root                         ext4        1.0            c553375f-e220-4295-aeed-ac6ed4a457e6    134,9G    80% /var/snap/firefox/common/host-hunspell
    │                                                                                                                          /
    └─ubuntu--vg-swap_1                       swap        1              4f285747-236a-45b2-84dd-8e30a08c9851                  [SWAP]

How do you use 'onedrive'

only one sharepoint folder XXX linked to onedrive business account, where files are only uploaded, then files are downloaded manually from web if required

Steps to reproduce the behaviour

use successfully 2.4 with options --sync --single-directory XXX --upload-only --no-remote-delete
upgrade to 2.5, run same command => segmentation fault
run: onedrive --sync --upload-only --no-remote-delete (everything is OK)
onedrive --sync --single-directory XXX --upload-only --no-remote-delete (from now on everything is fine)

Complete Verbose Log Output

Reading configuration file: /home/xxx/.config/onedrive/config
Configuration file successfully loaded
Using 'user' configuration path for application config and state data: /home/xxx/.config/onedrive
Application configuration file has been updated, checking if --resync needed
WARNING: no backup config file was found, unable to validate if any changes made
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 ...
The item database is incompatible, re-creating database table structures
WARNING: Application has been configured NOT to cleanup remote files that are deleted locally.
Application Version:  onedrive v2.5.3-35-gd0354ff
Account Type:         business
Default Drive ID:     b!KK8pLgvEF06tCLbMeRlxO_ByQoR-YK5LvLfkc21J0zjSpTJ1-aY8QYFh4cubCsVS
Default Root ID:      01T4J5V6VRY2GOVW7725BZO354TWSELRRZ
Remaining Free Space: 1024.00 GB (1099509071998 bytes)
Sync Engine Initialised with new Onedrive API instance
All application operations will be performed in the configured local 'sync_dir' directory: /home/xxx/OneDrive
The OneDrive Client was asked to search for this directory online and create it if it's not located: ./XXX
WARNING: OneDrive quota information is being restricted. Please fix by speaking to your OneDrive / Office 365 Administrator.
Syncing changes from this selected path: XXX
Performing a database consistency and integrity check on locally stored data
Processing DB entries for this Drive ID: b!b-g9uvvCQkeW3eRtvG8DV4ceHPDGP_FHtf4hPnI8_bH1_JmHK_96QYbWEK09kBIZ
WARNING: OneDrive quota information is being restricted. Please fix by speaking to your OneDrive / Office 365 Administrator.

Screenshots

Image

Other Log Information or Details

debug output without --single-directory:

Reading configuration file: /home/xxx/.config/onedrive/config
Configuration file successfully loaded
Using 'user' configuration path for application config and state data: /home/xxx/.config/onedrive
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 ...
WARNING: Application has been configured NOT to cleanup remote files that are deleted locally.
Application Version:  onedrive v2.5.3-35-gd0354ff
Account Type:         business
Default Drive ID:     b!KK8pLgvEF06tCLbMeRlxO_ByQoR-YK5LvLfkc21J0zjSpTJ1-aY8QYFh4cubCsVS
Default Root ID:      01T4J5V6VRY2GOVW7725BZO354TWSELRRZ
Remaining Free Space: 1024.00 GB (1099509071998 bytes)
Sync Engine Initialised with new Onedrive API instance
All application operations will be performed in the configured local 'sync_dir' directory: /home/xxx/OneDrive
Performing a database consistency and integrity check on locally stored data
Processing DB entries for this Drive ID: b!KK8pLgvEF06tULbMeRl4O_ByQoR-YK5LvLfkc21J0zjSpTJ1-aY8QYFh4cubCsVS
Processing: ~/OneDrive
The directory has not changed
Processing DB entries for this Drive ID: b!b-g9uvvCQkeW3eRtvG8DV4ceHPDGP_FHtf4hPnI8_bH1_JmHK_96QYbWEK09kBIZ
WARNING: OneDrive quota information is being restricted. Please fix by speaking to your OneDrive / Office 365 Administrator.
Scanning the local file system '~/OneDrive' for new data to upload
New directories to create on Microsoft OneDrive: 3
OneDrive Client requested to create this directory online: ./DI
The requested directory to create was found on OneDrive - skipping creating the directory online: ./YY
OneDrive Client requested to create this directory online: ./DC_XXX
The requested directory to create was found on OneDrive - skipping creating the directory online: ./YY_XXX
OneDrive Client requested to create this directory online: ./TEST2
The requested directory to create was found on OneDrive - skipping creating the directory online: ./TEST2
New items to upload to Microsoft OneDrive: 1
Total New Data to Upload:        3 MB
WARNING: Shared Folder OneDrive quota information is being restricted or providing a zero value. Please fix by speaking to your OneDrive / Office 365 Administrator.
The file we are attempting to upload as a new file already exists on Microsoft OneDrive: ./XXX/6onedriver.tar.gz
WARNING: OneDrive quota information is being restricted or providing a zero value. Please fix by speaking to your OneDrive / Office 365 Administrator.

Sync with Microsoft OneDrive is complete
Attempting to perform a database vacuum to optimise database
Database vacuum is complete

next run with --single-direcory:
onedrive --verbose --sync --single-directory XXX --upload-only --no-remote-delete
Reading configuration file: /home/xxx/.config/onedrive/config
Configuration file successfully loaded
Using 'user' configuration path for application config and state data: /home/xxx/.config/onedrive
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 ...
WARNING: Application has been configured NOT to cleanup remote files that are deleted locally.
Application Version:  onedrive v2.5.3-35-gd0354ff
Account Type:         business
Default Drive ID:     b!KK8pLgvEF06tCLbMeRlxO_ByQoR-YK5LvLfkc21J0zjSpTJ1-aY8QYFh4cubCsVS
Default Root ID:      01T4J5V6VRY2GOVW7725BZO354TWSELRRZ
Remaining Free Space: 1024.00 GB (1099509071998 bytes)
Sync Engine Initialised with new Onedrive API instance
All application operations will be performed in the configured local 'sync_dir' directory: /home/xxx/OneDrive
The OneDrive Client was asked to search for this directory online and create it if it's not located: ./XXX
WARNING: OneDrive quota information is being restricted. Please fix by speaking to your OneDrive / Office 365 Administrator.
Syncing changes from this selected path: XXX
Performing a database consistency and integrity check on locally stored data
Processing DB entries for this Drive ID: b!b-g9uvvCQkeW3eRtvG8DV4ceHPDGP_FHtf4hPnI8_bH1_JmHK_96QYbWEK09kBIZ
WARNING: OneDrive quota information is being restricted. Please fix by speaking to your OneDrive / Office 365 Administrator.
Processing: XXX/6onedriver.tar.gz
Local file time discrepancy detected: XXX/6onedriver.tar.gz
The last modified timestamp has changed however the file content has not changed
The local item has the same hash value as the item online - correcting timestamp online
Scanning the local file system '~/OneDrive/XXX' for new data to upload

Sync with Microsoft OneDrive is complete
Attempting to perform a database vacuum to optimise database
Database vacuum is complete

Additional context

No response

@tomaskovacik tomaskovacik added the Bug Something isn't working label Jan 17, 2025
@abraunegg
Copy link
Owner

@tomaskovacik
As per email conversation, please provide an actual verbose debug log that actually shows a crash and or error.

So far there is no error at all illustrated, despite your console showing segfault.

There has to be a crash or deeper output that you can provide to work on this issue.

Please provide all verbose debug logs from your testing.

@tomaskovacik
Copy link
Author

working on it

@abraunegg
Copy link
Owner

@tomaskovacik
Ive reviewed the debug logs.

Please can you show the online folder structure where LOGS is located please.

@tomaskovacik
Copy link
Author

tomaskovacik commented Jan 17, 2025

it is linked folder from sharepoint site, directly in onedrive account

Image

@abraunegg
Copy link
Owner

abraunegg commented Jan 17, 2025

@tomaskovacik
Thanks for the confirmation of my initial analysis.

I will see if I can reproduce this which will make this easier to resolve.

@abraunegg abraunegg changed the title Bug: Segmentation fault upgrading from 2.4 to 2.5 with --single-directory option Bug: Segmentation fault upgrading from 2.4 to 2.5 with --single-directory option against a Shared Folder Jan 17, 2025
@abraunegg abraunegg added this to the v2.5.4 milestone Jan 17, 2025
@abraunegg
Copy link
Owner

@tomaskovacik
I am able to reproduce this issue in a consistent manner, will develop a resolution for this issue shortly.

@abraunegg abraunegg added the In Progress Currently being worked on label Jan 18, 2025
@abraunegg abraunegg linked a pull request Jan 19, 2025 that will close this issue
@abraunegg
Copy link
Owner

@tomaskovacik

Please can you test the PR below 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=3082

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-pr3082 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.3-38-g2a89671 or greater.

@tomaskovacik
Copy link
Author

@abraunegg works perfectly! thx!

@abraunegg
Copy link
Owner

@tomaskovacik
Thanks for the confirmation, will mark as fixed and merge into '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 Jan 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants