ib-gateway-docker icon indicating copy to clipboard operation
ib-gateway-docker copied to clipboard

connection refused on the latest version

Open rrahmati opened this issue 1 year ago • 4 comments

Describe the bug I am getting connection refused on the latest version trying to login to a paper trading account. The stable version works just fine.

Container logs ib-gateway_1 | 2023-06-18 18:18:43:807 IBC: Detected frame entitled: IBKR Gateway; event=Activated ib-gateway_1 | 2023-06-18 18:18:43:816 IBC: Detected frame entitled: IBKR Gateway; event=Focused ib-gateway_1 | 2023-06-18 18:18:43:818 IBC: Detected frame entitled: IBKR Gateway; event=Opened ib-gateway_1 | 2023/06/18 18:18:56 socat[217] E connect(5, AF=2 127.0.0.1:4000, 16): Connection refused ib-gateway_1 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ib-gateway_1 | 2023-06-18 18:19:40:953 IBC: IBC closing after TWS/Gateway failed to display login dialog ib-gateway_1 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ib-gateway_1 | 2023-06-18 18:19:40:953 IBC: Exiting with exit code=1112 ib-gateway_1 | IBC returned exit status 88 ib-gateway_1 | IBC will restart shortly

Versions (please complete the following information):

  • OS: Ubuntu 22

rrahmati avatar Jun 18 '23 18:06 rrahmati

I can also confirm this bug, I'm on an M2 MacBook Air

Matb85 avatar Jun 19 '23 16:06 Matb85

Stable works, FWIW.

jlixfeld avatar Jun 19 '23 19:06 jlixfeld

Seems the latest version of IB gateway automatically listens to port 4001 (for live) and port 4002 (for paper). Setting OverrideTwsApiPort=4000 in IBC config.ini could solve the issue.

systudio avatar Jun 28 '23 04:06 systudio

See #88. Setting ENV IBC_VERSION=3.17.0 resolved the issues for me

JacobKarlen avatar Jul 15 '23 09:07 JacobKarlen