Hi Reynald,
thank you very much for your prompt reply.
Indeed I will upgrade to the latest Tango Version to cope with the Event problems.
I will now go a bit more into details about my other problems:
I was playing with the Tango Starter and added the TangoTest DS to the Starter without any error.
However, even after a restart TangoTest DS was automatically started and working, but it was not shown in Astor and I could not stop/start the TangoTest DS via Astor.
I was wondering if this might be linked to the issue with the multiple network interfaces.
Because usually the DS which I also run on my Tango Host machine show a hostname/IP of the external network and the hostname/IP of the actual internal/Tango network only as alternative host and then there are even virtual network interfaces from Docker shown as alternative hosts.
To that end, I wanted to tell Tango to only run on the internal network, so I changed the endpoint in the /etc/init.d/tango-db to
if [ $CANON_HOST = "localhost" ]
then
DAEMON_ARGS="2 -ORBendPoint giop:tcp:$HOST:$PORT"
else
DAEMON_ARGS="2 -ORBendPoint giop:tcp:$HOST:$PORT"
tango_admin --ping-network 40 || return 2
fi
My hostname in the local network in which I use Tango is ampere.sxr.lab but I have the following configuration in my /etc/hosts file
127.0.0.1 localhost
127.0.1.1 ampere.sxr.lab
Due to that the host of all TangoDS which run on the Tango Host machine is:
ampere.sxr.lab (127.0.1.1)
This leads the to problems of clients on other hosts, which want to connect to TangoDS or even the TangoDB since they can of course not access 127.0.1.1.
If I use e.g. always IP address instead of Hostnames I also receive errors, when accessing the TangoDB and I fear this is because I set the bind-address of my mysql-server to 127.0.0.1.
So you see everything is quite a mess and I would appreciate any working configuration of TangoDB/hosts/mysql to run smoothly with multiple network cards.
After all this back and forth I can revert all changes to get jive and Sardana back to work, but not Astor which throws now the following error:
Display is :0
Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
at admin.astor.tools.MySqlUtil.manageTangoHostProperties(MySqlUtil.java:231)
at admin.astor.AstorUtil.getTangoHostList(AstorUtil.java:714)
at admin.astor.AstorTree.initTangoObjects(AstorTree.java:375)
at admin.astor.AstorTree.initComponent(AstorTree.java:305)
at admin.astor.AstorTree.<init>(AstorTree.java:110)
at admin.astor.Astor.buildTree(Astor.java:181)
at admin.astor.Astor.<init>(Astor.java:107)
at admin.astor.Astor$35.run(Astor.java:1361)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at org.GNOME.Accessibility.AtkWrapper$6.dispatchEvent(AtkWrapper.java:715)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
So astor has now obviously also problems to determine the correct hostname, right?
I checked the Mysql DB and indeed some the devices have now the internal hostname as host and some have the hostname from the external network (how it was all the time before)
Many thanks in advance!
Daniel