-
-
Notifications
You must be signed in to change notification settings - Fork 899
Closed
Labels
Milestone
Description
Describe the bug
I lost credentials to my working OneDrive plugin on OpenMediaVault 7 running on Raspberry Pi 4, and now I cannot manage to reauthorise it with the onedrive --reauth even if the service is not running. This is the log excerpt that repeats itself forever, at every reboot as well:
2025-12-13T05:40:53+0700 buddha onedrive[16121]: Reading configuration file: /var/cache/onedrive/config
2025-12-13T05:40:53+0700 buddha onedrive[16121]: Configuration file successfully loaded
2025-12-13T05:40:53+0700 buddha onedrive[16121]: WARNING: Configured 'threads = 8' exceeds available CPU cores (4).
2025-12-13T05:40:53+0700 buddha onedrive[16121]: This may lead to reduced performance, CPU contention, and instability. For best results, set 'threads' no higher than the number of physical CPU cores.
2025-12-13T05:40:53+0700 buddha onedrive[16121]: WARNING: Your cURL/libcurl version (7.88.1) has known operational bugs that impact the use of this client.
2025-12-13T05:40:53+0700 buddha onedrive[16121]: Please report this to your distribution, requesting an update to a newer cURL version, or consider upgrading it yourself for optimal stability.
2025-12-13T05:40:53+0700 buddha onedrive[16121]: Disabling GUI notifications as per user configuration
2025-12-13T05:40:53+0700 buddha onedrive[16121]: Forcing client to use IPv4 connections only
2025-12-13T05:40:53+0700 buddha onedrive[16121]: Attempting to contact the Microsoft OneDrive Service
2025-12-13T05:40:54+0700 buddha onedrive[16121]: Successfully reached the Microsoft OneDrive Service
2025-12-13T05:40:54+0700 buddha onedrive[16121]: Configuring Global Azure AD Endpoints
2025-12-13T05:40:54+0700 buddha onedrive[16121]: Please authorise this application by visiting the following URL:
2025-12-13T05:40:54+0700 buddha onedrive[16121]: https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=d50ca740-c83f-4d1b-b616-12c519384f0c&scope=Files.ReadWrite%20Files.ReadWrite.All%20Sites.ReadWrite.All%20offline_access&response_type=code&prompt=login&redirect_uri=https://login.microsoftonline.com/common/oauth2/nativeclient
2025-12-13T05:40:54+0700 buddha onedrive[16121]: After completing the authorisation in your browser, copy the full redirect URI (from the address bar) and paste it below.
2025-12-13T05:40:54+0700 buddha onedrive[16121]: Paste redirect URI here: An empty or invalid response uri was entered
2025-12-13T05:40:54+0700 buddha onedrive[16121]: The OneDrive API could not be initialised
Please help?
Operating System Details
Linux buddha 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookwormClient Installation Method
From Distribution Package
OneDrive Account Type
Personal
What is your OneDrive Application Version
onedrive v2.5.9-1+np1+1.1
What is your OneDrive Application Configuration
WARNING: Configured 'threads = 8' exceeds available CPU cores (4).
This may lead to reduced performance, CPU contention, and instability. For best results, set 'threads' no higher than the number of physical CPU cores.
WARNING: Required environment variables required to enable GUI Notifications are not present
WARNING: Your cURL/libcurl version (7.88.1) has known HTTP/2 bugs that impact the use of this client.
Please report this to your distribution, requesting an update to a newer cURL version, or consider upgrading it yourself for optimal stability.
Downgrading all client operations to use HTTP/1.1 to ensure maximum operational stability.
Please read https://github.com/abraunegg/onedrive/blob/master/docs/usage.md#compatibility-with-curl for more information.
Application version = onedrive v2.5.9-1+np1+1.1
Compiled with = LDC 2100
Curl version = libcurl/7.88.1 OpenSSL/3.0.17 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.3 libpsl/0.21.2 (+libidn2/2.3.3) libssh2/1.10.0 nghttp2/1.52.0 librtmp/2.3 OpenLDAP/2.5.13
User Application Config path = /home/pi/.config/onedrive
System Application Config path = /etc/onedrive
Applicable Application 'config' location = /home/pi/.config/onedrive/config
Configuration file found in config location = false - using application defaults
Applicable 'sync_list' location = /home/pi/.config/onedrive/sync_list
Applicable 'items.sqlite3' location = /home/pi/.config/onedrive/items.sqlite3
Config option 'drive_id' =
Config option 'sync_dir' = ~/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-1+np1+1.1
Config option 'force_http_11' = true
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' = false
Config option 'notify_file_actions' = false
Config option 'use_recycle_bin' = false
Config option 'recycle_bin_path' = /home/pi/.local/share/Trash/
Selective sync 'sync_list' configured = false
Config option 'sync_business_shared_items' = false
Config option 'webhook_enabled' = falseWhat is your 'curl' version
curl 7.88.1 (aarch64-unknown-linux-gnu) libcurl/7.88.1 OpenSSL/3.0.17 zlib/1.2.13 brotli/1.0.9 zstd/1.5.4 libidn2/2.3.3 libpsl/0.21.2 (+libidn2/2.3.3) libssh2/1.10.0 nghttp2/1.52.0 librtmp/2.3 OpenLDAP/2.5.13
Release-Date: 2023-02-20, security patched: 7.88.1-10+deb12u14
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 threadsafe TLS-SRP UnixSockets zstdWhere is your 'sync_dir' located
Local
What are all your system 'mount points'
/dev/mmcblk0p2 on / type ext4 (rw,noatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=3735680k,nr_inodes=933920,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,size=1599964k,nr_inodes=819200,mode=755)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
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=31,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
mqueue on /dev/mqueue type mqueue (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)
ramfs on /run/credentials/systemd-sysctl.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
ramfs on /run/credentials/systemd-sysusers.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
ramfs on /run/credentials/systemd-tmpfiles-setup-dev.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
tmpfs on /tmp type tmpfs (rw,relatime)
/dev/sdb1 on /srv/dev-disk-by-uuid-7A0C-9DC9 type exfat (rw,relatime,fmask=0022,dmask=0022,iocharset=utf8,errors=remount-ro)
/dev/mmcblk0p1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,flush,errors=remount-ro)
ramfs on /run/credentials/systemd-tmpfiles-setup.service type ramfs (ro,nosuid,nodev,noexec,relatime,mode=700)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
/dev/mmcblk0p2 on /var/folder2ram/var/log type ext4 (rw,noatime)
folder2ram on /var/log type tmpfs (rw,relatime)
/dev/sda1 on /srv/dev-disk-by-uuid-0dfe41be-de31-4f8e-86d2-05dd9615907c type ext4 (rw,relatime,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
/dev/mmcblk0p2 on /var/folder2ram/var/tmp type ext4 (rw,noatime)
folder2ram on /var/tmp type tmpfs (rw,relatime)
/dev/mmcblk0p2 on /var/folder2ram/var/lib/openmediavault/rrd type ext4 (rw,noatime)
folder2ram on /var/lib/openmediavault/rrd type tmpfs (rw,relatime)
/dev/mmcblk0p2 on /var/folder2ram/var/spool type ext4 (rw,noatime)
folder2ram on /var/spool type tmpfs (rw,relatime)
/dev/mmcblk0p2 on /var/folder2ram/var/lib/rrdcached type ext4 (rw,noatime)
folder2ram on /var/lib/rrdcached type tmpfs (rw,relatime)
/dev/mmcblk0p2 on /var/folder2ram/var/lib/monit type ext4 (rw,noatime)
folder2ram on /var/lib/monit type tmpfs (rw,relatime)
/dev/mmcblk0p2 on /var/folder2ram/var/cache/samba type ext4 (rw,noatime)
folder2ram on /var/cache/samba type tmpfs (rw,relatime)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=799980k,nr_inodes=199995,mode=700,uid=1000,gid=1000)What are all your local file system partition types
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
└─sda1
ext4 1.0 0dfe41be-de31-4f8e-86d2-05dd9615907c 4.8T 34% /srv/dev-disk-by-uuid-0dfe41be-de31-4f8e-86d2-05dd9615907c
sdb
└─sdb1
exfat 1.0 WD8TbExt
7A0C-9DC9 4.8T 34% /srv/dev-disk-by-uuid-7A0C-9DC9
mmcblk0
├─mmcblk0p1
│ vfat FAT32 boot F914-FF4D 221.6M 12% /boot
└─mmcblk0p2
ext4 1.0 rootfs
1943b829-a99b-45b8-9fe5-7136dbea4c4a 21.1G 20% /var/folder2ram/var/cache/samba
/var/folder2ram/var/lib/monit
/var/folder2ram/var/lib/rrdcached
/var/folder2ram/var/spool
/var/folder2ram/var/lib/openmediavault/rrd
/var/folder2ram/var/tmp
/var/folder2ram/var/log
/How do you use 'onedrive'
It is a plugin on OpenMediaVault used to create a synchronised local copy of my Documents stored on the OneDrive. Files are just downloaded to a USB 3 drive connected to the Pi 4.
Steps to reproduce the behaviour
onedrive --reauth completes successfully, but errors in log say that service not authenticated even after reboot.
Complete Verbose Log Output
If I do that it creates a local copy on OneDrive in the wrong location, in my pi user rather than the attached USB drive.Screenshots
No response
Other Log Information or Details
Additional context
No response