Giter Club home page Giter Club logo

Comments (19)

DraTeots avatar DraTeots commented on September 28, 2024 1

I can hack the code so that if add_condition(...'beam_current') is called, the change is logged into DB with time process ID-s and etc. Kind of brutal way, but maybe we could figure out the problem. Because I looked at logs of 10907-10911 all of them have some valid values.

(For 10911)

Adding cnd 'beam_current'='76.9148'

in /tmp directory I see the last entry for the run in RCDB. This mean that these values should be there

from rcdb.

sdobbs avatar sdobbs commented on September 28, 2024

It looks like these current numbers are wrong across the board. I'll look into it more and fix the wrong values.

I remember @DraTeots added some more logging to these scripts. Is it turned on, and if so where can I look at them to see why these calls are failing?

from rcdb.

sdobbs avatar sdobbs commented on September 28, 2024

Beam current values in RCDB are fixed. They started going off around run 10585, not consistently though. This might have been around the time I last fixed the current values?

current_values.txt

from rcdb.

DraTeots avatar DraTeots commented on September 28, 2024

Logs for running RCDB on Run 10906 are located on gluon100 in /tmp folder.

cat /tmp/hdops_RCDB.10906
Wed Mar  9 07:33:23 EST 2016
----- > run_update_rcdb  ENTER <---- 
ENV_RAWDATA_DIR=export RAWDATA_DIR=/gluex/raid/rawdata  : /gluex/raid/rawdata 
ENV_RUN_PERIOD=export RUN_PERIOD=RunPeriod-2016-02    : RunPeriod-2016-02
get_host:: comp=ERsoftROC use host=gluonraid1
 start parse_coda_log  --modules=update_epics  --udl=cMsg://gluon100.jlab.org:45000/cMsg/hdops?regime=low&cmsgpassword=hdops 
-------> run_update_rcdb EXIT Wed Mar  9 07:33:33 EST 2016 <-------
Wed Mar  9 07:33:33 EST 2016
LOG=/home/hdops/CDAQ/daq_dev_v0.31/daq/cool/hdops/ddb/run-log/hdops/current_run.log
RCDB PATH=/home/hdops/CDAQ/daq_dev_v0.31/daq/rcdb
MODULES = update_epics
UDL = cMsg://gluon100.jlab.org:45000/cMsg/hdops?regime=low&cmsgpassword=hdops
VERBOSE = --verbose
------------- rcdb: run_end ---------------------
Parsing coda_xml_log_file='/home/hdops/CDAQ/daq_dev_v0.31/daq/cool/hdops/ddb/run-log/hdops/current_run.log'
Parsing CODA file '/home/hdops/CDAQ/daq_dev_v0.31/daq/cool/hdops/ddb/run-log/hdops/current_run.log'
Processing xml tree 
Run number '10906'
Run start time is '2016-03-09 06:32:53'
Setting end time '2016-03-09 07:33:26' to run '10906'
Update time is '2016-03-09 07:33:26'
Run config file extracted from rtvs 'FCAL_BCAL_PS_m7.conf'
No <run-end> section found in file
Unable to find <end-comment> section
Parsed coda_xml_log_file='/home/hdops/CDAQ/daq_dev_v0.31/daq/cool/hdops/ddb/run-log/hdops/current_run.log'. run='<Run number='10906'>', run_config_file='/home/hdops/CDAQ/daq_dev_v0.31/daq/config/hd_all/FCAL_BCAL_PS_m7.conf'
Adding coda_xml_log_file to DB
Processing configuration file
|- Content is None, assuming using file '/home/hdops/CDAQ/daq_dev_v0.31/daq/cool/hdops/ddb/run-log/hdops/current_run.log'
|- File '/home/hdops/CDAQ/daq_dev_v0.31/daq/cool/hdops/ddb/run-log/hdops/current_run.log' is getting overwritten
Adding run_config_file to DB
Processing configuration file
|- Content is None, assuming using file '/home/hdops/CDAQ/daq_dev_v0.31/daq/config/hd_all/FCAL_BCAL_PS_m7.conf'
|- File '/home/hdops/CDAQ/daq_dev_v0.31/daq/config/hd_all/FCAL_BCAL_PS_m7.conf' found in DB by id: '5627'
|- File already associated with run'<Run number='10906'>'
Performing update_epics.py
Running 'update_rcdb_conds(db=<rcdb.provider.ConfigurationProvider object at 0x13e7950>,   run=<Run number='10906'>)'
Requesting beam_current between  '2016-03-09 06:32:53' and '2016-03-09 07:33:26'
Requesting beam_current subprocess flags: '['myStats', '-b', '2016-03-09 06:32:53', '-e', '2016-03-09 07:33:26', '-l', 'IBCAD00CRCUR6']'
Adding cnd 'radiator_type'='JD70-119 20um'
Adding cnd 'status'='-1'
Adding cnd 'ps_converter'='Retracted'
Adding cnd 'solenoid_current'='1199.72452794'
Adding cnd 'coherent_peak'='9000.0'
Adding cnd 'beam_energy'='12112.99996'
Adding cnd 'radiator_id'='7'
Adding cnd 'target_type'='FULL & Ready'
Adding cnd 'polarization_direction'='PERP'
Adding cnd 'radiator_index'='11.0'
Adding cnd 'beam_current'='113.218'
Adding cnd 'polarimeter_converter'='Be 750um'
Adding cnd 'collimator_diameter'='5.0mm hole'
Committed to DB. End of update_rcdb_conds()

Run 10585 started 2016-02-26 17:42:40. There where several bug fixes of getting beam_current before the date. The list of changes are:

  1. Logging module for update_epics.py
  2. Logic of getting end time to get beam_current
  3. Remove supporting of #12

From the first glance item 2 could be the issue, I see in the log above that the run start and end times where correctly given to myStats

screenshot from 2016-03-11 12 51 35

from rcdb.

sdobbs avatar sdobbs commented on September 28, 2024

That's odd - the correct value should have been written to the RCDB. I'm not sure who would have changed it. I'll keep a close eye on these values once we start getting beam again and see if that yields more information.

from rcdb.

sdobbs avatar sdobbs commented on September 28, 2024

That's a good next step, but I think we should verify that this problem is
still happening for new runs before implementing a hack like that.

On Fri, Mar 11, 2016 at 12:43 PM Dmitry Romanov [email protected]
wrote:

I can hack the code so that if 'beam_current' is changed, the change is
logged into DB with time process ID-s and etc. Kind of brutal way, but
maybe we could figure out the problem. Because I looked at logs of
10907-10911 all of them have some valid values.

(For 10911)

Adding cnd 'beam_current'='76.9148'

in /tmp directory I see the last entry for the run in RCDB. To this mean
that these values should be there.


Reply to this email directly or view it on GitHub
#18 (comment).

from rcdb.

DraTeots avatar DraTeots commented on September 28, 2024

Yes, sure.

While there is not beam, I plan to move RCDB code to git-hub. There is also a DB schema change and web site update (#10 included). Finally all update scripts (including update_epics) will have a context (go, update, run-end). Maybe the issue is fixed already, whatever it was.

from rcdb.

sdobbs avatar sdobbs commented on September 28, 2024

I checked a few recent runs. For 11071, the value in RCDB (35.0343) does not match the correct value (128.758) or the value reported in the log file /tmp/hdops_RCDB.11071 (128.758).

from rcdb.

DraTeots avatar DraTeots commented on September 28, 2024

Ok. I'll add DB logging of values to figure out the problem

from rcdb.

sdobbs avatar sdobbs commented on September 28, 2024

If it's helpful, both runs 11107 and 11108 are wrong.

from rcdb.

eltonssmith avatar eltonssmith commented on September 28, 2024

Run 11104 shows a current of 0.42 nA, but this must be wrong. The average of the run is about 137 nA, but there is a nice distribution around 200 nA with periods of zero beam. See Log 3393789

from rcdb.

sdobbs avatar sdobbs commented on September 28, 2024

Newer runs are still showing this problem. Let me know if it's okay to fix the beam currents in these runs or if you still need them fir debugging.

from rcdb.

sdobbs avatar sdobbs commented on September 28, 2024

FYI, I've updated the values in the RCDB to prepare for calibration running.

from rcdb.

sdobbs avatar sdobbs commented on September 28, 2024

Actually, I'm trying to update the values in the database, but the new beam current values are refusing to show up.

from rcdb.

DraTeots avatar DraTeots commented on September 28, 2024

The new DAQ update scheme is shipped. Lets look if those wrong records appear.

from rcdb.

sdobbs avatar sdobbs commented on September 28, 2024

The beam current in the test runs today looks correct. Will keep an eye on this.

from rcdb.

sdobbs avatar sdobbs commented on September 28, 2024

This is definitely looking better. Over the past day, just one run with an incorrect beam current:

run = 11366 current in RCDB = 123.46 correct current = 135.72

WIll check again on Monday.

from rcdb.

DraTeots avatar DraTeots commented on September 28, 2024

I implemented DB logging, so now each daq update spams several messages to DB including setting beam_current.

When you notice wrong beam_current the next time, please put here, what run it was.

The logs page
https://halldweb.jlab.org/rcdb/logs/

from rcdb.

sdobbs avatar sdobbs commented on September 28, 2024

Everything over the weekend is correct. I'll still keep an eye on this through the end of the run period, but will close this issue for now.

from rcdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.