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

Connection refused

Open paduel opened this issue 7 years ago • 3 comments

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.

paduel avatar May 02 '17 19:05 paduel

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

doron-cohen avatar Jun 20 '17 19:06 doron-cohen

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.

sbres avatar Nov 15 '17 20:11 sbres

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?

Slavian2015 avatar Sep 30 '20 07:09 Slavian2015