开云体育

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: IBC 3.17.0

 

开云体育

Richard,

thank you for your continuous work to keep IBC updated and including new features.

I would like to be sure: have you tested and confirmed that IBC 3.17.0 works with Gateway version 10.23? I am currently using Gateway 10.22.1 with IBC. Since today am receiving warning messages from IB that I have to switch over to Gateway version 10.23.2 (or above). IB also mentions that 10.22.1 will be "desupported on 20230718".

I saw some messages passing by in this user-group in the last few days that some users were having issues with Gateway 10.23 and IBC, hence my question.

J.


On 27/06/2023 08:24, Richard L King wrote:

I’ve just released version 3.17.0 of IBC, which you can get here:

?

?

?

This release provides the following enhancements:

?

?

  • Support for Gateway v10.22 and later. IBKR changed the format of the Gateway login dialog, resulting in earlier IBC versions failing to recognise it and therefore not completing login automatically.

?

  • Fixes a problem where IBC no longer worked properly with the FIX/CTCI Gateway. See the notes for the new setting TrustedTwsApiClientIPs ?in config.ini

?

  • Enables the master client id to be set automatically at startup. See the notes for the new setting OverrideTwsMasterClientID in config.ini for details.

?

  • Enables the order id sequence for API orders to be reset to 1 at startup. See the notes for the new settings ResetOrderIdsAtStart and ConfirmOrderIdReset in config.ini

?

  • The default for the SecondFactorAuthenticationExitInterval setting in config.ini has been increased from 40 seconds to 60 seconds. This is because starting with recent versions of TWS/Gateway, sometimes considerably more data is downloaded at startup due to the inclusion of the JxBrowser. This extra data can cause the original timeout to be exceeded.

?

If your IBC installation is working well and you do not need the enhancements listed above, you do not need to upgrade to this version.

?

To upgrade from version 3.16.2 (or a later beta version), download the relevant zip file and extract the IBC.jar and version files, overwriting the current versions. Also update your config.ini file with the new settings mentioned above. These are the only changed files.

?

To upgrade from an earlier version than 3.16.2, the safest way is to first rename your existing IBC folder (eg to IBC.old) and then create a new one. Then download the relevant zip file and extract the files, as for a new installation (as described in the User Guide). Then re-apply any changes you previously made to the following files, On Linux, remember to set execute permission on the scripts.

?

All platforms:

?

config.ini

?

Windows only

?

StartTWS.bat

StartGateway.bat

?

Linux & macOS

?

gatewaystart.sh (or gatewaystartmacos.sh)

twsstart.sh (or twsstartmacos.sh)

?

?

Richard

?


Re: IBC 3.17.0

 

Many thanks for the comprehensive answer
The purpose was to identify different strategies executed by different clients to track individual strategy performance. For some reason (though it theoretically provides them) I can't retrieve the clientIDs through Flex queries that I would otherwise use for this. Hence my question.


------ Original Message ------
From "Richard L King" <rlking@...>
Date 28/06/2023 10:09:37
Subject Re: [ibc] IBC 3.17.0

Not really.

?

All IBC does using this feature is what you can do manually by clicking the ‘Reset API order ID sequence’ button in the API settings dialog. Clicking this results in the NextValidId() callback returning 1 for all clients that don’t currently have any pending orders.

?

You can always set a particular starting point for any given client just by placing an order with that id (as long as it’s higher than any id used before for that client). After you do that, NextValidId() will give you the next number. So the first time you place an order for a particular client, use the order id you want as the starting point for that client, increment the number for each subsequent order, then for each subsequent connection use the NextValidID() as the starting point and increment that.

?

Having said that, I really wouldn’t recommend doing it to make different client ids use different order id ranges. What would be the point? There is no problem with different client ids placing orders with the same order ids: that’s very largely the point of having client ids, they enable you to distinguish between similar things fed to/back from the API for different clients API apps.

?

And having said that, I do actually use this method to start order ids for all clients ids at 0x10000000, so that I can easily distinguish error messages relating to orders from other causes (eg from market data requests). ?Similarly I use separate id ranges for market data requests, contract requests, historical data requests etc.

?

From: [email protected] <[email protected]> On Behalf Of Andy Webb via groups.io
Sent: Tuesday, June 27, 2023 11:55 AM
To: [email protected]; [email protected]
Subject: Re: [ibc] IBC 3.17.0

?

Many thanks Richard.

?

Particularly interested in the ability to reset the order ID sequence at start up. Does that imply that IBC could also be used to generate specific order number ranges (or starting points) for individual clients attached to IB Gateway??

?

Andy

?

------ Original Message ------

From "Richard L King" <rlking@...>

Date 27/06/2023 01:24:00

Subject [ibc] IBC 3.17.0

?

I’ve just released version 3.17.0 of IBC, which you can get here:

?

?

?

This release provides the following enhancements:

?

?

  • Support for Gateway v10.22 and later. IBKR changed the format of the Gateway login dialog, resulting in earlier IBC versions failing to recognise it and therefore not completing login automatically.

?

  • Fixes a problem where IBC no longer worked properly with the FIX/CTCI Gateway. See the notes for the new setting TrustedTwsApiClientIPs ?in config.ini

?

  • Enables the master client id to be set automatically at startup. See the notes for the new setting OverrideTwsMasterClientID in config.ini for details.

?

  • Enables the order id sequence for API orders to be reset to 1 at startup. See the notes for the new settings ResetOrderIdsAtStart and ConfirmOrderIdReset in config.ini

?

  • The default for the SecondFactorAuthenticationExitInterval setting in config.ini has been increased from 40 seconds to 60 seconds. This is because starting with recent versions of TWS/Gateway, sometimes considerably more data is downloaded at startup due to the inclusion of the JxBrowser. This extra data can cause the original timeout to be exceeded.

?

If your IBC installation is working well and you do not need the enhancements listed above, you do not need to upgrade to this version.

?

To upgrade from version 3.16.2 (or a later beta version), download the relevant zip file and extract the IBC.jar and version files, overwriting the current versions. Also update your config.ini file with the new settings mentioned above. These are the only changed files.

?

To upgrade from an earlier version than 3.16.2, the safest way is to first rename your existing IBC folder (eg to IBC.old) and then create a new one. Then download the relevant zip file and extract the files, as for a new installation (as described in the User Guide). Then re-apply any changes you previously made to the following files, On Linux, remember to set execute permission on the scripts.

?

All platforms:

?

config.ini

?

Windows only

?

StartTWS.bat

StartGateway.bat

?

Linux & macOS

?

gatewaystart.sh (or gatewaystartmacos.sh)

twsstart.sh (or twsstartmacos.sh)

?

?

Richard

?


Re: IBC 3.17.0

 

开云体育

Not really.

?

All IBC does using this feature is what you can do manually by clicking the ‘Reset API order ID sequence’ button in the API settings dialog. Clicking this results in the NextValidId() callback returning 1 for all clients that don’t currently have any pending orders.

?

You can always set a particular starting point for any given client just by placing an order with that id (as long as it’s higher than any id used before for that client). After you do that, NextValidId() will give you the next number. So the first time you place an order for a particular client, use the order id you want as the starting point for that client, increment the number for each subsequent order, then for each subsequent connection use the NextValidID() as the starting point and increment that.

?

Having said that, I really wouldn’t recommend doing it to make different client ids use different order id ranges. What would be the point? There is no problem with different client ids placing orders with the same order ids: that’s very largely the point of having client ids, they enable you to distinguish between similar things fed to/back from the API for different clients API apps.

?

And having said that, I do actually use this method to start order ids for all clients ids at 0x10000000, so that I can easily distinguish error messages relating to orders from other causes (eg from market data requests). ?Similarly I use separate id ranges for market data requests, contract requests, historical data requests etc.

?

From: [email protected] <[email protected]> On Behalf Of Andy Webb via groups.io
Sent: Tuesday, June 27, 2023 11:55 AM
To: [email protected]; [email protected]
Subject: Re: [ibc] IBC 3.17.0

?

Many thanks Richard.

?

Particularly interested in the ability to reset the order ID sequence at start up. Does that imply that IBC could also be used to generate specific order number ranges (or starting points) for individual clients attached to IB Gateway??

?

Andy

?

------ Original Message ------

From "Richard L King" <rlking@...>

Date 27/06/2023 01:24:00

Subject [ibc] IBC 3.17.0

?

I’ve just released version 3.17.0 of IBC, which you can get here:

?

?

?

This release provides the following enhancements:

?

?

  • Support for Gateway v10.22 and later. IBKR changed the format of the Gateway login dialog, resulting in earlier IBC versions failing to recognise it and therefore not completing login automatically.

?

  • Fixes a problem where IBC no longer worked properly with the FIX/CTCI Gateway. See the notes for the new setting TrustedTwsApiClientIPs ?in config.ini

?

  • Enables the master client id to be set automatically at startup. See the notes for the new setting OverrideTwsMasterClientID in config.ini for details.

?

  • Enables the order id sequence for API orders to be reset to 1 at startup. See the notes for the new settings ResetOrderIdsAtStart and ConfirmOrderIdReset in config.ini

?

  • The default for the SecondFactorAuthenticationExitInterval setting in config.ini has been increased from 40 seconds to 60 seconds. This is because starting with recent versions of TWS/Gateway, sometimes considerably more data is downloaded at startup due to the inclusion of the JxBrowser. This extra data can cause the original timeout to be exceeded.

?

If your IBC installation is working well and you do not need the enhancements listed above, you do not need to upgrade to this version.

?

To upgrade from version 3.16.2 (or a later beta version), download the relevant zip file and extract the IBC.jar and version files, overwriting the current versions. Also update your config.ini file with the new settings mentioned above. These are the only changed files.

?

To upgrade from an earlier version than 3.16.2, the safest way is to first rename your existing IBC folder (eg to IBC.old) and then create a new one. Then download the relevant zip file and extract the files, as for a new installation (as described in the User Guide). Then re-apply any changes you previously made to the following files, On Linux, remember to set execute permission on the scripts.

?

All platforms:

?

config.ini

?

Windows only

?

StartTWS.bat

StartGateway.bat

?

Linux & macOS

?

gatewaystart.sh (or gatewaystartmacos.sh)

twsstart.sh (or twsstartmacos.sh)

?

?

Richard

?


Re: IBC 3.17.0

 

Many thanks Richard.

Particularly interested in the ability to reset the order ID sequence at start up. Does that imply that IBC could also be used to generate specific order number ranges (or starting points) for individual clients attached to IB Gateway??

Andy

------ Original Message ------
From "Richard L King" <rlking@...>
Date 27/06/2023 01:24:00
Subject [ibc] IBC 3.17.0

I’ve just released version 3.17.0 of IBC, which you can get here:

?

?

?

This release provides the following enhancements:

?

?

  • Support for Gateway v10.22 and later. IBKR changed the format of the Gateway login dialog, resulting in earlier IBC versions failing to recognise it and therefore not completing login automatically.

?

  • Fixes a problem where IBC no longer worked properly with the FIX/CTCI Gateway. See the notes for the new setting TrustedTwsApiClientIPs ?in config.ini

?

  • Enables the master client id to be set automatically at startup. See the notes for the new setting OverrideTwsMasterClientID in config.ini for details.

?

  • Enables the order id sequence for API orders to be reset to 1 at startup. See the notes for the new settings ResetOrderIdsAtStart and ConfirmOrderIdReset in config.ini

?

  • The default for the SecondFactorAuthenticationExitInterval setting in config.ini has been increased from 40 seconds to 60 seconds. This is because starting with recent versions of TWS/Gateway, sometimes considerably more data is downloaded at startup due to the inclusion of the JxBrowser. This extra data can cause the original timeout to be exceeded.

?

If your IBC installation is working well and you do not need the enhancements listed above, you do not need to upgrade to this version.

?

To upgrade from version 3.16.2 (or a later beta version), download the relevant zip file and extract the IBC.jar and version files, overwriting the current versions. Also update your config.ini file with the new settings mentioned above. These are the only changed files.

?

To upgrade from an earlier version than 3.16.2, the safest way is to first rename your existing IBC folder (eg to IBC.old) and then create a new one. Then download the relevant zip file and extract the files, as for a new installation (as described in the User Guide). Then re-apply any changes you previously made to the following files, On Linux, remember to set execute permission on the scripts.

?

All platforms:

?

config.ini

?

Windows only

?

StartTWS.bat

StartGateway.bat

?

Linux & macOS

?

gatewaystart.sh (or gatewaystartmacos.sh)

twsstart.sh (or twsstartmacos.sh)

?

?

Richard

?


IBC 3.17.0

 

开云体育

I’ve just released version 3.17.0 of IBC, which you can get here:

?

?

?

This release provides the following enhancements:

?

?

  • Support for Gateway v10.22 and later. IBKR changed the format of the Gateway login dialog, resulting in earlier IBC versions failing to recognise it and therefore not completing login automatically.

?

  • Fixes a problem where IBC no longer worked properly with the FIX/CTCI Gateway. See the notes for the new setting TrustedTwsApiClientIPs ?in config.ini

?

  • Enables the master client id to be set automatically at startup. See the notes for the new setting OverrideTwsMasterClientID in config.ini for details.

?

  • Enables the order id sequence for API orders to be reset to 1 at startup. See the notes for the new settings ResetOrderIdsAtStart and ConfirmOrderIdReset in config.ini

?

  • The default for the SecondFactorAuthenticationExitInterval setting in config.ini has been increased from 40 seconds to 60 seconds. This is because starting with recent versions of TWS/Gateway, sometimes considerably more data is downloaded at startup due to the inclusion of the JxBrowser. This extra data can cause the original timeout to be exceeded.

?

If your IBC installation is working well and you do not need the enhancements listed above, you do not need to upgrade to this version.

?

To upgrade from version 3.16.2 (or a later beta version), download the relevant zip file and extract the IBC.jar and version files, overwriting the current versions. Also update your config.ini file with the new settings mentioned above. These are the only changed files.

?

To upgrade from an earlier version than 3.16.2, the safest way is to first rename your existing IBC folder (eg to IBC.old) and then create a new one. Then download the relevant zip file and extract the files, as for a new installation (as described in the User Guide). Then re-apply any changes you previously made to the following files, On Linux, remember to set execute permission on the scripts.

?

All platforms:

?

config.ini

?

Windows only

?

StartTWS.bat

StartGateway.bat

?

Linux & macOS

?

gatewaystart.sh (or gatewaystartmacos.sh)

twsstart.sh (or twsstartmacos.sh)

?

?

Richard

?


Re: help troubleshooting ibc startup script

 

Richard

I’m sorry this wasted so much of your time, but given that there is a thread in this group on this problem with 10.22, and at least two related issues on b, I’m slightly surprised.

You expect users to read all the GitHub issues, and all the posts in the forum before attempting installation? I think most people would hope that the Installation section of the user guide would contain everything you would need to know

What you say is not correct.

The Gateway or TWS executable is renamed when IBC runs, not when IBC is installed. It does this so that if autorestart is used, it restarts running under IBC. If it doesn’t rename it , then autorestart starts Gateway/TWS directly from the executable, and it is then not under IBC’s tender care, so you lose all the benefits of using IBC. This is not optional or configurable, because IBC has no idea whether autorestart will be used.

Whether it happens at installation or run time - it's not important. What is important is that currently, on Linux, IBC's tender care breaks the installation of the IB Gateway. The file that a user double clicks to start the gateway is at:

/home/user/Jts/ibgateway/1023/.installj/install4j_1iptguy-ibgateway.desktop

and contains text

#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=IB Gateway 10.23
Exec="/home/user/Jts/ibgateway/1023/ibgateway" %U
Icon=/home/user/Jts/ibgateway/1023/.install4j/ibgateway.png
Categories=Application;
StartupWMClass=install4j-ibgateway-GWClient

Because of the renaming of file /home/user/Jts/ibgateway/1023/ibgateway, the Exec line is now invalid. Maybe there is a way to run the gateway directly from the file /home/user/Jts/ibgateway/1023/ibgateway1, but I don't know what it is. And I don't think I should have to.

I've created a PR that adds some info to the docs that, had they been there a few days ago, would have saved me a lot of time. I'm contributing so that other people don't have the same bad experience


Re: help troubleshooting ibc startup script

 

开云体育

What you say is not correct.

?

The Gateway or TWS executable is renamed when IBC runs, not when IBC is installed. It does this so that if autorestart is used, it restarts running under IBC. If it doesn’t rename it , then autorestart starts Gateway/TWS directly from the executable, and it is then not under IBC’s tender care, so you lose all the benefits of using IBC. This is not optional or configurable, because IBC has no idea whether autorestart will be used.

?

To run Gateway or TWS manually, just run whatever executable you have – the renamed one will run just as well as the original one.

?

I will consider whether and where to describe the renaming of the executable.

?

Richard

?


Re: help troubleshooting ibc startup script

 

开云体育

Thanks for pointing out the ‘sticky posts’ feature. I hadn’t realised it has been implemented in Groups.io.

?

I’m sorry this wasted so much of your time, but given that there is a thread in this group on this problem with 10.22, and at least two related issues on Github, I’m slightly surprised.

?

Richard


Re: help troubleshooting ibc startup script

 

开云体育

Hi all,

?

Problem solved. The issue was a corrupt ibc.jar.

?

This occurred due to my misunderstanding how to download a single file from github. I used to do:

Wget

?

I should have navigated to that file and done

Wget

?

Pranav

From: [email protected] <[email protected]> On Behalf Of Richard L King
Sent: Sunday, June 25, 2023 3:33 PM
To: [email protected]
Subject: Re: [ibc] help troubleshooting ibc startup script

?

Pranav

?

It looks like IBC.jar isn’t actually in /opt/ibc

?

Or perhaps you haven’t set execute permission on it?

?

R.

?

?

From: [email protected] <[email protected]> On Behalf Of Pranav Lal
Sent: Sunday, June 25, 2023 2:52 AM
To: [email protected]
Subject: Re: [ibc] help troubleshooting ibc startup script

?

Hi Richard,

?

I upgraded and the gateway cannot be found and ibc exits. It does not matter if I use version 1022 or 1023.

?

See below for the complete log.

[pranav@archlinux paper]$ cat ibc-_GATEWAY-1022_Sunday.txt?????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

================================================================================???????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Starting IBC version? on 2023-06-25 at 07:12:16????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Operating system: Linux archlinux 6.3.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 21 Jun 2023 20:46:20 +0000 x86_64 GNU/Linux

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Arguments:??????????????????????????????? ??????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

TWS version = 1022????????????????????????????????????? ????????????????????????????????????????????????????????????????

Program = Gateway??????????????????????????????????????????????????????????????????????????????????????????????????????

Entry point = ibcalpha.ibc.IbcGateway???????????????????????????????? ??????????????????????????????????????????????????

--tws-path = /home/pranav/Jts??????????????????????????????????????????????????????????????????????????????????????????

--tws-settings-path = /home/pranav/Jts/paper??????????????????????????????????????? ????????????????????????????????????

--ibc-path = /opt/ibc??????????????????????????????????????????????????????????????????????????????????????????????????

--ibc-ini = /home/pranav/ibc/configPaper.ini????????????????????????????????????????????????????? ??????????????????????

--mode =???????????????????????????????????????????????????????????????????????????????????????????????????????????????

--java-path =?????????????????????????????????????????????????????????????????????????????????????????????????? ????????

--user =???????????????????????????????????????????????????????????????????????????????????????????????????????????????

--pw =?????????????????????????????????????????????????????????????????????????????????????????????????????????????????

--fix-user =???????????????????????????????????????????????????????????????????????????????????????????????????????????

--fix-pw =?????????????????????????????????????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

=================================??????????????????????????????????????????????????????????????????????????????????????

Generating the classpath???????? ???????????????????????????????????????????????????????????????????????????????????????

Classpath=/home/pranav/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/pranav/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/locales.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/total-2020.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/pranav/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/opt/ibc/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/pranav/Jts/paper??????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Determining the location of java executable????????????????????????????????????????????????????????????????????????????

Location of java executable=/home/pranav/.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/pranav/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin/java" -cp "/home/pranav/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/pranav/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/locales.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/total-2020.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/pranav/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/opt/ibc/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/pranav/Jts/paper ibcalpha.ibc.IbcGateway "/home/pranav/ibc/configPaper.ini"??????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Error: Could not find or load main class ibcalpha.ibc.IbcGateway???????????????????????????????????????????????????????

IBC returned exit status 1?????????????????????????????????????????????????????????????????????????????????????????????

autorestart file not found????????????????? ????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Gateway finished????????????????????????????????????????? ??????????????????????????????????????????????????????????????

??

Pranav?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

[

From: [email protected] <[email protected]> On Behalf Of Richard L King
Sent: Sunday, June 25, 2023 12:25 AM
To: [email protected]
Subject: Re: [ibc] help troubleshooting ibc startup script

?

To run Gateway 10.22 or later, you need to use the latest version of IBC.jar available on the IBC Github repository (but not yet available via a release zip file).

?

See this post:

?

/g/ibcalpha/message/2042

?

That’s slightly out-of-date, as the latest available IBC version is now 3.16.4-beta.2.

?

I really must make the effort to do another proper release very soon. Apologies for the delay.

?

Richard

?


Re: help troubleshooting ibc startup script

 

开云体育

Hi Richard,

?

No go. I even did a

Sudo chmod +x *.*

?

The problem remains unchanged.

[pranav@archlinux live]$ cat ibc-3.16.4-beta.2_GATEWAY-1023_Sunday.txt?????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

================================================================================???????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Starting IBC version 3.16.4-beta.2 on 2023-06-25 at 16:42:01???????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Operating system: Linux archlinux 6.3.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 21 Jun 2023 20:46:20 +0000 x86_64 GNU/Linux

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Arguments:?????????????????????????????????????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

TWS version = 1023?????????????????????????????????????????????????????????????????????????????????????????????????????

Program = Gateway??????????????????????????????????????????????????????????????????????????????????????????????????????

Entry point = ibcalpha.ibc.IbcGateway??????????????????????????????????????????????????????????????????????????????????

--tws-path = /home/pranav/Jts??????????????????????????????????????????????????????????????????????????????????????????

--tws-settings-path = /home/pranav/Jts/live????????????????????????????????????????????????????????????????????????????

--ibc-path = /opt/ibc???????????????????? ??????????????????????????????????????????????????????????????????????????????

--ibc-ini = /home/pranav/ibc/configLive.ini????????????????????????????????????????????????????????????????????????????

--mode =??????????????????????????????????????????????? ????????????????????????????????????????????????????????????????

--java-path =??????????????????????????????????????????????????????????????????????????????????????????????????????????

--user =????????????????????????????????????????????????????????????? ??????????????????????????????????????????????????

--pw =?????????????????????????????????????????????????????????????????????????????????????????????????????????????????

--fix-user =??????????????????????????????????????????????????????????????????????? ????????????????????????????????????

--fix-pw =?????????????????????????????????????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

=================================??????????????????????????????????????????????????????????????????????????????????????

Generating the classpath??????????????????????????????????????????????????????????????????????????????????????? ????????

Classpath=/home/pranav/Jts/ibgateway/1023/jars/jackson-core-2.12.3.jar:/home/pranav/Jts/ibgateway/1023/jars/jts4launch-1023.jar:/home/pranav/Jts/ibgateway/1023/jars/jxbrowser-7.29.jar:/home/pranav/Jts/ibgateway/1023/jars/jxbrowser-linux64-7.29.jar:/home/pranav/Jts/ibgateway/1023/jars/jxbrowser-swing-7.29.jar:/home/pranav/Jts/ibgateway/1023/jars/locales.jar:/home/pranav/Jts/ibgateway/1023/jars/log4j-api-2.17.1.jar:/home/pranav/Jts/ibgateway/1023/jars/log4j-core-2.17.1.jar:/home/pranav/Jts/ibgateway/1023/jars/total-2020.jar:/home/pranav/Jts/ibgateway/1023/jars/twslaunch-1023.jar:/home/pranav/Jts/ibgateway/1023/jars/twslaunch-install4j-1.12.jar:/home/pranav/Jts/ibgateway/1023/.install4j/i4jruntime.jar:/opt/ibc/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/pranav/Jts/live???????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Determining the location of java executable????????????????????????????????????????????????????????????????????????????

Location of java executable=/home/pranav/.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/pranav/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin/java" -cp "/home/pranav/Jts/ibgateway/1023/jars/jackson-core-2.12.3.jar:/home/pranav/Jts/ibgateway/1023/jars/jts4launch-1023.jar:/home/pranav/Jts/ibgateway/1023/jars/jxbrowser-7.29.jar:/home/pranav/Jts/ibgateway/1023/jars/jxbrowser-linux64-7.29.jar:/home/pranav/Jts/ibgateway/1023/jars/jxbrowser-swing-7.29.jar:/home/pranav/Jts/ibgateway/1023/jars/locales.jar:/home/pranav/Jts/ibgateway/1023/jars/log4j-api-2.17.1.jar:/home/pranav/Jts/ibgateway/1023/jars/log4j-core-2.17.1.jar:/home/pranav/Jts/ibgateway/1023/jars/total-2020.jar:/home/pranav/Jts/ibgateway/1023/jars/twslaunch-1023.jar:/home/pranav/Jts/ibgateway/1023/jars/twslaunch-install4j-1.12.jar:/home/pranav/Jts/ibgateway/1023/.install4j/i4jruntime.jar:/opt/ibc/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/pranav/Jts/live ibcalpha.ibc.IbcGateway "/home/pranav/ibc/configLive.ini"????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Error: Could not find or load main class ibcalpha.ibc.IbcGateway???????????????????????????????????????????????????????

IBC returned exit status 1???????????????????????????????????????????????????????????????????????????????? ?????????????

autorestart file not found?????????????????????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Gateway finished???????????????????????????????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

[

Pranav

From: [email protected] <[email protected]> On Behalf Of Richard L King
Sent: Sunday, June 25, 2023 3:33 PM
To: [email protected]
Subject: Re: [ibc] help troubleshooting ibc startup script

?

Pranav

?

It looks like IBC.jar isn’t actually in /opt/ibc

?

Or perhaps you haven’t set execute permission on it?

?

R.

?

?

From: [email protected] <[email protected]> On Behalf Of Pranav Lal
Sent: Sunday, June 25, 2023 2:52 AM
To: [email protected]
Subject: Re: [ibc] help troubleshooting ibc startup script

?

Hi Richard,

?

I upgraded and the gateway cannot be found and ibc exits. It does not matter if I use version 1022 or 1023.

?

See below for the complete log.

[pranav@archlinux paper]$ cat ibc-_GATEWAY-1022_Sunday.txt?????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

================================================================================???????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Starting IBC version? on 2023-06-25 at 07:12:16????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Operating system: Linux archlinux 6.3.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 21 Jun 2023 20:46:20 +0000 x86_64 GNU/Linux

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Arguments:??????????????????????????????? ??????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

TWS version = 1022????????????????????????????????????? ????????????????????????????????????????????????????????????????

Program = Gateway??????????????????????????????????????????????????????????????????????????????????????????????????????

Entry point = ibcalpha.ibc.IbcGateway???????????????????????????????? ??????????????????????????????????????????????????

--tws-path = /home/pranav/Jts??????????????????????????????????????????????????????????????????????????????????????????

--tws-settings-path = /home/pranav/Jts/paper??????????????????????????????????????? ????????????????????????????????????

--ibc-path = /opt/ibc??????????????????????????????????????????????????????????????????????????????????????????????????

--ibc-ini = /home/pranav/ibc/configPaper.ini????????????????????????????????????????????????????? ??????????????????????

--mode =???????????????????????????????????????????????????????????????????????????????????????????????????????????????

--java-path =?????????????????????????????????????????????????????????????????????????????????????????????????? ????????

--user =???????????????????????????????????????????????????????????????????????????????????????????????????????????????

--pw =?????????????????????????????????????????????????????????????????????????????????????????????????????????????????

--fix-user =???????????????????????????????????????????????????????????????????????????????????????????????????????????

--fix-pw =?????????????????????????????????????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

=================================??????????????????????????????????????????????????????????????????????????????????????

Generating the classpath???????? ???????????????????????????????????????????????????????????????????????????????????????

Classpath=/home/pranav/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/pranav/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/locales.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/total-2020.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/pranav/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/opt/ibc/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/pranav/Jts/paper??????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Determining the location of java executable????????????????????????????????????????????????????????????????????????????

Location of java executable=/home/pranav/.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/pranav/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin/java" -cp "/home/pranav/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/pranav/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/locales.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/total-2020.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/pranav/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/opt/ibc/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/pranav/Jts/paper ibcalpha.ibc.IbcGateway "/home/pranav/ibc/configPaper.ini"??????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Error: Could not find or load main class ibcalpha.ibc.IbcGateway???????????????????????????????????????????????????????

IBC returned exit status 1?????????????????????????????????????????????????????????????????????????????????????????????

autorestart file not found????????????????? ????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Gateway finished????????????????????????????????????????? ??????????????????????????????????????????????????????????????

??

Pranav?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

[

From: [email protected] <[email protected]> On Behalf Of Richard L King
Sent: Sunday, June 25, 2023 12:25 AM
To: [email protected]
Subject: Re: [ibc] help troubleshooting ibc startup script

?

To run Gateway 10.22 or later, you need to use the latest version of IBC.jar available on the IBC Github repository (but not yet available via a release zip file).

?

See this post:

?

/g/ibcalpha/message/2042

?

That’s slightly out-of-date, as the latest available IBC version is now 3.16.4-beta.2.

?

I really must make the effort to do another proper release very soon. Apologies for the delay.

?

Richard

?


Re: help troubleshooting ibc startup script

 

I have followed the steps to manually replace the jar and version files, and now my install of 10.23 gets started by ibc.

One thing that was incredibly unhelpful in this process was that ibc renames the gateway executable file during installation, meaning that the gateway cannot be started manually. Here's the scenario I found myself in last week: I'm frantically trying to figure out why the gateway no longer auto starts, by updating, down-grading, re-installing. Repeatedly starting, stopping, re-configuring etc. At the same time, all the trading scripts that rely on a running gateway don't work, and the gateway needs to be started manually, and the scripts have to be run manually. I'm sure you see the issue.

Surely it would make sense to make this renaming feature a configurable option? Or, at the very least mention it in the docs, or README?


Re: help troubleshooting ibc startup script

 

开云体育

Hi Richard,

?

IBC.jar is in /opt/ibc. I have just once again set execute permission on it.

?

One question, who should own this file? Should it be my current user or the root user?

?

Pranav

?

From: [email protected] <[email protected]> On Behalf Of Richard L King
Sent: Sunday, June 25, 2023 3:33 PM
To: [email protected]
Subject: Re: [ibc] help troubleshooting ibc startup script

?

Pranav

?

It looks like IBC.jar isn’t actually in /opt/ibc

?

Or perhaps you haven’t set execute permission on it?

?

R.

?

?

From: [email protected] <[email protected]> On Behalf Of Pranav Lal
Sent: Sunday, June 25, 2023 2:52 AM
To: [email protected]
Subject: Re: [ibc] help troubleshooting ibc startup script

?

Hi Richard,

?

I upgraded and the gateway cannot be found and ibc exits. It does not matter if I use version 1022 or 1023.

?

See below for the complete log.

[pranav@archlinux paper]$ cat ibc-_GATEWAY-1022_Sunday.txt?????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

================================================================================???????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Starting IBC version? on 2023-06-25 at 07:12:16????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Operating system: Linux archlinux 6.3.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 21 Jun 2023 20:46:20 +0000 x86_64 GNU/Linux

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Arguments:??????????????????????????????? ??????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

TWS version = 1022????????????????????????????????????? ????????????????????????????????????????????????????????????????

Program = Gateway??????????????????????????????????????????????????????????????????????????????????????????????????????

Entry point = ibcalpha.ibc.IbcGateway???????????????????????????????? ??????????????????????????????????????????????????

--tws-path = /home/pranav/Jts??????????????????????????????????????????????????????????????????????????????????????????

--tws-settings-path = /home/pranav/Jts/paper??????????????????????????????????????? ????????????????????????????????????

--ibc-path = /opt/ibc??????????????????????????????????????????????????????????????????????????????????????????????????

--ibc-ini = /home/pranav/ibc/configPaper.ini????????????????????????????????????????????????????? ??????????????????????

--mode =???????????????????????????????????????????????????????????????????????????????????????????????????????????????

--java-path =?????????????????????????????????????????????????????????????????????????????????????????????????? ????????

--user =???????????????????????????????????????????????????????????????????????????????????????????????????????????????

--pw =?????????????????????????????????????????????????????????????????????????????????????????????????????????????????

--fix-user =???????????????????????????????????????????????????????????????????????????????????????????????????????????

--fix-pw =?????????????????????????????????????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

=================================??????????????????????????????????????????????????????????????????????????????????????

Generating the classpath???????? ???????????????????????????????????????????????????????????????????????????????????????

Classpath=/home/pranav/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/pranav/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/locales.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/total-2020.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/pranav/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/opt/ibc/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/pranav/Jts/paper??????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Determining the location of java executable????????????????????????????????????????????????????????????????????????????

Location of java executable=/home/pranav/.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/pranav/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin/java" -cp "/home/pranav/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/pranav/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/locales.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/total-2020.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/pranav/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/opt/ibc/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/pranav/Jts/paper ibcalpha.ibc.IbcGateway "/home/pranav/ibc/configPaper.ini"??????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Error: Could not find or load main class ibcalpha.ibc.IbcGateway???????????????????????????????????????????????????????

IBC returned exit status 1?????????????????????????????????????????????????????????????????????????????????????????????

autorestart file not found????????????????? ????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Gateway finished????????????????????????????????????????? ??????????????????????????????????????????????????????????????

??

Pranav?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

[

From: [email protected] <[email protected]> On Behalf Of Richard L King
Sent: Sunday, June 25, 2023 12:25 AM
To: [email protected]
Subject: Re: [ibc] help troubleshooting ibc startup script

?

To run Gateway 10.22 or later, you need to use the latest version of IBC.jar available on the IBC Github repository (but not yet available via a release zip file).

?

See this post:

?

/g/ibcalpha/message/2042

?

That’s slightly out-of-date, as the latest available IBC version is now 3.16.4-beta.2.

?

I really must make the effort to do another proper release very soon. Apologies for the delay.

?

Richard

?


Re: help troubleshooting ibc startup script

 

On Sat, Jun 24, 2023 at 07:54 PM, Richard L King wrote:

To run Gateway 10.22 or later, you need to use the latest version of IBC.jar available on the IBC Github repository (but not yet available via a release zip file).

See this post:

/g/ibcalpha/message/2042

That’s slightly out-of-date, as the latest available IBC version is now 3.16.4-beta.2.

Can I suggest this information is displayed more prominently? Groups.io offers the ability to pin important posts, see

/helpcenter/ownersmanual/1/pinning-topics-and-wiki-pages-to-the/overview

It would also be useful to point to it from the user guide, or README.md

Hopefully, that should save anyone else from wasting as much time as I have


Re: help troubleshooting ibc startup script

 

开云体育

Pranav

?

It looks like IBC.jar isn’t actually in /opt/ibc

?

Or perhaps you haven’t set execute permission on it?

?

R.

?

?

From: [email protected] <[email protected]> On Behalf Of Pranav Lal
Sent: Sunday, June 25, 2023 2:52 AM
To: [email protected]
Subject: Re: [ibc] help troubleshooting ibc startup script

?

Hi Richard,

?

I upgraded and the gateway cannot be found and ibc exits. It does not matter if I use version 1022 or 1023.

?

See below for the complete log.

[pranav@archlinux paper]$ cat ibc-_GATEWAY-1022_Sunday.txt?????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

================================================================================???????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Starting IBC version? on 2023-06-25 at 07:12:16????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Operating system: Linux archlinux 6.3.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 21 Jun 2023 20:46:20 +0000 x86_64 GNU/Linux

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Arguments:??????????????????????????????? ??????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

TWS version = 1022????????????????????????????????????? ????????????????????????????????????????????????????????????????

Program = Gateway??????????????????????????????????????????????????????????????????????????????????????????????????????

Entry point = ibcalpha.ibc.IbcGateway???????????????????????????????? ??????????????????????????????????????????????????

--tws-path = /home/pranav/Jts??????????????????????????????????????????????????????????????????????????????????????????

--tws-settings-path = /home/pranav/Jts/paper??????????????????????????????????????? ????????????????????????????????????

--ibc-path = /opt/ibc??????????????????????????????????????????????????????????????????????????????????????????????????

--ibc-ini = /home/pranav/ibc/configPaper.ini????????????????????????????????????????????????????? ??????????????????????

--mode =???????????????????????????????????????????????????????????????????????????????????????????????????????????????

--java-path =?????????????????????????????????????????????????????????????????????????????????????????????????? ????????

--user =???????????????????????????????????????????????????????????????????????????????????????????????????????????????

--pw =?????????????????????????????????????????????????????????????????????????????????????????????????????????????????

--fix-user =???????????????????????????????????????????????????????????????????????????????????????????????????????????

--fix-pw =?????????????????????????????????????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

=================================??????????????????????????????????????????????????????????????????????????????????????

Generating the classpath???????? ???????????????????????????????????????????????????????????????????????????????????????

Classpath=/home/pranav/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/pranav/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/locales.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/total-2020.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/pranav/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/opt/ibc/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/pranav/Jts/paper??????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Determining the location of java executable????????????????????????????????????????????????????????????????????????????

Location of java executable=/home/pranav/.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/pranav/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin/java" -cp "/home/pranav/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/pranav/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/locales.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/total-2020.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/pranav/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/opt/ibc/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/pranav/Jts/paper ibcalpha.ibc.IbcGateway "/home/pranav/ibc/configPaper.ini"??????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Error: Could not find or load main class ibcalpha.ibc.IbcGateway???????????????????????????????????????????????????????

IBC returned exit status 1?????????????????????????????????????????????????????????????????????????????????????????????

autorestart file not found????????????????? ????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Gateway finished????????????????????????????????????????? ??????????????????????????????????????????????????????????????

??

Pranav?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

[

From: [email protected] <[email protected]> On Behalf Of Richard L King
Sent: Sunday, June 25, 2023 12:25 AM
To: [email protected]
Subject: Re: [ibc] help troubleshooting ibc startup script

?

To run Gateway 10.22 or later, you need to use the latest version of IBC.jar available on the IBC Github repository (but not yet available via a release zip file).

?

See this post:

?

/g/ibcalpha/message/2042

?

That’s slightly out-of-date, as the latest available IBC version is now 3.16.4-beta.2.

?

I really must make the effort to do another proper release very soon. Apologies for the delay.

?

Richard

?


Re: help troubleshooting ibc startup script

 

开云体育

Hi Richard,

?

I upgraded and the gateway cannot be found and ibc exits. It does not matter if I use version 1022 or 1023.

?

See below for the complete log.

[pranav@archlinux paper]$ cat ibc-_GATEWAY-1022_Sunday.txt?????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

================================================================================???????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Starting IBC version? on 2023-06-25 at 07:12:16????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Operating system: Linux archlinux 6.3.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 21 Jun 2023 20:46:20 +0000 x86_64 GNU/Linux

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Arguments:??????????????????????????????? ??????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

TWS version = 1022????????????????????????????????????? ????????????????????????????????????????????????????????????????

Program = Gateway??????????????????????????????????????????????????????????????????????????????????????????????????????

Entry point = ibcalpha.ibc.IbcGateway???????????????????????????????? ??????????????????????????????????????????????????

--tws-path = /home/pranav/Jts??????????????????????????????????????????????????????????????????????????????????????????

--tws-settings-path = /home/pranav/Jts/paper??????????????????????????????????????? ????????????????????????????????????

--ibc-path = /opt/ibc??????????????????????????????????????????????????????????????????????????????????????????????????

--ibc-ini = /home/pranav/ibc/configPaper.ini????????????????????????????????????????????????????? ??????????????????????

--mode =???????????????????????????????????????????????????????????????????????????????????????????????????????????????

--java-path =?????????????????????????????????????????????????????????????????????????????????????????????????? ????????

--user =???????????????????????????????????????????????????????????????????????????????????????????????????????????????

--pw =?????????????????????????????????????????????????????????????????????????????????????????????????????????????????

--fix-user =???????????????????????????????????????????????????????????????????????????????????????????????????????????

--fix-pw =?????????????????????????????????????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

=================================??????????????????????????????????????????????????????????????????????????????????????

Generating the classpath???????? ???????????????????????????????????????????????????????????????????????????????????????

Classpath=/home/pranav/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/pranav/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/locales.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/total-2020.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/pranav/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/opt/ibc/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/pranav/Jts/paper??????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Determining the location of java executable????????????????????????????????????????????????????????????????????????????

Location of java executable=/home/pranav/.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/pranav/.local/share/i4j_jres/Oda-jK0QgTEmVssfllLP/1.8.0_202_64/bin/java" -cp "/home/pranav/Jts/ibgateway/1022/jars/jackson-core-2.12.3.jar:/home/pranav/Jts/ibgateway/1022/jars/jts4launch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-linux64-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/jxbrowser-swing-7.29.jar:/home/pranav/Jts/ibgateway/1022/jars/locales.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-api-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/log4j-core-2.17.1.jar:/home/pranav/Jts/ibgateway/1022/jars/total-2020.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-1022.jar:/home/pranav/Jts/ibgateway/1022/jars/twslaunch-install4j-1.12.jar:/home/pranav/Jts/ibgateway/1022/.install4j/i4jruntime.jar:/opt/ibc/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/pranav/Jts/paper ibcalpha.ibc.IbcGateway "/home/pranav/ibc/configPaper.ini"??????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Error: Could not find or load main class ibcalpha.ibc.IbcGateway???????????????????????????????????????????????????????

IBC returned exit status 1?????????????????????????????????????????????????????????????????????????????????????????????

autorestart file not found????????????????? ????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Gateway finished????????????????????????????????????????? ??????????????????????????????????????????????????????????????

??

Pranav?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

[

From: [email protected] <[email protected]> On Behalf Of Richard L King
Sent: Sunday, June 25, 2023 12:25 AM
To: [email protected]
Subject: Re: [ibc] help troubleshooting ibc startup script

?

To run Gateway 10.22 or later, you need to use the latest version of IBC.jar available on the IBC Github repository (but not yet available via a release zip file).

?

See this post:

?

/g/ibcalpha/message/2042

?

That’s slightly out-of-date, as the latest available IBC version is now 3.16.4-beta.2.

?

I really must make the effort to do another proper release very soon. Apologies for the delay.

?

Richard

?


Re: help troubleshooting ibc startup script

 

开云体育

Hi,

?

Also see the LoginDialogDisplayTimeout setting.

?

Sometimes, the gateway program takes time to display the login dialogue.

?

I have upgraded to 1023 and am trying to determine why it has failed to launch. I have checked my logs and am told that no login dialogue appeared. I am giving ibc more time to wait for this dialogue.

?

Pranav

?

From: pranav@... <pranav@...>
Sent: Saturday, June 24, 2023 11:45 PM
To: '[email protected]' <[email protected]>
Subject: RE: [ibc] help troubleshooting ibc startup script

?

Hi,

<snip No, why would I want to do that? I'm not sure it is relevant in my case, I'm paper trading

PL] I am trying to remember what I had read in that previous thread. If you were using a live account, ?there was something to do with ibc causing the gateway to restart before it logged in.

?

Pranav


Re: help troubleshooting ibc startup script

 

开云体育

To run Gateway 10.22 or later, you need to use the latest version of IBC.jar available on the IBC Github repository (but not yet available via a release zip file).

?

See this post:

?

/g/ibcalpha/message/2042

?

That’s slightly out-of-date, as the latest available IBC version is now 3.16.4-beta.2.

?

I really must make the effort to do another proper release very soon. Apologies for the delay.

?

Richard

?


Re: help troubleshooting ibc startup script

 

开云体育

Hi,

<snip No, why would I want to do that? I'm not sure it is relevant in my case, I'm paper trading

PL] I am trying to remember what I had read in that previous thread. If you were using a live account, ?there was something to do with ibc causing the gateway to restart before it logged in.

?

Pranav


Re: help troubleshooting ibc startup script

 

Have you adjusted the setting SecondFactorAuthenticationExitInterval? I have set mine to 120 seconds which is what helped me start with gateway 1022.

No, why would I want to do that? I'm not sure it is relevant in my case, I'm paper trading


Re: help troubleshooting ibc startup script

 

开云体育

Hi Andy,

?

Have you adjusted the setting SecondFactorAuthenticationExitInterval? I have set mine to 120 seconds which is what helped me start with gateway 1022.

?

I’ll upgrade to 1023 and see what happens.

?

Pranav