开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

IB Gateway auto-restart fails - "COMPETE: session kicked out" and "Disconnect all farms due to competing session [control=false,context=]."


 

Hi,
My first post here and I hope I'm posting in the right way and place.

Context:
- I have a Docker container running an instance of the Interactive Brokers Gateway, paper trading account, on a remote Linux server
- The IB Gateway is set to auto-restart every day at 8:30 AM GMT
- I use Xvfb, a virtual display, so I have no physical graphic interface whilst running
- I am currently solely testing the daily auto-restart, thus the app has no clients connected and no requests whatsoever submitted

My problem is that so far, it never made it to a second restart: I may start the container today, that will successfully (reading the logs and experiencing the "another session is running..." warnings both on my phone or local instance of IB Gateway/TWS) launch and run IB Gateway, it will make it to the following day restart and succede (judging again from logs and trying to login from somewhere else); however, the second day auto-restart always fails. Worth to clarify that the failing restart is not on a Saturday/Sunday, which I'm aware is expected to require authentication again.

What I can see in the launcher.log of a succesfull restart as opposed to the one of the failing restart is that the latter, at some point after the message
?
"SPLASH Authenticating"
?
reads
?
"COMPETE: session kicked out"
?
and few milliseconds after
?
"Disconnect all farms due to competing session [control=false,context=]."
?
and then after a few (just number after SPLASH ending differently)

"
SPLASH 20001 step 2 AuthDispatcher.processDataItr"
"Received NS_TEST_REQUEST"
....
?
i get a
?
"Socket for connection cdc1.ibllc.com:4001 (SSL) was closed by peer."
"Listener thread terminating [sessionID=2] [seen=399,totalShifted=399,moreAvailable=0]"

"Disconnecting cdc1.ibllc.com:4001 (SSL) [disconnectDetails=DisconnectDetails[sessionID=2,endPoint=cdc1.ibllc.com:4001 (SSL),reason=DISCONNECT_ON_BROKEN_SOCKET,cause=null,systemMessage=recv: EOF,keepSocketOpen=false]]..."

"Socket closed."

then
?
"SPLASH Attempt 1: server error, will retry in seconds"
?
And after this the whole log, for hours will repeat everything again and again with just increasing the attempt number in the following message
?
"SPLASH Attempt 2: connecting to server"

In
a successful restart log, right after the first message listed above, things would have taken a different fold, the authentication would succede, and some routing tasks before rotating to the operational log would be printed.

To be frank, I do have a X server option when for when I test locally on my machine where I built the Doicker image, but I never tested?for days the behaviour to see what might pop up. I did test few restarts in a row by just changing the restart time on the go, and they all succeded, but I understand many things change between the two setups, so this might be of little help.

Anyone care to help with what's going on here?
I surely can provide the logs if needed.
Thank you,
Renato?

?

Join [email protected] to automatically receive all group messages.