abraunegg / onedrive

OneDrive Client for Linux
https://abraunegg.github.io
GNU General Public License v3.0
9.63k stars 849 forks source link

Bug: WARNING: OneDrive API inconsistency - this file does not have any hash: ... #2751

Closed rogercreagh closed 2 weeks ago

rogercreagh commented 2 weeks ago

Describe the bug

Since upgrading to v2.4.25 if have been getting loads of WARNING: OneDrive API inconsistency - this file does not have any hash: B9CD0EF703F192C1!836 messages

This is on three different machines Ubuntu 22.04 and Ubuntu 24.04. The old version was completely removed as per the installation instructions.

The only change in the config file is the addition of a skip_dir list. I am only sync'ing a subset of the full 580GB on OneDrive - a different subset on each machine. (as an aside I wish there was an include_dir option as there are only about 4 top level folders that are sync'd on each machine. Much less typing and wouldn't have to remember to add new top level folders to all of the config files every time a new one was added)

I also renamed the old local directory and started a fresh one with a full synchonise.

I am now getting lots of these WARNING messages, which didn't used to happen. There are as far as I can see no zero byte files in any of the target folders. (there may be elsewhere, but I haven't knowingly created them).

If I do a subsequent sync where some files have changed on the server but not locally then the new files all get added with no warnings, but as soon as it starts

Performing a database consistency and integrity check on locally stored data ... 
Uploading differences of ~/OneDrive
Uploading new items of ~/OneDrive

then the messages start appearing.

Oddly, the messages always start with WARNING: OneDrive API inconsistency - this file does not have any hash: B9CD0EF703F192C1!836 and then one or more subsequent lines the same with different numbers. The one ending with !836 is always first in a group.

The output seems to be the same on all three machines - the same numbers in the same order, implying that it is not something local.

It also takes a very long time to do a sync (more than the default 300secs allowed in the monitor setting) - is it actually looking at ALL the OneDrive folders including the ones that should be skipper? Why?

Operating System Details

Ubuntu 22.04 and Ubuntu 24.04

Client Installation Method

From Distribution Package

OneDrive Account Type

Personal

What is your OneDrive Application Version

2.4.25

What is your OneDrive Application Configuration

onedrive version                             = v2.4.25-1+np2+4.1
Config path                                  = /home/rogerco/.config/onedrive
Config file found in config path             = true
Config option 'sync_dir'                     = /home/rogerco/OneDrive
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'                     = 1drivePersonalDocs|AkeebaBackups|Archive|Archived|.. etc etc etc
Config option 'skip_dir_strict_match'        = false
Config option 'skip_file'                    = ~*|.~*|*.tmp
Config option 'skip_dotfiles'                = false
Config option 'skip_symlinks'                = false
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 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.17
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

May be different on the two 24.04 machines

Where is your 'sync_dir' located

Local

What are all your system 'mount points'

different on each machine

What are all your local file system partition types

different on each machine

How do you use 'onedrive'

personal sharing between three machines and archive

Steps to reproduce the behaviour

install onedrive and do a sync

Complete Verbose Log Output

really?

Screenshots

No response

Other Log Information or Details

No response

Additional context

No response

abraunegg commented 2 weeks ago

@rogercreagh This is not a bug. Please read all other issues and discussions where this has been raised.

Specifically - please read: https://github.com/abraunegg/onedrive/discussions/2441

rogercreagh commented 2 weeks ago

Oh, sorry. I read a closed thread that seemed to imply that it was a bug that had been fixed, so guessed that perhaps it had come back with U24.04 or something. #2441 I missed. My mistake, thanks for your trouble.

abraunegg commented 1 week ago

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.