cyanarnofsky Posted June 25, 2013 Report Share Posted June 25, 2013 1: ./btsync --dump-sample-config > sync.confThen used Nano to edit, tried "mypwd"}, that just gave me that same error:Error while parsing config file: Unexpected end of config file (are you missing '}') ?any ideas? I noticed someone sent previous person a non tabbed version that worked, possible get re up to pastebin?I used nano through terminal so that shouldn't be the problem....:/ran it as a .conf and .json neither work with or without the comma.get this error in a code checker.Parse error on line 3:...ening_port": 0, //0-randomizeport/*s----------------------^Expecting 'STRING' Quote Link to comment Share on other sites More sharing options...
rdebath Posted June 25, 2013 Report Share Posted June 25, 2013 Json is a very poor syntax for config files, you've probably missed a comma.I'd guess you code checker doesn't understand comments.We need to see the whole file to fix it. You can/should hide the keys. Quote Link to comment Share on other sites More sharing options...
cyanarnofsky Posted July 1, 2013 Author Report Share Posted July 1, 2013 { "device_name": "My Sync Device", "listening_port" : 0, // 0 - randomize port/* storage_path dir contains auxilliary app files if no storage_path field: .sync dir created in the directory where binary is located. otherwise user-defined directory will be used*/ "storage_path" : "/home/user/.sync",// uncomment next line if you want to set location of pid file// "pid_file" : "/var/run/btsync/btsync.pid", "check_for_updates" : true, "use_upnp" : true, // use UPnP for port mapping/* limits in kB/s 0 - no limit*/ "download_limit" : 0, "upload_limit" : 0,/* remove "listen" field to disable WebUI remove "login" and "password" fields to disable credentials check*/ "webui" : { "listen" : "0.0.0.0:8888", "login" : "admin", "password" : "password" }/* !!! if you set shared folders in config file WebUI will be DISABLED !!! shared directories specified in config file override the folders previously added from WebUI.*//* , "shared_folders" : [ {// use --generate-secret in command line to create new secret "secret" : "MY_SECRET_1", // * required field "dir" : "/home/user/bittorrent/sync_test", // * required field// use relay server when direct connection fails "use_relay_server" : true, "use_tracker" : true, "use_dht" : false, "search_lan" : true,// enable sync trash to store files deleted on remote devices "use_sync_trash" : true,// specify hosts to attempt connection without additional search "known_hosts" : [ "192.168.1.2:44444" ] } ]*/// Advanced preferences can be added to config file.// Info is available in BitTorrent Sync User Guide.} Quote Link to comment Share on other sites More sharing options...
rdebath Posted July 1, 2013 Report Share Posted July 1, 2013 Nice config file; works perfectly. Quote Link to comment Share on other sites More sharing options...
cyanarnofsky Posted July 1, 2013 Author Report Share Posted July 1, 2013 maybe, never shows login prompt for me just goes right to UI? Quote Link to comment Share on other sites More sharing options...
rdebath Posted July 1, 2013 Report Share Posted July 1, 2013 It's on the default port with the default login and default password ... you sure your browser hasn't remembered the password/cookie. Quote Link to comment Share on other sites More sharing options...
cyanarnofsky Posted July 3, 2013 Author Report Share Posted July 3, 2013 Positive, from the very moment I installed it I have not had a login prompt appear. Quote Link to comment Share on other sites More sharing options...
rdebath Posted July 3, 2013 Report Share Posted July 3, 2013 Sorry, I meant change one of them (user or password) by one character. 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.