dswd Posted April 16, 2013 Report Share Posted April 16, 2013 Hi, I just installed BTSync on 3 computers running Linux and want to share my feedback.In general it works but the linux binary could be improved a lot:My first impression was that the binary did nothing. It did not print anything, it did not do anything. Apearently it started a daemon and returned without even printing a single line. So I propose the following:* The binary should display help when called without arguments* When the binary spawns the daemon, it should say so and maybe display the process id.Another thing that I found complicated was the web configuration.* The default config listenes 0.0.0.0 which should be changed to 127.0.0.1 for security reasons as only http is used.* The passwords should not be required in cleartext, instead password hashes should be supported (this should be enough to authenticate a user).Also I found the configuration very unintuitive.* The program should create the directory ~/.btsync and default to that instead of .sync in the folder of the binary.* The program should create a config file in ~/.btsync/config with sane defaults and use that if none is given* The program should be changeing the plain text config file instead of writing to some binary settings file. It is not very intuitive that settings are stored in two locations one of which is non human readable.As I said, the main functionality is just fine but imho these points have to be addressed before it can be used by average users.If this was open source I would likely have attached a patch... Quote Link to comment Share on other sites More sharing options...
knireis Posted April 16, 2013 Report Share Posted April 16, 2013 Btsync runs fine on debian testing 32 and 64 bit. But i can only run it as root, running it as user gives errors.But now the synced files cannot be modified anymore with the 'normal' user.Is it possible to make btsync run as a non-root user? Quote Link to comment Share on other sites More sharing options...
dswd Posted April 16, 2013 Author Report Share Posted April 16, 2013 That works for me. What kind of errors are you getting?Your are not for chance trying to sync system folders or use ports below 1024? Quote Link to comment Share on other sites More sharing options...
knireis Posted April 16, 2013 Report Share Posted April 16, 2013 sierink@fileserver:~$ ./btsyncCan't open pid file /home/sierink/.sync//sync.pid. No such file or directorysolved it by creating the directory and file myself.How can i autostart btsync when i start the headless server on which i want to run btsync? Quote Link to comment Share on other sites More sharing options...
AbsolutelyNoOne Posted April 16, 2013 Report Share Posted April 16, 2013 How can i autostart btsync when i start the headless server on which i want to run btsync?I adapted a init.d script to be used with BTSync in Debian environments (soon I'll write with an upstart version) - https://gist.github....lGusmao/5398362* The passwords should not be required in cleartext, instead password hashes should be supported (this should be enough to authenticate a user).I agree! Maybe Transmission's approach could be used: you put a cleartext password in a settings.json and when Transmission is ran, it detects if it's cleartext. If positive, Transmisson hashes the password then updates the file with the hash.Also I found the configuration very unintuitive.* The program should create the directory ~/.btsync and default to that instead of .sync in the folder of the binary.* The program should create a config file in ~/.btsync/config with sane defaults and use that if none is givenI say more: btsync is considering the location of itself. When running from /usr/bin it'll try to use /usr/bin/.sync/. It sounds no good. Quote Link to comment Share on other sites More sharing options...
joshuapurcell Posted April 17, 2013 Report Share Posted April 17, 2013 I like the suggestions in this thread. Another suggestion is to provide a --kill argument for the binary. Quote Link to comment Share on other sites More sharing options...
lb1a Posted April 17, 2013 Report Share Posted April 17, 2013 Not startable on Ubuntu 12.10 for me.With or without root priviliges...Log:http://pastebin.com/x3af9P8U Quote Link to comment Share on other sites More sharing options...
AbsolutelyNoOne Posted April 17, 2013 Report Share Posted April 17, 2013 @lb1a, run "file btsync" and "uname -a" and post the results(tip: maybe you downloaded a binary of another architecture) Quote Link to comment Share on other sites More sharing options...
knireis Posted April 21, 2013 Report Share Posted April 21, 2013 I adapted a init.d script to be used with BTSync in Debian environments (soon I'll write with an upstart version) - https://gist.github....lGusmao/5398362I tried your init.d script and it works, but it prevents the harddrive from spinning down. Every 10 seconds or so the disc is accessed. When i start btsync manually, the disc is accessed every 10 minutes as intended by the sync app to check for file changes. Quote Link to comment Share on other sites More sharing options...
dswd Posted April 24, 2013 Author Report Share Posted April 24, 2013 I just want to pull this thread up as no staff member has said anything to these ideas. Quote Link to comment Share on other sites More sharing options...
kos13 Posted April 24, 2013 Report Share Posted April 24, 2013 We saw this thread and added to feature list for our Linux version. Quote Link to comment Share on other sites More sharing options...
bebit Posted April 24, 2013 Report Share Posted April 24, 2013 Hi, sorry for my poor level and language but I have a problem like maybe a lot of users:zu@zu-Compaq-Presario-A900-Notebook-PC:~$ cd /home/zuzu@zu-Compaq-Presario-A900-Notebook-PC:~$ sudo ./btsync[sudo] password for zu:zu@zu-Compaq-Presario-A900-Notebook-PC:~$ ./btsyncCan't lock pid file. It seems BitTorrent Sync is already running with pid 2503Do you have the solution? and a easier method to install it ? Quote Link to comment Share on other sites More sharing options...
kos13 Posted April 24, 2013 Report Share Posted April 24, 2013 you have already ./btsync running. Just access this machine from browser http://machine_ip:8888 and you will be able to configure Sync. Quote Link to comment Share on other sites More sharing options...
bebit Posted April 24, 2013 Report Share Posted April 24, 2013 Thanks but I have got "The server at http://machine_ip:8888 takes too long to respond." Quote Link to comment Share on other sites More sharing options...
kos13 Posted April 24, 2013 Report Share Posted April 24, 2013 probably you need to kill btsync and follow these steps Then we will have enough info to help you. Thanks. Quote Link to comment Share on other sites More sharing options...
punaparta Posted April 24, 2013 Report Share Posted April 24, 2013 I'm getting 100% cpu usage on Ubuntu 12.04. It seems to be working but I cannot get any debug logs.Works fine on Debian 6 though so I was wondering if anyone has any ideas on what could be wrong? Quote Link to comment Share on other sites More sharing options...
kos13 Posted April 24, 2013 Report Share Posted April 24, 2013 Could you please email us at syncapp@bittorrent.com with details you have. And we will solve your issue. Quote Link to comment Share on other sites More sharing options...
akupedia Posted April 24, 2013 Report Share Posted April 24, 2013 Hi, sorry for my poor level and language but I have a problem like maybe a lot of users:zu@zu-Compaq-Presario-A900-Notebook-PC:~$ cd /home/zuzu@zu-Compaq-Presario-A900-Notebook-PC:~$ sudo ./btsync[sudo] password for zu:zu@zu-Compaq-Presario-A900-Notebook-PC:~$ ./btsyncCan't lock pid file. It seems BitTorrent Sync is already running with pid 2503Do you have the solution? and a easier method to install it ?Same thing for me, also when I try to kill the process, it says no such pid exists.... Quote Link to comment Share on other sites More sharing options...
bebit Posted April 25, 2013 Report Share Posted April 25, 2013 Thanks for all but I stop to try to install it.I hope to use the next version on linux to. Quote Link to comment Share on other sites More sharing options...
AbsolutelyNoOne Posted April 26, 2013 Report Share Posted April 26, 2013 I tried your init.d script and it works, but it prevents the harddrive from spinning down. Every 10 seconds or so the disc is accessed. When i start btsync manually, the disc is accessed every 10 minutes as intended by the sync app to check for file changes.This is weird but I believe that it's start-stop-daemon's fault, somehow.How you found that 10 seconds is the disk access interval?Running btsync --config from the command line shows the same symptom? Quote Link to comment Share on other sites More sharing options...
knireis Posted April 27, 2013 Report Share Posted April 27, 2013 This is weird but I believe that it's start-stop-daemon's fault, somehow.How you found that 10 seconds is the disk access interval?Running btsync --config from the command line shows the same symptom?I use this (http://code.google.com/p/spindown/) to spindown and monitor the disks. When i stop the deamon with your script disk accessing is stopped, when i start the deamon, disks are accessed again about every 10 seconds. Running the deamon with btsync --config spins tje disks up every 10 minutes as programmed by the developers to scan for file changes. Quote Link to comment Share on other sites More sharing options...
b0nifaci0 Posted April 27, 2013 Report Share Posted April 27, 2013 This is how I start it as a system job with ubuntu (last LTS version, couldn't remember number) using upstart.1. Create btsync.conf on /etc/init.d/2. file contains 2 lines:# home in my setup is another hard drive.start on mounted MOUNTPOINT=/home TYPE=ext4# starts as non-root userexec start-stop-daemon --start -c myuser --exec /home/myuser/btsync3. this satisfies my needs. Quote Link to comment Share on other sites More sharing options...
Automatic Coding Posted April 27, 2013 Report Share Posted April 27, 2013 This is how I start it as a system job with ubuntu (last LTS version, couldn't remember number) using upstart.1. Create btsync.conf on /etc/init.d/2. file contains 2 lines:# home in my setup is another hard drive.start on mounted MOUNTPOINT=/home TYPE=ext4# starts as non-root userexec start-stop-daemon --start -c myuser --exec /home/myuser/btsync3. this satisfies my needs.How I did it (I'm very new to linux, been using it for ~ 3 weeks now and I didn't know that I could run scripts on mounts):-cat /etc/init.d/btsyncsudo -u automatic /home/automatic/.sync/btsync --config /home/automatic/.sync/sync.confSeems to work fine for me. Quote Link to comment Share on other sites More sharing options...
chiefwilson Posted April 28, 2013 Report Share Posted April 28, 2013 Please pardon my newbness, but is it possible to run two instances of btsync on Ubuntu Server?I'm running into permissions issues when syncing folders. I installed btsync on /home/'myuser'/btsync , and use the read only secret as a "backup solution" to push files from my PC and MAC to my NAS (Ubuntu Server). But, when I want to sync another users's files to another directory "/media/documents/'anotheruser' with the owner being 'anotheruser' and chmod set to 775, I still get permission denied.Even when I changed the owner of that directory to 'myuser' btsync still doesn't sync the files. Quote Link to comment Share on other sites More sharing options...
Nomen Posted April 28, 2013 Report Share Posted April 28, 2013 I have a problem. Linux doesn't remember my settings. When I kill btsync and start it again it starts as a fresh application without any settings in it.I have it installed on Ubuntu 12.10. 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.