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: A database consistency issue has been caught. #3072

Open
linkwood17 opened this issue Jan 14, 2025 · 8 comments · May be fixed by #3075
Open

Bug: A database consistency issue has been caught. #3072

linkwood17 opened this issue Jan 14, 2025 · 8 comments · May be fixed by #3075

Comments

@linkwood17
Copy link

Describe the bug

Each sync ends up with a database consistency issue has been caught. Resync runs without problems.
I use that ubuntu machine with onedrive to sync two different accounts. The issue is only seen with one account.
Completely setup new ubuntu VM (different ubuntu version and different curl version) and synced from scratch but still have the same problem.
Also tried with ip_protocol_version=1 and force_http_11=true: same problem

Operating System Details

root@lx43:~# uname -a
Linux lx43 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec  5 13:09:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
root@lx43:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.1 LTS
Release:        24.04
Codename:       noble

Client Installation Method

From Distribution Package

OneDrive Account Type

Personal

What is your OneDrive Application Version

onedrive v2.5.3-1+np1+1.1

What is your OneDrive Application Configuration

root@lx43:~# /usr/bin/onedrive --confdir=/onedrive/config/nt.hotmail/ --display-config
Reading configuration file: /onedrive/config/nt.hotmail/config
Configuration file successfully loaded
WARNING: Required environment variables required to enable GUI Notifications are not present

WARNING: Your cURL/libcurl version (8.5.0) 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.3-1+np1+1.1
Compiled with                                = LDC 2106
Curl version                                 = libcurl/8.5.0 OpenSSL/3.0.13 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 (+libidn2/2.3.7) libssh/0.10.6/openssl/zlib nghttp2/1.59.0 librtmp/2.3 OpenLDAP/2.6.7
User Application Config path                 = /onedrive/config/nt.hotmail/
System Application Config path               = /etc/onedrive
Applicable Application 'config' location     = /onedrive/config/nt.hotmail/config
Configuration file found in config location  = true - using 'config' file values to override application defaults
Applicable 'sync_list' location              = /onedrive/config/nt.hotmail/sync_list
Applicable 'items.sqlite3' location          = /onedrive/config/nt.hotmail/items.sqlite3
Config option 'drive_id'                     = 
Config option 'sync_dir'                     = /onedrive/nt.hotmail
Config option 'enable_logging'               = true
Config option 'log_dir'                      = /var/log/onedrive/nt.hotmail/
Config option 'disable_notifications'        = false
Config option 'skip_dir'                     = _Davos|_Family
Config option 'skip_dir_strict_match'        = true
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'                = true
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'          = true
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'         = 755
Config option 'sync_file_permissions'        = 644
Config option 'space_reservation'            = 52428800
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-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'            = false
Environment var 'DBUS_SESSION_BUS_ADDRESS'   = false
Config option 'notify_file_actions'          = false

Selective sync 'sync_list' configured        = false

Config option 'sync_business_shared_items'   = false

Config option 'webhook_enabled'              = false

What is your 'curl' version

root@lx43:~# curl --version
curl 8.5.0 (x86_64-pc-linux-gnu) libcurl/8.5.0 OpenSSL/3.0.13 zlib/1.3 brotli/1.1.0 zstd/1.5.5 libidn2/2.3.7 libpsl/0.21.2 (+libidn2/2.3.7) libssh/0.10.6/openssl/zlib nghttp2/1.59.0 librtmp/2.3 OpenLDAP/2.6.7
Release-Date: 2023-12-06, security patched: 8.5.0-2ubuntu10.6
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 PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd

Where is your 'sync_dir' located

Network

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=987140k,nr_inodes=246785,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=200940k,mode=755,inode64)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
/dev/vda1 on / type ext4 (rw,relatime,discard,errors=remount-ro,commit=30)
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=2296)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,nosuid,nodev,relatime,pagesize=2M)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/tracing type tracefs (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)
/dev/vda16 on /boot type ext4 (rw,relatime)
/dev/vda15 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)
sunrpc on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
192.168.0.1:/volume1/public/ on /public type nfs (rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.0.1,mountvers=3,mountport=892,mountproto=udp,local_lock=none,addr=192.168.0.1)
192.168.0.1:/volume1/onedrive/ on /onedrive type nfs (rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.0.1,mountvers=3,mountport=892,mountproto=udp,local_lock=none,addr=192.168.0.1)
tmpfs on /run/user/1101 type tmpfs (rw,nosuid,nodev,relatime,size=200936k,nr_inodes=50234,mode=700,uid=1101,gid=100,inode64)

What are all your local file system partition types

root@lx43:~# lsblk -f
NAME    FSTYPE  FSVER LABEL           UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sr0     iso9660       cidata          2025-01-13-22-08-27-00                              
vda                                                                                       
|-vda1  ext4    1.0   cloudimg-rootfs 372462ea-137d-4e94-9465-a2fbb2a7f4ee   16.1G    12% /
|-vda14                                                                                   
|-vda15 vfat    FAT32 UEFI            A4F8-12D8                              98.2M     6% /boot/efi
`-vda16 ext4    1.0   BOOT            0de9fa52-b0fa-4de2-9fd3-df23fb104826  707.3M    13% /boot

How do you use 'onedrive'

I use that VM to "download" the onedrive files to create a backup with a history.
Download only and then I create a daily snapshot.

Steps to reproduce the behaviour

new ubuntu and onedrive installation.
Run the onedrive as a service with your service file.
First run downloads all data properly.
Second run then produces the error.

Complete Verbose Log Output

root@lx43:~# /usr/bin/onedrive --synchronize --verbose --confdir=/onedrive/config/nt.hotmail/
Reading configuration file: /onedrive/config/nt.hotmail/config
Configuration file successfully loaded
Using 'user' configuration path for application config and state data: /onedrive/config/nt.hotmail/
WARNING: Required environment variables required to enable GUI Notifications are not present
WARNING: The required environment variables to enable GUI Notifications are not available; GUI notifications are disabled

WARNING: Your cURL/libcurl version (8.5.0) 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.

Using the following path to store the runtime application log: /var/log/onedrive/nt.hotmail/

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 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 to cleanup local files that are not present online.
WARNING: Local data loss MAY occur in this scenario if you are expecting data to remain archived locally.

Downgrading all HTTP operations to HTTP/1.1 due to user configuration
Application Version:  onedrive v2.5.3-1+np1+1.1
Account Type:         personal
Default Drive ID:     fa0759806e59af9b
Default Root ID:      FA0759806E59AF9B!103
Remaining Free Space: 1042.80 GB (1119697974067 bytes)
Sync Engine Initialised with new Onedrive API instance
All application operations will be performed in the configured local 'sync_dir' directory: /onedrive/nt.hotmail
Generating a /delta response from the OneDrive API from this Item ID: FA0759806E59AF9B!103
Adding OneDrive folder details for processing
Adding 85 OneDrive items for processing from the OneDrive 'root' Folder
...
<snip as there is some sensitive data>
...
Adding 8 OneDrive items for processing from weihnachtskarten
Skipping path - The Microsoft OneNote Notebook '/Documents/Notizbuch von Natascha' is not supported by this client
Finished processing self generated /delta JSON response from the OneDrive API
Processing 9044 applicable changes and items received from Microsoft OneDrive
Processing OneDrive JSON item batch [1/19] to ensure consistent local state
Processing OneDrive JSON item batch [2/19] to ensure consistent local state
Processing OneDrive JSON item batch [3/19] to ensure consistent local state
Processing OneDrive JSON item batch [4/19] to ensure consistent local state
Processing OneDrive JSON item batch [5/19] to ensure consistent local state
Processing OneDrive JSON item batch [6/19] to ensure consistent local state
Processing OneDrive JSON item batch [7/19] to ensure consistent local state
Processing OneDrive JSON item batch [8/19] to ensure consistent local state
Processing OneDrive JSON item batch [9/19] to ensure consistent local state
Processing OneDrive JSON item batch [10/19] to ensure consistent local state
Processing OneDrive JSON item batch [11/19] to ensure consistent local state
Processing OneDrive JSON item batch [12/19] to ensure consistent local state
Processing OneDrive JSON item batch [13/19] to ensure consistent local state
Processing OneDrive JSON item batch [14/19] to ensure consistent local state
Processing OneDrive JSON item batch [15/19] to ensure consistent local state
Processing OneDrive JSON item batch [16/19] to ensure consistent local state
Processing OneDrive JSON item batch [17/19] to ensure consistent local state
Processing OneDrive JSON item batch [18/19] to ensure consistent local state
Processing OneDrive JSON item batch [19/19] to ensure consistent local state
Skipping path - excluded by skip_dir config: _Davos
Skipping path - excluded by skip_dir config: _Family
Syncing this OneDrive Personal Shared Folder: TSV Bonstetten Chränzli 2025
Generating a /delta response from the OneDrive API from this Item ID: 24470056F5C3E43!14891
Adding OneDrive folder details for processing
Adding 11 OneDrive items for processing from the OneDrive Shared Folder
...
<snip as there is some sensitive information>
...
Finished processing self generated /delta JSON response from the OneDrive API
Processing 56 applicable changes and items received from Microsoft OneDrive
Processing OneDrive JSON item batch [1/1] to ensure consistent local state
The following generated a broken database tree query:
Drive ID: 024470056f5c3e43
Item ID: 24470056F5C3E43!671
ERROR: A database consistency issue has been caught. A --resync is needed to rebuild the database.

Screenshots

No response

Other Log Information or Details

No response

Additional context

No response

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

@linkwood17
Please follow the Basic Troubleshooting Steps: https://github.com/abraunegg/onedrive?tab=readme-ov-file#basic-troubleshooting-steps

Essentially, build your client from 'master' and re-test.

@linkwood17
Copy link
Author

linkwood17 commented Jan 14, 2025

Hello @abraunegg,
I just compiled the master version and also upgrade curl to the newer version curl 8.11.0

Still see the application crashing. journal -f shows:

Jan 14 22:40:33 lx43 onedrive[55106]: Finished processing self generated /delta JSON response from the OneDrive API
Jan 14 22:40:51 lx43 onedrive[55106]: Processing 9044 applicable JSON items received from Microsoft OneDrive ............
Jan 14 22:40:51 lx43 onedrive[55106]: Syncing this OneDrive Personal Shared Folder: ./<***dir***>
Jan 14 22:40:51 lx43 onedrive[55106]: Generating a /delta response from the OneDrive API from this Drive ID: 24470056f5c3e43 and Item ID: 24470056F5C3E43!14891 .Attempting to perform a database vacuum to optimise database
Jan 14 22:40:51 lx43 onedrive[55106]: Database vacuum is complete
Jan 14 22:40:52 lx43 onedrive[55106]: core.exception.AssertError@src/itemdb.d(892): Assertion failure
Jan 14 22:40:52 lx43 onedrive[55106]: ----------------
Jan 14 22:40:52 lx43 onedrive[55106]: ??:? _d_assertp [0x5893e28fa920]
Jan 14 22:40:52 lx43 onedrive[55106]: ??:? immutable(char)[] itemdb.ItemDatabase.computePath(const(char)[], const(char)[]) [0x5893e28c11eb]
Jan 14 22:40:52 lx43 onedrive[55106]: ??:? immutable(char)[] syncEngine.SyncEngine.computeItemPath(immutable(char)[], immutable(char)[]) [0x5893e288e4cb]
Jan 14 22:40:52 lx43 onedrive[55106]: ??:? bool syncEngine.SyncEngine.checkJSONAgainstClientSideFiltering(std.json.JSONValue) [0x5893e28937af]
Jan 14 22:40:52 lx43 onedrive[55106]: ??:? std.json.JSONValue syncEngine.SyncEngine.generateDeltaResponse(immutable(char)[]) [0x5893e28a87b1]
Jan 14 22:40:52 lx43 onedrive[55106]: ??:? void syncEngine.SyncEngine.fetchOneDriveDeltaAPIResponse(immutable(char)[], immutable(char)[], immutable(char)[]) [0x5893e2880227]
Jan 14 22:40:52 lx43 onedrive[55106]: ??:? void syncEngine.SyncEngine.syncOneDriveAccountToLocalDisk() [0x5893e287d50d]
Jan 14 22:40:52 lx43 onedrive[55106]: ??:? void main.performStandardSyncProcess(immutable(char)[], monitor.Monitor) [0x5893e2733953]
Jan 14 22:40:52 lx43 onedrive[55106]: ??:? _Dmain [0x5893e273185e]
Jan 14 22:40:52 lx43 systemd[1]: onedrive-nt.hotmail.service: Main process exited, code=exited, status=1/FAILURE
Jan 14 22:40:52 lx43 systemd[1]: onedrive-nt.hotmail.service: Failed with result 'exit-code'.
Jan 14 22:40:52 lx43 systemd[1]: onedrive-nt.hotmail.service: Consumed 28.330s CPU time, 66.8M memory peak, 0B memory swap peak.
Jan 14 22:40:55 lx43 systemd[1]: onedrive-nt.hotmail.service: Scheduled restart job, restart counter is at 2.
Jan 14 22:40:55 lx43 systemd[1]: Started onedrive-nt.hotmail.service - OneDrive Free Client for <***>.
Jan 14 22:40:55 lx43 onedrive[55147]: Reading configuration file: /onedrive/config/nt.hotmail/config
Jan 14 22:40:55 lx43 onedrive[55147]: Configuration file successfully loaded
Jan 14 22:40:55 lx43 onedrive[55147]: Using IPv4 and IPv6 (if configured) for all network operations
Jan 14 22:40:55 lx43 onedrive[55147]: Attempting to contact Microsoft OneDrive Login Service
Jan 14 22:40:56 lx43 onedrive[55147]: Successfully reached Microsoft OneDrive Login Service
Jan 14 22:40:56 lx43 onedrive[55147]: Configuring Global Azure AD Endpoints
Jan 14 22:40:56 lx43 onedrive[55147]: WARNING: Application has been configured to cleanup local files that are not present online.
Jan 14 22:40:56 lx43 onedrive[55147]: WARNING: Local data loss MAY occur in this scenario if you are expecting data to remain archived locally.
Jan 14 22:40:57 lx43 onedrive[55147]: OneDrive synchronisation interval (seconds): 300
Jan 14 22:40:57 lx43 onedrive[55147]: Attempting to contact Microsoft OneDrive Login Service
Jan 14 22:40:58 lx43 onedrive[55147]: Successfully reached Microsoft OneDrive Login Service
Jan 14 22:40:58 lx43 onedrive[55147]: Starting a sync with Microsoft OneDrive

I also could send the full log, but preferable on a private channel
Many thanks

@abraunegg
Copy link
Owner

Please send a complete verbose debug log to the support email address.

To generate the verbose debug log, please read:

https://github.com/abraunegg/onedrive/wiki/Generate-debug-log-for-support

In addition to this, please disable any onedrive systemd service so that it does not interfere with the debug log generation.

@abraunegg
Copy link
Owner

abraunegg commented Jan 15, 2025

@linkwood17
As per email conversation, your issue is dealing with OneDrive Shared Folders, however this is not a bug that I can fix easily as this is a Microsoft API Bug.

Let me explain this part. For reference please use the debug log as provided.

Your OneDrive Account Drive ID looks like the following:
image

When the Shared Folder is 'Processed' to be created, (reference: Processing OneDrive Item 8929 of 9046 from API Response Bundle 0) - this JSON is correctly determined to be a Shared Folder, however the JSON data provided by Microsoft is inconsistent:

image

Your DriveID: fa0759806e59af9b - 16 Characters
Shared Folder DriveID: 24470056f5c3e43 - 15 Characters
SharePoint URL ID: 024470056f5c3e43 - 16 Characters

The OneDrive API is dropping the leading zero in their API response.

When the Shared Folder gets created (reference Processing OneDrive JSON item 427 of 500 as part of JSON Item Batch 18 of 19) the provided JSON again has this 15 character DriveID, thus this is entered into the database as such:

Item("fa0759806e59af9b", "FA0759806E59AF9B!12932", "XXXXXXXX", "", remote, "aRkEwNzU5ODA2RTU5QUY5QiExMjkzMi4y", "adDpGQTA3NTk4MDZFNTlBRjlCITEyOTMyLjYzODcyNDAyMDk4ODYwMDAwMA", 2025-Jan-13 21:54:58.8360888Z, "FA0759806E59AF9B!103", "", "", "24470056f5c3e43", "", "24470056F5C3E43!14891", dir, "Y", "")

When the 'root' (the remote shared folder) details are retrieved, the correct Drive ID Length is provided:
image

The application failure occurs due to the following:

DEBUG: Attempting to calculate local filesystem path for 024470056f5c3e43 and 24470056F5C3E43!14891
DEBUG: Initial calculated path = XXXXXXXXX
DEBUG: The path we are trying to calculate extends to a OneDrive Shared Folder .. need to perform multiple calculations to calculate the full true local path

This is because when the API data for your Shared Folder is generated, it is looking for a DriveID of '024470056f5c3e43' as per the root details, but your 'Shared Folder' details is incorrect from the API response, thus this is why the application is crashing.

This OneDrive API bug can potentially be worked around, but I need to think of the flow on impacts.

If you have paid support for Microsoft OneDrive, please raise a bug report with them as their API is broken and is the root cause of your issue here.

@abraunegg
Copy link
Owner

@linkwood17
Please can you test the following PR to potentially resolve your issue.

I cannot replicate your issue, thus I need you to test this PR to work around the API Bug.

To test the PR, 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=3075

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-pr3075 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-34-g021febf or greater.

@linkwood17
Copy link
Author

Hi @abraunegg,
I've found multiple threads about a Microsoft bug that is around for over a half a year now. Linked folders are shown as *.url in the Mac/Win OneDrive app. Thats true for the newer shares I've accepted and since then the ondrive crashes.
Funny is that shares that are made a year or more ago, still show as folders and they sync well without a problem.

I've now adapted the config to skip the directory and after a resync the onedrive does not crash anymore.
That is for me a good workaround already, as I do not need that shared directory to be downloaded.

I'm now going to test with your bug fix and tell you the result asap.
(of course, without skipping that directory)

best regards

@linkwood17
Copy link
Author

Hi @abraunegg,
PR3075 is now running for quite a while without any problems or error.
It does not sync the contents of the shared folder but this is most probably the MS bug.

By the way, the workaround mentioned before with the skiped directory did not work. It took longer to crash but stil it does.

Thanks for your help and many regards

@abraunegg
Copy link
Owner

Hi @abraunegg, PR3075 is now running for quite a while without any problems or error. It does not sync the contents of the shared folder but this is most probably the MS bug.

By the way, the workaround mentioned before with the skiped directory did not work. It took longer to crash but stil it does.

Thanks for your help and many regards

The Shared Folder should be syncing if you have configured it to do so ....

The PR version works around the API bug - but the data contents should sync if there is no configuration to exlcude it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants