*New 12.1 series Release:
2020-09-13: XigmaNAS 12.1.0.4.7743 - released

*New 11.4 series Release:
2020-09-12: XigmaNAS 11.4.0.4.7741 - released!


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[EXTENSION] BitTorrent Sync (Resilio Sync)

XigmaNAS Extensions / Add-ons

Moderator: crest

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 552
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

[EXTENSION] BitTorrent Sync (Resilio Sync)

#1

Post by crest »

Since the developers of btsync created a new company and renamed the btsync application to resilio sync, starting from v0.7.1 the extension BitTorrent Sync supports the new Resilio Sync application and you can use it together with the appropriate IPhone and Android apps.

I want to share an extension I wrote for BitTorrent Sync (BTS) on N4F based on this topic http://forums.nas4free.org/viewtopic.ph ... ync#p29394 and using basic information for the installation made by alexey123 http://forums.nas4free.org/viewtopic.ph ... 007#p27374 he made more or less by the way ... Big thanks to alexey123 who created a lot of very useful extensions and for sharing so much of his knowledge !!!

The extension
- allows to set/change configuration parameters
- backups releases of the rslsync executable to revert to older releases in case of problems with an updated version
- let you revert to an older/a specific release of BitTorrent Sync
- includes a scheduling agent
- is compatible with all releases (9.1.x - 11.x)
- runs on x64 and x386 architecture
- works on all plattforms (embedded, full)
- does not need jail or pkg_add.
- add pages to Web GUI extensions
- features configuration, application update & backup management, extension mantenance (update & removal) and log view with filter and search capability

INSTALLATION / UPDATE

Prior to the installation make a backup of the N4F configuration via SYSTEM | BACKUP/RESTORE | Download configuration.

This extension can be easily installed with the OneButtonInstaller.

TRANSLATIONS

BTS is now on Launchpad - if someone wants to contribute please go to BitTorrent Sync on Launchpad for translation!

DISCLAIMER

This extension is provided AS-IS, I'm NOT responsible for any data loss or damage caused by the use of it, use it solely at your own risk.

VERSION HISTORY

Version 0.7.4 - 2020.06.03
F: error while parsing config file: Invalid key 'folder_defaults.use_lan_broadcast' -> depreciated in rslsync 2.7
Perform a 'Save and Restart' once in the BTS v0.7.4 config tab after updating to rslsync 2.7 to remove the obsolete key in the configuration file!
C: update Chinese language
C: update French language

Version 0.7.3.1 - 2020.04.26
F: function 'killbyname' no longer exists in firmware lib, use killall

Version 0.7.3 - 2018.08.07
N: avoid alarming for Extended GUI service monitoring if RSLSync is stopped due to daily schedule
N: Kurdish translation
F: GUI translations not working due to name change to XigmaNAS
F: not working backup of product executable
F: error while parsing config file: Invalid key 'recv_buf_size' & 'send_buf_size' -> depreciated in rslsync 2.6
Perform a 'Save and Restart' once in the BTS v0.7.3 config tab after updating to rslsync 2.6 to remove the obsolete vars in the configuration file!

Version 0.7.2.1 - 2017.05.20
F: error while parsing config file: Invalid key 'folder_defaults_delete_to_trash' -> depreciated in rslsync 2.5.2
F: false info 'New extension version x.y.z available' on Extensions > BitTorrent Sync 0.7.2 > Configuration

Version 0.7.2 - 2017.03.05
C: made extension PHP 7.1 aware
N: use dedicated config file
N: switch System Startup in Maintenance > Daily Schedule to prohibit Synthing start
on system startup if daily scheduling is activated and startup hour is outside
the range of startup and closedown hour

Version 0.7.1 - 2016.11.19
C: new standard download URL for executeable
C: code improvements / cleanup for new executeables
C: updated Russian language
N: added Spanish language
N: added Swedish language
N: added Turkish language
N: added Ukrainian language
N: introduced new comand scripts rc format for N4F 11.x compatibility

Version 0.7 - 2016.02.03
C: moved host to GitHub
C: new standard download URL
C: use natsort for backup list
F: error while parsing config file: Invalid key 'max_file_size_diff_for_patching' => error report
F: installation directory when used with a backuped config file (config.xml) => error report

Version 0.6.4.2 - 2014.12.16
This version is intended to use with the release 1.4.xx of the BitTorrent Sync app.
What's new in this version:
C: installer improvements
N: on demand one-time reset of the BitTorrent Sync WebUI user

Version 0.6.4.1 - 2014.11.26
This version is intended to use with the release 1.4.xx of the BitTorrent Sync app.
My thanks goes to the users ChriZathens, laster13 and misterredman and to everyone who helped with the translations!
What's new in this version:
N: added French language
N: added Greek language
N: added Italian language

Version 0.6.4 - 2014.11.13
This version is intended to use with the release 1.4.xx of the BitTorrent Sync app.
At this point I would like to thank user chrisf4lc0n and Vasily1 for their contribution, suggestions, tests and feedback for the new release!
What's new in this version:
N: language support
N: added Russian language
N: added German language
N: BTS installation, new tab "Extension Maintainance" for online extension update and removal via the WebGUI
C: btsync-installer: combined Install/Update option
C: Configuration: improvements for user change, take care about permissions
N: Configuration: VLAN/LAGG support -> taken from user Vasily1
N: Configuration: http/https switch
N: Configuration: external tick box => listen to 0.0.0.0
N: Configuration: all directly edited changes in sync.conf will be taken as they are
N: Configuration: all newly introduced BTS options editable/choosable in Advanced section
N: Configuration: updated documentation URL
N: Maintainance: quick check for BitTorrent Sync updates
N: Maintainance: editable update URL for the BitTorrent Sync application
N: Maintainance: switch to previously saved update URL
N: Maintainance: one-time download and installation of previous BTS application versions
C: Logview: only two columns
N: Logview: new search field

To use BitTorrent Sync just click Enable and the button Save and Restart to start the application. After a few seconds the state should change to running, now you can access the WebGUI by clicking on the displayed URL and start sharing / syncing your folders ...
Image

Here you can check for and install new versions of BitTorrent Sync and - just in case - step back to older versions and/or delete backuped versions as well as set a daily schedule (cron job) as described below http://forums.nas4free.org/viewtopic.ph ... 704#p30967 to let the hdd's spin down.
Image

Here you can update to new versions of the extension or remove it from the system. There is also the revision history up to the most recent (perhaps not already installed) version.
Image

The log view. A fixed filter to hide unneccessary messages and a search for a specific string.
Image


Some final notes - I decided not to implement ALL options which are possible for the configuration file for BitTorrent Sync in the configuration page. Those which are configurable via the BTS WebUI I left behind because if you change settings there they override the settings in the configuration file of BTS. A behaviour which I think is not consistent but the current implementation is like this ...

Any inputs are highly welcome, perhaps you find this extension useful ...

Regards
crest
Last edited by crest on 30 Aug 2016 06:50, edited 29 times in total.
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

loozhengyuan
Starter
Starter
Posts: 40
Joined: 06 Dec 2012 18:25
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#2

Post by loozhengyuan »

Hey crest, i just tried this extension, it worked flawlessly!!! Thanks so much for your contribution.

chrisf4lc0n
Advanced User
Advanced User
Posts: 264
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#3

Post by chrisf4lc0n »

It works great, thanks a ton.
Could you just tell me what is the path to the server document root, so I could secure everything over https :)
Watercooling is just the beginning ;)

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 552
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#4

Post by crest »

Great, thanks to you guys for trying the extension and your feedback ... :D
chrisf4lc0n wrote:Could you just tell me what is the path to the server document root, so I could secure everything over https :)
At the current stage of BTS - afaik - it uses a built-in webserver so there is no document root. At the BTS forum there is an advise to use an existing webserver with reverse proxy configuration for https access to the BTS webUI => http://forum.bittorrent.com/topic/22768-https/.
Since N4F provides lighthttp with https support it's perhaps easy to setup the appropriate configuration to use a reverse proxy for BTS - but I must admit that I'm currently stuck trying to setup this ... :oops:
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

chrisf4lc0n
Advanced User
Advanced User
Posts: 264
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#5

Post by chrisf4lc0n »

I have also had another issue with BitTorrent Sync. My disks did not spin down. I do not mind them running all the time during the day, but at nigh there are is nothing to sync with, so I decided to modify the crontab with the following input:

Code: Select all

0 23 * * * root kilall -9 btsync
0 6 * * * root //extensions/btsync/btsync --config //extensions/btsync/sync.conf
Watercooling is just the beginning ;)

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 552
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#6

Post by crest »

chrisf4lc0n wrote:I have also had another issue with BitTorrent Sync. My disks did not spin down. I do not mind them running all the time during the day, but at nigh there are is nothing to sync with, so I decided to modify the crontab with the following input:

Code: Select all

0 23 * * * root kilall -9 btsync
0 6 * * * root //extensions/btsync/btsync --config //extensions/btsync/sync.conf
I implemented a daily schedule to simplify the use of your suggestion. Just follow the installation instructions at the top of this topic (advanced config settings and already defined shared folders will remain untouched) to install the new version.

Did you already found a solution for the reverse proxy thing ...?
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

chrisf4lc0n
Advanced User
Advanced User
Posts: 264
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#7

Post by chrisf4lc0n »

crest wrote: I implemented a daily schedule to simplify the use of your suggestion. Just follow the installation instructions at the top of this topic (advanced config settings and already defined shared folders will remain untouched) to install the new version.

Did you already found a solution for the reverse proxy thing ...?
The implementation works great... The intervals you can set through the options in webGUI so everything is covered now :D
I am afraid I am still failing to get the Proxy working, I will not give up and carry on though :)
You will be the 1st one to know if I succeed, I will obviously post the config...

EDIT: Clever now, my crontab looks like that:

Code: Select all

0 23 * * * root killall btsync && logger btsync: scheduled closedown
0 6 * * * root su root -c '//extensions/btsync/btsync --config //extensions/btsync/sync.conf' && logger btsync: scheduled startup
Watercooling is just the beginning ;)

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 552
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#8

Post by crest »

chrisf4lc0n wrote: The implementation works great... The intervals you can set through the options in webGUI so everything is covered now :D
I am afraid I am still failing to get the Proxy working, I will not give up and carry on though :)
You will be the 1st one to know if I succeed, I will obviously post the config...

EDIT: Clever now, my crontab looks like that:

Code: Select all

0 23 * * * root killall btsync && logger btsync: scheduled closedown
0 6 * * * root su root -c '//extensions/btsync/btsync --config //extensions/btsync/sync.conf' && logger btsync: scheduled startup
I'm happy that you like the scheduler, I thought it would be also useful to get a system log entry for the shutdown and startup event.
The reverse proxy is a real challenge ...
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

User avatar
lindsay
Forum Moderator
Forum Moderator
Posts: 301
Joined: 23 Jun 2012 09:59
Location: Steinkjer,Norway
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#9

Post by lindsay »

Install pfSense and download reverse proxy i have switched from smoothwall bacically because of IPv6 and captive portal and radius
Protected by smoothiebox Red,Green,
Purple,Orange Zones/VLAN`s
Powered by AMD A10-6700T


XigmaNAS Box-1 11.2.0.4 - Omnius (revision 6625)
Platform : x64-embedded on 2X Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz
Motherboard: ASUS Z10PA-D8, 2xSocket-2011-3
SATA Controllers : 1X Avago Technologies (LSI) SAS2008 and 1x Avago Technologies (LSI) SAS2308
Pool 1 (Media-Pool) 8X4TB in raidz2
Pool 2 (Media-Pool-2) 4X2TB in raidz2 and 2X2TB in mirror mirror and 2X3TB in mirror
Pool 3 (Media-Pool-3) 2X2TB in mirror and 2X4TB in mirror and 2X1TB in mirror

chrisf4lc0n
Advanced User
Advanced User
Posts: 264
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#10

Post by chrisf4lc0n »

lindsay wrote:Install pfSense and download reverse proxy i have switched from smoothwall bacically because of IPv6 and captive portal and radius
That requires running another PC... I am not sure if my missus would take it ;) I have been looking at something to run either Zentyal or pfSense for a while now :)
Watercooling is just the beginning ;)

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 552
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#11

Post by crest »

lindsay wrote:Install pfSense and download reverse proxy i have switched from smoothwall bacically because of IPv6 and captive portal and radius
Thank you for the hint! I think I will try it if it's not possible to find the right reverse proxy setup for lighthttp. The only drawback for me is that it needs another box to install pfsense to it ...
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

User avatar
alexey123
Moderator
Moderator
Posts: 1560
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#12

Post by alexey123 »

Hi
crest, see my minidlna extension with webviewer.
For run viewer I start lighttpd with external config, devided two parts. First part is fixed values, second parts is variables, from config.xml
You need add mod_proxy http://redmine.lighttpd.net/projects/li ... s_ModProxy to lighttpd and define proxies as you want
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

chrisf4lc0n
Advanced User
Advanced User
Posts: 264
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#13

Post by chrisf4lc0n »

alexey123 wrote:Hi
crest, see my minidlna extension with webviewer.
For run viewer I start lighttpd with external config, devided two parts. First part is fixed values, second parts is variables, from config.xml
You need add mod_proxy http://redmine.lighttpd.net/projects/li ... s_ModProxy to lighttpd and define proxies as you want
We know that... ;) The problem is that it seems to be looping itself up once transmitted over https. I managed to get it working with Transmission, but it does not want to co-operate with btsync :(
It is not like it is not working at all, you get connected, it even asks you for the password, but then it gets stuck...
Watercooling is just the beginning ;)

chrisf4lc0n
Advanced User
Advanced User
Posts: 264
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#14

Post by chrisf4lc0n »

Since I am running RaspberryPi Print Server, I will also install the Apache and try to reverse proxy from there...
Watercooling is just the beginning ;)

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 552
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#15

Post by crest »

alexey123 wrote:Hi
crest, see my minidlna extension with webviewer.
For run viewer I start lighttpd with external config, devided two parts. First part is fixed values, second parts is variables, from config.xml
You need add mod_proxy http://redmine.lighttpd.net/projects/li ... s_ModProxy to lighttpd and define proxies as you want
Hi alexey!
I did a lot of different setups with lighttpd and I got virtual hosts, redirections and https running for my webserver but not for BTS. The https thing seems for me never solved out there. I found it also as an issue for QNAP servers. They provide BitTorrent Sync as an app but it works also only without https! So I agree what chrisf4lc0n wrote, perhaps there will be a solution with apache ...

Btw, THANKS A LOT for the extended GUI extensions you wrote for me, it was a great start for me to learn howto write extensions for N4F !!! 8-)
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

User avatar
alexey123
Moderator
Moderator
Posts: 1560
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#16

Post by alexey123 »

crest wrote:Hi alexey!
... So I agree what chrisf4lc0n wrote, perhaps there will be a solution with apache ...
Apache as extension? WOW!!! May be any another lightly webserver? some as minihttpd ?
As for me lighttpd begin to work over http, but I dont understand how to use BTSync :oops: Who is client for it?
Btw, THANKS A LOT for the extended GUI extensions you wrote for me, it was a great start for me to learn howto write extensions for N4F !!! 8-)
Not at all. Need more extensions!
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 552
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#17

Post by crest »

alexey123 wrote:Apache as extension? WOW!!! May be any another lightly webserver? some as minihttpd ?
Not as an extensions for N4F, he will try to setup apache and a reverse proxy for BitTorrent Sync on it on a Raspberry Pi he is already using ...
alexey123 wrote:... I dont understand how to use BTSync :oops: Who is client for it?
Perhaps you want to try my extension for BTSync ... ;)
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

User avatar
alexey123
Moderator
Moderator
Posts: 1560
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#18

Post by alexey123 »

crest wrote:
alexey123 wrote:Apache as extension? WOW!!! May be any another lightly webserver? some as minihttpd ?
Not as an extensions for N4F, he will try to setup apache and a reverse proxy for BitTorrent Sync on it on a Raspberry Pi he is already using ...
alexey123 wrote:... I dont understand how to use BTSync :oops: Who is client for it?
Perhaps you want to try my extension for BTSync ... ;)
I tried your extension, it begin to work
Image
I see folder, but how to view files under XP :!: , ( W7 and ubuntu)?
WTF connected devices? Some telephones ?
It see minidlna server, but btsync not love it
[20140108 08:59:20.088] UPnP: Device error "http://10.0.0.1:8200/rootDesc.xml": (-2)
[20140108 08:59:23.090] UPnP: Could not map UPnP Port on this pass, retrying.
[20140108 08:59:25.099] UPnP: Device error "http://10.0.0.1:8200/rootDesc.xml": (-2)
[20140108 08:59:28.076] UPnP: Could not map UPnP Port on this pass, retrying.
[20140108 08:59:30.091] UPnP: Device error "http://10.0.0.1:8200/rootDesc.xml": (-2)
[20140108 08:59:31.086] NAT-PMP: Unable to map port with NAT-PMP.
[20140108 08:59:33.085] UPnP: Could not map UPnP Port on this pass, retrying.
[20140108 08:59:35.099] UPnP: Device error "http://10.0.0.1:8200/rootDesc.xml": (-2)
[20140108 08:59:38.096] UPnP: Unable to map port 10.0.0.250:54440 with UPnP.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 552
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#19

Post by crest »

alexey123 wrote: I see folder, but how to view files under XP :!: , ( W7 and ubuntu)?
WTF connected devices? Some telephones ?
Not only telephones ... just download the appropriate client from the BTS website => http://www.bittorrent.com/intl/de/sync/downloads.
The big thing on BTS for me is that it is available for (almost ?) every platform out there (Windows, Linux, BSD, Apple, Android, ...).
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 552
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#20

Post by crest »

alexey123 wrote: It see minidlna server, but btsync not love it
[20140108 08:59:20.088] UPnP: Device error "http://10.0.0.1:8200/rootDesc.xml": (-2)
[20140108 08:59:23.090] UPnP: Could not map UPnP Port on this pass, retrying.
[20140108 08:59:25.099] UPnP: Device error "http://10.0.0.1:8200/rootDesc.xml": (-2)
[20140108 08:59:28.076] UPnP: Could not map UPnP Port on this pass, retrying.
[20140108 08:59:30.091] UPnP: Device error "http://10.0.0.1:8200/rootDesc.xml": (-2)
[20140108 08:59:31.086] NAT-PMP: Unable to map port with NAT-PMP.
[20140108 08:59:33.085] UPnP: Could not map UPnP Port on this pass, retrying.
[20140108 08:59:35.099] UPnP: Device error "http://10.0.0.1:8200/rootDesc.xml": (-2)
[20140108 08:59:38.096] UPnP: Unable to map port 10.0.0.250:54440 with UPnP.
It was the same for me, I disabled UPnP port mapping in the preferences of the BTS webui to get rid of these messages. For some reasons it seems that BTS is not able to do a correct port mapping ...
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

User avatar
alexey123
Moderator
Moderator
Posts: 1560
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#21

Post by alexey123 »

Minor

Code: Select all

 # sockstat | grep btsync
root     btsync     3804  6  tcp4   *:54440               *:*
root     btsync     3804  8  udp4   *:54440               *:*
root     btsync     3804  10 tcp4   10.0.0.250:8888       *:*
root     btsync     3804  11 udp4   10.0.0.250:10434      *:*
root     btsync     3804  12 udp4   127.0.0.1:11150       *:*
root     btsync     3804  13 udp4   *:1900                *:*
root     btsync     3804  14 tcp4   10.0.0.250:8888       10.0.0.4:1391
root     btsync     3804  15 udp4   *:3838                *:*
It will not work with any another uPNP on some host :evil:
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

lockator
NewUser
NewUser
Posts: 3
Joined: 18 Mar 2014 00:05
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#22

Post by lockator »

Installed your script on embedded, files are synchronizing, but I cannot delete new syncronized files via samba. I understand that BTSync is running under root - is it possible to change it? What is Username option for? Please explain it for me.

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 552
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#23

Post by crest »

lockator wrote:Installed your script on embedded, files are synchronizing, but I cannot delete new syncronized files via samba.
Did you get "access denied" or similar or did the deleted files simply appear again? For the first follow the instructions below, for the second part could it be that BTSync synchronized the folder and files and you see the deleted files because they still exists in the source directory? ;)
lockator wrote:I understand that BTSync is running under root - is it possible to change it? What is Username option for? Please explain it for me.
You can change the user running sync via the extension, in the N4F WebGUI go to Extensions | BitTorrent Sync | Configuration tab and choose the user you want running BitTorrent Sync from the dropdown list (for example to the user you are running with CIFS/SMB or create a new user, eg btsync with new group btsync and give all users you are accessing via CIFS/SMB the additional group btsync) and hit "Save and Restart". After that you should change the already existing directories with

Code: Select all

chmod -R youruser:yourgroup yoursyncdirectory
to get full access.
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

lockator
NewUser
NewUser
Posts: 3
Joined: 18 Mar 2014 00:05
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#24

Post by lockator »

you ment chown... i changed ownership of synced dirs but when i change username in bitsync extensions menu to other than root/toor it doesn't starts. my default smb user is ftp.

chrisf4lc0n
Advanced User
Advanced User
Posts: 264
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#25

Post by chrisf4lc0n »

What about if you chmod -R 0666 your directory and leave root as the owner? That should give rights to read/write the files/folders in your directory to anyone... If it does not work you can go deeper and chmod -R 7777 everything, but I think 0666 should be enough...
Watercooling is just the beginning ;)

lockator
NewUser
NewUser
Posts: 3
Joined: 18 Mar 2014 00:05
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#26

Post by lockator »

i already tried that - problem is with files synchronized from remote btsync client - this new files has root as owner

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 552
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#27

Post by crest »

lockator wrote:you ment chown... i changed ownership of synced dirs but when i change username in bitsync extensions menu to other than root/toor it doesn't starts. my default smb user is ftp.
Yes, I ment chown of course.

Stop btsync via the WebGUI and change the ownership of the installation directory of the extension with "chown -R ftp <yourinstallationdirectory>" (and also your syncdirectories) and restart btsync via the WebGUI. If btsync is running then new synchoronized files should have now ftp as owner ...
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 552
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#28

Post by crest »

Hi all!

Since there is a new BitTorrent Sync version (1.3.67) already released I am planning an update of my extensions to implement new options and bug fixes. If there are any suggestions / ideas / feedback I would highly appreciate every input.

Thanks in advance
crest
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

chrisf4lc0n
Advanced User
Advanced User
Posts: 264
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#29

Post by chrisf4lc0n »

crest wrote:Hi all!

Since there is a new BitTorrent Sync version (1.3.67) already released I am planning an update of my extensions to implement new options and bug fixes. If there are any suggestions / ideas / feedback I would highly appreciate every input.
crest
Yup https... ;) I am sorry I have not enough good will to try the Apache reverse Proxy from my RaspberryPi... I will however try to set a reverse proxy on lighttpd once again following a bug workaround from stack overflow :)
Watercooling is just the beginning ;)

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 552
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: [EXTENSION] BitTorrent Sync

#30

Post by crest »

chrisf4lc0n wrote: Yup https... ;)
Yes, me to ... :D
chrisf4lc0n wrote: I am sorry I have not enough good will to try the Apache reverse Proxy from my RaspberryPi... I will however try to set a reverse proxy on lighttpd once again following a bug workaround from stack overflow :)
Great, because https it's still not addressed by BtitTorrent Sync and of course, a lighttpd solution would be the best because it's implemented ...
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

Post Reply

Return to “Extensions / Add-ons”