Project

General

Profile

Bug #15601

artdaq_database runs into problems working with FHiCL documents designed for artdaq v2

Added by John Freeman over 2 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
artdaq-database
Target version:
-
Start date:
02/20/2017
Due date:
% Done:

0%

Estimated time:
Experiment:
-
Co-Assignees:
Duration:

Description

As of this writing, Feb-20-2017, if I perform the artdaq-demo installation as described on the artdaq-demo wiki with the "--run-demo" option (i.e., I install artdaq-demo v2_09_01), everything works fine, and the FHiCL documents used to initialize the artdaq processes during the demo get saved to the base directory where the installation occurred. However, I can't seem to commit (import) the FHiCL documents into the database. On mu2edaq01, if I do the following:

. .database.bash.rc
mkdir run_demo_output
cp -p ~/artdaq-demo_wiki-test/*.fcl run_demo_output/  # ~/artdaq-demo_wiki-test contains the aforementioned *.fcl documents
conftool.sh  -o import_global_config -g exampleforissue001 -v ver001 -s run_demo_output

I end up seeing errors like the following:
Caught fhicl::exception message=---- Can't insert key BEGIN
  daq
  ---- Can't insert key BEGIN
    fragment_receiver
    ---- Can't insert key BEGIN
      destinations
      ---- Can't insert key BEGIN
        d2
        ---- Can't insert key BEGIN
          host_map boost::bad_any_cast: failed conversion using boost::any_cast
        ---- Can't insert key END
      ---- Can't insert key END
    ---- Can't insert key END
  ---- Can't insert key END
---- Can't insert key END

It seems like the database code can't store the "destinations" FHiCL table. Not shown above, but also present in the error messages, are complaints about the "sources" table as well. Now, if I go into the *.fcl documents and replace snippets such as
    destinations: {
      d4: { transferPluginType: MPI destination_rank: 4 max_fragment_size_words: 2097152 host_map: [{rank: 0 host:\
 "mu2edaq01.fnal.gov" portOffset: 5300},{rank: 1 host: "mu2edaq01.fnal.gov" portOffset: 5310},{rank: 2 host: "mu2edaq0\
1.fnal.gov" portOffset: 5320},{rank: 3 host: "mu2edaq01.fnal.gov" portOffset: 5330},{rank: 4 host: "mu2edaq01.fnal.gov\
" portOffset: 5340},{rank: 5 host: "mu2edaq01.fnal.gov" portOffset: 5350}]}

    }

with
destinations: { }

and likewise for sources, it's possible to commit the FHiCL documents. It would be nice, however, to be able to commit the full FHiCL documents into the database without a need for information-destroying edits.

History

#1 Updated by Eric Flumerfelt over 2 years ago

  • Category set to artdaq-database

#2 Updated by John Freeman over 2 years ago

The backslashes at the end of every line in the FHiCL snippet above are an artifact of my cut-and-paste; they're not part of the FHiCL.

#3 Updated by Gennadiy Lukhanin about 1 year ago

  • Status changed from New to Resolved

Fixed in the version v1_04_46 of artdaq_database.



Also available in: Atom PDF