abraunegg / onedrive

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

Local files are not deleted during syncing #947

Closed gurza closed 4 years ago

gurza commented 4 years ago

I am working with SharePoint Shared Library. If a file is deleted on a remote host, the local file in my storage is not deleted. At the same time syncing to the other side works. If I delete a file locally, it is deleted on the remote host.

Does anyone have the same problem?

Please tell me how to fix this? I can provide any information you need.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:    18.04
Codename:   bionic

$ onedrive --version
onedrive v2.4.1-6-g2f22d38

$ onedrive --display-config
onedrive version                       = v2.4.1-6-g2f22d38
Config path                            = /home/idnt/.config/onedrive
Config file found in config path       = true
Config option 'check_nosync'           = false
Config option 'sync_dir'               = /home/idnt/OneDrive
Config option 'skip_dir'               = 
Config option 'skip_file'              = ~*|.~*|*.tmp
Config option 'skip_dotfiles'          = false
Config option 'skip_symlinks'          = false
Config option 'monitor_interval'       = 45
Config option 'min_notify_changes'     = 5
Config option 'log_dir'                = /var/log/onedrive/
Config option 'classify_as_big_delete' = 1000
Config option 'drive_id'               = b!HBAJUlob0UaLMFHU2O.......
Config option 'sync_root_files'        = false
Selective sync configured              = true
sync_list contents:
Lab/Identification/
abraunegg commented 4 years ago

@gurza , @hashloud Please can you provide a verbose debug log showing the issue, following the process as per https://github.com/abraunegg/onedrive/wiki/Generate-debug-log-for-support

abraunegg commented 4 years ago

@gurza , @hashloud Please can you respond and provide a debug log file

abraunegg commented 4 years ago

@gurza , @hashloud Unable to reproduce this, in either --synchronize or --monitor modes .. files are deleted locally correctly when a sync occurs.

Manual Sync:

./onedrive --confdir '~/.config/onedrive-sharepoint/' --synchronize --verbose
Using 'user' Config Dir: /home/alex/.config/onedrive-sharepoint/
Using 'system' Config Dir: 
Configuration file successfully loaded
config file has been updated, checking if --resync needed
Initializing the OneDrive API ...
Opening the item database ...
All operations will be performed in: /home/alex/OneDriveSharePoint
Application version: v2.4.2-8-g46c91ba
Account Type: documentLibrary
Default Drive ID: <redacted>
Default Root ID: <redacted>
Remaining Free Space: 27487714571693
Fetching details for OneDrive Root
OneDrive Root exists in the database
Initializing the Synchronization Engine ...
Syncing changes from OneDrive ...
Applying changes of Path ID: <redacted>
Number of items from OneDrive to process: 2
Trying to delete item test_files/Architecture Layres/architecture layers v0.4 - AB.vsd
Deleting item test_files/Architecture Layres/architecture layers v0.4 - AB.vsd
Uploading differences of .
Processing root
The directory has not changed
Processing test_files
The directory has not changed
Processing Architecture Layres

During Monitor Mode:

Processing IMG_2921.JPG
The file has not changed
Processing SMPP
The directory has not changed
Processing SMPP-IF-SPEC_v3_3-24858.pdf
The file has not changed
Processing SMPP_v3_4_Issue1_2-24857.pdf
The file has not changed
Uploading new items of .
Applying changes of Path ID: <redacted>
Sync with OneDrive is complete
Starting a sync with OneDrive
Applying changes of Path ID: <redacted>
Number of items from OneDrive to process: 2
Trying to delete item test_files/SMPP/SMPP_v3_4_Issue1_2-24857.pdf
Deleting item test_files/SMPP/SMPP_v3_4_Issue1_2-24857.pdf
Uploading differences of .
Processing root
The directory has not changed
Processing test_files
The directory has not changed
abraunegg commented 4 years ago

@gurza , @hashloud Please can you respond

abraunegg commented 4 years ago

@gurza , @hashloud Please can you respond. If no response in 24hrs I will close this issue due to lack of response, unable to reproduce issue.

abraunegg commented 4 years ago

@gurza , @hashloud Closing issue due to:

github-actions[bot] commented 3 years 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.