# Files deleted on source stuck in waiting on Ubuntu client

**URL:** <https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416>\
**Category:** Troubleshooting\
**Created:** [May 4, 2017, 2:00am UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416 "2017-05-04T02:00:18Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![henrik](https://forum.odrive.com/letter_avatar_proxy/v4/letter/h/ba9def/32.png) [@henrik](https://forum.odrive.com/u/henrik)\
**Post date:** [May 4, 2017, 2:00am UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/1 "2017-05-04T02:00:18Z")

</div>

Hi odrive team,

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?

Thanks a lot for your great work!  
Henrik

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [May 4, 2017, 7:43am UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/2 "2017-05-04T07:43:32Z")

</div>

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?

> **[odrive Sync Agent](https://docs.odrive.com/docs/odrive-sync-agent#section--download-sync-agent-)**
>
> SYNC AGENT OVERVIEW The odrive Sync Agent provides advanced users with a flexible, scriptable interface to odrive’s powerful Progressive Sync engine. Use it to bring cloud access to almost any environment. The odrive Sync Agent can be used on...

---

<div class="post-metadata">

**Author:** ![henrik](https://forum.odrive.com/letter_avatar_proxy/v4/letter/h/ba9def/32.png) [@henrik](https://forum.odrive.com/u/henrik)\
**Post date:** [May 4, 2017, 8:06am UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/3 "2017-05-04T08:06:04Z")

</div>

Hi Tony,

thanks a lot for your reply. I just followed the link you provided to reinstall sync agent. To do so I chose the command for 64-bit Linux:  
od="$HOME/.odrive-agent/bin" && curl -L “[http://dl.odrive.com/odrive-py](http://dl.odrive.com/odrive-py)” --create-dirs -o “$od/odrive.py” && curl -L “[http://dl.odrive.com/odriveagent-lnx-64](http://dl.odrive.com/odriveagent-lnx-64)” | tar -xvzf- -C “$od/” && curl -L “[http://dl.odrive.com/odrivecli-lnx-64](http://dl.odrive.com/odrivecli-lnx-64)” | tar -xvzf- -C “$od/”

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

Sync Requests: 0  
Background Requests: 0  
Uploads: 0  
Downloads: 0  
Trash: 0  
Waiting: 2  
Not Allowed: 0

---

<div class="post-metadata">

**Author:** ![henrik](https://forum.odrive.com/letter_avatar_proxy/v4/letter/h/ba9def/32.png) [@henrik](https://forum.odrive.com/u/henrik)\
**Post date:** [May 4, 2017, 8:38am UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/4 "2017-05-04T08:38:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [May 4, 2017, 4:04pm UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/5 "2017-05-04T16:04:43Z")

</div>

Thanks @henrik. It looks like you are on the latest, so we will need to dig into this.

---

<div class="post-metadata">

**Author:** ![AsifNisarr](https://forum.odrive.com/user_avatar/forum.odrive.com/asifnisarr/32/26_2.png) [@AsifNisarr](https://forum.odrive.com/u/AsifNisarr)\
**Post date:** [May 5, 2017, 3:31pm UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/6 "2017-05-05T15:31:43Z")

</div>

Hi @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,  
Asif

---

<div class="post-metadata">

**Author:** ![henrik](https://forum.odrive.com/letter_avatar_proxy/v4/letter/h/ba9def/32.png) [@henrik](https://forum.odrive.com/u/henrik)\
**Post date:** [May 8, 2017, 1:41am UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/7 "2017-05-08T01:41:19Z")

</div>

Hi Asif,

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.

Cheers,  
Henrik

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [May 8, 2017, 6:04pm UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/8 "2017-05-08T18:04:00Z")

</div>

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_

---

<div class="post-metadata">

**Author:** ![henrik](https://forum.odrive.com/letter_avatar_proxy/v4/letter/h/ba9def/32.png) [@henrik](https://forum.odrive.com/u/henrik)\
**Post date:** [May 9, 2017, 12:32am UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/9 "2017-05-09T00:32:56Z")

</div>

Hi Tony, I’m glad you were able to reproduce the problem. Let me know if I can help with anything to track the problem. Henrik

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [May 11, 2017, 11:29pm UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/10 "2017-05-11T23:29:00Z")

</div>

I’m still working through this one and should have an update next week.

---

<div class="post-metadata">

**Author:** ![ly2314](https://forum.odrive.com/user_avatar/forum.odrive.com/ly2314/32/4309_2.png) [@ly2314](https://forum.odrive.com/u/ly2314)\
**Post date:** [May 23, 2017, 3:15am UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/11 "2017-05-23T03:15:48Z")

</div>

Hi, I have this problem on my Ubuntu 16.04 machine too, are there any update about this issue?

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [May 30, 2017, 2:25pm UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/12 "2017-05-30T14:25:52Z")

</div>

Apologies for the delay on this one. It is still outstanding, but I think we should have something to fix it this week.

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [June 3, 2017, 4:28am UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/13 "2017-06-03T04:28:59Z")

</div>

Here is a beta version to test. Can the folks that are seeing this please test and let me know if it fixes the issue?  
[https://s3.amazonaws.com/cdn-agent.odrive.com/lnxbeta/odriveSyncAgent-lnx-923\_64bit.tar.gz](https://s3.amazonaws.com/cdn-agent.odrive.com/lnxbeta/odriveSyncAgent-lnx-923_64bit.tar.gz)

---

<div class="post-metadata">

**Author:** ![kjiec4](https://forum.odrive.com/letter_avatar_proxy/v4/letter/k/34f0e0/32.png) [@kjiec4](https://forum.odrive.com/u/kjiec4)\
**Post date:** [June 3, 2017, 5:55am UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/14 "2017-06-03T05:55:36Z")

</div>

Can I have a 32-bit version of the agent?

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [June 3, 2017, 2:18pm UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/15 "2017-06-03T14:18:12Z")

</div>

@kjiec4 here is the 32bit version: [https://s3.amazonaws.com/cdn-agent.odrive.com/lnxbeta/odriveSyncAgent-lnx-867\_32bit.tar.gz](https://s3.amazonaws.com/cdn-agent.odrive.com/lnxbeta/odriveSyncAgent-lnx-867_32bit.tar.gz)

---

<div class="post-metadata">

**Author:** ![kjiec4](https://forum.odrive.com/letter_avatar_proxy/v4/letter/k/34f0e0/32.png) [@kjiec4](https://forum.odrive.com/u/kjiec4)\
**Post date:** [June 4, 2017, 10:44am UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/16 "2017-06-04T10:44:26Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![henrik](https://forum.odrive.com/letter_avatar_proxy/v4/letter/h/ba9def/32.png) [@henrik](https://forum.odrive.com/u/henrik)\
**Post date:** [June 5, 2017, 6:06am UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/17 "2017-06-05T06:06:57Z")

</div>

@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!

---

<div class="post-metadata">

**Author:** ![ly2314](https://forum.odrive.com/user_avatar/forum.odrive.com/ly2314/32/4309_2.png) [@ly2314](https://forum.odrive.com/u/ly2314)\
**Post date:** [June 7, 2017, 2:19am UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/18 "2017-06-07T02:19:19Z")

</div>

It works 🙂  
Thank you very much for the update!

---

<div class="post-metadata">

**Author:** ![Tony](https://forum.odrive.com/user_avatar/forum.odrive.com/tony/32/19_2.png) [@Tony](https://forum.odrive.com/u/Tony)\
**Post date:** [June 7, 2017, 3:37pm UTC](https://forum.odrive.com/t/files-deleted-on-source-stuck-in-waiting-on-ubuntu-client/2416/19 "2017-06-07T15:37:32Z")

</div>

Thanks for the feedback everyone. We will push this version out on our download pages so everyone can get it.
