Recommended Posts

Posted

I cant seem to create a LINK to a Folder on Raspberry Pi with a supplied Secret from a mobile Camera Backup

 

Testing Details

BTsync Version: 1.3.109

Platform: Linux ARM Raspberry Pi Model B+

Mobile: Android HTC One M8

Storage on Mobile: Internal (NOT SD CARD)

 

API Request:

http://127.0.0.1:8888/api?method=add_folder&dir=/path/to/mnt/exteral/hdd&secret=<hidden>

 

Error Returned from btsync:

"error": 100, "message": "Can`t open the destination folder"

 

Please help.

Posted

Thank you for your help.

 

I tried to change the permissions to root cause its on an External USB Drive with an NTFS format with no avail.

 

But I think you are on to something. Perhaps could it be because the external drive is using the ntfs-3g driver to access the ntfs?

 

/etc/fstab

UUID=688F681855021DFG /mnt/usb ntfs-3g rw,user,exec,auto,permissions 0 0

 

User of BtSync Process

root      2079  1.1  1.6  62988  7992 ?        Ssl  19:53   0:05 /mnt/usb/btsync/btsync --config /mnt/usb/btsync/btsync.conf

 

Permissions of Dir

drwxrwxrwx 1 root     root    0 Oct 27 19:57 Test_1

 

Error while adding with Secret

$ sudo curl -Ss -u admin:pimedia "http://127.0.0.1:28888/api?method=add_folder&dir=Test_1&secret=XXXXU3C756ZRBNQPMMJPAI2KK5PXJXXXX"
{ "error": 100, "message": "Can't open the destination folder." }


[sOLVED]

Stupid Me, my add_folder path was relative and not full.

 

$sudo curl -Ss -u admin:pimedia "http://127.0.0.1:28888/api?method=add_folder&dir=/mnt/usb/Test_1&secret=XXXXU3C756ZRBNXXXXJPAI2KK5PXJXXXX"

{ "error": 0 }

 

Thanks for your help. Sometimes you need another person to look at your bugs!

Posted

@daddyfix

Okay, i'm glad to help. Though notice, that if your ext HDD is NTFS and mounted as read-only - Sync won't be able to add its service files there - which is totally necessary to sync.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.