-
Notifications
You must be signed in to change notification settings - Fork 7
Can't add attribute #10
Comments
The same situation with clean install. @bourtemb @chedburgh any ideas? |
Hi, reason is that configuration in the DB has been moved from hdbpp-cm to hdbpp-es, but modification is still in progress and not yet merged in master branch, you should try integrated-build branch. @dlacoste-esrf should be working on this. |
Now I have error compiling integrated-build, HdbClient.h not found. What version of libhdbpp should I use with TimescaleDB? https://github.com/tango-controls-hdbpp/libhdbpp-timescale/tree/master/thirdparty/libhdbpp or https://github.com/tango-controls-hdbpp/libhdbpp? |
Hi, there is as well a custom cmake flag FETCH_LIBHDBPP, so that libhdbpp is downloaded and built with the event subscriber. Sorry for the sad state of the repositories right now, I'll try to fix it up soon. |
Hello.
|
I have the same issue, it looks like it is crashing in HdbppTimescaleDbUtils::extractConfig |
It looks like Tango received a std::bad_alloc exception during the device server initialization. |
Is no one following the combined guide on hdbpp-timescale-project? https://github.com/tango-controls-hdbpp/hdbpp-timescale-project/blob/master/doc/build.md Since some of the branches have been merged, you will need to update what the integrated project builds, but it should checkout and build everything for you. You no longer need to build the individual components. |
As I already said, this seems a bug in libhdbpp-timescale, since bypassing HdbppTimescaleDbUtils::extractConfig make it work. |
Maybe this is version mismatch? Since some components have there updated branch merged. Some have not been tagged correctly either. Can I suggest trying: hdbpp_cm - master If the issue is in HdbppTimescaleDbUtils::extractConfig(), just put some cout statements in and see what configuration parameter it is crashing on. Is there a config parameter without an equals sign? There is information here on the config parameters: https://github.com/tango-controls-hdbpp/libhdbpp-timescale/blob/master/doc/configuration.md |
You are right! It happens only when using libhdbpp-timescale not project-build2 with libhdbpp master (which is actually v2). So HdbppTimescaleDbFactory::create_db is called with the wrong parameters ending with a vector configuration not initialized so making explode extractConfig |
The right combination for v.2 at the moment is |
Excellent. Suggested TODO:
Its vital the repositories are tagged correctly when changes occur, otherwise we can hit some madness. |
I am sorry, but I was (again) wrong: with the above combination I have HdbClient: Error loading symbol getDBFactory from library: libhdb++timescale.so I am still missing something. |
DId you use libhdbpp-timescale branch project-build2? If so, try master. |
No master have the v1 signature of HdbppTimescaleDbFactory::create_db, probably batch-insert is the right one, testing now. |
Its been a while since I was on this, but I think batch-insert just branches from project-build2. I may need to look into this tonight. Something seems to have been mixed up somewhere. |
Same error with batch-insert. |
There seems to be something fishy here. I made libhdbpp-timescale no longer dependent on libhdbpp. It includes the headers it needs itself. Yet I see reference to it in the cmake file. Maybe there is a missing commit from me on the project-build2 branch? project-build2 is correct. Investigating for a few mins. |
Right, libhdbpp-timescale is implementing getDBFactory, but not exporting it. Perhaps we need to add
To the end of AbstractDb.hpp? This needs to be outside the namespace. It can live in one of the other public headers also. |
I don't know. |
I have compiled and run a test application via the hdbpp-timescale-project without the error. I will push the changes to that project I made. |
I also pushed the fix to libhdbpp-timescale (that I posted above). Its on the project-build2 branch. Using the hdbpp-timescale-project this should all just work. I don't have time to test individual components. I'll setup a project board to get some of these tickets/PR's merged in an orderly fashion, if that helps. Individually, as mentioned by @gscalamera I think the following will work: hdbpp_cm - master |
I've tried this set and ES still has memory allocation error.
hdbpp-timescale-project cmake has multiple errors, here are logs: |
We have to fix the repos, but I am not sure how long it will take to make them clean again… If you want a quick fix, you have to rebuild libhdbpp-timescale, but on the CMakeLists.txt in src there is a flag BYPASS_LIBHDBPP, it should be removed, as it is intended to be true for the new versions. Sorry it's a bit of a mess right now, we will try to fix it as fast as possible |
What are you compiling on? I see pthread missing in the errors!
|
I updated the hdbpp-timescale-project to reflect the merged and tagged dependencies. Everything is now set for v2.0.0 apart from libhdbpp-timescale. This works and builds for me on Ubuntu 20. Afraid I don't have time to go deeper into the other errors. |
@dlacoste-esrf It's ok, I'm just trying to test and help fixing this, take your time. |
It's Debian 9 with manually updated CMake 3.18 to match requirements. Freshly installed Debian 10 with CMake 3.13 has similar problems with pthread. Also there is an error detecting PostgreSQL:
|
Regarding the PostgreSQL error you can try passing -DPostgreSQL_TYPE_INCLUDE_DIR=/usr/include/postgresql to cmake |
Thanks, it works. I've successfully subscribed to an attr and can see data via Viewer. I hope that soon we will be able to install the HDB without any edits. I'll fork repos as a temporary solution.
It solved problem with include dir, but PThread is still missing. |
Hello. When I try to add new attribute to the archiving list using Configurator app or by command in "Test Device", I see errors in log files.
Previously configured attributes, but deleted from ES, are added without errors again.
LibConfiguration property:
PostgreSQL 11, TimescaleDB 1.6.0
Also I've recently updated hdbpp-cm, because there were problems with transactions from CM DS (picture from Zabbix). Can be connected?
The text was updated successfully, but these errors were encountered: