Events cause heartbeat errors in TangoBox

Hello Tango community,

I’ve created a device server in TangoBox-9.3 that makes use of the Tango events+polling mechanism to publish change events to clients, which I’ve been testing against the AtkPanel.

At first everything seemed to be working as expected, and the change events were being received by AtkPanel (according to the Atk diagnostic) every polling period. However, recently this seems to have stopped working. AtkPanel appears only to receive events every 10 seconds whereupon a “No heartbeat from dserver/…” error message appears in the Atk Error History. Only then do the attribute values in AtkPanel get updated.

In my TangoBox I see the same behaviour with the TangoTest device ‘sys/tg_test/1’ for the few attributes that are polled, and I’ve also noticed it occur when testing ‘sys/tg_test/1’ in a freshly downloaded, unmodified, TangoBox-9.3 and TangoBox-9.2. As for what changed in my particular instance to start this behaviour, I cannot say.

My device server belongs to host tangobox:10000, and the Tango Host in Jive, from where I am starting the AtkPanels, is also set to tangobox:10000.

Any advice on how to debug this issue would be greatly appreciated. Thanks in advance.

Phil

Hi Phil,

Similar heartbeat problems seen on the Tango Box have been reported: please see Heartbeat errors when using TangoBox9.3-aws · Issue #89 · tango-controls/JTango · GitHub and Heartbeat errors when using network alias for TANGO_HOST · Issue #90 · tango-controls/JTango · GitHub

These problems should be solved in JTango 9.6.6

Kind regards,
Reynald

Hi Reynald,
Thanks for such a quick response. Our development is c++ but I suppose AtkPanel relies on JTango? Would that be where the issue is coming from?
All the best,
Phil

[quote=“Phil”]Hi Reynald,
Thanks for such a quick response. Our development is c++ but I suppose AtkPanel relies on JTango? Would that be where the issue is coming from?[/quote]

Exactly

Hi again Reynald,
Just as you advised we downloaded the latest JTango jar file from
https://github.com/tango-controls/JTango/releases/tag/9.6.7
and pointed /usr/local/share/java/JTango.jar to it. Events seem to be working as expected now.
Thanks very much for your help.
Phil