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 #9

Open
paduel opened this issue May 2, 2017 · 3 comments
Open

Connection refused #9

paduel opened this issue May 2, 2017 · 3 comments

Comments

@paduel
Copy link

paduel commented May 2, 2017

Great job!

I build the image, custom the .ini files and compose the container in local following the instruccions, with Linux.

But when I try to connect with my Python script to port 4003, I get this error to the IBController running in the container:

+==============================================================================
tws_1 | +
tws_1 | + IBController version 3.2.0
tws_1 | +
tws_1 | + Running GATEWAY 960
tws_1 | +
tws_1 | + Diagnostic information is logged in:
tws_1 | +
tws_1 | + /opt/IBController/Logs/ibc-3.2.0_GATEWAY-960_Tuesday.txt
tws_1 | +
tws_1 | +
tws_1 | sun.cpu.isalist =
tws_1 | ------------------------------------------------------------
tws_1 | 21:00:46:522 IBController: using default settings provider: ini file is /root/IBController/IBController.ini
tws_1 | 21:00:46:523 IBController: using default login manager: getting username and password from args
tws_1 | 21:00:46:523 IBController: using default config dialog manager: constructor parameter isGateway=true
tws_1 | 21:00:46:523 IBController: using default trading mode manager: constructor parameter args: tradingMode=paper
tws_1 | 21:00:46:523 IBController: using default config dialog manager
tws_1 | 21:00:46:526 IBController: IBControllerServer is started.
tws_1 | 21:00:46:571 IBController: IBControllerServer listening on address: 7db2df47dbe4/172.17.0.2 port: 7462
tws_1 | 21:00:46:627 IBController: TWS settings directory is /root/Jts
tws_1 | 21:00:47:375 IBController: Getting config dialog
tws_1 | 21:00:47:375 IBController: Creating config dialog future
tws_1 | 21:00:47:998 IBController: detected frame entitled: Servidor IB; event=Activated
tws_1 | 21:00:48:001 IBController: detected frame entitled: Servidor IB; event=Opened
tws_1 | Forking :::4001 onto 0.0.0.0:4003\n
tws_1 | 2017/05/02 19:01:19 socat[119] E connect(5, AF=2 127.0.0.1:4001, 16): Connection refused
tws_1 | 2017/05/02 19:01:22 socat[120] E connect(5, AF=2 127.0.0.1:4001, 16): Connection refused
tws_1 | 2017/05/02 19:01:25 socat[121] E connect(5, AF=2 127.0.0.1:4001, 16): Connection refused

I try with different script but always is the same.

Any idea what could be the problem ?

Thanks.

@doron-cohen
Copy link

I am having the same problem... tried to modify the run script, ports and env vars but nothing.

@sbres
Copy link

sbres commented Nov 15, 2017

I had the same problem.

What happened is that the account credentials were not the good ones.
Just double check if you are using the good credentials of the paper or live account.

Cheers.

@Slavian2015
Copy link

I have the same problem. I double checked my credentials. It didn't help.
I'm trying to use paper account, but why it's not working?

Does smbd have more ideas what to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants