{"action":"created","issue":{"url":"https://api.github.com/repos/ib-controller/ib-controller/issues/16","labels_url":"https://api.github.com/repos/ib-controller/ib-controller/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/ib-controller/ib-controller/issues/16/comments","events_url":"https://api.github.com/repos/ib-controller/ib-controller/issues/16/events","html_url":"https://github.com/ib-controller/ib-controller/issues/16","id":57728581,"number":16,"title":"IBControllerStart.sh not working unless you provide username and password in .sh file","user":{"login":"SamoPP","id":4817398,"avatar_url":"https://avatars.githubusercontent.com/u/4817398?v=3","gravatar_id":"","url":"https://api.github.com/users/SamoPP","html_url":"https://github.com/SamoPP","followers_url":"https://api.github.com/users/SamoPP/followers","following_url":"https://api.github.com/users/SamoPP/following{/other_user}","gists_url":"https://api.github.com/users/SamoPP/gists{/gist_id}","starred_url":"https://api.github.com/users/SamoPP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamoPP/subscriptions","organizations_url":"https://api.github.com/users/SamoPP/orgs","repos_url":"https://api.github.com/users/SamoPP/repos","events_url":"https://api.github.com/users/SamoPP/events{/privacy}","received_events_url":"https://api.github.com/users/SamoPP/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-15T12:23:16Z","updated_at":"2015-02-17T00:18:21Z","closed_at":null,"body":"HI,\r\n\r\nThanks for this great utility. I tried to set it up this morning, but failed.\r\n\r\nTo me it looks that on Ubuntu the only way to make this work is provide Id nad password \"hardcoded\" in IBControllerStart.sh. If you leave them blank they are not red from .ini file and the application does not start. This is the error message:\r\n\r\n\"IBController: 2 arguments passed, but args[0] is not 'encrypt'. quitting...\"\r\n\r\nApllication starts fine if I provide username and password in IBControllerStart.sh file..."},"comment":{"url":"https://api.github.com/repos/ib-controller/ib-controller/issues/comments/74595254","html_url":"https://github.com/ib-controller/ib-controller/issues/16#issuecomment-74595254","issue_url":"https://api.github.com/repos/ib-controller/ib-controller/issues/16","id":74595254,"user":{"login":"rlktradewright","id":7384655,"avatar_url":"https://avatars.githubusercontent.com/u/7384655?v=3","gravatar_id":"","url":"https://api.github.com/users/rlktradewright","html_url":"https://github.com/rlktradewright","followers_url":"https://api.github.com/users/rlktradewright/followers","following_url":"https://api.github.com/users/rlktradewright/following{/other_user}","gists_url":"https://api.github.com/users/rlktradewright/gists{/gist_id}","starred_url":"https://api.github.com/users/rlktradewright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rlktradewright/subscriptions","organizations_url":"https://api.github.com/users/rlktradewright/orgs","repos_url":"https://api.github.com/users/rlktradewright/repos","events_url":"https://api.github.com/users/rlktradewright/events{/privacy}","received_events_url":"https://api.github.com/users/rlktradewright/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T00:18:21Z","updated_at":"2015-02-17T00:18:21Z","body":"In my previous response I pointed out the issue with the incorrect line endings in the .sh files in the download. I'm concerned about all the strange error messages you get like\r\n\r\n : not foundrStartLive.sh: 2: IBControllerStartLive.sh:  \r\n\r\nand I suspect that at least some of your line endings are incorrect, and that this is the source of your problems. Here's an easy way to make sure all lines have the Unix ending.\r\n\r\nPlease start again with the downloaded versions of the files, because you've made a lot of unnecessary modifications to them (eg popd DOES work on Ubuntu, and setting the classpath from an environment variable DOES work perfectly). Follow this procedure for each of IBControllerStart.sh, IBControllerGatewayStart.sh and IBController.ini.\r\n\r\nIn the Files program, navigate to your IBController directory. \r\n\r\nCreate a new empty file by right clicking in the right hand pane and selecting New Document > Empty Document, and give it any filename (eg qaz).\r\n\r\nRight click on the new file and select Open With gedit.\r\n\r\nRight click on IBControllerStart.sh and select Open With gedit.\r\n\r\nIn gedit, select all the text in IBControllerStart.sh using Ctrl-A, then paste it into the new file using Ctrl-V. Save the new file. The new file will automatically have the correct line endings.\r\n\r\nRename the original IBControllerStart.sh to IBControllerStart.old, and rename the new file to IBControllerStart.sh.\r\n\r\nYou can now change any paths as required, then run the new IBControllerStart.sh and everything should be fine.\r\n\r\nI can absolutely guarantee that if you've set things up properly, there is no problem with having your user id and password in the .ini file.\r\n\r\nBy the way, I should also add that the line that reads \r\n\r\nJAVAOPTS=-Xmx1G -XX:MaxPermSize=256M\r\n\r\nshould actually be \r\n\r\nJAVAOPTS='-Xmx1G -XX:MaxPermSize=256M'\r\n\r\nThis will be corrected in the next release.\r\n"}}