{"action":"created","issue":{"url":"https://api.github.com/repos/ib-controller/ib-controller/issues/65","repository_url":"https://api.github.com/repos/ib-controller/ib-controller","labels_url":"https://api.github.com/repos/ib-controller/ib-controller/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/ib-controller/ib-controller/issues/65/comments","events_url":"https://api.github.com/repos/ib-controller/ib-controller/issues/65/events","html_url":"https://github.com/ib-controller/ib-controller/issues/65","id":133779561,"number":65,"title":"Cannot disable Read-Only mode","user":{"login":"andyflury","id":4620920,"avatar_url":"https://avatars.githubusercontent.com/u/4620920?v=3","gravatar_id":"","url":"https://api.github.com/users/andyflury","html_url":"https://github.com/andyflury","followers_url":"https://api.github.com/users/andyflury/followers","following_url":"https://api.github.com/users/andyflury/following{/other_user}","gists_url":"https://api.github.com/users/andyflury/gists{/gist_id}","starred_url":"https://api.github.com/users/andyflury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyflury/subscriptions","organizations_url":"https://api.github.com/users/andyflury/orgs","repos_url":"https://api.github.com/users/andyflury/repos","events_url":"https://api.github.com/users/andyflury/events{/privacy}","received_events_url":"https://api.github.com/users/andyflury/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-15T17:59:08Z","updated_at":"2016-02-15T19:00:53Z","closed_at":null,"body":"hello \r\n\r\nI'm using IBController 3.0.0 and IB Gateway  Build 952.1e, Oct 27, 2015\r\n\r\nIt seems like read-only mode is enabled by default and I cannot disable it.\r\n\r\nInside IBController.ini I set:\r\n```\r\nReadOnlyLogin=no\r\n```\r\n\r\nBut still I'm getting the following error when trying to place an order:\r\n\r\n```\r\nclient: 0; request id: 25; error code: 321; error message: Error validating request:-'td' : cause - The API interface is currently in Read-Only mode.\r\n```\r\n\r\nI noticed that once the IBGateway is started up for the first time and properly shut-down (by sending \"STOP\" to port 7462) a new directory daryk... (the last few letters change every time) is created. This directory contains a file named ibg.xml. This file has some settings regarding the API:\r\n\r\n```\r\n<ApiSettings varName=\"api\" dde=\"false\" readOnlyApi=\"true\" allowOnlyLocalhost=\"true\" socketClient=\"false\" autoOpenOrdDonwload=\"true\" port=\"4001\" includeFxPositions=\"true\" includeContinuousUpdateChanges=\"true\" sendMessagesInEnglish=\"false\" sendMessagesTranslated=\"true\" logLevel=\"2\" useNegativeAutoRange=\"true\" overridePrecautionaryConstraints=\"false\" bypassBondWarning=\"false\" bypassYtwWarning=\"false\" bypassCalledBondWarning=\"false\" masterClientID=\"-1\" acceptLargeSize=\"false\" showApiMsg=\"false\" includeMktData=\"false\" createApiMsgLogFile=\"false\" showIBGConsole=\"false\" aPINotAllowedShownAfterDenyAPI=\"false\" slowBufferTimeout=\"30\" syncAccounts=\"false\" multichartNetDoNotShowTime=\"0\" multichartDoNotShowTime=\"0\" verifiedAppPortRangeStart=\"7000\" verifiedAppPortRangeEnd=\"8000\" timeOfVerifiedAppShutdown=\"0\" portOfVerifiedAppShutdown=\"0\">\r\n```\r\n\r\nAs you can see there is a setting related to the readOnly:\r\n\r\n```\r\nreadOnlyApi=\"true\"\r\n```\r\n\r\nBut obviously modifying the file manually does not sound like a good idea. Is there something that can be done through the IBController to disable the readOnlyApi?\r\n\r\nThanks\r\nAndy Flury"},"comment":{"url":"https://api.github.com/repos/ib-controller/ib-controller/issues/comments/184347619","html_url":"https://github.com/ib-controller/ib-controller/issues/65#issuecomment-184347619","issue_url":"https://api.github.com/repos/ib-controller/ib-controller/issues/65","id":184347619,"user":{"login":"andyflury","id":4620920,"avatar_url":"https://avatars.githubusercontent.com/u/4620920?v=3","gravatar_id":"","url":"https://api.github.com/users/andyflury","html_url":"https://github.com/andyflury","followers_url":"https://api.github.com/users/andyflury/followers","following_url":"https://api.github.com/users/andyflury/following{/other_user}","gists_url":"https://api.github.com/users/andyflury/gists{/gist_id}","starred_url":"https://api.github.com/users/andyflury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyflury/subscriptions","organizations_url":"https://api.github.com/users/andyflury/orgs","repos_url":"https://api.github.com/users/andyflury/repos","events_url":"https://api.github.com/users/andyflury/events{/privacy}","received_events_url":"https://api.github.com/users/andyflury/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T19:00:53Z","updated_at":"2016-02-15T19:00:53Z","body":"Thanks for the quick reply Richard\r\n\r\nYes, I'm aware that the 'Read-Only API' option can be turned off via the Settings dialog. Problem is that we are using a headless Linux server (using xvfb), so there is no Settings dialog to interact with. \r\n\r\nSo it looks like modifying the ibg.xml is the only option we have at this time, is that correct?\r\n\r\nThanks for you help!"}}