gnzsnz / ib-gateway-docker

Docker image with IB Gateway/TWS and IBC
https://github.com/users/gnzsnz/packages/container/package/ib-gateway
MIT License
173 stars 36 forks source link

How do I know if the IB gateway is up and running correctly? #132

Closed kooyear closed 2 weeks ago

kooyear commented 2 weeks ago

Hi, I follow the documentation and run the docker container, got following logs, but , how do I know if it is up and running correctly, looks like I cannot connect to the IB gateway from my code, logs as below: algo-trader-ib-gateway-1 | The VNC desktop is: 936e44bee80a:0 algo-trader-ib-gateway-1 | algo-trader-ib-gateway-1 | ****************************************************************************** algo-trader-ib-gateway-1 | Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet? algo-trader-ib-gateway-1 | algo-trader-ib-gateway-1 | The scheme stores pixel data offscreen on the VNC viewer side for faster algo-trader-ib-gateway-1 | retrieval. It should work with any VNC viewer. Try it by running: algo-trader-ib-gateway-1 | algo-trader-ib-gateway-1 | x11vnc -ncache 10 ... algo-trader-ib-gateway-1 | algo-trader-ib-gateway-1 | One can also add -ncache_cr for smooth 'copyrect' window motion. algo-trader-ib-gateway-1 | More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching algo-trader-ib-gateway-1 | algo-trader-ib-gateway-1 | IBC Settings: algo-trader-ib-gateway-1 | AcceptBidAskLastSizeDisplayUpdateNotification=accept algo-trader-ib-gateway-1 | AcceptIncomingConnectionAction=reject algo-trader-ib-gateway-1 | AcceptNonBrokerageAccountWarning=yes algo-trader-ib-gateway-1 | AllowBlindTrading=no algo-trader-ib-gateway-1 | AutoLogoffTime= algo-trader-ib-gateway-1 | AutoRestartTime=11:59 PM algo-trader-ib-gateway-1 | BindAddress= algo-trader-ib-gateway-1 | BypassBondWarning= algo-trader-ib-gateway-1 | BypassCalledBondWarning= algo-trader-ib-gateway-1 | BypassNegativeYieldToWorstConfirmation= algo-trader-ib-gateway-1 | BypassNoOverfillProtectionPrecaution= algo-trader-ib-gateway-1 | BypassOrderPrecautions= algo-trader-ib-gateway-1 | BypassPriceBasedVolatilityRiskWarning= algo-trader-ib-gateway-1 | BypassRedirectOrderWarning= algo-trader-ib-gateway-1 | BypassSameActionPairTradeWarning= algo-trader-ib-gateway-1 | BypassUSStocksMarketDataInSharesWarning= algo-trader-ib-gateway-1 | ClosedownAt= algo-trader-ib-gateway-1 | CommandPrompt= algo-trader-ib-gateway-1 | CommandServerPort=0 algo-trader-ib-gateway-1 | ConfirmCryptoCurrencyOrders=transmit algo-trader-ib-gateway-1 | ConfirmOrderIdReset= algo-trader-ib-gateway-1 | ControlFrom= algo-trader-ib-gateway-1 | DismissNSEComplianceNotice=yes algo-trader-ib-gateway-1 | DismissPasswordExpiryWarning=no algo-trader-ib-gateway-1 | ExistingSessionDetectedAction=primary algo-trader-ib-gateway-1 | ExitAfterSecondFactorAuthenticationTimeout=no algo-trader-ib-gateway-1 | FIX=no algo-trader-ib-gateway-1 | FIXLoginId=*** algo-trader-ib-gateway-1 | FIXPassword=*** algo-trader-ib-gateway-1 | IbLoginId=*** algo-trader-ib-gateway-1 | IbPassword=*** algo-trader-ib-gateway-1 | LogStructureScope=known algo-trader-ib-gateway-1 | LogStructureWhen=never algo-trader-ib-gateway-1 | LoginDialogDisplayTimeout=60 algo-trader-ib-gateway-1 | MinimizeMainWindow=no algo-trader-ib-gateway-1 | OverrideTwsApiPort= algo-trader-ib-gateway-1 | OverrideTwsMasterClientID= algo-trader-ib-gateway-1 | ReadOnlyApi=no algo-trader-ib-gateway-1 | ReadOnlyLogin=no algo-trader-ib-gateway-1 | ReloginAfterSecondFactorAuthenticationTimeout=no algo-trader-ib-gateway-1 | ResetOrderIdsAtStart= algo-trader-ib-gateway-1 | SaveTwsSettingsAt= algo-trader-ib-gateway-1 | SecondFactorAuthenticationExitInterval=60 algo-trader-ib-gateway-1 | SecondFactorAuthenticationTimeout=180 algo-trader-ib-gateway-1 | SecondFactorDevice=One Time Passcode algo-trader-ib-gateway-1 | SendMarketDataInLotsForUSstocks= algo-trader-ib-gateway-1 | StoreSettingsOnServer= algo-trader-ib-gateway-1 | SuppressInfoMessages=yes algo-trader-ib-gateway-1 | TradingMode=live algo-trader-ib-gateway-1 | TrustedTwsApiClientIPs= algo-trader-ib-gateway-1 | End IBC Settings algo-trader-ib-gateway-1 | algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:559 IBC: version: 3.18.0 algo-trader-ib-gateway-1 | System Properties algo-trader-ib-gateway-1 | ------------------------------------------------------------ algo-trader-ib-gateway-1 | awt.toolkit = sun.awt.X11.XToolkit algo-trader-ib-gateway-1 | java.specification.version = 11 algo-trader-ib-gateway-1 | sun.cpu.isalist = algo-trader-ib-gateway-1 | sun.jnu.encoding = ANSI_X3.4-1968 algo-trader-ib-gateway-1 | channel = latest algo-trader-ib-gateway-1 | java.class.path = /home/ibgateway/Jts/ibgateway/10.27.1c/jars/batik-all-1.16.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/commons-io-2.11.0.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/fop-2.8.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/jackson-annotations-2.12.3.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/jackson-core-2.12.3.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/jackson-databind-2.12.3.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/jts4launch-1027.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/jxbrowser-7.29.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/jxbrowser-linux64-7.29.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/jxbrowser-swing-7.29.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/locales.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/log4j-api-2.17.1.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/log4j-core-2.17.1.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/total-2023.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/twslaunch-1027.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/twslaunch-install4j-1.12.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/xmlgraphics-commons-2.8.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/.install4j/i4jruntime.jar:/home/ibgateway/ibc/IBC.jar algo-trader-ib-gateway-1 | java.vm.vendor = BellSoft algo-trader-ib-gateway-1 | sun.arch.data.model = 64 algo-trader-ib-gateway-1 | java.vendor.url = https://bell-sw.com/ algo-trader-ib-gateway-1 | user.timezone = Europe/Zurich algo-trader-ib-gateway-1 | os.name = Linux algo-trader-ib-gateway-1 | java.vm.specification.version = 11 algo-trader-ib-gateway-1 | sun.java.launcher = SUN_STANDARD algo-trader-ib-gateway-1 | user.country = US algo-trader-ib-gateway-1 | sun.boot.library.path = /opt/java/lib algo-trader-ib-gateway-1 | sun.java.command = ibcalpha.ibc.IbcGateway /home/ibgateway/ibc/config.ini algo-trader-ib-gateway-1 | jdk.debug = release algo-trader-ib-gateway-1 | sun.cpu.endian = little algo-trader-ib-gateway-1 | user.home = /home/ibgateway algo-trader-ib-gateway-1 | user.language = en algo-trader-ib-gateway-1 | java.specification.vendor = Oracle Corporation algo-trader-ib-gateway-1 | java.version.date = 2024-01-16 algo-trader-ib-gateway-1 | java.home = /opt/java algo-trader-ib-gateway-1 | jtsConfigDir = /home/ibgateway/Jts algo-trader-ib-gateway-1 | file.separator = / algo-trader-ib-gateway-1 | java.vm.compressedOopsMode = 32-bit algo-trader-ib-gateway-1 | line.separator = algo-trader-ib-gateway-1 | algo-trader-ib-gateway-1 | java.specification.name = Java Platform API Specification algo-trader-ib-gateway-1 | java.vm.specification.vendor = Oracle Corporation algo-trader-ib-gateway-1 | twslaunch.autoupdate.serviceImpl = com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService algo-trader-ib-gateway-1 | install4jType = standalone algo-trader-ib-gateway-1 | java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment algo-trader-ib-gateway-1 | sun.management.compiler = HotSpot 64-Bit Tiered Compilers algo-trader-ib-gateway-1 | exe4j.isInstall4j = true algo-trader-ib-gateway-1 | java.runtime.version = 11.0.22+12-LTS algo-trader-ib-gateway-1 | user.name = ibgateway algo-trader-ib-gateway-1 | path.separator = : algo-trader-ib-gateway-1 | os.version = 5.10.104-linuxkit algo-trader-ib-gateway-1 | java.runtime.name = OpenJDK Runtime Environment algo-trader-ib-gateway-1 | file.encoding = ANSI_X3.4-1968 algo-trader-ib-gateway-1 | java.vm.name = OpenJDK 64-Bit Server VM algo-trader-ib-gateway-1 | java.vendor.url.bug = https://bell-sw.com/support algo-trader-ib-gateway-1 | java.io.tmpdir = /tmp algo-trader-ib-gateway-1 | java.version = 11.0.22 algo-trader-ib-gateway-1 | user.dir = /home/ibgateway/Jts algo-trader-ib-gateway-1 | os.arch = aarch64 algo-trader-ib-gateway-1 | java.vm.specification.name = Java Virtual Machine Specification algo-trader-ib-gateway-1 | java.awt.printerjob = sun.print.PSPrinterJob algo-trader-ib-gateway-1 | sun.os.patch.level = unknown algo-trader-ib-gateway-1 | java.library.path = /usr/java/packages/lib:/lib:/usr/lib:/usr/lib64:/lib64 algo-trader-ib-gateway-1 | java.vm.info = mixed mode algo-trader-ib-gateway-1 | java.vendor = BellSoft algo-trader-ib-gateway-1 | java.vm.version = 11.0.22+12-LTS algo-trader-ib-gateway-1 | java.specification.maintenance.version = 2 algo-trader-ib-gateway-1 | sun.io.unicode.encoding = UnicodeLittle algo-trader-ib-gateway-1 | java.class.version = 55.0 algo-trader-ib-gateway-1 | ------------------------------------------------------------ algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:562 IBC: using default settings provider: ini file is /home/ibgateway/ibc/config.ini algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:562 IBC: using default login manager: will get username and password from settings; FIX username and password (if required) from settings algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:562 IBC: using default main window manager algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:562 IBC: using default trading mode manager: constructor parameter args but trading mode not present - will be taken from settings algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:563 IBC: using default config dialog manager algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:566 IBC: CommandServer is not started because the port is not configured algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:645 IBC: TWS Settings directory is: /home/ibgateway/Jts algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:645 IBC: Starting session: will exit if login dialog is not displayed within 60 seconds algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:650 IBC: Ensuring /home/ibgateway/Jts/jts.ini contains required minimal lines algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:650 IBC: Found setting: [Logon]/s3store=true algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:650 IBC: Found setting: [Logon]/Locale=en algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:650 IBC: Found setting: [Logon]/displayedproxymsg=1 algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:650 IBC: Found setting: [Logon]/UseSSL=true algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:650 IBC: Found setting: [IBGateway]/ApiOnly=true algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:650 IBC: Confirmed /home/ibgateway/Jts/jts.ini contains required minimal lines algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:650 IBC: Starting Gateway algo-trader-ib-gateway-1 | WARNING: An illegal reflective access operation has occurred algo-trader-ib-gateway-1 | WARNING: Illegal reflective access by feature.search.recorder.JtsMultiLookAndFeel (file:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/twslaunch-1027.jar) to method javax.swing.UIManager.getLAFState() algo-trader-ib-gateway-1 | WARNING: Please consider reporting this to the maintainers of feature.search.recorder.JtsMultiLookAndFeel algo-trader-ib-gateway-1 | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations algo-trader-ib-gateway-1 | WARNING: All illegal access operations will be denied in a future release algo-trader-ib-gateway-1 | 2024-07-10 12:01:18:500 IBC: Getting config dialog algo-trader-ib-gateway-1 | 2024-07-10 12:01:18:501 IBC: Creating config dialog future algo-trader-ib-gateway-1 | 2024-07-10 12:01:18:503 IBC: Getting config dialog algo-trader-ib-gateway-1 | 2024-07-10 12:01:18:505 IBC: Waiting for config dialog future to complete algo-trader-ib-gateway-1 | 2024-07-10 12:01:18:508 IBC: Getting main window algo-trader-ib-gateway-1 | 2024-07-10 12:01:18:510 IBC: Creating main window future algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:119 IBC: detected frame entitled: IBKR Gateway; event=Activated algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:122 IBC: detected frame entitled: IBKR Gateway; event=Focused algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:122 IBC: detected frame entitled: IBKR Gateway; event=Opened algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:123 IBC: Login dialog WINDOW_OPENED: LoginState is LOGGED_OUT algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:123 IBC: trading mode from settings: tradingMode=live algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:123 IBC: Setting Trading mode = live algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:204 IBC: Setting user name algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:205 IBC: Setting password algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:206 IBC: Login attempt: 1 algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:223 IBC: Click button: Log In algo-trader-ib-gateway-1 | 2024-07-10 12:01:29:739 IBC: detected frame entitled: IBKR Gateway; event=Lost focus algo-trader-ib-gateway-1 | 2024-07-10 12:01:29:739 IBC: detected frame entitled: IBKR Gateway; event=Deactivated algo-trader-ib-gateway-1 | 2024-07-10 12:01:29:740 IBC: detected frame entitled: Loading...; event=Activated algo-trader-ib-gateway-1 | 2024-07-10 12:01:29:744 IBC: detected frame entitled: Loading...; event=Focused algo-trader-ib-gateway-1 | 2024-07-10 12:01:29:745 IBC: detected frame entitled: Loading...; event=Opened algo-trader-ib-gateway-1 | 2024-07-10 12:01:29:745 IBC: Found Gateway main window algo-trader-ib-gateway-1 | 2024-07-10 12:01:29:745 IBC: Got main window from future algo-trader-ib-gateway-1 | 2024-07-10 12:01:29:745 IBC: Invoking config dialog menu algo-trader-ib-gateway-1 | 2024-07-10 12:01:30:306 IBC: detected frame entitled: Loading...; event=Lost focus algo-trader-ib-gateway-1 | 2024-07-10 12:01:30:306 IBC: detected frame entitled: Loading...; event=Deactivated algo-trader-ib-gateway-1 | 2024-07-10 12:01:30:306 IBC: detected frame entitled: Connecting to server (trying for another 19 seconds)...; event=Activated algo-trader-ib-gateway-1 | 2024-07-10 12:01:30:307 IBC: detected frame entitled: Connecting to server (trying for another 19 seconds)...; event=Focused algo-trader-ib-gateway-1 | 2024-07-10 12:01:30:307 IBC: detected frame entitled: Connecting to server (trying for another 19 seconds)...; event=Opened algo-trader-ib-gateway-1 | 2024-07-10 12:01:32:970 IBC: detected dialog entitled: ** no title **; event=Opened algo-trader-ib-gateway-1 | 2024-07-10 12:01:32:971 IBC: detected frame entitled: Authenticating...; event=Lost focus algo-trader-ib-gateway-1 | 2024-07-10 12:01:32:971 IBC: detected frame entitled: Authenticating...; event=Deactivated algo-trader-ib-gateway-1 | 2024-07-10 12:01:32:971 IBC: detected dialog entitled: ** no title **; event=Activated algo-trader-ib-gateway-1 | 2024-07-10 12:01:32:973 IBC: detected dialog entitled: ** no title **; event=Focused algo-trader-ib-gateway-1 | 2024/07/10 12:01:51 socat[140] E connect(5, AF=2 127.0.0.1:4001, 16): Connection refused algo-trader-ib-gateway-1 | 2024-07-10 12:04:33:385 IBC: detected dialog entitled: ** no title **; event=Lost focus algo-trader-ib-gateway-1 | 2024-07-10 12:04:33:385 IBC: detected dialog entitled: ** no title **; event=Deactivated algo-trader-ib-gateway-1 | 2024-07-10 12:04:33:386 IBC: detected dialog entitled: ** no title **; event=Closed algo-trader-ib-gateway-1 | 2024/07/10 13:37:37 socat[147] E connect(5, AF=2 127.0.0.1:4001, 16): Connection refused

kooyear commented 2 weeks ago

algo-trader-ib-gateway-1 | The VNC desktop is: 936e44bee80a:0 algo-trader-ib-gateway-1 | algo-trader-ib-gateway-1 | ** algo-trader-ib-gateway-1 | Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet? algo-trader-ib-gateway-1 | algo-trader-ib-gateway-1 | The scheme stores pixel data offscreen on the VNC viewer side for faster algo-trader-ib-gateway-1 | retrieval. It should work with any VNC viewer. Try it by running: algo-trader-ib-gateway-1 | algo-trader-ib-gateway-1 | x11vnc -ncache 10 ... algo-trader-ib-gateway-1 | algo-trader-ib-gateway-1 | One can also add -ncache_cr for smooth 'copyrect' window motion. algo-trader-ib-gateway-1 | More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching algo-trader-ib-gateway-1 | algo-trader-ib-gateway-1 | IBC Settings: algo-trader-ib-gateway-1 | AcceptBidAskLastSizeDisplayUpdateNotification=accept algo-trader-ib-gateway-1 | AcceptIncomingConnectionAction=reject algo-trader-ib-gateway-1 | AcceptNonBrokerageAccountWarning=yes algo-trader-ib-gateway-1 | AllowBlindTrading=no algo-trader-ib-gateway-1 | AutoLogoffTime= algo-trader-ib-gateway-1 | AutoRestartTime=11:59 PM algo-trader-ib-gateway-1 | BindAddress= algo-trader-ib-gateway-1 | BypassBondWarning= algo-trader-ib-gateway-1 | BypassCalledBondWarning= algo-trader-ib-gateway-1 | BypassNegativeYieldToWorstConfirmation= algo-trader-ib-gateway-1 | BypassNoOverfillProtectionPrecaution= algo-trader-ib-gateway-1 | BypassOrderPrecautions= algo-trader-ib-gateway-1 | BypassPriceBasedVolatilityRiskWarning= algo-trader-ib-gateway-1 | BypassRedirectOrderWarning= algo-trader-ib-gateway-1 | BypassSameActionPairTradeWarning= algo-trader-ib-gateway-1 | BypassUSStocksMarketDataInSharesWarning= algo-trader-ib-gateway-1 | ClosedownAt= algo-trader-ib-gateway-1 | CommandPrompt= algo-trader-ib-gateway-1 | CommandServerPort=0 algo-trader-ib-gateway-1 | ConfirmCryptoCurrencyOrders=transmit algo-trader-ib-gateway-1 | ConfirmOrderIdReset= algo-trader-ib-gateway-1 | ControlFrom= algo-trader-ib-gateway-1 | DismissNSEComplianceNotice=yes algo-trader-ib-gateway-1 | DismissPasswordExpiryWarning=no algo-trader-ib-gateway-1 | ExistingSessionDetectedAction=primary algo-trader-ib-gateway-1 | ExitAfterSecondFactorAuthenticationTimeout=no algo-trader-ib-gateway-1 | FIX=no algo-trader-ib-gateway-1 | FIXLoginId= algo-trader-ib-gateway-1 | FIXPassword= algo-trader-ib-gateway-1 | IbLoginId= algo-trader-ib-gateway-1 | IbPassword= algo-trader-ib-gateway-1 | LogStructureScope=known algo-trader-ib-gateway-1 | LogStructureWhen=never algo-trader-ib-gateway-1 | LoginDialogDisplayTimeout=60 algo-trader-ib-gateway-1 | MinimizeMainWindow=no algo-trader-ib-gateway-1 | OverrideTwsApiPort= algo-trader-ib-gateway-1 | OverrideTwsMasterClientID= algo-trader-ib-gateway-1 | ReadOnlyApi=no algo-trader-ib-gateway-1 | ReadOnlyLogin=no algo-trader-ib-gateway-1 | ReloginAfterSecondFactorAuthenticationTimeout=no algo-trader-ib-gateway-1 | ResetOrderIdsAtStart= algo-trader-ib-gateway-1 | SaveTwsSettingsAt= algo-trader-ib-gateway-1 | SecondFactorAuthenticationExitInterval=60 algo-trader-ib-gateway-1 | SecondFactorAuthenticationTimeout=180 algo-trader-ib-gateway-1 | SecondFactorDevice=One Time Passcode algo-trader-ib-gateway-1 | SendMarketDataInLotsForUSstocks= algo-trader-ib-gateway-1 | StoreSettingsOnServer= algo-trader-ib-gateway-1 | SuppressInfoMessages=yes algo-trader-ib-gateway-1 | TradingMode=live algo-trader-ib-gateway-1 | TrustedTwsApiClientIPs= algo-trader-ib-gateway-1 | End IBC Settings algo-trader-ib-gateway-1 | algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:559 IBC: version: 3.18.0 algo-trader-ib-gateway-1 | System Properties algo-trader-ib-gateway-1 | ------------------------------------------------------------ algo-trader-ib-gateway-1 | awt.toolkit = sun.awt.X11.XToolkit algo-trader-ib-gateway-1 | java.specification.version = 11 algo-trader-ib-gateway-1 | sun.cpu.isalist = algo-trader-ib-gateway-1 | sun.jnu.encoding = ANSI_X3.4-1968 algo-trader-ib-gateway-1 | channel = latest algo-trader-ib-gateway-1 | java.class.path = /home/ibgateway/Jts/ibgateway/10.27.1c/jars/batik-all-1.16.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/commons-io-2.11.0.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/fop-2.8.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/jackson-annotations-2.12.3.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/jackson-core-2.12.3.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/jackson-databind-2.12.3.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/jts4launch-1027.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/jxbrowser-7.29.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/jxbrowser-linux64-7.29.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/jxbrowser-swing-7.29.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/locales.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/log4j-api-2.17.1.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/log4j-core-2.17.1.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/total-2023.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/twslaunch-1027.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/twslaunch-install4j-1.12.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/xmlgraphics-commons-2.8.jar:/home/ibgateway/Jts/ibgateway/10.27.1c/.install4j/i4jruntime.jar:/home/ibgateway/ibc/IBC.jar algo-trader-ib-gateway-1 | java.vm.vendor = BellSoft algo-trader-ib-gateway-1 | sun.arch.data.model = 64 algo-trader-ib-gateway-1 | java.vendor.url = https://bell-sw.com/ algo-trader-ib-gateway-1 | user.timezone = Europe/Zurich algo-trader-ib-gateway-1 | os.name = Linux algo-trader-ib-gateway-1 | java.vm.specification.version = 11 algo-trader-ib-gateway-1 | sun.java.launcher = SUN_STANDARD algo-trader-ib-gateway-1 | user.country = US algo-trader-ib-gateway-1 | sun.boot.library.path = /opt/java/lib algo-trader-ib-gateway-1 | sun.java.command = ibcalpha.ibc.IbcGateway /home/ibgateway/ibc/config.ini algo-trader-ib-gateway-1 | jdk.debug = release algo-trader-ib-gateway-1 | sun.cpu.endian = little algo-trader-ib-gateway-1 | user.home = /home/ibgateway algo-trader-ib-gateway-1 | user.language = en algo-trader-ib-gateway-1 | java.specification.vendor = Oracle Corporation algo-trader-ib-gateway-1 | java.version.date = 2024-01-16 algo-trader-ib-gateway-1 | java.home = /opt/java algo-trader-ib-gateway-1 | jtsConfigDir = /home/ibgateway/Jts algo-trader-ib-gateway-1 | file.separator = / algo-trader-ib-gateway-1 | java.vm.compressedOopsMode = 32-bit algo-trader-ib-gateway-1 | line.separator = algo-trader-ib-gateway-1 | algo-trader-ib-gateway-1 | java.specification.name = Java Platform API Specification algo-trader-ib-gateway-1 | java.vm.specification.vendor = Oracle Corporation algo-trader-ib-gateway-1 | twslaunch.autoupdate.serviceImpl = com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService algo-trader-ib-gateway-1 | install4jType = standalone algo-trader-ib-gateway-1 | java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment algo-trader-ib-gateway-1 | sun.management.compiler = HotSpot 64-Bit Tiered Compilers algo-trader-ib-gateway-1 | exe4j.isInstall4j = true algo-trader-ib-gateway-1 | java.runtime.version = 11.0.22+12-LTS algo-trader-ib-gateway-1 | user.name = ibgateway algo-trader-ib-gateway-1 | path.separator = : algo-trader-ib-gateway-1 | os.version = 5.10.104-linuxkit algo-trader-ib-gateway-1 | java.runtime.name = OpenJDK Runtime Environment algo-trader-ib-gateway-1 | file.encoding = ANSI_X3.4-1968 algo-trader-ib-gateway-1 | java.vm.name = OpenJDK 64-Bit Server VM algo-trader-ib-gateway-1 | java.vendor.url.bug = https://bell-sw.com/support algo-trader-ib-gateway-1 | java.io.tmpdir = /tmp algo-trader-ib-gateway-1 | java.version = 11.0.22 algo-trader-ib-gateway-1 | user.dir = /home/ibgateway/Jts algo-trader-ib-gateway-1 | os.arch = aarch64 algo-trader-ib-gateway-1 | java.vm.specification.name = Java Virtual Machine Specification algo-trader-ib-gateway-1 | java.awt.printerjob = sun.print.PSPrinterJob algo-trader-ib-gateway-1 | sun.os.patch.level = unknown algo-trader-ib-gateway-1 | java.library.path = /usr/java/packages/lib:/lib:/usr/lib:/usr/lib64:/lib64 algo-trader-ib-gateway-1 | java.vm.info = mixed mode algo-trader-ib-gateway-1 | java.vendor = BellSoft algo-trader-ib-gateway-1 | java.vm.version = 11.0.22+12-LTS algo-trader-ib-gateway-1 | java.specification.maintenance.version = 2 algo-trader-ib-gateway-1 | sun.io.unicode.encoding = UnicodeLittle algo-trader-ib-gateway-1 | java.class.version = 55.0 algo-trader-ib-gateway-1 | ------------------------------------------------------------ algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:562 IBC: using default settings provider: ini file is /home/ibgateway/ibc/config.ini algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:562 IBC: using default login manager: will get username and password from settings; FIX username and password (if required) from settings algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:562 IBC: using default main window manager algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:562 IBC: using default trading mode manager: constructor parameter args but trading mode not present - will be taken from settings algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:563 IBC: using default config dialog manager algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:566 IBC: CommandServer is not started because the port is not configured algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:645 IBC: TWS Settings directory is: /home/ibgateway/Jts algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:645 IBC: Starting session: will exit if login dialog is not displayed within 60 seconds algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:650 IBC: Ensuring /home/ibgateway/Jts/jts.ini contains required minimal lines algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:650 IBC: Found setting: [Logon]/s3store=true algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:650 IBC: Found setting: [Logon]/Locale=en algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:650 IBC: Found setting: [Logon]/displayedproxymsg=1 algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:650 IBC: Found setting: [Logon]/UseSSL=true algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:650 IBC: Found setting: [IBGateway]/ApiOnly=true algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:650 IBC: Confirmed /home/ibgateway/Jts/jts.ini contains required minimal lines algo-trader-ib-gateway-1 | 2024-07-10 12:01:17:650 IBC: Starting Gateway algo-trader-ib-gateway-1 | WARNING: An illegal reflective access operation has occurred algo-trader-ib-gateway-1 | WARNING: Illegal reflective access by feature.search.recorder.JtsMultiLookAndFeel (file:/home/ibgateway/Jts/ibgateway/10.27.1c/jars/twslaunch-1027.jar) to method javax.swing.UIManager.getLAFState() algo-trader-ib-gateway-1 | WARNING: Please consider reporting this to the maintainers of feature.search.recorder.JtsMultiLookAndFeel algo-trader-ib-gateway-1 | WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations algo-trader-ib-gateway-1 | WARNING: All illegal access operations will be denied in a future release algo-trader-ib-gateway-1 | 2024-07-10 12:01:18:500 IBC: Getting config dialog algo-trader-ib-gateway-1 | 2024-07-10 12:01:18:501 IBC: Creating config dialog future algo-trader-ib-gateway-1 | 2024-07-10 12:01:18:503 IBC: Getting config dialog algo-trader-ib-gateway-1 | 2024-07-10 12:01:18:505 IBC: Waiting for config dialog future to complete algo-trader-ib-gateway-1 | 2024-07-10 12:01:18:508 IBC: Getting main window algo-trader-ib-gateway-1 | 2024-07-10 12:01:18:510 IBC: Creating main window future algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:119 IBC: detected frame entitled: IBKR Gateway; event=Activated algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:122 IBC: detected frame entitled: IBKR Gateway; event=Focused algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:122 IBC: detected frame entitled: IBKR Gateway; event=Opened algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:123 IBC: Login dialog WINDOW_OPENED: LoginState is LOGGED_OUT algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:123 IBC: trading mode from settings: tradingMode=live algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:123 IBC: Setting Trading mode = live algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:204 IBC: Setting user name algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:205 IBC: Setting password algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:206 IBC: Login attempt: 1 algo-trader-ib-gateway-1 | 2024-07-10 12:01:19:223 IBC: Click button: Log In algo-trader-ib-gateway-1 | 2024-07-10 12:01:29:739 IBC: detected frame entitled: IBKR Gateway; event=Lost focus algo-trader-ib-gateway-1 | 2024-07-10 12:01:29:739 IBC: detected frame entitled: IBKR Gateway; event=Deactivated algo-trader-ib-gateway-1 | 2024-07-10 12:01:29:740 IBC: detected frame entitled: Loading...; event=Activated algo-trader-ib-gateway-1 | 2024-07-10 12:01:29:744 IBC: detected frame entitled: Loading...; event=Focused algo-trader-ib-gateway-1 | 2024-07-10 12:01:29:745 IBC: detected frame entitled: Loading...; event=Opened algo-trader-ib-gateway-1 | 2024-07-10 12:01:29:745 IBC: Found Gateway main window algo-trader-ib-gateway-1 | 2024-07-10 12:01:29:745 IBC: Got main window from future algo-trader-ib-gateway-1 | 2024-07-10 12:01:29:745 IBC: Invoking config dialog menu algo-trader-ib-gateway-1 | 2024-07-10 12:01:30:306 IBC: detected frame entitled: Loading...; event=Lost focus algo-trader-ib-gateway-1 | 2024-07-10 12:01:30:306 IBC: detected frame entitled: Loading...; event=Deactivated algo-trader-ib-gateway-1 | 2024-07-10 12:01:30:306 IBC: detected frame entitled: Connecting to server (trying for another 19 seconds)...; event=Activated algo-trader-ib-gateway-1 | 2024-07-10 12:01:30:307 IBC: detected frame entitled: Connecting to server (trying for another 19 seconds)...; event=Focused algo-trader-ib-gateway-1 | 2024-07-10 12:01:30:307 IBC: detected frame entitled: Connecting to server (trying for another 19 seconds)...; event=Opened algo-trader-ib-gateway-1 | 2024-07-10 12:01:32:970 IBC: detected dialog entitled: no title ; event=Opened algo-trader-ib-gateway-1 | 2024-07-10 12:01:32:971 IBC: detected frame entitled: Authenticating...; event=Lost focus algo-trader-ib-gateway-1 | 2024-07-10 12:01:32:971 IBC: detected frame entitled: Authenticating...; event=Deactivated algo-trader-ib-gateway-1 | 2024-07-10 12:01:32:971 IBC: detected dialog entitled: no title ; event=Activated algo-trader-ib-gateway-1 | 2024-07-10 12:01:32:973 IBC: detected dialog entitled: no title ; event=Focused algo-trader-ib-gateway-1 | 2024/07/10 12:01:51 socat[140] E connect(5, AF=2 127.0.0.1:4001, 16): Connection refused algo-trader-ib-gateway-1 | 2024-07-10 12:04:33:385 IBC: detected dialog entitled: no title ; event=Lost focus algo-trader-ib-gateway-1 | 2024-07-10 12:04:33:385 IBC: detected dialog entitled: no title ; event=Deactivated algo-trader-ib-gateway-1 | 2024-07-10 12:04:33:386 IBC: detected dialog entitled: no title ; event=Closed algo-trader-ib-gateway-1 | 2024/07/10 13:37:37 socat[147] E connect(5, AF=2 127.0.0.1:4001, 16): Connection refused

gnzsnz commented 2 weeks ago

if you are using the aarch64 branch please make it clear. that is an experimental branch with known issues.

From the log file, it's not clear that authentication was successful. you tried to connect to the API before auth was completed. make sure sure auth is completed before you connect to the API

you should see something like this IBC: Login has completed

gnzsnz commented 2 weeks ago

this is related to https://github.com/gnzsnz/ib-gateway-docker/discussions/126

please continue the discussion there. This will not be considered as an issue/bug as there is no malfunction.