Skip to content
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

connection refused on the latest version #86

Open
rrahmati opened this issue Jun 18, 2023 · 4 comments
Open

connection refused on the latest version #86

rrahmati opened this issue Jun 18, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@rrahmati
Copy link

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 rrahmati added the bug Something isn't working label Jun 18, 2023
@rrahmati rrahmati changed the title refused on the latest version connection refused on the latest version Jun 18, 2023
@Matb85
Copy link

Matb85 commented Jun 19, 2023

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

@jlixfeld
Copy link

Stable works, FWIW.

@systudio
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants