¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: connection timeouterror


 

Thanks Richard. Yes that was the whole logfile. As of this morning I was having the same issues. I invoked my python live trading restart script on the headless server which first attempts to kill any active gateways in case they have become problematic and then invokes the ibc script to restart it (I haven't figured out how to soft terminate the gateway reliably yet). Then the script attempts various client connections (using ib_insync) for different tasks. The first two connections succeeded but the third failed. When I checked to see if the live gateway was up, it wasn't anywhere to be found - so presumably had just crashed of its own accord. Weirdly the same script for paper trading succeeded without a hiccup and is still running smoothly. After several repeat attempts the live trading? finally started to work without hiccups too for reasons that are completely opaque to me.

The only thing that changed prior to the succesful restart are permissions on another machine physically stored elsewhere with IP permissions to connect to the headless server. I disabled these permissions on the server firewalls, so it can no longer connect. Could there have been, however unlikely, a bad actor tunneling via that machine attempting to gain access to my live account which was then blocking attempts from the server to connect??

Separate Q. In the Jts folder I can see another launcher.log (for each day of the week) but should there also separate ones for the live and paper accounts here which are worth investigating?

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