extrange / ibkr-docker

Run IBKR Gateway/TWS in a Docker container
157 stars 34 forks source link

Manual action needed for paper in stable and latest #70

Closed tZimmermann98 closed 7 months ago

tZimmermann98 commented 7 months ago

Hi there,

first, thanks for the great work! Your docker solution is really helpful!

Sadly, when I run the gateway in paper mode, it will only accept connections after I manually closed the alert about using a paper account (see picture and logs). It says "Peer closed connection. clientId 4 already in use?" but as you can see on the first screenshot, it is not in use.

Any Ideas how I can solve this automatically without having to manually close the alert every time?

Logs:

2023-12-06 12:32:40 Connecting to IB...
2023-12-06 12:32:40 Trying to connect...
2023-12-06 12:32:41 Peer closed connection. clientId 4 already in use?
2023-12-06 12:32:45 API connection failed: TimeoutError()
2023-12-06 12:32:45 Connect failed
2023-12-06 12:32:45 Attempt 1 of max 10
2023-12-06 12:32:45 Retrying in 60 seconds...
2023-12-06 12:33:45 Peer closed connection. clientId 4 already in use?
2023-12-06 12:33:50 API connection failed: TimeoutError()
2023-12-06 12:33:50 Connect failed
2023-12-06 12:33:50 Attempt 2 of max 10
2023-12-06 12:33:50 Retrying in 60 seconds...
2023-12-06 12:34:51 Connected to IB

Screenshot 2023-12-06 at 12 34 11 Screenshot 2023-12-06 at 12 35 09

tZimmermann98 commented 7 months ago

Fixed it by adding this to the environment section in the compose file:

IBC_AcceptNonBrokerageAccountWarning: yes