user318 Posted April 28, 2014 Report Share Posted April 28, 2014 Hello. I have problem with btsync. I have tested it last time today with Linux x64 1.3.94 version.It is starts, reports no error, but do not do any work, do not write anything into log. Also, it exits only on second Ctrl-C or SIGTERM. I turned on debug:~ $ cat ~/.btsync/debug.txtFFFFBut the log file still do not appear. If I start it in foreground mode, I see this:~/.btsync $ /opt/btsync/btsync --config /etc/btsync/config --nodaemon --log sync.logBy using this application, you agree to our Privacy Policy and Terms.http://www.bittorrent.com/legal/privacyhttp://www.bittorrent.com/legal/terms-of-usetotal physical memory 536870912 max disk cache 2097152Using IP address XXX.XXX.XXX.XXXtest sha1: AE5BD8EFEA5322C4D9986D06680A781392F9A642test sha2: 630DCD2966C4336691125448BBB25B4FF412A49C732DB2C8ABC1B8581BD710DDtest aes: 0A940BB5416EF045F1C39458C653EA5A07FEEF74E1D5036E900EEE118E949293^C^CIt does nothing after "test aes: ...". If I run strace on the process, which stuck in that way I see this:~ $ strace -p 28735 -ffProcess 28735 attachedrestart_syscall(<... resuming interrupted call ...>) = -1 ETIMEDOUT (Connection timed out)futex(0x4501920, FUTEX_WAKE_PRIVATE, 1) = 0futex(0x450194c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 5, {1398668412, 247165000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)futex(0x4501920, FUTEX_WAKE_PRIVATE, 1) = 0futex(0x450194c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 7, {1398668472, 247366000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)futex(0x4501920, FUTEX_WAKE_PRIVATE, 1) = 0futex(0x450194c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 9, {1398668532, 247562000}, ffffffff) = -1 ETIMEDOUT (Connection timed out)futex(0x4501920, FUTEX_WAKE_PRIVATE, 1) = 0futex(0x450194c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 11, {1398668592, 247750000}, ffffffff) = ? ERESTART_RESTARTBLOCK (Interrupted by signal)--- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL, si_value={int=943012408, ptr=0x4b534d2038353a38}} ---rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x724b0ce15b10}, NULL, 8) = 0rt_sigreturn() = -1 EINTR (Interrupted system call)futex(0x450194c, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 11, {1398668592, 247750000}, ffffffff) = ? ERESTART_RESTARTBLOCK (Interrupted by signal)--- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL, si_value={int=943012408, ptr=0x4b534d2038353a38}} ---+++ killed by SIGINT +++Config file have nothing special:{ "device_name": "user", "listening_port" : 14444, "storage_path" : "/home/user/.btsync", "pid_file" : "/home/user/.btsync/btsync.pid", "check_for_updates" : false, "use_upnp" : false, "download_limit" : 10240, "upload_limit" : 10240, "webui" : { "listen" : "127.0.0.1:8888", "login" : "admin", "password" : "password" } , "shared_folders" : [ { "secret" : SECRET, "dir" : "/home/user/sync", "use_relay_server" : true, "use_tracker" : true, "use_dht" : true, "search_lan" : false, "use_sync_trash" : true, "known_hosts" : [ ] } ]} Quote Link to comment Share on other sites More sharing options...
denis4inet Posted May 2, 2014 Report Share Posted May 2, 2014 Hi,Could you represent full output of $ strace /opt/btsync/btsync --config /etc/btsync/config --nodaemon --log sync.log Thanks. Quote Link to comment Share on other sites More sharing options...
user318 Posted May 2, 2014 Author Report Share Posted May 2, 2014 Here is run of:strace -ftt /opt/btsync/btsync --config /etc/btsync/config --nodaemon --log sync.loghttp://pastebin.com/LBWcnm84I stopped it by sending SIGINT twice. If I do "telnet localhost 14444" after the run - there is no any change in the strace log. PS. Also I have notice, that I have IP XXX.XXX.XXX.106 and btsync for some reason sends couple of UDP packets to XXX.XXX.XXX.97, which is the first allowed host IP in my subnetwork (mask /27):tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes22:43:23.751360 IP (tos 0x0, ttl 64, id 27890, offset 0, flags [DF], proto UDP (17), length 40) XXX.XXX.XXX.106.5351 > XXX.XXX.XXX.97.5351: [udp sum ok] UDP, length 1222:43:23.751435 IP (tos 0x0, ttl 64, id 27891, offset 0, flags [DF], proto UDP (17), length 40) XXX.XXX.XXX.106.5351 > XXX.XXX.XXX.97.5351: [udp sum ok] UDP, length 12^C Quote Link to comment Share on other sites More sharing options...
denis4inet Posted May 3, 2014 Report Share Posted May 3, 2014 5351/UDP used for configuring NAT PMP, therefore UDP segment sent to this port to expected gateway\router host. Quote Link to comment Share on other sites More sharing options...
user318 Posted May 3, 2014 Author Report Share Posted May 3, 2014 Why it is not getting default gateway from the routing table? Quote Link to comment Share on other sites More sharing options...
denis4inet Posted May 3, 2014 Report Share Posted May 3, 2014 It is not implemented yet. Does your router support NAT-PMP and do you need this feature? Quote Link to comment Share on other sites More sharing options...
user318 Posted May 3, 2014 Author Report Share Posted May 3, 2014 This host is not a router, but I do not need this functionality anyway, because of public IP.Have any ideas on the main topic? Quote Link to comment Share on other sites More sharing options...
denis4inet Posted May 3, 2014 Report Share Posted May 3, 2014 1. You can disable NAT PMP and UPNP via advanced options.2. I am working on it. Quote Link to comment Share on other sites More sharing options...
user318 Posted May 4, 2014 Author Report Share Posted May 4, 2014 Thank you. > 1. You can disable NAT PMP and UPNP via advanced options.UPNP is disabled, but I don't know option name for NAT PMP. Google and User Guide did not helped. Quote Link to comment Share on other sites More sharing options...
denis4inet Posted May 5, 2014 Report Share Posted May 5, 2014 Yes, disabling of NAT PMP will be implemented in the feature release. Quote Link to comment Share on other sites More sharing options...
denis4inet Posted May 12, 2014 Report Share Posted May 12, 2014 user318, Maybe you built your pthread lib with specific gcc flags, or glibc? Quote Link to comment Share on other sites More sharing options...
user318 Posted May 14, 2014 Author Report Share Posted May 14, 2014 How specific should they be? To report not any error. I am using gentoo system, it have glibc version 2.17 with enabled hardened patches:sys-libs/glibc-2.17:2.2 USE="hardened (multilib) -debug -gd -nscd -profile (-selinux) -suid -systemtap -vanilla" Quote Link to comment Share on other sites More sharing options...
denis4inet Posted May 16, 2014 Report Share Posted May 16, 2014 Did you test on another linux dists, or you use only Gentoo? Quote Link to comment Share on other sites More sharing options...
miche Posted May 16, 2014 Report Share Posted May 16, 2014 I've installed Sync and configured the folders. After indexing, the file counts don't match and it doesn't seem to be syncing. Is there a way to force the sync? Why would the file count vary? Quote Link to comment Share on other sites More sharing options...
user318 Posted May 19, 2014 Author Report Share Posted May 19, 2014 > Did you test on another linux dists, or you use only Gentoo?Not yet. I want to run btsync on this particular host. So I think there will be small benefit from testing it on other system. Only in case I doing something terribly wrong. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.