SOLVED (w/work around): dropbox sync error on FreeNAS-11.2-U3

gjfrater

Cadet
Joined
Mar 30, 2019
Messages
3
Hi All,

Trying to setup a dropbox sync for the first time using the System Cloud Credentials and Cloud Sync Tasks method outlined in this blog post (https://www.ixsystems.com/blog/dropbox-with-truenas-or-freenas/). I have it partially working but am getting an error that I don't know how to resolve. I could use your help.

This is a PULL method config. Here is the log I'm getting. I suspect the second line is the culprit but as stated above I don't know what it means and did not get any results when searching for the error here or the broader Internet.

2019/03/30 10:52:01 INFO : remote: Converting token to new format
2019/03/30 10:52:02 ERROR : .zfs: error reading destination directory: failed to read directory ".zfs": readdirent: invalid argument
2019/03/30 10:52:02 INFO : Local file system at /mnt/ourstuff/dropbox-sync: Waiting for checks to finish
2019/03/30 10:52:02 INFO : Local file system at /mnt/ourstuff/dropbox-sync: Waiting for transfers to finish
2019/03/30 10:52:02 ERROR : Local file system at /mnt/ourstuff/dropbox-sync: not deleting files as there were IO errors
2019/03/30 10:52:02 ERROR : Local file system at /mnt/ourstuff/dropbox-sync: not deleting directories as there were IO errors
2019/03/30 10:52:02 ERROR : Attempt 1/3 failed with 1 errors and: not deleting files as there were IO errors
2019/03/30 10:52:03 ERROR : .zfs: error reading destination directory: failed to read directory ".zfs": readdirent: invalid argument
2019/03/30 10:52:03 INFO : Local file system at /mnt/ourstuff/dropbox-sync: Waiting for checks to finish
2019/03/30 10:52:03 INFO : Local file system at /mnt/ourstuff/dropbox-sync: Waiting for transfers to finish
2019/03/30 10:52:03 ERROR : Local file system at /mnt/ourstuff/dropbox-sync: not deleting files as there were IO errors
2019/03/30 10:52:03 ERROR : Local file system at /mnt/ourstuff/dropbox-sync: not deleting directories as there were IO errors
2019/03/30 10:52:03 ERROR : Attempt 2/3 failed with 1 errors and: not deleting files as there were IO errors
2019/03/30 10:52:03 ERROR : .zfs: error reading destination directory: failed to read directory ".zfs": readdirent: invalid argument
2019/03/30 10:52:03 INFO : Local file system at /mnt/ourstuff/dropbox-sync: Waiting for checks to finish
2019/03/30 10:52:03 INFO : Local file system at /mnt/ourstuff/dropbox-sync: Waiting for transfers to finish
2019/03/30 10:52:03 ERROR : Local file system at /mnt/ourstuff/dropbox-sync: not deleting files as there were IO errors
2019/03/30 10:52:03 ERROR : Local file system at /mnt/ourstuff/dropbox-sync: not deleting directories as there were IO errors
2019/03/30 10:52:03 ERROR : Attempt 3/3 failed with 1 errors and: not deleting files as there were IO errors
2019/03/30 10:52:03 Failed to sync: not deleting files as there were IO errors

When configuring the sync task remote path setting (dropbox side), I can see the files and folders of my Dropbox account so I'm pretty confident that the credentials setup worked. Any ideas what that error means or how to troubleshoot further?

Thanks,

-Greg
 

Meyers

Patron
Joined
Nov 16, 2016
Messages
211
When I've rsynced to datasets I've had to exclude the .zfs dir otherwise rsync will try to delete/modify it and that won't work. I'm betting cloud sync (which uses rclone on the back end) is trying to delete the .zfs dir.

Since there is no way to exclude files/folders right now in the UI maybe try syncing to a directory within the dataset vs. the root. I actually abandoned the UI and wrote my own rclone scripts because of limitations like this.
 

gjfrater

Cadet
Joined
Mar 30, 2019
Messages
3
When I've rsynced to datasets I've had to exclude the .zfs dir otherwise rsync will try to delete/modify it and that won't work. I'm betting cloud sync (which uses rclone on the back end) is trying to delete the .zfs dir.

Since there is no way to exclude files/folders right now in the UI maybe try syncing to a directory within the dataset vs. the root. I actually abandoned the UI and wrote my own rclone scripts because of limitations like this.


Meyers,

Thanks for the reply. I think you are on to something here. I changed the method from 'SYNC' to 'COPY' and it worked. The COPY method does not attempt any deletes just reads of the sources and writes to the destination. I was already pointing to a sub-directory on the source (dropbox) side when I was getting the error so whatever it's doing the problem is there either way (I tested it on the root as well, same thing). Thanks again for the tip. I'd prefer a SYNC but COPY works to, just less efficiently.
 

Meyers

Patron
Joined
Nov 16, 2016
Messages
211
I meant set the destination on FreeNAS to a folder within the dataset, not the root of the dataset itself. Then you should be able to use sync. Copy will also work but like you said, it won't delete files for you.
 

gjfrater

Cadet
Joined
Mar 30, 2019
Messages
3
Oh, I definitely miss understood that, thanks for clarifying. That did work and resolved my issue with the workaround or caveat of using a subdirectory not the root of the datatset on the freenas side. Thanks again Meyers.

-greg
 
Joined
Feb 23, 2018
Messages
17
Did you manage to get sync to work? Im having the same issue. Using PUSH sync. Files are copied from my freenas to Dropbox but it doesnt delete files on Dropbox which are deleted on the freenas
 
Top