I’m using odrive CLI to access OneDrive on Ubuntu. Everything works great using the scripts provided in the forum (thanks!), except one issue:
I have all folders and files synced on the client. When I delete a file on another computer (or OneDrive web interface), it does not get deleted on the Ubuntu client. Instead in ends up in the waiting queue. When I do status --waiting it it returns path-to-file - Error accessing file.
To solve the problem I can unsync the file which returns the placeholder. The placeholder then immediately gets deleted. This “solution” is however not permanent as I would have to unsync and resync all my files on the client to detect any deleted files. This can lead to conflicts if I’m currently editing a file which is being unsynced. Do you have a solution to this problem?
Hi @henrik,
This was an issue a while ago, but it was resolved in a later version. Do remember how long ago you downloaded the agent? Can you double-check that the latest version has the issue?
After reboot of my system and restarting the newly installed agent, I still see the same problem. The version in status shows prod 916. Is this the latest version? Below is the complete output from status (I now have 2 files waiting as I tried to delete another file).
Thanks, Henrik
#output from status
isActivated: True hasSession: True
email: accountType: OneDriveForBusiness
syncEnabled: True version: prod 916
placeholderThreshold: neverDownload autoUnsyncThreshold: never
downloadThrottlingThreshold: unlimited uploadThrottlingThreshold: normal
autoTrashThreshold: never Mounts: 1
xlThreshold: never Backups: 0
Hi, sorry. I didn’t answer your reply completely. I actually installed the agent yesterday for the first time following the same link that you provided earlier. Thanks, Henrik
I have been investigating the causes of the error you are seeing in removing files from your local machine. It seems like sync is correctly picking up the remote delete (from another machine or OneDrive web interface) but hitting permissions error at OS level each time odrive agent try to proceed with delete operation.
Is there a possibility that file(s) is/are open into another native application or monitored by another process?,
File open into a native app: gave me similar error during my testing.
/home/asifubuntu14x64/Documents/odrivemount/OneDrive For Business/Lighthouse.jpg - Error accessing file
If so please close the file(s) and see if it correctly picks up the remote delete?
Thanks for investigating this issue further. I have checked any issues with file accessibility:
shut down all Laptop’s with access to OneDrive
rebooted my Ubuntu PC
opened terminal
ran odriveagent and a refresh on the folder
I also tried to reboot straight to command line, but unfortunately I still see exactly the same problem as described above.
There should also be no issue regarding ownership as I can reproduce the problem by copying a file in Ubuntu, going to the web interface to delete it and then wait for the status to change to “waiting”.
I’m running Ubuntu 16.04 LTS 64-bit. I hope you have any ideas on how to look into this issue further.
I can reproduce this on ubuntu 16.04, I haven’t seen this error before, so it may be something new for 16.04. I will make sure by trying on 14.04 to see if there is a difference. If so it will at least give me some clues at what to look for.
Update: works fine on 14.04, so its something new… still looking
Well, all the files, I’ve deleted long time ago from ACD, are deleted from local folder now.
Deletions, that have been made after an odriveagent binary update, are synchronized too.
Thanks for the fix!
@Tony, Everything works great also for 64bit. I’ve tested deleting, adding, renaming of files and folders on Ubuntu 16.04, Windows 7 and online. It all synced fine. Thank you for the extensive effort!