missing DServer in ArchivingRoot (HDB, Snap and TDP)
|
|
---|---|
Hi tangoers, I recently encountered some problems while using Archiving system. It seems to be the reason why we had problems with panorama binding (http://www.tango-controls.org/community/forums/c/general/installation/installation-of-panorama-binding/). Investigating the example given in [ARCHIVINGROOT_DIRECTORY]/doc/sample-hdb-device-installation.sql, I realized some of the HDB and TDB DS are installed without any "DServer". It implies at least HdbExtractor, TdbExtractor and HDBTDBArchivingWatcher. At page 101 of TANGO 9.2 control system handbook (http://ftp.esrf.fr/pub/cs/tango/tango_92.pdf , already referenced at page 219 of TANGO 8.1 handbook), we can read : 8.1.7.2 The DServer class The installation of this device DServer seems automatic, it probably does not come from $ARCHIVINGROOT/doc/sample-hdb-device-installation.sql Do you have any idea where is the problem ?
- Philippe
|
|
|
---|---|
Hi Philippe, I am not an expert in the HDB archiving system but I wonder if this behaviour (no DServer admin device) is not due to the fact that the HDB device servers are written with Java and are using an old version of the Java binding. In this case it has always been like this and is maybe not a problem… I let the HDB experts answer. Andy |
|
|
---|---|
Thank you Andy. It seems that the fact that DServer is missing makes TANGO launch an exception. I wait for the answer of experts to understand how we could avoid this exception to crash other applications.
- Philippe
|
|
|
---|---|
Hello The archiving devices are indeed written in java, but they do not all use the old IDL (for example, HDBTDBArchivingWatcher uses the new idl). That being said, I think the problem comes from somewhere else : A user already told me (but I did not take time to correct this) that the sample-hdb-device-installation.sql creates the device instances in tango db but not the device classes. For that reason, this script may not work. So you might need to register the device classes in tango db before running the script. But if this is not the problem, you also have to check the devices and device classes properties. For example, HdbArchiver class should contain the properties to describe how to connect to your historical database. You should take a look at [ARCHIVINGROOT_DIRECTORY]/doc/Archiving Devices Properties_v4.pdf Don't hesitate to contact me in case of problems. Regards,
Rg
|
|
|
---|---|
Hi @girardot, I read the doc, thank you for including it, it's very useful and details about properties are very helpful.:) It seems the sample-hdb-device-installation.sql is made for Oracle Database and the properties should be fixed for a MySQL database. According to the doc, I modified the script to only define following class properties for MySQL:
Some properties are defined into device properties instead of class properties into the sample script. Is it an error or could those properties be defined into both? In this last case, what is the good way to define those properties? I see that scripts exists for both InnoDB and MyISAM. Do you confirm the good practice is to use InnoDB? (this format is the one used by default in MySQL since a few years) The result script (with only one device for each DS) is attached. Could you confirm me these scripts are correct? Regards.
- Philippe
|
|
|
---|---|
After some investigations and thanks to some insights from Gwenaëlle, I found some answers I put downside for information:philippegThe InnoDB scripts crashed so I did not succeed to test it at this time. philippegThere is an error in "doc/Archiving Devices Properties_v4.pdf" concerning the DbUser and DbPassword for Archivers which are defined to hdb/hdb and tdb/tdb instead of hdbarchiver/hdbarchiver and tdbarchiver/tdbarchiver.
- Philippe
|
|
|
---|---|
After some tests, here are some fixes to make ArchivingRoot work with MariaDB:
- Philippe
|