peterd Posted May 18, 2013 Report Share Posted May 18, 2013 I dumped the sample configuration, and it says this:// Advanced preferences can be added to config file.// Info is available in BitTorrent Sync User Guide.So I pulled the options from the guide, and attempted to add them to the config file (using the ppa from here).I'm no JSON expert, but I fail to see where I'm going wrong:{ "pid_file" : ".btsync.pid", "storage_path" : ".btsync", "listening_port" : 0, "check_for_updates" : true, "use_upnp" : true, "download_limit" : 0, "upload_limit" : 0, “disk_low_priority” : true, “lan_encrypt_data” : false, “lan_use_tcp” : true, “rate_limit_local_peers” : false, "webui" : { "listen" : "127.0.0.1:9999" }}When starting with those options I get the following error:Error while parsing config file: Unexpected end of config file (are you missing '}') ?If I delete the 4 "advanced" options, it works again. Are they supposed to go in their own section? If so, what does that look like?TIA,Peter Quote Link to comment Share on other sites More sharing options...
Willl Posted May 19, 2013 Report Share Posted May 19, 2013 Hi,I'm not either a JSON expert..It would be great to share if you found the right syntax.Thanks... Quote Link to comment Share on other sites More sharing options...
TREMOR Posted May 19, 2013 Report Share Posted May 19, 2013 Same problem over here. http://forum.bittorrent.com/topic/19706-speed-goes-up-and-down-on-lan/ Quote Link to comment Share on other sites More sharing options...
StorSkovl Posted May 19, 2013 Report Share Posted May 19, 2013 You are using the wrong quotes. Take a close look at them. Most of them are straight, those are the correct ones. Some are titled a bit, those are wrong. Did you use Word to edit your config? Quote Link to comment Share on other sites More sharing options...
Willl Posted May 19, 2013 Report Share Posted May 19, 2013 Solved it, here what my conf looks like :{"device_name": "******","listening_port" : 0, // 0 - randomize port/* storage_path dir contains auxilliary app filesif no storage_path field: .sync dir created in the directorywhere binary is located.otherwise user-defined directory will be used*/"storage_path" : "*******",// uncomment next line if you want to set location of pid file"pid_file" : "*********","check_for_updates" : true,"use_upnp" : true, // use UPnP for port mapping/* limits in kB/s0 - no limit*/"download_limit" : 0,"upload_limit" : 0,/* remove "listen" field to disable WebUIremove "login" and "password" fields to disable credentials check*/"webui" :{"listen" : "******","login" : "******","password" : "*******"},// Advanced preferences can be added to config file.// Info is available in BitTorrent Sync User Guide."disk_low_priority" : true,"lan_encrypt_data" : false,"lan_use_tcp" : false,"rate_limit_local_peers" : false}Hope it'll help. Quote Link to comment Share on other sites More sharing options...
TREMOR Posted May 19, 2013 Report Share Posted May 19, 2013 You are using the wrong quotes. Take a close look at them. Most of them are straight, those are the correct ones. Some are titled a bit, those are wrong. Did you use Word to edit your config?This one is also not working...// Advanced preferences can be added .....// Info is available in ...."disk_low_priority": false,"lan_encrypt_data": false,"lan_use_tcp": true}I still don't know what's wrong about it. Quote Link to comment Share on other sites More sharing options...
TREMOR Posted May 19, 2013 Report Share Posted May 19, 2013 Fixed it!!Only added a comma// Advanced preferences can be added .....// Info is available in ....,"disk_low_priority": false,"lan_encrypt_data": false,"lan_use_tcp": true} Quote Link to comment Share on other sites More sharing options...
dmitry Posted May 20, 2013 Report Share Posted May 20, 2013 For those who has difficulties while editing config file i can recommend following resources:http://www.jsoneditoronline.org/http://www.thomasfrank.se/downloadableJS/JSONeditor_example.html Quote Link to comment Share on other sites More sharing options...
peterd Posted May 21, 2013 Author Report Share Posted May 21, 2013 You are using the wrong quotes. Take a close look at them. Most of them are straight, those are the correct ones. Some are titled a bit, those are wrong. Did you use Word to edit your config?Good catch! No, I did not use Word, but I did copy the syntax directly from the PDF. Unfortunately I did not notice the curly quotes in the original, and furthermore assumed that when I pasted it into the terminal that the double-quotes I was seeing were the right ones (they certainly looked right).Fixing the quotes did the trick. Thanks everyone. Quote Link to comment Share on other sites More sharing options...
MRACHINI Posted May 24, 2013 Report Share Posted May 24, 2013 Good catch! No, I did not use Word, but I did copy the syntax directly from the PDF. Unfortunately I did not notice the curly quotes in the original, and furthermore assumed that when I pasted it into the terminal that the double-quotes I was seeing were the right ones (they certainly looked right).Fixing the quotes did the trick. Thanks everyone. yes if you copy from the pdf you get this, but if you past the config to a json editor you can spot the difference immediately. 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.