差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン |
| softwares:nestdaq:memo [2024/12/13 14:38] – kobayash | softwares:nestdaq:memo [2024/12/13 14:50] (現在) – kobayash |
|---|
| </code> | </code> |
| |
| | === Redis のキーがない時のエラー === |
| |
| === Redis のキーがない時のエラー === | <code> |
| </code> | |
| [14:36:52][DEBUG] registryUri: tcp://192.168.2.82:6379/0 | [14:36:52][DEBUG] registryUri: tcp://192.168.2.82:6379/0 |
| [14:36:52][DEBUG] Exception caught in ProcessWork(), going to Error state | [14:36:52][DEBUG] Exception caught in ProcessWork(), going to Error state |
| [14:36:52][DEBUG] Destroying ZeroMQ transport... | [14:36:52][DEBUG] Destroying ZeroMQ transport... |
| [14:36:52][ERROR] Uncaught exception reached the top of main: std::bad_alloc | [14:36:52][ERROR] Uncaught exception reached the top of main: std::bad_alloc |
| | </code> |
| | |
| | <code> |
| | [13:59:51][STATE] READY ---> RUNNING |
| | [13:59:51][INFO] daq::service::Plugin state : RUNNING |
| | [13:59:51][DEBUG] daq::service::Plugin run number (from redis) = 1029 |
| | [13:59:51][DEBUG] daq::service::MetricsPlugin state change: RUNNING |
| | [13:59:51][INFO] fair::mq::Device running... |
| | [13:59:51][INFO] 370:PreRun |
| | [13:59:51][DEBUG] Run number: 1029 |
| | [13:59:51][DEBUG] registryUri: tcp://192.168.2.82:6379/0 |
| | run comment here 1 : |
| | run comment here 2: |
| | ./start_device.sh: 54 行: 377055 Segmentation fault (コアダンプ) /home/spadi/nestdaq/bin/FileSink -S '</home/spadi/nestdaq/lib64' -P daq_service -P metrics -P parameter_config --registry-uri tcp://192.168.2.82:6379/0 --metrics-uri tcp://192.168.2.82:6379/1 --parameter-config-uri tcp://192.168.2.82:6379/2 --scaler-uri tcp://192.168.2.82:6379/3 --severity debug4 |
| | </code> |
| | |
| | <code> |
| | if (fConfig->Count("registry-uri")) { |
| | std::string registryUri = fConfig->GetProperty<std::string>("registry-uri"); |
| | LOG(debug) << "registryUri: " << registryUri; |
| | if (!registryUri.empty()) { |
| | fClient = std::make_shared<sw::redis::Redis>(registryUri); |
| | std::string key; |
| | fClient->keys("run_info:run_comment", &key); |
| | if (key.length()>0) { |
| | auto run_comment_ptr = fClient->get("run_info:run_comment"); |
| | run_comment = *run_comment_ptr; |
| | LOG(debug) << "run comment: " << run_comment; |
| | }else{ |
| | LOG(debug) << "There is no key run_info:run_comment"; |
| | } |
| | } |
| | } |
| </code> | </code> |
| |