Skip to content

Bug: Can't sync files #3571

@deletedaccount032423423

Description

Describe the bug

$ systemctl --user status onedrive
● onedrive.service - OneDrive Client for Linux
     Loaded: loaded (/usr/lib/systemd/user/onedrive.service; enab
led; preset: enabled)
     Active: active (running) since Sun 2025-12-14 12:37:29 -03; 1min 12s ago
 Invocation: 43f2ce59a9204afc9791d305671c1a23
       Docs: https://github.com/abraunegg/onedrive
    Process: 243442 ExecStartPre=/bin/sh -c sleep 15 (code=exited, status=0/SUCCESS)
   Main PID: 245793 (onedrive)
      Tasks: 30 (limit: 38249)
     Memory: 90.2M (peak: 90.4M)
        CPU: 5.231s
     CGroup: /user.slice/user-1000.slice/[email protected]/app.slice/onedrive.service
             └─245793 /usr/bin/onedrive --monitor

dez 14 12:37:30  onedrive[245793]: Configuring Global Azure AD Endpoints
dez 14 12:37:33  onedrive[245793]: Attempting to enable WebSocket support to monitor Microsoft Graph API changes in near real-ti
me.
dez 14 12:37:34  onedrive[245793]: Enabled WebSocket support to monitor Microsoft Graph API changes in near real-time.
dez 14 12:37:34 onedrive[245793]: OneDrive synchronisation interval (seconds): 300
dez 14 12:37:34 onedrive[245793]: Initialising filesystem inotify monitoring ...
dez 14 12:37:34 onedrive[245793]: Performing initial synchronisation to ensure consistent local state ...
dez 14 12:37:34 onedrive[245793]: Attempting to contact the Microsoft OneDrive Service
dez 14 12:37:34 onedrive[245793]: Successfully reached the Microsoft OneDrive Service
dez 14 12:37:34 onedrive[245793]: Starting a sync with Microsoft OneDrive
dez 14 12:38:37 onedrive[245793]: Fetching items from the OneDrive API for Drive ID: 5407e3a3e4c70ee5 .........................
...............Handling a Microsoft Graph API HTTP 429 Response Code (Too Many Requests)

Operating System Details

$ uname -a
Linux 6.12.61-1-lts #1 SMP PREEMPT_DYNAMIC Sun, 07 Dec 2025 09:50:46 +0000 x86_64 GNU/Linux
$ lsb_release -a
LSB Version:    n/a
Distributor ID: Arch
Description:    Arch Linux
Release:        rolling
Codename:       n/a

Client Installation Method

From Distribution Package

OneDrive Account Type

Personal

What is your OneDrive Application Version

onedrive v2.5.9

What is your OneDrive Application Configuration

$ onedrive --display-config
Reading configuration file: /home/xxxxxxxxxxxxx/.config/onedrive/config
Configuration file successfully loaded
Application version                          = onedrive v2.5.9
Compiled with                                = LDC 2111
Curl version                                 = libcurl/8.17.0 OpenSSL/3.6.0 zlib/1.3.1 brotli/1.1.0 zstd/1.5.7 libidn2/2.3.8 libpsl/0.21.5 libssh2/1.11.1 nghttp2/1.68.0 nghttp3/1.13.1 mit-krb5/1.21.3
User Application Config path                 = /home/xxxxxxxxxxxxx/.config/onedrive
System Application Config path               = /etc/onedrive
Applicable Application 'config' location     = /home/xxxxxxxxxxxxx/.config/onedrive/config
Configuration file found in config location  = true - using 'config' file values to override application defaults
Applicable 'sync_list' location              = /home/xxxxxxxxxxxxx/.config/onedrive/sync_list
Applicable 'items.sqlite3' location          = /home/xxxxxxxxxxxxx/.config/onedrive/items.sqlite3
Config option 'drive_id'                     = 
Config option 'sync_dir'                     = /mnt/HDD/OneDrive/
Config option 'use_intune_sso'               = false
Config option 'use_device_auth'              = false
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 'skip_size'                    = 0
Config option 'monitor_interval'             = 300
Config option 'monitor_log_frequency'        = 12
Config option 'monitor_fullscan_frequency'   = 12
Config option 'disable_websocket_support'    = false
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 'disable_permission_set'       = false
Config option 'transfer_order'               = default
Config option 'delay_inotify_processing'     = false
Config option 'inotify_delay'                = 5
Config option 'display_transfer_metrics'     = false
Config option 'force_session_upload'         = false
Config option 'file_fragment_size'           = 10
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 'write_xattr_data'             = false
Config option 'create_new_file_version'      = 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.9
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
Environment var 'XDG_RUNTIME_DIR'            = true
Environment var 'DBUS_SESSION_BUS_ADDRESS'   = true
Config option 'notify_file_actions'          = false
Config option 'use_recycle_bin'              = false
Config option 'recycle_bin_path'             = /home/xxxxxxxxxxxxx/.local/share/Trash/

Selective sync 'sync_list' configured        = false

Config option 'sync_business_shared_items'   = false

Config option 'webhook_enabled'              = false

What is your 'curl' version

$ curl --version
curl 8.17.0 (x86_64-pc-linux-gnu) libcurl/8.17.0 OpenSSL/3.6.0 zlib/1.3.1 brotli/1.1.0 zstd/1.5.7 libidn2/2.3.8 libpsl/0.21.5 libssh2/1.11.1 nghttp2/1.68.0 nghttp3/1.13.1 mit-krb5/1.21.3
Release-Date: 2025-11-05
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTP3 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd

Where is your 'sync_dir' located

Local

What are all your system 'mount points'

$ mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=16334392k,nr_inodes=4083598,mode=755,inode64)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
/dev/nvme0n1p2 on / type btrfs (rw,relatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/@)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64,usrquota)
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=41,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=6427)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,nosuid,nodev,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
tmpfs on /run/credentials/systemd-journald.service type tmpfs (ro,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,size=16358956k,nr_inodes=1048576,inode64,usrquota)
/dev/nvme0n1p2 on /var/cache/pacman/pkg type btrfs (rw,relatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=259,subvol=/@pkg)
/dev/nvme0n1p2 on /home type btrfs (rw,relatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/@home)
/dev/nvme0n1p2 on /var/log type btrfs (rw,relatime,compress=zstd:3,ssd,discard=async,space_cache=v2,subvolid=258,subvol=/@log)
/dev/nvme0n1p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
/dev/sda1 on /mnt/HDD type btrfs (rw,noatime,discard=async,space_cache=v2,subvolid=5,subvol=/,x-gvfs-show,x-gvfs-name=HDD)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=3271788k,nr_inodes=817947,mode=700,uid=1000,gid=1000,inode64)
portal on /run/user/1000/doc type fuse.portal (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
hydra.appimage on /tmp/.mount_hydra.ACDm7M type fuse.hydra.appimage (ro,nosuid,nodev,relatime,user_id=1000,group_id=1000)

What are all your local file system partition types

$ lsblk -f
NAME        FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                
└─sda1      btrfs        HDD   aff9d1ae-ea31-4200-ba71-de653fcc1a1a  929,5G     0% /mnt/HDD
zram0       swap   1     zram0 224652db-109a-47aa-8a74-ef987159a9d4                [SWAP]
nvme0n1                                                                            
├─nvme0n1p1 vfat   FAT32       93C1-440B                             954,6M     7% /boot
└─nvme0n1p2 btrfs              273766f1-e95a-4839-a153-9236a5881a62  219,7G    76% /var/log
                                                                                   /home
                                                                                   /var/cache/pacman/pkg
                                                                                   /

How do you use 'onedrive'

I use OneDrive client for linux for sync onedrive to local folder on my HDD, normal use (as windows client does)

Steps to reproduce the behaviour

onedrive --monitor or systemctl --user start onedrive
(starting sync is broken in my cenario)

Complete Verbose Log Output

$ onedrive --synchronize --verbose
Reading configuration file: /home/xxxxxxxxx/.config/onedrive/config
Configuration file successfully loaded
Using 'user' configuration path for application config and state data: /home/xxxxxxxxxxx/.config/onedrive
D-Bus message bus daemon is available; GUI notifications are now enabled

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

Using IPv4 and IPv6 (if configured) for all network operations
Attempting to contact the Microsoft OneDrive Service
Successfully reached the Microsoft OneDrive 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.9
Account Type:          personal
Default Drive ID:      yyyyyyyyyyyyyyyyy
Default Root ID:       yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
Microsoft Data Centre: Brazil South
Remaining Free Space:  194.40 GB (208735410585 bytes)
Sync Engine Initialised with new Onedrive API instance
All application operations will be performed in the configured local 'sync_dir' directory: /mnt/HDD/OneDrive/
Fetching /delta response from the OneDrive API for Drive ID: 5407e3a3e4c70ee5
Processing API Response Bundle: 1 - Quantity of 'changes|items' in this bundle to process: 201
Processing API Response Bundle: 2 - Quantity of 'changes|items' in this bundle to process: 208
Processing API Response Bundle: 3 - Quantity of 'changes|items' in this bundle to process: 241
Processing API Response Bundle: 4 - Quantity of 'changes|items' in this bundle to process: 225
Processing API Response Bundle: 5 - Quantity of 'changes|items' in this bundle to process: 203
Processing API Response Bundle: 6 - Quantity of 'changes|items' in this bundle to process: 203
Processing API Response Bundle: 7 - Quantity of 'changes|items' in this bundle to process: 203
Processing API Response Bundle: 8 - Quantity of 'changes|items' in this bundle to process: 203
Processing API Response Bundle: 9 - Quantity of 'changes|items' in this bundle to process: 203
Processing API Response Bundle: 10 - Quantity of 'changes|items' in this bundle to process: 203
Processing API Response Bundle: 11 - Quantity of 'changes|items' in this bundle to process: 203
Processing API Response Bundle: 12 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 13 - Quantity of 'changes|items' in this bundle to process: 229
Processing API Response Bundle: 14 - Quantity of 'changes|items' in this bundle to process: 206
Processing API Response Bundle: 15 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 16 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 17 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 18 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 19 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 20 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 21 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 22 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 23 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 24 - Quantity of 'changes|items' in this bundle to process: 205
Processing API Response Bundle: 25 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 26 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 27 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 28 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 29 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 30 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 31 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 32 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 33 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 34 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 35 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 36 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 37 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 38 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 39 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 40 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 41 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 42 - Quantity of 'changes|items' in this bundle to process: 205
Processing API Response Bundle: 43 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 44 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 45 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 46 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 47 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 48 - Quantity of 'changes|items' in this bundle to process: 204
Processing API Response Bundle: 49 - Quantity of 'changes|items' in this bundle to process: 204
Handling a Microsoft Graph API HTTP 429 Response Code (Too Many Requests) - Internal Thread ID: jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
Retry attempt:           1 - Internal Thread ID: jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
 This attempt timestamp: 2025-Dec-14 12:50:45
 Next retry in approx:   318 seconds
 Next retry approx:      2025-Dec-14 12:56:03

Screenshots

No response

Other Log Information or Details

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions