Jump to content


Become a part of the community today! Registration is quick and easy and will enable you to post, send personal messages, and join in on the chat! It's as simple as clicking on the links above.

Feedback: BTSync on Linux


  • Page 2 of 3
  • 1
  • 2
  • 3
  • Please log in to reply
40 replies to this topic

#21 knireis

knireis

    Advanced Member

  • Members
  • PipPipPip
  • 117 posts

Posted 27 April 2013 - 07:38 AM

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.

#22 b0nifaci0

b0nifaci0

    New User

  • Members
  • Pip
  • 4 posts

Posted 27 April 2013 - 02:03 PM

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 user
exec start-stop-daemon --start -c myuser --exec /home/myuser/btsync

3. this satisfies my needs.

#23 Automatic Coding

Automatic Coding

    Advanced Member

  • Members
  • PipPipPip
  • 223 posts

Posted 27 April 2013 - 02:07 PM

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 user
exec start-stop-daemon --start -c myuser --exec /home/myuser/btsync

3. 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/btsync
sudo -u automatic /home/automatic/.sync/btsync --config /home/automatic/.sync/sync.conf

Seems to work fine for me.

#24 chiefwilson

chiefwilson

    New User

  • Members
  • Pip
  • 3 posts

Posted 28 April 2013 - 02:33 PM

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.

#25 Nomen

Nomen

    New User

  • Members
  • Pip
  • 6 posts

Posted 28 April 2013 - 02:57 PM

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.

#26 Automatic Coding

Automatic Coding

    Advanced Member

  • Members
  • PipPipPip
  • 223 posts

Posted 28 April 2013 - 03:22 PM

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.


Are you using a configuration file? I had that issue before I set up my configuration file.

#27 Nomen

Nomen

    New User

  • Members
  • Pip
  • 6 posts

Posted 28 April 2013 - 03:33 PM

Are you using a configuration file? I had that issue before I set up my configuration file.


I've tried that but after I've started btsync with configuration file it doesn't load webgui.

#28 anvo

anvo

    New User

  • Members
  • Pip
  • 1 posts

Posted 28 April 2013 - 06:53 PM

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?


Same here... Linux deadend 3.5.0-18-generic #29-Ubuntu SMP Wed Oct 24 19:51:55 UTC 2012 i686 i686 i386 GNU/Linux

#29 chiefwilson

chiefwilson

    New User

  • Members
  • Pip
  • 3 posts

Posted 28 April 2013 - 07:15 PM

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.


Noone wanted to help the newb - eh? j/k. I figured it out. I went ahead and installed btsync on that users directory. Even though I used the configuration file to start the second process, the webgui did NOT work (yes, I changed the port). Therefore, I had to hardcode the folder settings and secrets in the text file. It works for now, and I understand that this is an alpha release. Just wanted to share my experience on linux (Ubuntu Server 12.04 LTS).

#30 chiefwilson

chiefwilson

    New User

  • Members
  • Pip
  • 3 posts

Posted 28 April 2013 - 07:17 PM

Same here... Linux deadend 3.5.0-18-generic #29-Ubuntu SMP Wed Oct 24 19:51:55 UTC 2012 i686 i686 i386 GNU/Linux


Do you have another btsync process running on the same box? I noticed when I tried to run btsync a second time without the configuration file, it started but ran at 100 cpu. I suspect there is an issue when it tries to grab the same 8888 port that's already in use by the first process.

#31 PvreHaavok

PvreHaavok

    Member

  • Members
  • PipPip
  • 11 posts

Posted 30 April 2013 - 01:32 AM

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.


So it's really start-stop-daemon's fault. I'll investigate why this is happening.

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 user
exec start-stop-daemon --start -c myuser --exec /home/myuser/btsync

3. this satisfies my needs.


Sweet! Despite the need to have a separate copy of btsync's binary, it's very simple and good to go!

Upstart has its way to track the daemon's PID and I'm not sure if it can handle multiple PIDs. To run btsync for multiple users we need to specify two services, something like btsync-all and btsync-user. btsync-all is going to start a btsync-user for every user and let upstart control the PID generated in btsync-user instance. (I'm not an Upstart specialist, so I can be very wrong in this case)

Another good thing to do is a safety check for all configuration files to prevent the execution of btsync if webui is enabled and the same port number appears in some of them.

#32 Swisstengu

Swisstengu

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 15 July 2013 - 08:19 AM

Do you have another btsync process running on the same box? I noticed when I tried to run btsync a second time without the configuration file, it started but ran at 100 cpu. I suspect there is an issue when it tries to grab the same 8888 port that's already in use by the first process.


Hello,

My guess: you may have multiple instances, as long as they
- don't have the same PID file
- don't use the same port
- don't use the same data directory (default ~/.sync)
- don't sync the same directories
This kind of setup may be good for a multi-user use - else, a single instance with multiple directories is far better.

#33 19feet

19feet

    Member

  • Members
  • PipPip
  • 16 posts

Posted 15 July 2013 - 09:53 AM


BTSync Build: 1.1.33 works great with Ubuntu 12.04 32bit, 64bit, Ubuntu 13.04 64bit on many different PCs


#34 manifold

manifold

    New User

  • Members
  • Pip
  • 7 posts

Posted 22 August 2013 - 07:46 AM

It works generally very good. However I have 1 major problem:
  • My external harddrive spins down after a while. There are about 600 files in the indexed folder on my external harddrive. After a while (and spindown harddrive) BTSync shows that there are 300 files. Then 200. Then 100. Then 10.
  • And when my harddrive spins again it does NOT reindex the files! It's like BTSync completely ignores the files it forgot during spindown. New files it however indexes immediately.
  • I have to delete the shared folder in BTSync and recreate it to reindex it completely.
Please, do you have a solution (I use Version 1.1.70)?



PS: A shutdown button in the web-interface would be nice.

#35 Dantounet

Dantounet

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 22 August 2013 - 08:44 AM

Hi,

Some feedback for Linux:

- have a btsync-client which allows to see the progress on transfers because when we use the config file we have no idea of what's going on (and the logs are not helpful)
- have a command to allow btsync to reload the configuration file (without having to stop/start it)

Otherwise it's a good piece of software :)

#36 panteo

panteo

    New User

  • Members
  • Pip
  • 1 posts

Posted 28 August 2013 - 06:40 PM

Noone wanted to help the newb - eh? j/k. I figured it out. I went ahead and installed btsync on that users directory. Even though I used the configuration file to start the second process, the webgui did NOT work (yes, I changed the port). Therefore, I had to hardcode the folder settings and secrets in the text file. It works for now, and I understand that this is an alpha release. Just wanted to share my experience on linux (Ubuntu Server 12.04 LTS).

I had the same problem (Ubuntu 13.04, btsync 1.1.70). I noticed, however, that the problem occurs only taking two windows open at once in the same browser, each with one of the two GUI. Try opening a GUI at a time.

#37 WayneBorean

WayneBorean

    New User

  • Members
  • Pip
  • 2 posts

Posted 27 September 2013 - 12:29 AM

I'm running CrunchBang 10/AMD64. I've got the GUI up. The problem is, it isn't syncing.

 

Any suggestions?

 

Wayne



#38 WayneBorean

WayneBorean

    New User

  • Members
  • Pip
  • 2 posts

Posted 28 September 2013 - 02:20 AM

Never mind. It's working now.

 

I've made no changes. I'm guessing that it just took a while to connect for some reason.

 

Wayne



#39 Faow456

Faow456

    New User

  • Members
  • Pip
  • 7 posts

Posted 29 September 2013 - 03:52 AM

I cant get it to work on a Seagate central Nas. The system kills the app right away.

The box runs monta vista linux 6 and is arm6 based.



#40 disconnect

disconnect

    Member

  • Members
  • PipPip
  • 14 posts

Posted 30 September 2013 - 06:00 PM

Not works for me, i try on my ARM pc (cubieboard2), "sh btsync" then "btsync: 1: btsync: Syntax error: word unexpected (expecting ")")" error. Any suggestions?

 

I know what's the problem now, the ARM package is simply not an ARM package... it's a synology package, as it not compatible with all arm devices, just with few...




  • Page 2 of 3
  • 1
  • 2
  • 3