-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.16.3 FIX/CTCI login on ibgateway 10.22 #207
Comments
I found there's same issue in early version 3.12 + ibgateway 10.21, but it can be ignored by setting ExitAfterSecondFactorAuthenticationTimeout=no. But in version 3.16.3 this setting is deprecated, below please find the logs from IBC 3.12 2023-04-09 02:32:29:599 IBC: Detected dialog entitled: Second Factor Authentication; event=Deactivated |
Quoting small extracts from the logfiles isn't very helpful. Please just attach the whole logfile. It contains a mass of information that can be very helpful in diagnosing problems. |
Attached please find three log files, the IB API is success, but FIX only
or FIX+IB failed after 2FA check. all the settings and versions are same
except the "FIX=yes" and "FIXLoginId/FIXPassword" parts.
Please take a look, thank you.
Richard L King ***@***.***> 于2023年4月12日周三 16:48写道:
Quoting small extracts from the logfiles isn't very helpful. Please just
attach the whole logfile. It contains a mass of information that can be
very helpful in diagnosing problems.
—
Reply to this email directly, view it on GitHub
<#207 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/APXBECKSIJZPRKU3X5MII3TXAZT6VANCNFSM6AAAAAAW27V7WI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
================================================================================
Starting IBC version 3.16.3 on 2023-04-14 at 02:20:49
Operating system: Linux NY1 5.15.0-1032-oracle #38-Ubuntu SMP Thu Mar 23 19:30:07 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Arguments:
TWS version = 1022
Program = Gateway
Entry point = ibcalpha.ibc.IbcGateway
--tws-path = /home/test/Jts
--tws-settings-path =
--ibc-path = /home/test/ibc2
--ibc-ini = /home/test/ibc2/config_tws.ini
--mode =
--java-path =
--user =
--pw =
--fix-user =
--fix-pw =
=================================
Generating the classpath
Classpath=/home/test/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/test/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/test/Jts/ibgateway/1022/jars/locales.jar:/home/test/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/total-2020.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/test/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/home/test/ibc2/IBC.jar
Generating the JAVA VM options
autorestart file not found
Java VM Options=-Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dtwslaunch.autoupdate.serviceImpl=com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService -Dchannel=latest -Dexe4j.isInstall4j=true -Dinstall4jType=standalone -DjtsConfigDir=/home/test/Jts
Determining the location of java executable
Location of java executable=/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin
Renaming IB's TWS or Gateway start script to prevent restart without IBC
Starting Gateway with this command:
"/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin/java" -cp "/home/test/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/test/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/test/Jts/ibgateway/1022/jars/locales.jar:/home/test/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/total-2020.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/test/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/home/test/ibc2/IBC.jar" -Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dtwslaunch.autoupdate.serviceImpl=com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService -Dchannel=latest -Dexe4j.isInstall4j=true -Dinstall4jType=standalone -DjtsConfigDir=/home/test/Jts ibcalpha.ibc.IbcGateway "/home/test/ibc2/config_tws.ini"
IBC Settings:
AcceptBidAskLastSizeDisplayUpdateNotification=
AcceptIncomingConnectionAction=reject
AcceptNonBrokerageAccountWarning=no
AllowBlindTrading=no
AutoLogoffTime=
AutoRestartTime=
BindAddress=
ClosedownAt=
CommandPrompt=
CommandServerPort=0
ConfirmCryptoCurrencyOrders=manual
ControlFrom=
DismissNSEComplianceNotice=yes
DismissPasswordExpiryWarning=no
ExistingSessionDetectedAction=primary
ExitAfterSecondFactorAuthenticationTimeout=no
FIX=no
FIXLoginId=***
FIXPassword=***
IbDir=
IbLoginId=***
IbPassword=***
LogStructureScope=known
LogStructureWhen=never
LoginDialogDisplayTimeout=60
MinimizeMainWindow=no
OverrideTwsApiPort=
ReadOnlyApi=
ReadOnlyLogin=no
ReloginAfterSecondFactorAuthenticationTimeout=no
SaveTwsSettingsAt=
SecondFactorAuthenticationExitInterval=
SecondFactorAuthenticationTimeout=180
SecondFactorDevice=
SendMarketDataInLotsForUSstocks=
StoreSettingsOnServer=
SuppressInfoMessages=yes
TradingMode=live
End IBC Settings
2023-04-14 02:20:50:098 IBC: Version: 3.16.3
System Properties
------------------------------------------------------------
jtsConfigDir = /home/test/Jts
java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/amd64
java.vm.version = 25.202-b08
java.vm.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
path.separator = :
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg = sun.io
sun.java.launcher = SUN_STANDARD
sun.os.patch.level = unknown
java.vm.specification.name = Java Virtual Machine Specification
user.dir = /home/test/Jts
java.runtime.version = 1.8.0_202-b08
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.endorsed.dirs = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/endorsed
os.arch = amd64
java.io.tmpdir = /tmp
line.separator =
java.vm.specification.vendor = Oracle Corporation
os.name = Linux
sun.jnu.encoding = UTF-8
java.library.path = /opt/oracle/instantclient_21_8:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.specification.name = Java Platform API Specification
java.class.version = 52.0
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
exe4j.isInstall4j = true
os.version = 5.15.0-1032-oracle
user.home = /home/test
user.timezone = America/New_York
java.awt.printerjob = sun.print.PSPrinterJob
file.encoding = UTF-8
java.specification.version = 1.8
java.class.path = /home/test/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/test/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/test/Jts/ibgateway/1022/jars/locales.jar:/home/test/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/total-2020.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/test/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/home/test/ibc2/IBC.jar
user.name = test
channel = latest
java.vm.specification.version = 1.8
sun.java.command = ibcalpha.ibc.IbcGateway /home/test/ibc2/config_tws.ini
java.home = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64
sun.arch.data.model = 64
user.language = en
java.specification.vendor = Oracle Corporation
awt.toolkit = sun.awt.X11.XToolkit
java.vm.info = mixed mode
java.version = 1.8.0_202
java.ext.dirs = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/resources.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/rt.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/sunrsasign.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/jsse.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/jce.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/charsets.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/jfr.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/classes
java.vendor = Oracle Corporation
file.separator = /
twslaunch.autoupdate.serviceImpl = com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
install4jType = standalone
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
sun.cpu.isalist =
------------------------------------------------------------
2023-04-14 02:20:50:178 IBC: Using default settings provider: ini file is /home/test/ibc2/config_tws.ini
2023-04-14 02:20:50:178 IBC: Using default login manager: getting username and password from args but not found. Will get from settings
2023-04-14 02:20:50:178 IBC: Using default main window manager
2023-04-14 02:20:50:178 IBC: Using default trading mode manager: constructor parameter args but trading mode not present - will be taken from settings
2023-04-14 02:20:50:180 IBC: Using default config dialog manager
2023-04-14 02:20:50:183 IBC: CommandServer is not started because the port is not configured
2023-04-14 02:20:50:394 IBC: TWS Settings directory is: /home/test/Jts
2023-04-14 02:20:50:401 IBC: Ensuring /home/test/Jts/jts.ini contains required minimal lines
2023-04-14 02:20:50:402 IBC: Found setting: [Logon]/s3store=true
2023-04-14 02:20:50:402 IBC: Found setting: [Logon]/Locale=en
2023-04-14 02:20:50:402 IBC: Found setting: [Logon]/displayedproxymsg=1
2023-04-14 02:20:50:402 IBC: Found setting: [Logon]/UseSSL=true
2023-04-14 02:20:50:402 IBC: Found setting: [IBGateway]/ApiOnly=false: updating value to true
2023-04-14 02:20:50:402 IBC: Some settings updated in /home/test/Jts/jts.ini
2023-04-14 02:20:50:402 IBC: Rewriting existing /home/test/Jts/jts.ini
2023-04-14 02:20:50:403 IBC: jts.ini: [IBGateway]
2023-04-14 02:20:50:403 IBC: jts.ini: WriteDebug=false
2023-04-14 02:20:50:403 IBC: jts.ini: TrustedIPs=127.0.0.1,10.0.0.84
2023-04-14 02:20:50:403 IBC: jts.ini: RemoteHostOrderRouting=ndc1.ibllc.com
2023-04-14 02:20:50:403 IBC: jts.ini: MainWindow.Height=550
2023-04-14 02:20:50:403 IBC: jts.ini: RemotePortOrderRouting=4001
2023-04-14 02:20:50:404 IBC: jts.ini: ApiOnly=true
2023-04-14 02:20:50:404 IBC: jts.ini: LocalServerPort=4000
2023-04-14 02:20:50:404 IBC: jts.ini: MainWindow.Width=700
2023-04-14 02:20:50:404 IBC: jts.ini:
2023-04-14 02:20:50:404 IBC: jts.ini: [Logon]
2023-04-14 02:20:50:404 IBC: jts.ini: Locale=en
2023-04-14 02:20:50:404 IBC: jts.ini: tradingMode=l
2023-04-14 02:20:50:405 IBC: jts.ini: s3store=true
2023-04-14 02:20:50:405 IBC: jts.ini: SupportsSSL=ndc1.ibllc.com:4000,true,20230411,false
2023-04-14 02:20:50:405 IBC: jts.ini: TimeZone=America/New_York
2023-04-14 02:20:50:405 IBC: jts.ini: displayedproxymsg=1
2023-04-14 02:20:50:405 IBC: jts.ini: UseSSL=true
2023-04-14 02:20:50:405 IBC: jts.ini:
2023-04-14 02:20:50:405 IBC: jts.ini: [Communication]
2023-04-14 02:20:50:405 IBC: jts.ini:
2023-04-14 02:20:50:413 IBC: Starting Gateway
2023-04-14 02:20:50:414 IBC: Starting session: will exit if login dialog is not displayed within 60 seconds
2023-04-14 02:21:05:287 IBC: Detected frame entitled: IBKR Gateway; event=Opened
2023-04-14 02:21:05:288 IBC: Login dialog WINDOW_OPENED: LoginState is LOGGED_OUT
2023-04-14 02:21:05:289 IBC: Trading mode from settings: tradingMode=live
2023-04-14 02:21:05:289 IBC: Setting Trading mode = live
2023-04-14 02:21:05:394 IBC: Login attempt: 1
2023-04-14 02:21:05:395 IBC: Detected frame entitled: IBKR Gateway; event=Activated
2023-04-14 02:21:05:399 IBC: Detected frame entitled: IBKR Gateway; event=Focused
2023-04-14 02:21:05:681 IBC: Click button: Log In
2023-04-14 02:21:12:985 IBC: Detected frame entitled: IBKR Gateway; event=Lost focus
2023-04-14 02:21:12:985 IBC: Detected frame entitled: IBKR Gateway; event=Deactivated
2023-04-14 02:21:12:990 IBC: Detected frame entitled: Loading...; event=Activated
2023-04-14 02:21:13:080 IBC: Detected frame entitled: Loading...; event=Focused
2023-04-14 02:21:13:080 IBC: Detected frame entitled: Loading...; event=Opened
2023-04-14 02:21:13:080 IBC: Found Gateway main window
2023-04-14 02:21:13:309 IBC: Detected frame entitled: Authenticating...; event=Opened
2023-04-14 02:21:13:393 IBC: Detected frame entitled: Loading...; event=Lost focus
2023-04-14 02:21:13:393 IBC: Detected frame entitled: Loading...; event=Deactivated
2023-04-14 02:21:13:393 IBC: Detected frame entitled: Authenticating...; event=Activated
2023-04-14 02:21:13:394 IBC: Detected frame entitled: Authenticating...; event=Focused
2023-04-14 02:21:14:196 IBC: Detected frame entitled: Authenticating...; event=Lost focus
2023-04-14 02:21:14:198 IBC: Detected frame entitled: Authenticating...; event=Deactivated
2023-04-14 02:21:14:198 IBC: Detected dialog entitled: Second Factor Authentication; event=Activated
2023-04-14 02:21:14:289 IBC: Detected dialog entitled: Second Factor Authentication; event=Focused
2023-04-14 02:21:14:289 IBC: Detected dialog entitled: Second Factor Authentication; event=Opened
2023-04-14 02:21:14:290 IBC: Second Factor Authentication initiated
2023-04-14 02:21:17:932 IBC: Detected dialog entitled: Second Factor Authentication; event=Lost focus
2023-04-14 02:21:17:933 IBC: Detected dialog entitled: Second Factor Authentication; event=Deactivated
2023-04-14 02:21:17:939 IBC: Detected dialog entitled: Second Factor Authentication; event=Closed
2023-04-14 02:21:17:940 IBC: Duration since login: 12 seconds
2023-04-14 02:21:17:940 IBC: If login has not completed, IBC will exit in 40 seconds
LogModuleConfigurator-Init: Log4j Ver2.x found on classpath
LogModuleConfigurator-Init: LogModuleConfigurator initialized with Log4j Verd.x
2023-04-14 02:21:40:188 IBC: Detected frame entitled: Starting application...; event=Closed
2023-04-14 02:21:40:188 IBC: Login has completed
2023-04-14 02:21:40:695 IBC: Detected dialog entitled: Pending Tasks; event=Closed
================================================================================
Starting IBC version 3.16.3 on 2023-04-14 at 02:25:50
Operating system: Linux NY1 5.15.0-1032-oracle #38-Ubuntu SMP Thu Mar 23 19:30:07 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Arguments:
TWS version = 1022
Program = Gateway
Entry point = ibcalpha.ibc.IbcGateway
--tws-path = /home/test/Jts
--tws-settings-path =
--ibc-path = /home/test/ibc2
--ibc-ini = /home/test/ibc2/config_fix.ini
--mode =
--java-path =
--user =
--pw =
--fix-user =
--fix-pw =
=================================
Generating the classpath
Classpath=/home/test/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/test/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/test/Jts/ibgateway/1022/jars/locales.jar:/home/test/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/total-2020.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/test/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/home/test/ibc2/IBC.jar
Generating the JAVA VM options
autorestart file not found
Java VM Options=-Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dtwslaunch.autoupdate.serviceImpl=com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService -Dchannel=latest -Dexe4j.isInstall4j=true -Dinstall4jType=standalone -DjtsConfigDir=/home/test/Jts
Determining the location of java executable
Location of java executable=/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin
Renaming IB's TWS or Gateway start script to prevent restart without IBC
Starting Gateway with this command:
"/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin/java" -cp "/home/test/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/test/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/test/Jts/ibgateway/1022/jars/locales.jar:/home/test/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/total-2020.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/test/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/home/test/ibc2/IBC.jar" -Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dtwslaunch.autoupdate.serviceImpl=com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService -Dchannel=latest -Dexe4j.isInstall4j=true -Dinstall4jType=standalone -DjtsConfigDir=/home/test/Jts ibcalpha.ibc.IbcGateway "/home/test/ibc2/config_fix.ini"
IBC Settings:
AcceptBidAskLastSizeDisplayUpdateNotification=
AcceptIncomingConnectionAction=reject
AcceptNonBrokerageAccountWarning=no
AllowBlindTrading=no
AutoLogoffTime=
AutoRestartTime=
BindAddress=
ClosedownAt=
CommandPrompt=
CommandServerPort=0
ConfirmCryptoCurrencyOrders=manual
ControlFrom=
DismissNSEComplianceNotice=yes
DismissPasswordExpiryWarning=no
ExistingSessionDetectedAction=primary
ExitAfterSecondFactorAuthenticationTimeout=no
FIX=yes
FIXLoginId=***
FIXPassword=***
IbDir=
IbLoginId=***
IbPassword=***
LogStructureScope=known
LogStructureWhen=never
LoginDialogDisplayTimeout=60
MinimizeMainWindow=no
OverrideTwsApiPort=
ReadOnlyApi=
ReadOnlyLogin=no
ReloginAfterSecondFactorAuthenticationTimeout=no
SaveTwsSettingsAt=
SecondFactorAuthenticationExitInterval=
SecondFactorAuthenticationTimeout=180
SecondFactorDevice=
SendMarketDataInLotsForUSstocks=
StoreSettingsOnServer=
SuppressInfoMessages=yes
TradingMode=live
End IBC Settings
2023-04-14 02:25:51:214 IBC: Version: 3.16.3
System Properties
------------------------------------------------------------
jtsConfigDir = /home/test/Jts
java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/amd64
java.vm.version = 25.202-b08
java.vm.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
path.separator = :
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg = sun.io
sun.java.launcher = SUN_STANDARD
sun.os.patch.level = unknown
java.vm.specification.name = Java Virtual Machine Specification
user.dir = /home/test/Jts
java.runtime.version = 1.8.0_202-b08
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.endorsed.dirs = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/endorsed
os.arch = amd64
java.io.tmpdir = /tmp
line.separator =
java.vm.specification.vendor = Oracle Corporation
os.name = Linux
sun.jnu.encoding = UTF-8
java.library.path = /opt/oracle/instantclient_21_8:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.specification.name = Java Platform API Specification
java.class.version = 52.0
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
exe4j.isInstall4j = true
os.version = 5.15.0-1032-oracle
user.home = /home/test
user.timezone = America/New_York
java.awt.printerjob = sun.print.PSPrinterJob
file.encoding = UTF-8
java.specification.version = 1.8
java.class.path = /home/test/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/test/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/test/Jts/ibgateway/1022/jars/locales.jar:/home/test/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/total-2020.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/test/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/home/test/ibc2/IBC.jar
user.name = test
channel = latest
java.vm.specification.version = 1.8
sun.java.command = ibcalpha.ibc.IbcGateway /home/test/ibc2/config_fix.ini
java.home = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64
sun.arch.data.model = 64
user.language = en
java.specification.vendor = Oracle Corporation
awt.toolkit = sun.awt.X11.XToolkit
java.vm.info = mixed mode
java.version = 1.8.0_202
java.ext.dirs = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/resources.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/rt.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/sunrsasign.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/jsse.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/jce.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/charsets.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/jfr.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/classes
java.vendor = Oracle Corporation
file.separator = /
twslaunch.autoupdate.serviceImpl = com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
install4jType = standalone
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
sun.cpu.isalist =
------------------------------------------------------------
2023-04-14 02:25:51:284 IBC: Using default settings provider: ini file is /home/test/ibc2/config_fix.ini
2023-04-14 02:25:51:284 IBC: Using default login manager: getting username and password from args but not found. Will get from settings
2023-04-14 02:25:51:284 IBC: Using default main window manager
2023-04-14 02:25:51:284 IBC: Using default trading mode manager: constructor parameter args but trading mode not present - will be taken from settings
2023-04-14 02:25:51:285 IBC: Using default config dialog manager
2023-04-14 02:25:51:290 IBC: CommandServer is not started because the port is not configured
2023-04-14 02:25:51:634 IBC: TWS Settings directory is: /home/test/Jts
2023-04-14 02:25:51:644 IBC: Ensuring /home/test/Jts/jts.ini contains required minimal lines
2023-04-14 02:25:51:644 IBC: Found setting: [Logon]/s3store=true
2023-04-14 02:25:51:644 IBC: Found setting: [Logon]/Locale=en
2023-04-14 02:25:51:645 IBC: Found setting: [Logon]/displayedproxymsg=1
2023-04-14 02:25:51:645 IBC: Found setting: [Logon]/UseSSL=true
2023-04-14 02:25:51:645 IBC: Found setting: [IBGateway]/ApiOnly=true
2023-04-14 02:25:51:645 IBC: Confirmed /home/test/Jts/jts.ini contains required minimal lines
2023-04-14 02:25:51:645 IBC: Starting Gateway
2023-04-14 02:25:51:645 IBC: Starting session: will exit if login dialog is not displayed within 60 seconds
2023-04-14 02:26:10:981 IBC: Detected frame entitled: IBKR Gateway; event=Activated
2023-04-14 02:26:11:084 IBC: Detected frame entitled: IBKR Gateway; event=Focused
2023-04-14 02:26:11:085 IBC: Detected frame entitled: IBKR Gateway; event=Opened
2023-04-14 02:26:11:086 IBC: Login dialog WINDOW_OPENED: LoginState is LOGGED_OUT
2023-04-14 02:26:11:087 IBC: Clicking FIX CTCI selector
2023-04-14 02:26:11:895 IBC: Trading mode from settings: tradingMode=live
2023-04-14 02:26:11:897 IBC: Setting Trading mode = live
2023-04-14 02:26:12:083 IBC: Login attempt: 1
2023-04-14 02:26:12:180 IBC: Click button: Log In
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:998)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1304)
at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:231)
at com.sun.javafx.application.PlatformImpl.waitForStart(PlatformImpl.java:256)
at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:277)
at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:268)
at com.sun.javafx.application.PlatformImpl.checkIdle(PlatformImpl.java:392)
at com.sun.javafx.application.PlatformImpl.setImplicitExit(PlatformImpl.java:346)
at javafx.application.Platform.setImplicitExit(Platform.java:138)
at twslaunch.gstat.j.a(j.java:88)
at twslaunch.gstat.a.d(a.java:215)
at twslaunch.gstat.a.g(a.java:117)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2023-04-14 02:26:15:398 IBC: Detected frame entitled: IBKR Gateway; event=Lost focus
2023-04-14 02:26:15:399 IBC: Detected frame entitled: IBKR Gateway; event=Deactivated
2023-04-14 02:26:15:399 IBC: Detected frame entitled: Loading...; event=Activated
2023-04-14 02:26:15:483 IBC: Detected frame entitled: Loading...; event=Focused
2023-04-14 02:26:15:483 IBC: Detected frame entitled: Loading...; event=Opened
2023-04-14 02:26:15:484 IBC: Found Gateway main window
2023-04-14 02:26:16:588 IBC: Detected frame entitled: Loading...; event=Lost focus
2023-04-14 02:26:16:588 IBC: Detected dialog entitled: Second Factor Authentication; event=Opened
2023-04-14 02:26:16:589 IBC: Second Factor Authentication initiated
2023-04-14 02:26:16:589 IBC: Detected dialog entitled: Second Factor Authentication; event=Closed
2023-04-14 02:26:16:589 IBC: Duration since login: 4 seconds
2023-04-14 02:26:16:590 IBC: If login has not completed, IBC will exit in 40 seconds
2023-04-14 02:26:16:604 IBC: Detected frame entitled: Loading...; event=Focused
2023-04-14 02:26:16:604 IBC: Detected frame entitled: Loading...; event=Lost focus
2023-04-14 02:26:16:605 IBC: Detected frame entitled: Loading...; event=Deactivated
2023-04-14 02:26:16:605 IBC: Detected dialog entitled: Second Factor Authentication; event=Activated
2023-04-14 02:26:16:679 IBC: Detected dialog entitled: Second Factor Authentication; event=Focused
2023-04-14 02:26:16:679 IBC: Detected dialog entitled: Second Factor Authentication; event=Opened
2023-04-14 02:26:19:614 IBC: Detected dialog entitled: Second Factor Authentication; event=Closed
2023-04-14 02:26:19:616 IBC: Detected dialog entitled: Second Factor Authentication; event=Lost focus
2023-04-14 02:26:19:616 IBC: Detected dialog entitled: Second Factor Authentication; event=Deactivated
2023-04-14 02:26:19:617 IBC: Detected dialog entitled: Second Factor Authentication; event=Closed
LogModuleConfigurator-Init: Log4j Ver2.x found on classpath
LogModuleConfigurator-Init: LogModuleConfigurator initialized with Log4j Verd.x
2023-04-14 02:26:41:292 IBC: Detected dialog entitled: IBKR Gateway; event=Activated
2023-04-14 02:26:41:381 IBC: Detected dialog entitled: IBKR Gateway; event=Focused
2023-04-14 02:26:41:381 IBC: Detected dialog entitled: IBKR Gateway; event=Opened
2023-04-14 02:26:41:397 IBC: Detected dialog entitled: IBKR Gateway; event=Lost focus
2023-04-14 02:26:41:397 IBC: Detected dialog entitled: IBKR Gateway; event=Deactivated
2023-04-14 02:26:41:402 IBC: Detected dialog entitled: IBKR Gateway; event=Activated
2023-04-14 02:26:41:406 IBC: Detected dialog entitled: IBKR Gateway; event=Focused
2023-04-14 02:26:45:538 IBC: Detected dialog entitled: IBKR Gateway; event=Lost focus
2023-04-14 02:26:45:538 IBC: Detected dialog entitled: IBKR Gateway; event=Deactivated
2023-04-14 02:26:45:539 IBC: Detected dialog entitled: IBKR Gateway; event=Closed
2023-04-14 02:26:51:207 IBC: Detected frame entitled: IBKR Gateway; event=Activated
2023-04-14 02:26:51:208 IBC: Detected frame entitled: IBKR Gateway; event=Focused
2023-04-14 02:26:54:309 IBC: Detected frame entitled: IBKR Gateway; event=Lost focus
2023-04-14 02:26:54:310 IBC: Detected frame entitled: IBKR Gateway; event=Deactivated
2023-04-14 02:26:54:310 IBC: Detected dialog entitled: U6186069 Trader Workstation Configuration; event=Activated
2023-04-14 02:26:54:312 IBC: Detected dialog entitled: U6186069 Trader Workstation Configuration; event=Focused
2023-04-14 02:26:54:312 IBC: Detected dialog entitled: U6186069 Trader Workstation Configuration; event=Opened
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2023-04-14 02:26:56:593 IBC: IBC closing because login has not completed after Second Factor Authentication
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2023-04-14 02:26:56:593 IBC: Exiting with exit code=1111
IBC returned exit status 87
autorestart file not found
Gateway finished
================================================================================
Starting IBC version 3.16.3 on 2023-04-14 at 02:13:16
Operating system: Linux NY1 5.15.0-1032-oracle #38-Ubuntu SMP Thu Mar 23 19:30:07 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Arguments:
TWS version = 1022
Program = Gateway
Entry point = ibcalpha.ibc.IbcGateway
--tws-path = /home/test/Jts
--tws-settings-path =
--ibc-path = /home/test/ibc2
--ibc-ini = /home/test/ibc2/config_fix.ini
--mode =
--java-path =
--user =
--pw =
--fix-user =
--fix-pw =
=================================
Generating the classpath
Classpath=/home/test/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/test/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/test/Jts/ibgateway/1022/jars/locales.jar:/home/test/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/total-2020.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/test/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/home/test/ibc2/IBC.jar
Generating the JAVA VM options
autorestart file not found
Java VM Options=-Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dtwslaunch.autoupdate.serviceImpl=com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService -Dchannel=latest -Dexe4j.isInstall4j=true -Dinstall4jType=standalone -DjtsConfigDir=/home/test/Jts
Determining the location of java executable
Location of java executable=/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin
Renaming IB's TWS or Gateway start script to prevent restart without IBC
Starting Gateway with this command:
"/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin/java" -cp "/home/test/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/test/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/test/Jts/ibgateway/1022/jars/locales.jar:/home/test/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/total-2020.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/test/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/home/test/ibc2/IBC.jar" -Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dtwslaunch.autoupdate.serviceImpl=com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService -Dchannel=latest -Dexe4j.isInstall4j=true -Dinstall4jType=standalone -DjtsConfigDir=/home/test/Jts ibcalpha.ibc.IbcGateway "/home/test/ibc2/config_fix.ini"
IBC Settings:
AcceptBidAskLastSizeDisplayUpdateNotification=
AcceptIncomingConnectionAction=reject
AcceptNonBrokerageAccountWarning=no
AllowBlindTrading=no
AutoLogoffTime=
AutoRestartTime=
BindAddress=
ClosedownAt=
CommandPrompt=
CommandServerPort=0
ConfirmCryptoCurrencyOrders=manual
ControlFrom=
DismissNSEComplianceNotice=yes
DismissPasswordExpiryWarning=no
ExistingSessionDetectedAction=primary
ExitAfterSecondFactorAuthenticationTimeout=no
FIX=yes
FIXLoginId=***
FIXPassword=***
IbDir=
IbLoginId=***
IbPassword=***
LogStructureScope=known
LogStructureWhen=never
LoginDialogDisplayTimeout=60
MinimizeMainWindow=no
OverrideTwsApiPort=
ReadOnlyApi=
ReadOnlyLogin=no
ReloginAfterSecondFactorAuthenticationTimeout=no
SaveTwsSettingsAt=
SecondFactorAuthenticationExitInterval=
SecondFactorAuthenticationTimeout=180
SecondFactorDevice=
SendMarketDataInLotsForUSstocks=
StoreSettingsOnServer=
SuppressInfoMessages=yes
TradingMode=live
End IBC Settings
2023-04-14 02:13:16:704 IBC: Version: 3.16.3
System Properties
------------------------------------------------------------
jtsConfigDir = /home/test/Jts
java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/amd64
java.vm.version = 25.202-b08
java.vm.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
path.separator = :
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg = sun.io
sun.java.launcher = SUN_STANDARD
sun.os.patch.level = unknown
java.vm.specification.name = Java Virtual Machine Specification
user.dir = /home/test/Jts
java.runtime.version = 1.8.0_202-b08
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.endorsed.dirs = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/endorsed
os.arch = amd64
java.io.tmpdir = /tmp
line.separator =
java.vm.specification.vendor = Oracle Corporation
os.name = Linux
sun.jnu.encoding = UTF-8
java.library.path = /opt/oracle/instantclient_21_8:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.specification.name = Java Platform API Specification
java.class.version = 52.0
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
exe4j.isInstall4j = true
os.version = 5.15.0-1032-oracle
user.home = /home/test
user.timezone = America/New_York
java.awt.printerjob = sun.print.PSPrinterJob
file.encoding = UTF-8
java.specification.version = 1.8
java.class.path = /home/test/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/test/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/test/Jts/ibgateway/1022/jars/locales.jar:/home/test/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/total-2020.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/test/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/home/test/ibc2/IBC.jar
user.name = test
channel = latest
java.vm.specification.version = 1.8
sun.java.command = ibcalpha.ibc.IbcGateway /home/test/ibc2/config_fix.ini
java.home = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64
sun.arch.data.model = 64
user.language = en
java.specification.vendor = Oracle Corporation
awt.toolkit = sun.awt.X11.XToolkit
java.vm.info = mixed mode
java.version = 1.8.0_202
java.ext.dirs = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/resources.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/rt.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/sunrsasign.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/jsse.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/jce.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/charsets.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/jfr.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/classes
java.vendor = Oracle Corporation
file.separator = /
twslaunch.autoupdate.serviceImpl = com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
install4jType = standalone
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
sun.cpu.isalist =
------------------------------------------------------------
2023-04-14 02:13:16:784 IBC: Using default settings provider: ini file is /home/test/ibc2/config_fix.ini
2023-04-14 02:13:16:784 IBC: Using default login manager: getting username and password from args but not found. Will get from settings
2023-04-14 02:13:16:784 IBC: Using default main window manager
2023-04-14 02:13:16:784 IBC: Using default trading mode manager: constructor parameter args but trading mode not present - will be taken from settings
2023-04-14 02:13:16:785 IBC: Using default config dialog manager
2023-04-14 02:13:16:789 IBC: CommandServer is not started because the port is not configured
2023-04-14 02:13:16:999 IBC: TWS Settings directory is: /home/test/Jts
2023-04-14 02:13:17:005 IBC: Ensuring /home/test/Jts/jts.ini contains required minimal lines
2023-04-14 02:13:17:006 IBC: Found setting: [Logon]/s3store=true
2023-04-14 02:13:17:006 IBC: Found setting: [Logon]/Locale=en
2023-04-14 02:13:17:006 IBC: Found setting: [Logon]/displayedproxymsg=1
2023-04-14 02:13:17:006 IBC: Found setting: [Logon]/UseSSL=true
2023-04-14 02:13:17:006 IBC: Found setting: [IBGateway]/ApiOnly=true
2023-04-14 02:13:17:006 IBC: Confirmed /home/test/Jts/jts.ini contains required minimal lines
2023-04-14 02:13:17:007 IBC: Starting Gateway
2023-04-14 02:13:17:007 IBC: Starting session: will exit if login dialog is not displayed within 60 seconds
2023-04-14 02:13:30:483 IBC: Detected frame entitled: IBKR Gateway; event=Activated
2023-04-14 02:13:30:599 IBC: Detected frame entitled: IBKR Gateway; event=Focused
2023-04-14 02:13:30:603 IBC: Detected frame entitled: IBKR Gateway; event=Opened
2023-04-14 02:13:30:603 IBC: Login dialog WINDOW_OPENED: LoginState is LOGGED_OUT
2023-04-14 02:13:30:604 IBC: Clicking FIX CTCI selector
2023-04-14 02:13:32:183 IBC: Trading mode from settings: tradingMode=live
2023-04-14 02:13:32:183 IBC: Setting Trading mode = live
2023-04-14 02:13:32:289 IBC: Login attempt: 1
2023-04-14 02:13:32:400 IBC: Click button: Log In
2023-04-14 02:13:34:786 IBC: Detected frame entitled: IBKR Gateway; event=Lost focus
2023-04-14 02:13:34:786 IBC: Detected frame entitled: IBKR Gateway; event=Deactivated
2023-04-14 02:13:34:788 IBC: Detected frame entitled: Loading...; event=Opened
2023-04-14 02:13:34:788 IBC: Found Gateway main window
2023-04-14 02:13:34:799 IBC: Detected frame entitled: Loading...; event=Activated
2023-04-14 02:13:34:985 IBC: Detected frame entitled: Loading...; event=Focused
2023-04-14 02:13:37:982 IBC: Detected frame entitled: Loading...; event=Lost focus
2023-04-14 02:13:37:982 IBC: Detected frame entitled: Loading...; event=Deactivated
2023-04-14 02:13:37:982 IBC: Detected dialog entitled: Second Factor Authentication; event=Activated
2023-04-14 02:13:37:988 IBC: Detected dialog entitled: Second Factor Authentication; event=Focused
2023-04-14 02:13:37:988 IBC: Detected dialog entitled: Second Factor Authentication; event=Opened
2023-04-14 02:13:37:988 IBC: Second Factor Authentication initiated
IBC returned exit status 0
autorestart file not found
Gateway finished
================================================================================
Starting IBC version 3.16.3 on 2023-04-14 at 02:14:34
Operating system: Linux NY1 5.15.0-1032-oracle #38-Ubuntu SMP Thu Mar 23 19:30:07 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Arguments:
TWS version = 1022
Program = Gateway
Entry point = ibcalpha.ibc.IbcGateway
--tws-path = /home/test/Jts
--tws-settings-path =
--ibc-path = /home/test/ibc2
--ibc-ini = /home/test/ibc2/config_fix.ini
--mode =
--java-path =
--user =
--pw =
--fix-user =
--fix-pw =
=================================
Generating the classpath
Classpath=/home/test/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/test/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/test/Jts/ibgateway/1022/jars/locales.jar:/home/test/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/total-2020.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/test/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/home/test/ibc2/IBC.jar
Generating the JAVA VM options
autorestart file not found
Java VM Options=-Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dtwslaunch.autoupdate.serviceImpl=com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService -Dchannel=latest -Dexe4j.isInstall4j=true -Dinstall4jType=standalone -DjtsConfigDir=/home/test/Jts
Determining the location of java executable
Location of java executable=/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin
Renaming IB's TWS or Gateway start script to prevent restart without IBC
Starting Gateway with this command:
"/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin/java" -cp "/home/test/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/test/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/test/Jts/ibgateway/1022/jars/locales.jar:/home/test/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/total-2020.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/test/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/home/test/ibc2/IBC.jar" -Xmx768m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 -XX:InitiatingHeapOccupancyPercent=70 -Dtwslaunch.autoupdate.serviceImpl=com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService -Dchannel=latest -Dexe4j.isInstall4j=true -Dinstall4jType=standalone -DjtsConfigDir=/home/test/Jts ibcalpha.ibc.IbcGateway "/home/test/ibc2/config_fix.ini"
IBC Settings:
AcceptBidAskLastSizeDisplayUpdateNotification=
AcceptIncomingConnectionAction=reject
AcceptNonBrokerageAccountWarning=no
AllowBlindTrading=no
AutoLogoffTime=
AutoRestartTime=
BindAddress=
ClosedownAt=
CommandPrompt=
CommandServerPort=0
ConfirmCryptoCurrencyOrders=manual
ControlFrom=
DismissNSEComplianceNotice=yes
DismissPasswordExpiryWarning=no
ExistingSessionDetectedAction=primary
ExitAfterSecondFactorAuthenticationTimeout=no
FIX=yes
FIXLoginId=***
FIXPassword=***
IbDir=
IbLoginId=***
IbPassword=***
LogStructureScope=known
LogStructureWhen=never
LoginDialogDisplayTimeout=60
MinimizeMainWindow=no
OverrideTwsApiPort=
ReadOnlyApi=
ReadOnlyLogin=no
ReloginAfterSecondFactorAuthenticationTimeout=no
SaveTwsSettingsAt=
SecondFactorAuthenticationExitInterval=
SecondFactorAuthenticationTimeout=180
SecondFactorDevice=
SendMarketDataInLotsForUSstocks=
StoreSettingsOnServer=
SuppressInfoMessages=yes
TradingMode=live
End IBC Settings
2023-04-14 02:14:34:878 IBC: Version: 3.16.3
System Properties
------------------------------------------------------------
jtsConfigDir = /home/test/Jts
java.runtime.name = Java(TM) SE Runtime Environment
sun.boot.library.path = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/amd64
java.vm.version = 25.202-b08
java.vm.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
path.separator = :
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
file.encoding.pkg = sun.io
sun.java.launcher = SUN_STANDARD
sun.os.patch.level = unknown
java.vm.specification.name = Java Virtual Machine Specification
user.dir = /home/test/Jts
java.runtime.version = 1.8.0_202-b08
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.endorsed.dirs = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/endorsed
os.arch = amd64
java.io.tmpdir = /tmp
line.separator =
java.vm.specification.vendor = Oracle Corporation
os.name = Linux
sun.jnu.encoding = UTF-8
java.library.path = /opt/oracle/instantclient_21_8:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.specification.name = Java Platform API Specification
java.class.version = 52.0
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
exe4j.isInstall4j = true
os.version = 5.15.0-1032-oracle
user.home = /home/test
user.timezone = America/New_York
java.awt.printerjob = sun.print.PSPrinterJob
file.encoding = UTF-8
java.specification.version = 1.8
java.class.path = /home/test/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/test/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/test/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/test/Jts/ibgateway/1022/jars/locales.jar:/home/test/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/test/Jts/ibgateway/1022/jars/total-2020.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/test/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/test/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/home/test/ibc2/IBC.jar
user.name = test
channel = latest
java.vm.specification.version = 1.8
sun.java.command = ibcalpha.ibc.IbcGateway /home/test/ibc2/config_fix.ini
java.home = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64
sun.arch.data.model = 64
user.language = en
java.specification.vendor = Oracle Corporation
awt.toolkit = sun.awt.X11.XToolkit
java.vm.info = mixed mode
java.version = 1.8.0_202
java.ext.dirs = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/ext:/usr/java/packages/lib/ext
sun.boot.class.path = /home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/resources.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/rt.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/sunrsasign.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/jsse.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/jce.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/charsets.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/lib/jfr.jar:/home/test/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/classes
java.vendor = Oracle Corporation
file.separator = /
twslaunch.autoupdate.serviceImpl = com.ib.tws.twslaunch.install4j.Install4jAutoUpdateService
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
install4jType = standalone
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
sun.cpu.isalist =
------------------------------------------------------------
2023-04-14 02:14:34:885 IBC: Using default settings provider: ini file is /home/test/ibc2/config_fix.ini
2023-04-14 02:14:34:885 IBC: Using default login manager: getting username and password from args but not found. Will get from settings
2023-04-14 02:14:34:885 IBC: Using default main window manager
2023-04-14 02:14:34:885 IBC: Using default trading mode manager: constructor parameter args but trading mode not present - will be taken from settings
2023-04-14 02:14:34:886 IBC: Using default config dialog manager
2023-04-14 02:14:34:895 IBC: CommandServer is not started because the port is not configured
2023-04-14 02:14:35:102 IBC: TWS Settings directory is: /home/test/Jts
2023-04-14 02:14:35:108 IBC: Ensuring /home/test/Jts/jts.ini contains required minimal lines
2023-04-14 02:14:35:108 IBC: Found setting: [Logon]/s3store=true
2023-04-14 02:14:35:108 IBC: Found setting: [Logon]/Locale=en
2023-04-14 02:14:35:108 IBC: Found setting: [Logon]/displayedproxymsg=1
2023-04-14 02:14:35:109 IBC: Found setting: [Logon]/UseSSL=true
2023-04-14 02:14:35:109 IBC: Found setting: [IBGateway]/ApiOnly=false: updating value to true
2023-04-14 02:14:35:109 IBC: Some settings updated in /home/test/Jts/jts.ini
2023-04-14 02:14:35:110 IBC: Rewriting existing /home/test/Jts/jts.ini
2023-04-14 02:14:35:110 IBC: jts.ini: [IBGateway]
2023-04-14 02:14:35:110 IBC: jts.ini: WriteDebug=false
2023-04-14 02:14:35:111 IBC: jts.ini: TrustedIPs=127.0.0.1,10.0.0.84
2023-04-14 02:14:35:111 IBC: jts.ini: MainWindow.Height=550
2023-04-14 02:14:35:111 IBC: jts.ini: RemoteHostOrderRouting=ndc1.ibllc.com
2023-04-14 02:14:35:111 IBC: jts.ini: RemotePortOrderRouting=4001
2023-04-14 02:14:35:111 IBC: jts.ini: LocalServerPort=4000
2023-04-14 02:14:35:111 IBC: jts.ini: ApiOnly=true
2023-04-14 02:14:35:111 IBC: jts.ini: MainWindow.Width=700
2023-04-14 02:14:35:111 IBC: jts.ini:
2023-04-14 02:14:35:112 IBC: jts.ini: [Logon]
2023-04-14 02:14:35:112 IBC: jts.ini: Locale=en
2023-04-14 02:14:35:112 IBC: jts.ini: SupportsSSL=ndc1.ibllc.com:4000,true,20230411,false
2023-04-14 02:14:35:112 IBC: jts.ini: s3store=true
2023-04-14 02:14:35:112 IBC: jts.ini: tradingMode=l
2023-04-14 02:14:35:112 IBC: jts.ini: TimeZone=America/New_York
2023-04-14 02:14:35:112 IBC: jts.ini: displayedproxymsg=1
2023-04-14 02:14:35:112 IBC: jts.ini: UseSSL=true
2023-04-14 02:14:35:113 IBC: jts.ini:
2023-04-14 02:14:35:113 IBC: jts.ini: [Communication]
2023-04-14 02:14:35:113 IBC: jts.ini:
2023-04-14 02:14:35:181 IBC: Starting Gateway
2023-04-14 02:14:35:181 IBC: Starting session: will exit if login dialog is not displayed within 60 seconds
2023-04-14 02:14:47:987 IBC: Detected frame entitled: IBKR Gateway; event=Activated
2023-04-14 02:14:48:115 IBC: Detected frame entitled: IBKR Gateway; event=Focused
2023-04-14 02:14:48:118 IBC: Detected frame entitled: IBKR Gateway; event=Opened
2023-04-14 02:14:48:119 IBC: Login dialog WINDOW_OPENED: LoginState is LOGGED_OUT
2023-04-14 02:14:48:120 IBC: Clicking FIX CTCI selector
2023-04-14 02:14:48:589 IBC: Trading mode from settings: tradingMode=live
2023-04-14 02:14:48:590 IBC: Setting Trading mode = live
2023-04-14 02:14:48:686 IBC: Login attempt: 1
2023-04-14 02:14:48:789 IBC: Click button: Log In
2023-04-14 02:14:52:399 IBC: Detected frame entitled: IBKR Gateway; event=Lost focus
2023-04-14 02:14:52:400 IBC: Detected frame entitled: IBKR Gateway; event=Deactivated
2023-04-14 02:14:52:400 IBC: Detected frame entitled: Loading...; event=Opened
2023-04-14 02:14:52:400 IBC: Found Gateway main window
2023-04-14 02:14:52:401 IBC: Detected frame entitled: Loading...; event=Activated
2023-04-14 02:14:52:483 IBC: Detected frame entitled: Loading...; event=Focused
2023-04-14 02:14:56:094 IBC: Detected dialog entitled: Second Factor Authentication; event=Opened
2023-04-14 02:14:56:095 IBC: Second Factor Authentication initiated
2023-04-14 02:14:56:102 IBC: Detected frame entitled: Loading...; event=Lost focus
2023-04-14 02:14:56:102 IBC: Detected frame entitled: Loading...; event=Deactivated
2023-04-14 02:14:56:102 IBC: Detected dialog entitled: Second Factor Authentication; event=Activated
2023-04-14 02:14:56:104 IBC: Detected dialog entitled: Second Factor Authentication; event=Focused
2023-04-14 02:15:23:655 IBC: Detected dialog entitled: Second Factor Authentication; event=Lost focus
2023-04-14 02:15:23:655 IBC: Detected dialog entitled: Second Factor Authentication; event=Deactivated
2023-04-14 02:15:23:655 IBC: Detected dialog entitled: Second Factor Authentication; event=Closed
2023-04-14 02:15:23:655 IBC: Duration since login: 34 seconds
2023-04-14 02:15:23:656 IBC: If login has not completed, IBC will exit in 40 seconds
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2023-04-14 02:16:03:657 IBC: IBC closing because login has not completed after Second Factor Authentication
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2023-04-14 02:16:03:657 IBC: Exiting with exit code=1111
IBC returned exit status 87
autorestart file not found
Gateway finished
|
I asked you to ATTACH the logfile, and you've QUOTED three logfiles. I can't work with that. Please do as I ask and ATTACH the files. When you reply, there is a link below where you're typing which says 'Attach files by dragging & dropping, selecting or pasting them'. Click on that and select the files. |
Sorry I replied to the email with attachment files and don't know it convert to text in this post. please check the attached file again. sorry for inconvenience. Attached please find three log files, the IB API is success, but FIX only Please take a look, thank you. FIX and IB - failed - ibc-3.16.3_GATEWAY-1022_Friday.txt |
Ok, thanks for that. The logs are very helpful. I'll look into this but I may have to ask you to do something to increase the level of detail in the logs. First I'll have to run some experiments myself, which I'll try to do this evening. |
This is all a bit tricky because I don't have a FIX-capable account, so I can't test it fully. However, from the experiments I've done this evening, it's possible that it it just needs a bit more time to get the FIX gateway stuff loaded and running (hence the 'LOADING' in the window title). So could you please change the If it still doesn't work with 90 seconds, it probably means that Gateway just behaves differently when FIX is involved and I'll have to try to work out a way to determine exactly what I need to detect. In which case attach the logfile again so I can see if anything else is going on in the extra time. |
Hi, according to my observation, the "LOADING..." title will keep during whole session if login successfully with FIX/CTCI even after one week, it may be a minor bug from ibgateway. I just tried some scenario as below:
2023-04-15 23:03:59:494 IBC: Detected dialog entitled: Second Factor Authentication; event=Activated
But if I tried no respond for the 2FA for IB-API login, it will closing 2FA dialog after 180 seconds and return to login dialog, the log as below: 2023-04-15 23:25:59:675 IBC: Detected dialog entitled: Second Factor Authentication; event=Activated
as a conclusion, for the FIX/CTCI login, may I suggest using the SecondFactorAuthenticationExitInterval timer after 2FA event=Activated, and believe it login success if got 2FA event=Closed before timeout, or exit/restart if no more event after timeout. |
Can you please tell me what happens if you set Is Gateway then actually usable, including for FIX orders, after the 2FA completes, for the next hour? In other words, is everything working apart from it shutting down after |
Yes, the ibgateway with FIX/CTCI works as normal during the whole period
of SecondFactorAuthenticationExitInterval.
as my previous post, there's three scenarios:
1) 2FA complete, the logs got 2FA event=close
2) 2FA not respond on IBKR app, no more logs and event, and
SecondFactorAuthenticationExitInterval timer doesn't exit too.
3) click cancel on 2FA dialog, the IBC and ibgateway exit immediately.
for your reference, tahnk you.
Best Regards,
Kevin YU
Richard L King ***@***.***> 于2023年4月17日周一 02:02写道:
… Can you please tell me what happens if you set
SecondFactorAuthenticationExitInterval to something large, say 3600
seconds.
Is Gateway then actually usable, including for FIX orders, after the 2FA
completes, for the next hour?
In other words, is everything working apart from it shutting down after
SecondFactorAuthenticationExitInterval seconds?
—
Reply to this email directly, view it on GitHub
<#207 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/APXBECKAAYUHN5UG6MJYWB3XBQX5FANCNFSM6AAAAAAW27V7WI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Ok, thanks. What I'll do is give you a beta version that behaves slightly differently when Gateway is using FIX. In 'normal' Gateway without FIX, the close event for the 2FA dialog doesn't mean that Gateway is ready to go: after this event, Gateway displays a splash screen for some time, and only when that splash screen closes are the Gateway menus operable. So IBC normally takes the close event for the splash screen to mean that it can now do things that involve the menus (things like setting autorestarttime or autologofftime, but quite a number of other things too). But when FIX is involved, there is now nothing that tells me that the menus are operable. There seem to be no other events after 2FA close, and even the window title is not helpful, since you say it just displays "LOADING" for as long as Gateway is running. So I'll give you a version that, when running FIX, assumes that the menus are operable once 2FA close event has occurred. And I'll have to get you to test all the things that might require IBC to access the Gateway menus to see whether they work or not at that point. If they don't then I'm going to have to write some 'probing' code that periodically tries to use the menus and defers any menu-using stuff until that has succeeded. I might be able to get this new version to you later today, but tomorrow is more likely. |
Ok, thanks a lot. The menu items "File -> Gateway Logs" and "Configure ->
Setting" is greyed after FIX login. and via the email conversation with
IB's FIX tech support team, all setting include listening port and server
address should be revised in the Jts.ini manually. So, don't like IB-API
login, I believe there's nothing can be done with the menu setting after
FIX's 2FA. Just for your reference, thank you.
Best Regards,
Kevin YU
Richard L King ***@***.***> 于2023年4月18日周二 01:00写道:
… Ok, thanks.
What I'll do is give you a beta version that behaves slightly differently
when Gateway is using FIX.
In 'normal' Gateway without FIX, the close event for the 2FA dialog
doesn't mean that Gateway is ready to go: after this event, Gateway
displays a splash screen for some time, and only when that splash screen
closes are the Gateway menus operable. So IBC normally takes the close
event for the splash screen to mean that it can now do things that involve
the menus (things like setting autorestarttime or autologofftime, but quite
a number of other things too).
But when FIX is involved, there is now nothing that tells me that the
menus are operable. There seem to be no other events after 2FA close, and
even the window title is not helpful, since you say it just displays
"LOADING" for as long as Gateway is running.
So I'll give you a version that, when running FIX, assumes that the menus
are operable once 2FA close event has occurred. And I'll have to get you to
test all the things that might require IBC to access the Gateway menus to
see whether they work or not at that point. If they don't then I'm going to
have to write some 'probing' code that periodically tries to use the menus
and defers any menu-using stuff until that has succeeded.
I might be able to get this new version to you later today, but tomorrow
is more likely.
—
Reply to this email directly, view it on GitHub
<#207 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/APXBECI5X6TI3ZKQICREKSDXBVZKDANCNFSM6AAAAAAW27V7WI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Thanks for that info. It explains a lot. Have IB given you details of the jts.ini settings? Some of them, like TrustedIPs, are obvious, but if you have complete info that would be helpful. I can make IBC set these jts.ini settings automatically. This update is going to take longer than I hoped at first. So maybe not today (I also have other things to do...). |
IB tech support team don't explain details, but the jts.ini of FIX is
simple too, the only param I may change is TrustedIPs, LocalServerPort
my jts.ini as below:
[IBGateway]
WriteDebug=false
TrustedIPs=127.0.0.1
MainWindow.Height=550
RemoteHostOrderRouting=ndc1.ibllc.com
RemotePortOrderRouting=4001
LocalServerPort=4000
ApiOnly=true
MainWindow.Width=700
[Logon]
useRemoteSettings=false
TimeZone=America/New_York
tradingMode=l
colorPalletName=dark
Steps=3
Locale=en
SupportsSSL=ndc1.ibllc.com:4000,true,20230418,false
UseSSL=true
os_titlebar=false
s3store=true
screenHeight=768
displayedproxymsg=1
Restart=OK
ibkrBranding=pro
[Communication]
Peer=ndc1.ibllc.com:4001
Region=usr
Richard L King ***@***.***> 于2023年4月18日周二 16:40写道:
… Thanks for that info. It explains a lot.
Have IB given you details of the jts.ini settings? Some of them, like
TrustedIPs, are obvious, but if you have complete info that would be
helpful. I can make IBC set these jts.ini settings automatically.
This update is going to take longer than I hoped at first. So maybe not
today (I also have other things to do...).
—
Reply to this email directly, view it on GitHub
<#207 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/APXBECKGI526YMGCBTAHFJDXBZHPZANCNFSM6AAAAAAW27V7WI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
That's what I thought, but it was worth checking whether there are any other settings that could be changed. So the new version will have a new setting in Of course you can set these manually in jts.ini rather than config.ini, but there are situations where that won't be a viable option. The |
Here is a new version 3.16.4-beta.1 that I hope will fix this issue. The only files that have changed are So just extract the Once you tell me this is working properly, I'll merge the changes I've made into the master branch and publish a new release. |
Thank you, I tried the 3.16.4 just now and it seems works fine, and the FIX protocol works fine too. attached please find the log. But I didn't test TrustedTwsApiClientIPs param because I don't have another computer to access it. |
Good, that's great. No problem about the I'll include this in the next release, which will probably be this weekend. |
FYI, I could not log in to the IB gateway 10.22 (non-FIX) with IBC 3.16.2 |
I tried with FIX/CTCI login and passed the 2FA check, but the IBC and ibgateway still exit after 1 minute, as below log:
2023-04-11 21:14:38:587 IBC: Detected frame entitled: Loading...; event=Opened
2023-04-11 21:14:38:588 IBC: Found Gateway main window
2023-04-11 21:14:41:882 IBC: Detected dialog entitled: Second Factor Authentication; event=Opened
2023-04-11 21:14:41:883 IBC: Second Factor Authentication initiated
2023-04-11 21:14:41:890 IBC: Detected frame entitled: Loading...; event=Lost focus
2023-04-11 21:14:41:890 IBC: Detected frame entitled: Loading...; event=Deactivated
2023-04-11 21:14:41:891 IBC: Detected dialog entitled: Second Factor Authentication; event=Activated
2023-04-11 21:14:41:892 IBC: Detected dialog entitled: Second Factor Authentication; event=Focused
2023-04-11 21:14:50:307 IBC: Detected dialog entitled: Second Factor Authentication; event=Lost focus
2023-04-11 21:14:50:307 IBC: Detected dialog entitled: Second Factor Authentication; event=Deactivated
2023-04-11 21:14:50:312 IBC: Detected dialog entitled: Second Factor Authentication; event=Closed
2023-04-11 21:14:50:313 IBC: Duration since login: 14 seconds
2023-04-11 21:14:50:314 IBC: If login has not completed, IBC will exit in 40 seconds
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2023-04-11 21:15:30:315 IBC: IBC closing because login has not completed after Second Factor Authentication
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2023-04-11 21:15:30:315 IBC: Exiting with exit code=1111
IBC returned exit status 87
The text was updated successfully, but these errors were encountered: