UnusualAlpha / ib-gateway-docker

Docker image with IB Gateway and IBC
MIT License
234 stars 94 forks source link

connection refused on the latest version #86

Open rrahmati opened 1 year ago

rrahmati commented 1 year ago

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):

Matb85 commented 1 year ago

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

jlixfeld commented 1 year ago

Stable works, FWIW.

systudio commented 1 year ago

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.

JacobKarlen commented 1 year ago

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