{"action":"created","issue":{"url":"https://api.github.com/repos/IbcAlpha/IBC/issues/10","repository_url":"https://api.github.com/repos/IbcAlpha/IBC","labels_url":"https://api.github.com/repos/IbcAlpha/IBC/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/IbcAlpha/IBC/issues/10/comments","events_url":"https://api.github.com/repos/IbcAlpha/IBC/issues/10/events","html_url":"https://github.com/IbcAlpha/IBC/issues/10","id":328035253,"node_id":"MDU6SXNzdWUzMjgwMzUyNTM=","number":10,"title":"IBC: Detected dialog entitled: API client needs write access action confirmation","user":{"login":"charles-cooper","id":3867501,"node_id":"MDQ6VXNlcjM4Njc1MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/3867501?v=4","gravatar_id":"","url":"https://api.github.com/users/charles-cooper","html_url":"https://github.com/charles-cooper","followers_url":"https://api.github.com/users/charles-cooper/followers","following_url":"https://api.github.com/users/charles-cooper/following{/other_user}","gists_url":"https://api.github.com/users/charles-cooper/gists{/gist_id}","starred_url":"https://api.github.com/users/charles-cooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charles-cooper/subscriptions","organizations_url":"https://api.github.com/users/charles-cooper/orgs","repos_url":"https://api.github.com/users/charles-cooper/repos","events_url":"https://api.github.com/users/charles-cooper/events{/privacy}","received_events_url":"https://api.github.com/users/charles-cooper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-05-31T08:06:42Z","updated_at":"2018-08-14T12:44:43Z","closed_at":null,"author_association":"NONE","body":"When I try to place an order via API it fails with the following error:\r\n```\r\nThu May 31 07:46:42 UTC 2018; error; 1; 321; Error validating request:-'bh' : cause - The API interface is currently in Read-Only mode.\r\n```\r\n\r\nThe IBC logs say\r\n```\r\nibcontroller_1  | 2018-05-31 00:46:43:031 IBC: Detected dialog entitled: API client needs write access action confirmation; event=Opened\r\nibcontroller_1  | 2018-05-31 00:46:43:032 IBC: Detected dialog entitled: API client needs write access action confirmation; event=Activated\r\n```\r\n\r\nMore info:\r\nI am running IBC inside docker in headless mode. IB Gateway version is 963, IBC version is 3.6.0. It's possible I made mistakes in porting over from IBController - but I didn't find any mention of this particular message in the source code, groups or issues, so I figure I should report it.\r\n\r\nFull dockerfile:\r\n```\r\nFROM debian:stable-slim\r\n\r\nRUN apt-get update && apt-get install -y \\\r\n      curl \\\r\n      unzip \\\r\n      xvfb \\\r\n      libxtst6 \\\r\n      libxrender1 \\\r\n      libxi6\r\n\r\nRUN curl -o install-ibgateway.sh \"https://download2.interactivebrokers.com/installers/ibgateway/stable-standalone/ibgateway-stable-standalone-linux-x64.sh\"\r\n\r\nRUN echo 'n' | sh install-ibgateway.sh\r\n\r\nRUN curl -L -o ibc.zip \"https://github.com/IbcAlpha/IBC/releases/download/3.6.0/IBCLinux-3.6.0.zip\"\r\n\r\nRUN unzip ibc.zip -d /opt/ibc && chmod +x /opt/ibc/*.sh /opt/ibc/scripts/*.sh\r\n\r\nENV IBC_PATH /opt/ibc\r\nENV TWS_MAJOR_VRSN 963\r\nENV TWS_PATH /root/Jts\r\nENV TZ America/Los_Angeles\r\n\r\nCOPY entrypoint.sh .\r\nCOPY jts.ini $TWS_PATH/\r\n\r\nCMD [\"./entrypoint.sh\"]\r\n```\r\n\r\nFull jts.ini\r\n```\r\n[IBGateway]\r\nWriteDebug=false\r\nTrustedIPs=127.0.0.1\r\nMainWindow.Height=550\r\nRemoteHostOrderRouting=gdc1.ibllc.com\r\nRemotePortOrderRouting=4000\r\nApiOnly=true\r\nLocalServerPort=4000\r\nMainWindow.Width=700\r\n\r\n[Logon]\r\nuseRemoteSettings=false\r\nIndividual=1\r\n#tradingMode=p\r\ncolorPalletName=dark\r\nSteps=6\r\nLocale=en\r\nUseSSL=true\r\nSupportsSSL=gdc1.ibllc.com:4000,true,20180529,false\r\ns3store=true\r\n\r\n[Communication]\r\nInternal=false\r\nLocalPort=0\r\nPeer=gdc1.ibllc.com:4000\r\nRegion=us\r\n```\r\n\r\nFull entrypoint.sh:\r\n```bash\r\n#!/bin/bash\r\nset -euxo pipefail\r\n\r\nIBC_INI=$IBC_PATH/config.ini\r\nLOG_PATH=$IBC_PATH/logs\r\n\r\ncat > $IBC_INI <<EOF\r\nLogToConsole=yes\r\nFIX=no\r\nIbLoginId=$TWSUSERID\r\nIbPassword=$TWSPASSWORD\r\nPasswordEncrypted=no\r\nFIXLoginId=\r\nFIXPassword=\r\nFIXPasswordEncrypted=yes\r\nTradingMode=$TRADING_MODE\r\nIbDir=\r\nStoreSettingsOnServer=no\r\nMinimizeMainWindow=no\r\nExistingSessionDetectedAction=manual\r\nAcceptIncomingConnectionAction=accept\r\nShowAllTrades=no\r\nOverrideTwsApiPort=\r\nReadOnlyLogin=no\r\nAcceptNonBrokerageAccountWarning=yes\r\nIbAutoClosedown=no\r\nClosedownAt=\r\nAllowBlindTrading=yes\r\nDismissPasswordExpiryWarning=yes\r\nDismissNSEComplianceNotice=yes\r\nSaveTwsSettingsAt=\r\nCommandServerPort=\r\nControlFrom=\r\nBindAddress=127.0.0.1\r\nCommandPrompt=\r\nSuppressInfoMessages=yes\r\nLogComponents=never\r\nEOF\r\n\r\n# Launch a virtual screen\r\n#Xvfb :1 -screen 0 1024x768x24 2>&1 >/dev/null &\r\n#export DISPLAY=:1\r\n\r\n# Launch the IB Controller + IB Gateway\r\n\r\nAPP=GATEWAY\r\nTWS_CONFIG_PATH=\"$TWS_PATH\"\r\n\r\nexport TWS_MAJOR_VRSN\r\nexport IBC_INI\r\nexport TRADING_MODE\r\nexport IBC_PATH\r\nexport TWS_PATH\r\nexport TWS_CONFIG_PATH\r\nexport LOG_PATH\r\nexport TWSUSERID\r\nexport TWSPASSWORD\r\nexport FIXUSERID\r\nexport FIXPASSWORD\r\nexport JAVA_PATH\r\nexport APP\r\n\r\nxvfb-run -a \"${IBC_PATH}/scripts/displaybannerandlaunch.sh\" &\r\n\r\nsleep 1\r\n\r\ntail -f $LOG_PATH/*\r\n```\r\n\r\nFull log\r\n```\r\nibcontroller_1  | + xvfb-run -a /opt/ibc/scripts/displaybannerandlaunch.sh\r\nibcontroller_1  | +==============================================================================\r\nibcontroller_1  | +\r\nibcontroller_1  | + IBC version 3.6.0\r\nibcontroller_1  | +\r\nibcontroller_1  | + Running GATEWAY 963\r\nibcontroller_1  | +\r\nibcontroller_1  | + Diagnostic information is logged in:\r\nibcontroller_1  | +\r\nibcontroller_1  | + /opt/ibc/logs/ibc-3.6.0_GATEWAY-963_Thursday.txt\r\nibcontroller_1  | +\r\nibcontroller_1  | +\r\nibcontroller_1  | + tail -f /opt/ibc/logs/README.txt /opt/ibc/logs/ibc-3.6.0_GATEWAY-963_Thursday.txt\r\nibcontroller_1  | ==> /opt/ibc/logs/README.txt <==\r\nibcontroller_1  | You can delete the files in this folder at any time\r\nibcontroller_1  | \r\nibcontroller_1  | You'll be informed if a file is currently in use.\r\nibcontroller_1  | \r\nibcontroller_1  | ==> /opt/ibc/logs/ibc-3.6.0_GATEWAY-963_Thursday.txt <==\r\nibcontroller_1  | 2018-05-31 00:55:04:902 IBC: CommandServer is not started because the port is not configured\r\nibcontroller_1  | 2018-05-31 00:55:05:030 IBC: TWS Settings directory is: /root/Jts\r\nibcontroller_1  | 2018-05-31 00:55:05:031 IBC: Ensuring /root/Jts/jts.ini contains required minimal lines\r\nibcontroller_1  | 2018-05-31 00:55:05:031 IBC: Found section: [Logon]\r\nibcontroller_1  | 2018-05-31 00:55:05:031 IBC: Can't find setting: s3store=false\r\nibcontroller_1  | 2018-05-31 00:55:05:031 IBC: Found section: [Logon]\r\nibcontroller_1  | 2018-05-31 00:55:05:032 IBC: Found setting: s3store=true\r\nibcontroller_1  | 2018-05-31 00:55:05:032 IBC: Found section: [IBGateway]\r\nibcontroller_1  | 2018-05-31 00:55:05:032 IBC: Found setting: ApiOnly=true\r\nibcontroller_1  | 2018-05-31 00:55:05:032 IBC: Confirmed /root/Jts/jts.ini contains required minimal lines\r\nibcontroller_1  | 2018-05-31 00:55:06:795 IBC: Detected frame entitled: IB Gateway; event=Opened\r\nibcontroller_1  | 2018-05-31 00:55:06:796 IBC: Setting Trading mode = paper\r\nibcontroller_1  | 2018-05-31 00:55:06:849 IBC: Detected frame entitled: IB Gateway; event=Activated\r\nibcontroller_1  | 2018-05-31 00:55:06:855 IBC: Click button: Login\r\nibcontroller_1  | 2018-05-31 00:55:07:338 IBC: Detected frame entitled: IB Gateway.  API Account: <redacted>; event=Activated\r\nibcontroller_1  | 2018-05-31 00:55:07:340 IBC: Detected frame entitled: IB Gateway.  API Account: <redacted>; event=Opened\r\nibcontroller_1  | 2018-05-31 00:55:07:340 IBC: Found Gateway main window\r\nibcontroller_1  | 2018-05-31 00:55:07:898 IBC: Detected frame entitled: Connecting to server ( trying for another 19 seconds)...; event=Opened\r\nibcontroller_1  | 2018-05-31 00:55:07:909 IBC: Detected frame entitled: Connecting to server ( trying for another 19 seconds)...; event=Activated\r\nibcontroller_1  | LogModuleConfigurator-Init: Log4j Ver2.x found on classpath\r\nibcontroller_1  | LogModuleConfigurator-Init: LogModuleConfigurator initialized with Log4j Verd.x\r\nibcontroller_1  | 2018-05-31 00:55:14:821 IBC: Detected frame entitled: Starting application...; event=Closed\r\nibcontroller_1  | 2018-05-31 00:55:14:839 IBC: Detected dialog entitled: Warning; event=Opened\r\nibcontroller_1  | 2018-05-31 00:55:14:839 IBC: Click button: I understand and accept\r\nibcontroller_1  | 2018-05-31 00:55:14:932 IBC: Detected dialog entitled: Warning; event=Closed\r\nibcontroller_1  | remove Client 1\r\nibcontroller_1  | 2018-05-31 00:55:25:580 IBC: Detected dialog entitled: API client needs write access action confirmation; event=Opened\r\nibcontroller_1  | 2018-05-31 00:55:25:596 IBC: Detected dialog entitled: API client needs write access action confirmation; event=Activated\r\n```"},"comment":{"url":"https://api.github.com/repos/IbcAlpha/IBC/issues/comments/412858786","html_url":"https://github.com/IbcAlpha/IBC/issues/10#issuecomment-412858786","issue_url":"https://api.github.com/repos/IbcAlpha/IBC/issues/10","id":412858786,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjg1ODc4Ng==","user":{"login":"charles-cooper","id":3867501,"node_id":"MDQ6VXNlcjM4Njc1MDE=","avatar_url":"https://avatars2.githubusercontent.com/u/3867501?v=4","gravatar_id":"","url":"https://api.github.com/users/charles-cooper","html_url":"https://github.com/charles-cooper","followers_url":"https://api.github.com/users/charles-cooper/followers","following_url":"https://api.github.com/users/charles-cooper/following{/other_user}","gists_url":"https://api.github.com/users/charles-cooper/gists{/gist_id}","starred_url":"https://api.github.com/users/charles-cooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charles-cooper/subscriptions","organizations_url":"https://api.github.com/users/charles-cooper/orgs","repos_url":"https://api.github.com/users/charles-cooper/repos","events_url":"https://api.github.com/users/charles-cooper/events{/privacy}","received_events_url":"https://api.github.com/users/charles-cooper/received_events","type":"User","site_admin":false},"created_at":"2018-08-14T12:44:43Z","updated_at":"2018-08-14T12:44:43Z","author_association":"NONE","body":"The closest thing I could find to an explanation was this forum post: https://www.elitetrader.com/et/threads/ib-front-ends-buttontrader-rip.323699/."}}
{"actor":{"display_login":"charles-cooper"}}