Swif2 not accepting CCDB_CONNECTION change

64 views
Skip to first unread message

Albert Fabrizi

unread,
Jan 9, 2024, 3:03:14 PM1/9/24
to GlueX Software Help
Hello,
I am trying to test some new calibration constants before uploading them but Swif2 defaults to the main database instead of the connection I have set. The first image shows an interactive ccdb session with the proper connection. The second image shows the log file from one of the jobs. 

In my .cshrc I have the correct connection set and this is the first time I have encountered the error after the holiday.

Does anyone know what could be causing this?
ccdbi.PNG
ccdb_connect_error.PNG

Alexander Austregesilo

unread,
Jan 9, 2024, 3:12:49 PM1/9/24
to gluex-s...@googlegroups.com

Hi Albert,

There is no guarantee that swif2 correctly sets up your environment with the .cshrc (see item 3. on https://scicomp.jlab.org/docs/swif2). You should put all the environment settings explicitly into your job script.

Cheers,

Alex

--
You received this message because you are subscribed to the Google Groups "GlueX Software Help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gluex-softwar...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gluex-software/d005ef4a-557a-4d12-bc88-8c8dfa681a37n%40googlegroups.com.
-- 
Alexander Austregesilo

Staff Scientist - Experimental Nuclear Physics
Thomas Jefferson National Accelerator Facility
Newport News, VA
aaus...@jlab.org
(757) 269-6982

Albert Fabrizi

unread,
Jan 9, 2024, 3:19:42 PM1/9/24
to GlueX Software Help
Thanks for the heads up Alex, is setting up the connection just a matter of placing 'setenv CCDB_CONNECTION sqlite:////w/halld-scshelf2101/halld2/home/alfab/ccdb/ccdb_2023-10-24.sqlite' in the jana.config file?

Alexander Austregesilo

unread,
Jan 9, 2024, 3:31:47 PM1/9/24
to gluex-s...@googlegroups.com

No, just add this line at the end of your environment.sh script:

export CCDB_CONNECTION=sqlite:////w/halld-scshelf2101/halld2/home/alfab/ccdb/ccdb_2023-10-24.sqlite

Reply all
Reply to author
Forward
0 new messages