oliver.matthews

New Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by oliver.matthews

  1. So, running btsync on linux (64bit nixos), it is creating a new identity everytime I reboot the server.

    The btsync user:
    btsync:x:113:498:Bittorrent Sync Service user:/srv/data/btsync2:/run/current-system/sw/bin/nologin

     

    His home directory:

    drwx------ 1 btsync btsync 252 Apr 14 14:48 /srv/data/btsync2

     

    The config file:

     

    {

     "device_name":     "fancydevicename",

     "storage_path":    "/srv/data/btsync2",

     "listening_port":  45654,

     "use_gui":         false,

     

     "check_for_updates": false,

     "use_upnp":          false,

     "download_limit":    0,

     "upload_limit":      0,

     "lan_encrypt_data":  true,

     

     "webui":

    {

     "login":    "admin",

     "password": "reallysecurepasswordhere",

     

     "listen": "0.0.0.0:9000"

    }

     

    }

     

    I start btsync:

     

    btsync --nodaemon --config btsync.conf

    and look in it's home directory.

     

    [btsync@albion:~]$ ls -lA /srv/data/btsync2

    total 2356

    -rw-rw-rw- 1 btsync btsync     222 Apr 14 14:48 13083713615926578068.1429022881.journal

    -rw-r--r-- 1 btsync btsync    7168 Apr 14 14:48 ECF22524AAD0FADACEA007EAECD9926EB62196AC.db

    drwxrwxr-x 1 btsync btsync       2 Apr 14 14:48 License

    -rw------- 1 btsync btsync    1778 Apr 14 14:48 settings.dat

    -rw-rw-r-- 1 btsync btsync  121207 Apr 14 14:48 sync.lng

    -rw-r--r-- 1 btsync btsync       5 Apr 14 14:48 sync.pid

    -rw-rw-r-- 1 btsync btsync 2267622 Apr 14 14:48 webui.zip

     

    login, accept the licence + create identity (hitting the first bug: it prompts me that there is a new version despite "check_for_updates" being false), the directory now looks like:

     

    [btsync@albion:~]$ ls -lA /srv/data/btsync2

    total 2396

    -rw-rw-rw- 1 btsync btsync     222 Apr 14 14:48 13083713615926578068.1429022881.journal

    -rw-rw-rw- 1 btsync btsync     542 Apr 14 14:49 18374772040707393072.1429022966.journal

    -rw-r--r-- 1 btsync btsync    7168 Apr 14 14:49 4253E36490F603239A065B33DFD1EAE52029F861.db

    -rw-r--r-- 1 btsync btsync    2128 Apr 14 14:49 4253E36490F603239A065B33DFD1EAE52029F861.db-wal

    -rw-r--r-- 1 btsync btsync    7168 Apr 14 14:48 ECF22524AAD0FADACEA007EAECD9926EB62196AC.db

    -rw-r--r-- 1 btsync btsync    4224 Apr 14 14:49 ECF22524AAD0FADACEA007EAECD9926EB62196AC.db-wal

    drwxrwxr-x 1 btsync btsync       2 Apr 14 14:48 License

    -rw------- 1 btsync btsync    2168 Apr 14 14:49 settings.dat

    -rw------- 1 btsync btsync    1778 Apr 14 14:48 settings.dat.old

    -rw------- 1 btsync btsync    5376 Apr 14 14:49 sync.dat

    -rw-rw-r-- 1 btsync btsync  121207 Apr 14 14:48 sync.lng

    -rw-r--r-- 1 btsync btsync       5 Apr 14 14:48 sync.pid

    drwxrwxr-x 1 btsync btsync      78 Apr 14 14:49 .SyncUser1429022966

    -rw-rw-r-- 1 btsync btsync 2267622 Apr 14 14:48 webui.zip

     

    I add a test share; all seems good. Restart the service: yup, all OK here.

    Reboot the machine and when logging into the gui, I get the licence box again.

     

    If I click through (the only option), my shares are gone, and looking in ~btsync a new SyncUser dir has been created:

     

    drwxrwxr-x 1 btsync btsync      78 Apr 14 14:49 .SyncUser1429022966

    drwxrwxr-x 1 btsync btsync       0 Apr 14 14:59 .SyncUser1429023540

     

    How do I stop it generating a new ID for itself?

    Log files (from a recreate) uploaded as gists here: https://gist.github.com/cwoac/c1b7e14ccca831f2ab0e