gavin

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by gavin

  1. Hi again,

    So unfortunately there is still an issue. But I'll start again.

    System: Ubuntu 12.04.2 LTS x64.

    Config: See bottom of this post.

    Error: None, but the instance fails to start.

    Commands run (after sudo service btsync stop):

    ---------------------------------

    gavin@machine:/etc/btsync$ sudo service btsync start

    * Starting P2P file synchronisation daemon(s)... * Autostarting btsync instance 'debconf-default' [ OK ]

    * Autostarting btsync instance 'gav' gavin@machine:/etc/btsync$

    gavin@machine:/etc/btsync$ ps aux | grep bt

    root 27940 0.1 0.0 261560 2028 ? Sl 15:07 0:00 /usr/lib/btsync/btsync-daemon --nodaemon --config /etc/btsync/debconf-default.conf

    gavin 28011 0.0 0.0 13584 920 pts/6 S+ 15:08 0:00 grep --color=auto bt

    -------------------------

    It is timing out in start_btsync and generating the error:

    log_error "Failed to start $NAME instance $BASENAME - please check the configuration file $CONFIG_DIR/$CONFFILE"

    although I don't see an error on the commandline without altering the /etc/init.d/btsync script.

    At this point I'm not sure what is wrong so if someone could let me know what the issue might be that would be great.

    Thanks,

    Gavin

    Config script:

    //!/usr/lib/btsync/btsync-daemon --config

    //

    // DAEMON_UID=gavin

    //

    //

    {

    "device_name": "Gav - Default Instance",

    "storage_path" : "/var/run",

    "listening_port" : 0,

    "check_for_updates" : false,

    "use_upnp" : false,

    "download_limit" : 0,

    "upload_limit" : 0,

    "disk_low_priority" : true,

    "lan_encrypt_data" : true,

    "lan_use_tcp" : false,

    "rate_limit_local_peers" : false,

    "folder_rescan_interval" : 600,

    "webui" :

    {

    "listen" : "0.0.0.0:8887",

    "login" : "admin",

    "password" : "*****"

    }

    }

  2. Hi,

    I've been trying to start btsync as a non-root user. However, I kept getting the "unable to open pidfile '/var/run/btsync.gav.pid' for writing (Permission denied)". Since my user does not have permission to write there this makes sense.

    So I changed the "storage_path" variable in the config file which should (I belive) fix the issue. However, this did not work and after looking at the /etc/init.d/btsync it seems the path for the pid (/var/run) is hard-coded into the "start_btsync" method and elsewhere (e.g. "test_running").

    Is there a way around this, or is this a current limitation of the script? I'm going to change the script manually, but would prefer a way that will not break on future updates.

    Thanks,

    Gavin