I had a similar issue with IBC+IBGW+my trading app running in a Docker container. I used a cron job to shutdown the container after market close each day and then restart it before market open. Starting on Sunday with a full user login (with 2FA via IB
Key) it restarts ?fine one or two times but then fails around mid-week and I’m not able anymore to start up until the following Sunday (when IBGW requires a full login again via IBC). Not even when just running IBGW+my app on local Mac (not Dockerized) using
the same user login.?
?The error message was also along the lines that that “duplicate client IDs were running”. I believe I hard coded client ID 0 so it receives orders from all clients (also from TWS running on an alternate user login).?
I never looked further into the root cause of this but ?I suspect it may be because of a shutdown of the docker container that leaves some client connection active, maybe between IBGW and IB backend as it survives even the IBGW shutdown or running in a
different environment (local vs Dockerized).?
rgds, Bart
On Mar 15, 2025 at 10:28?AM -0700, 闯ü谤驳别苍 Reinold via groups.io <TwsApiOnGroupsIo@...>, wrote:
toggle quoted message
Show quoted text
Hard to say what is going on, Renato.
While IBGW does not implement fancy forms and complex media content (compared to TWS), it still needs a complete and pretty sophisticated graphics subsystem for JavaFX 2.0 to work properly. And mot likely a window manager as well. I have been using Xtigervnc
with Xfce4 on Ubuntu for years and it works great. But I don't use Docker containers.
And you might want to get this working manually before you start IBGW with IBC since IBC will not be able to help you if the root cause relates to the graphics subsystem or X11 window management.
闯ü谤驳别苍
On Sat, Mar 15, 2025 at 12:07 PM, Renato Votto wrote:
Thank you for your help, much appreciated.
If I cannot come up with a solution shortly, I'll give up and just go with IBC. Though I liked the portable container implementation, the minimal settings and the only need to delegate to a cron task for the weekly re-authentication.
By the way, here's the container source, if anyone wants to play with it (originally forked by Ryan Clouser similar concept):
?
Renato