Mu2e / otsdaq_mu2e

Mu2e customizations for otsdaq
Other
1 stars 5 forks source link

ARTDAQ_DATABASE_URI error #57

Closed AndrewEdmonds11 closed 9 months ago

AndrewEdmonds11 commented 9 months ago

Hi Everyone,

I updated our otsdaq setup to v2_07_00 and am now getting the following error when I run ots and ots -w:

[mu2estm:vst]$ ots
10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:102 |       =========================== Mu2e ots =============================
10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:236 |       Setting up TRACE defaults...
10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:614 |       $USER_DATA               = /home/mu2estm/vst/srcs/otsdaq_mu2e_config/Data_mu2e

10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:615 |       $ARTDAQ_DATABASE_URI     = mongodb://unameremoved:pwremoved@localhost:portremoved/teststand_db?authSource=admin
10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:616 |       $OTSDAQ_DATA             = /home/mu2estm/vst/srcs/otsdaq_mu2e_config/Data_mu2e/OutputData
10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:657 |       Fatal Error.
10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:658 |       ARTDAQ_DATABASE_URI=mongodb://unameremoved:pwremoved@localhost:portremoved/teststand_db?authSource=admin
10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:659 |       Environment variable ARTDAQ_DATABASE_URI does not have a value!
10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:660 |       To setup, use 'export ARTDAQ_DATABASE_URI=<value>'
10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:663 |       (If you do not have a database folder, copy '<path to otsdaq_demo_data repo>/databases/filesystemdb/test_db' as your starting point.)
10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:664 |       Aborting launch

(Note: I removed the username, password and port from this output)

I have the ssh tunnel open for the MongoDB and I'm not sure what else it could be. Any ideas?

brownd1978 commented 9 months ago

Hi Andy, I know nothing about mongodb but I note the following in your log message:

Environment variable ARTDAQ_DATABASE_URI does not have a value!

Could a setup be missing? Dave

On Mon, Dec 11, 2023 at 06:07 Andrew Edmonds @.***> wrote:

Hi Everyone,

I updated our otsdaq setup to v2_07_00 and am now getting the following error when I run ots and ots -w:

[mu2estm:vst]$ ots 10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:102 | =========================== Mu2e ots ============================= 10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:236 | Setting up TRACE defaults... 10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:614 | $USER_DATA = /home/mu2estm/vst/srcs/otsdaq_mu2e_config/Data_mu2e

10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:615 | $ARTDAQ_DATABASE_URI = @.:portremoved/teststand_db?authSource=admin 10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:616 | $OTSDAQ_DATA = /home/mu2estm/vst/srcs/otsdaq_mu2e_config/Data_mu2e/OutputData 10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:657 | Fatal Error. 10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:658 | @.:portremoved/teststand_db?authSource=admin 10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:659 | Environment variable ARTDAQ_DATABASE_URI does not have a value! 10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:660 | To setup, use 'export ARTDAQ_DATABASE_URI=' 10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:663 | (If you do not have a database folder, copy '/databases/filesystemdb/test_db' as your starting point.) 10Dec23.15:51:16-10Dec23.15:51:16 mu2e-calo-05.fnal.gov ots:664 | Aborting launch

(Note: I removed the username, password and port from this output)

I have the ssh tunnel open for the MongoDB and I'm not sure what else it could be. Any ideas?

— Reply to this email directly, view it on GitHub https://github.com/Mu2e/otsdaq_mu2e/issues/57, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABAH574WRTKAVW3R6NNLZO3YI4HT3AVCNFSM6AAAAABAP2MBFCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZTKNZWGM3TGNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

AndrewEdmonds11 commented 9 months ago

Thanks, Dave. I don't think so. The weird thing is the message itself prints a value for ARTDAQ_DATABASE_URI (which matches what I get with echo $ARTDAQ_DATABASE_URI)

pavel1murat commented 9 months ago

if your ssh forwarding goes through mu2edaq-gateway.fnal.gov, it seems to be down

AndrewEdmonds11 commented 9 months ago

Bug was fixed at the head of develop in otsdaq