Live web server not updating

Posted By: loopiezlol

Live web server not updating - 04/27/22 08:12

I've been running a Zorro system for almost two months now.

Sometimes I'd run into connectivity issues with IB Gateway, but overall the whole thing worked pretty well.

However, sometimes I notice that the built-in web server reporting stops updating, requiring me to restart the Zorro instance.

In this screenshot you can see how the live status drifted from the HTML report, the former showing updates for the 27th, while the latter stopped on the 26th.
[Linked Image]

I'm wondering if anyone else ran into this issue and figured out how to alleviate it without manual intervention (i.e. restarting whenever it breaks).
Posted By: Grant

Re: Live web server not updating - 04/27/22 09:24

From what I see the disconnection is caused by your first issue: "no security definition..."

Have a look at this documentation: https://interactivebrokers.github.io/tws-api/rtd_fqa_errors.html#rtd_common_errors_no_security
Posted By: Petra

Re: Live web server not updating - 04/27/22 17:46

Gateway disconnects every Sunday anyway, so you must always restart it on Monday. But you need not restart Zorro, only the Gateway.
Posted By: loopiezlol

Re: Live web server not updating - 05/20/22 10:03

Thanks for the reply Petra and Grant!

I am aware of the IB Gateway restarts. On Sundays I'm manually restarting the gateway, while on the rest of the days I rely on IB Gateway's auto-restart feature.

However, I noticed that sometimes mid-week, Zorro fails to successfully connect to the IB. Usually, this gets resolved the next day, after the restart.

Yet, this week I noticed the behaviour happening 2 days in a row.
[Linked Image]
- on Wednesday 18th, at 12:00 UTC, the IB Gateway restart kicked-in
- seems that Zorro failed to properly connect
- the Live trading status seems to have halted then
- up until the next restart (Thursday 19th) the total Balance stayed constant at 1885. this makes me think Zorro was unable to fetch any updated value

Same thing happened on Thursday 19th:
[Linked Image]
- got the expected IB disconnect at 12:00 UTC (due to Gateway restart)
- this time, there's an extra error on a security "No Data". this seems to happen on a random basis and may not be the root cause of the issue, as the previous connection issue wasn't accompanied by the same error
- you can notice that the IB Gateway "Market Data Farm" and "Historical Data Farm" aren't being used given their red indicator
- likewise, Zorro's Broker connection status is red
- the live status failed to update since Wednesday

Any clues how to further debug this? Is there a verbose flag particularly aimed at broker connectivity?
Posted By: Petra

Re: Live web server not updating - 05/20/22 11:16

I don't know the reason of the connection problem, but as long as Zorro is not connected, it cannot trade on that account or update the balance.

The software is from IB, so I would not know either how to debug it. Try changing the port,that's the only parameter that you can affect on the Zorro side. Maybe that port is used by another software on your PC, or something like that. Normally the IB connection is very reliable, I have never heard so far of connection issues.

You can manually reconnect Zorro when you click [Stop] and then answer [No] on the requester. Zorro will then log out and log in.

© 2024 lite-C Forums