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: OneDrive API inconsistency #2442

Closed
RL-arch opened this issue Jun 21, 2023 · 3 comments
Closed

Bug: OneDrive API inconsistency #2442

RL-arch opened this issue Jun 21, 2023 · 3 comments

Comments

@RL-arch
Copy link

RL-arch commented Jun 21, 2023

Describe the bug

I met 200 lines of "WARNING: OneDrive API inconsistency ..."

WARNING: OneDrive API inconsistency - this file does not have any hash: 01S4CBCJFE363H7GPVL5AJRZC77M3DQB5G
WARNING: OneDrive API inconsistency - this file does not have any hash: 01S4CBCJEELDYVWD24HFGJDPUXC4BVHRA3
WARNING: OneDrive API inconsistency - this file does not have any hash: 01S4CBCJAQCXN2WNBSGBDJYUAL76D4Z5HG
WARNING: OneDrive API inconsistency - this file does not have any hash: 01S4CBCJEVD63R2SCMR5EY7KNLDQNOPZ42
WARNING: OneDrive API inconsistency - this file does not have any hash: 01S4CBCJG6N3O77JM6VZGJH3MEBP5D2T6Q
WARNING: OneDrive API inconsistency - this file does not have any hash: Documents/OneNote Notebooks/My Notebook
WARNING: OneDrive API inconsistency - this file does not have any hash: `01S4CBCJDEDRYIGTKREFFJIRO6PS2GBYYS

And these files seem slowing down the synchronization.

Operating System Details

$ uname -a                                                                                        
Linux fedora 6.3.8-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 15 02:15:40 UTC 2023 x86_64 GNU/Linux


$ cat /etc/redhat-release                                                                         
Fedora release 38 (Thirty Eight)

Client Installation Method

From Source

OneDrive Account Type

Business | Office365

What is your OneDrive Application Version

onedrive v2.4.25

What is your OneDrive Application Configuration

Configuration file successfully loaded
onedrive version                             = v2.4.25
Config path                                  = /home/xxx/.config/onedrive
Config file found in config path             = true
Config option 'sync_dir'                     = /home/xxxxxx
Config option 'enable_logging'               = false
Config option 'log_dir'                      = /var/log/onedrive/
Config option 'disable_notifications'        = false
Config option 'min_notify_changes'           = 5
Config option 'skip_dir'                     = xxx
Config option 'skip_dir_strict_match'        = false
Config option 'skip_file'                    = ~*|.~*|*.tmp
Config option 'skip_dotfiles'                = true
Config option 'skip_symlinks'                = true
Config option 'monitor_interval'             = 300
Config option 'monitor_log_frequency'        = 6
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 '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'               = 
Config option 'azure_ad_endpoint'            = 
Config option 'azure_tenant_id'              = common
Config option 'user_agent'                   = 
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'                 = 600
Config option 'ip_protocol_version'          = 0
Config option 'sync_root_files'              = false
Selective sync 'sync_list' configured        = false
Config option 'sync_business_shared_folders' = false
Business Shared Folders configured           = false
Config option 'webhook_enabled'              = false

What is your 'curl' version

$ curl --version                                                                                  
curl 8.0.1 (x86_64-redhat-linux-gnu) libcurl/8.0.1 OpenSSL/3.0.9 zlib/1.2.13 libidn2/2.3.4 nghttp2/1.52.0
Release-Date: 2023-03-20
Protocols: file ftp ftps http https
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz SPNEGO SSL threadsafe UnixSockets

Where is your 'sync_dir' located

Local

What are all your system 'mount points'

$ mount                                                                                           (cv) 
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
devtmpfs on /dev type devtmpfs (rw,nosuid,seclabel,size=4096k,nr_inodes=8194454,mode=755,inode64)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,seclabel,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,seclabel,size=13119924k,nr_inodes=819200,mode=755,inode64)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,seclabel,nsdelegate,memory_recursiveprot)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime,seclabel)
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)
ramfs on /run/credentials/systemd-vconsole-setup.service type ramfs (ro,nosuid,nodev,noexec,relatime,seclabel,mode=700)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
/dev/nvme0n1p2 on / type ext4 (rw,relatime,seclabel)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,nosuid,noexec,relatime)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=33,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=25253)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime,seclabel)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime,seclabel)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime,seclabel)
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,seclabel,mode=700)
ramfs on /run/credentials/systemd-tmpfiles-setup-dev.service type ramfs (ro,nosuid,nodev,noexec,relatime,seclabel,mode=700)
/dev/nvme0n1p2 on /var/lib/snapd/snap type ext4 (rw,relatime,seclabel)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,seclabel,size=32799808k,nr_inodes=1048576,inode64)
/var/lib/snapd/snaps/bare_5.snap on /var/lib/snapd/snap/bare/5 type squashfs (ro,nodev,relatime,context=system_u:object_r:snappy_snap_t:s0,errors=continue)
/var/lib/snapd/snaps/bare_5.snap on /var/lib/snapd/snap/bare/5 type squashfs (ro,nodev,relatime,context=system_u:object_r:snappy_snap_t:s0,errors=continue,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/core18_2785.snap on /var/lib/snapd/snap/core18/2785 type squashfs (ro,nodev,relatime,context=system_u:object_r:snappy_snap_t:s0,errors=continue)
/var/lib/snapd/snaps/core18_2785.snap on /var/lib/snapd/snap/core18/2785 type squashfs (ro,nodev,relatime,context=system_u:object_r:snappy_snap_t:s0,errors=continue,x-gdu.hide,x-gvfs-hide)
/dev/nvme0n1p3 on /home type ext4 (rw,relatime,seclabel)
/dev/nvme0n1p4 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=winnt,errors=remount-ro)
/var/lib/snapd/snaps/gnome-3-28-1804_198.snap on /var/lib/snapd/snap/gnome-3-28-1804/198 type squashfs (ro,nodev,relatime,context=system_u:object_r:snappy_snap_t:s0,errors=continue)
/var/lib/snapd/snaps/gnome-3-28-1804_198.snap on /var/lib/snapd/snap/gnome-3-28-1804/198 type squashfs (ro,nodev,relatime,context=system_u:object_r:snappy_snap_t:s0,errors=continue,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/snapd_19457.snap on /var/lib/snapd/snap/snapd/19457 type squashfs (ro,nodev,relatime,context=system_u:object_r:snappy_snap_t:s0,errors=continue)
/var/lib/snapd/snaps/snapd_19457.snap on /var/lib/snapd/snap/snapd/19457 type squashfs (ro,nodev,relatime,context=system_u:object_r:snappy_snap_t:s0,errors=continue,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/gtk-common-themes_1535.snap on /var/lib/snapd/snap/gtk-common-themes/1535 type squashfs (ro,nodev,relatime,context=system_u:object_r:snappy_snap_t:s0,errors=continue)
/var/lib/snapd/snaps/gtk-common-themes_1535.snap on /var/lib/snapd/snap/gtk-common-themes/1535 type squashfs (ro,nodev,relatime,context=system_u:object_r:snappy_snap_t:s0,errors=continue,x-gdu.hide,x-gvfs-hide)
/var/lib/snapd/snaps/snowflake_2.snap on /var/lib/snapd/snap/snowflake/2 type squashfs (ro,nodev,relatime,context=system_u:object_r:snappy_snap_t:s0,errors=continue)
/var/lib/snapd/snaps/snowflake_2.snap on /var/lib/snapd/snap/snowflake/2 type squashfs (ro,nodev,relatime,context=system_u:object_r:snappy_snap_t:s0,errors=continue,x-gdu.hide,x-gvfs-hide)
/dev/nvme1n1 on /home/ronald/Experiments type ext4 (rw,relatime,seclabel)
/dev/sda on /home/ronald/Data type ext4 (rw,relatime,seclabel)
ramfs on /run/credentials/systemd-tmpfiles-setup.service type ramfs (ro,nosuid,nodev,noexec,relatime,seclabel,mode=700)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
ramfs on /run/credentials/systemd-resolved.service type ramfs (ro,nosuid,nodev,noexec,relatime,seclabel,mode=700)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,seclabel,size=6559960k,nr_inodes=1639990,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)

What are all your local file system partition types

$ lsblk -f                                                                                  (base) 1.3m
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0
     squash 4.0                                                    0   100% /var/lib/snapd/snap/bare/5
                                                                            /var/lib/snapd/snap/bare/5
loop1
     squash 4.0                                                    0   100% /var/lib/snapd/snap/core18/2785
                                                                            /var/lib/snapd/snap/core18/
                                                                            2785
loop2
     squash 4.0                                                    0   100% /var/lib/snapd/snap/gnome-3-28-1804/198
                                                                            /var/lib/snapd/snap/gnome-3
                                                                            -28-1804/198
loop3
     squash 4.0                                                    0   100% /var/lib/snapd/snap/gtk-common-themes/1535
                                                                            /var/lib/snapd/snap/gtk-com
                                                                            mon-themes/1535
loop4
     squash 4.0                                                    0   100% /var/lib/snapd/snap/snapd/19457
                                                                            /var/lib/snapd/snap/snapd/1
                                                                            9457
loop5
     squash 4.0                                                    0   100% /var/lib/snapd/snap/snowflake/2
                                                                            /var/lib/snapd/snap/snowfla
                                                                            ke/2
sda  ext4   1.0         5f9fb1aa-16f5-40c1-a3c9-6c9f7a509d13    3.4T    20% /home/ronald/Data
zram0
                                                                            [SWAP]
nvme1n1
     ext4   1.0         7c5f80c8-fb27-4998-ba7d-f860f6e8ec5a  669.8G    22% /home/ronald/Experiments
nvme0n1
                                                                            
├─nvme0n1p1
│    swap   1           c9e2fc3f-b777-4888-a87f-d9f6addf7dac                [SWAP]
├─nvme0n1p2
│    ext4   1.0         e0afcfcb-8134-4ee3-8aa9-24ec9566256f  447.4G     4% /var/lib/snapd/snap
│                                                                           /
├─nvme0n1p3
│    ext4   1.0         2c084c58-5c2f-4df1-99ea-08160dcde99a    1.1T     3% /home
└─nvme0n1p4
     vfat   FAT32 NO_LABEL
                        90BE-9894                            1004.6M     2% /boot/efi

How do you use 'onedrive'

The onedrive folder is created on separate HDD, which mounted on my Linux-only workstationa

Steps to reproduce the behaviour

I installed it from the source, then configured it using a config file. The dry run shows similar issues for 200 files.

Complete Verbose Log Output

$ onedrive --synchronize --verbose --dry-run                                               (base) 16.2m
Using 'user' Config Dir: /home/ronald/.config/onedrive
Using 'system' Config Dir: /etc/onedrive
Configuration file successfully loaded
DRY-RUN Configured. Output below shows what 'would' have occurred.
Checking Application Version ...
Initializing the OneDrive API ...
Configuring Global Azure AD Endpoints
Using Curl defaults for all HTTP operations
Opening the item database ...
All operations will be performed in: /home/ronald/Data/OneDriveKUL
Application version: v2.4.25
Account Type: business
Default Drive ID: b!ZNgH3d_7VkmH_nldzE9Oh3eoGqYzEF9DgH8T7ogMvBEEviS1u5qWSI6nlvEP49Hc
Default Root ID: 01S4CBCJF6Y2GOVW7725BZO354PWSELRRZ
Remaining Free Space: 1989671260858
Fetching details for OneDrive Root
OneDrive Root exists in the database
Initializing the Synchronization Engine ...
Syncing changes and items from OneDrive ...
Applying changes of Path ID: 01S4CBCJF6Y2GOVW7725BZO354PWSELRRZ
Updated Remaining Free Space: 1989671260858
Processing 204 OneDrive items to ensure consistent local state


$ onedrive --synchronize --verbose                                                         (base) 42.6s
Using 'user' Config Dir: /home/ronald/.config/onedrive
Using 'system' Config Dir: /etc/onedrive
Configuration file successfully loaded
Checking Application Version ...
Initializing the OneDrive API ...
Configuring Global Azure AD Endpoints
Using Curl defaults for all HTTP operations
Opening the item database ...
All operations will be performed in: /home/ronald/Data/OneDriveKUL
Application version: v2.4.25
Account Type: business
Default Drive ID: b!ZNgH3d_7VkmH_nldzE9Oh3eoGqYzEF9DgH8T7ogMvBEEviS1u5qWSI6nlvEP49Hc
Default Root ID: 01S4CBCJF6Y2GOVW7725BZO354PWSELRRZ
Remaining Free Space: 1989671260858
Fetching details for OneDrive Root
OneDrive Root exists in the database
Initializing the Synchronization Engine ...
Syncing changes and items from OneDrive ...
Applying changes of Path ID: 01S4CBCJF6Y2GOVW7725BZO354PWSELRRZ
Updated Remaining Free Space: 1989671260858
Processing 204 OneDrive items to ensure consistent local state
Processing 204 OneDrive items to ensure consistent local state
...

Screenshots

No response

Other Log Information or Details

No response

Additional context

No response

@RL-arch RL-arch added the Bug Something isn't working label Jun 21, 2023
@RL-arch
Copy link
Author

RL-arch commented Jun 22, 2023

Thank you for the info.

@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 Jun 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants