Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The tp-stream-writer app crashes in v5 systems when TPG is disabled #382

Open
bieryAtFnal opened this issue Sep 18, 2024 · 0 comments
Open

Comments

@bieryAtFnal
Copy link
Collaborator

Here are sample instructions for re-creating the problem. They make use of the sample OKS database in the appmodel repo. They first use the oks_enable_tpg utility to disable TPG in the readout apps. A run with this configuration shows a crash. They then additionally disable the tp-stream-writer app and try a second run. The second run succeeds.

DATE_PREFIX=`date '+%d%b'`
TIME_SUFFIX=`date '+%H%M'`

source /cvmfs/dunedaq.opensciencegrid.org/setup_dunedaq.sh
setup_dbt latest_v5
dbt-create -n NFD_DEV_240918_A9 ${DATE_PREFIX}FDv5Test_${TIME_SUFFIX}
cd ${DATE_PREFIX}FDv5Test_${TIME_SUFFIX}/sourcecode

git clone https://github.com/DUNE-DAQ/appmodel.git -b develop
cd appmodel; git checkout 680f18b515; cd ..
cd ..

dbt-workarea-env
dbt-build -j 12
dbt-workarea-env

mkdir -p rundir/demo_configs

if [[ ! -d rundir/demo_configs/config ]]; then
   cp -Rv sourcecode/appmodel/config rundir/demo_configs/.
fi
if [[ ! -d rundir/demo_configs/test ]]; then
   cp -Rv sourcecode/appmodel/test rundir/demo_configs/.
   cp rundir/demo_configs/test/config/test-session.data.xml rundir/demo_configs/test/config/demo-configs.data.xml
   sed -i 's/test-session/simple-demo-system/'g rundir/demo_configs/test/config/demo-configs.data.xml
fi

if [[ ! -e local_setup ]]; then
cat <<EOF1 > local_setup
if [[ "\`echo \${DUNEDAQ_DB_PATH} | grep demo_configs\`" == "" ]] ; then
   export DUNEDAQ_DB_PATH=\${PWD}/rundir/demo_configs:\${DUNEDAQ_DB_PATH}
fi
EOF1
fi
. ./local_setup

cd rundir

oks_enable_tpg -d -s simple-demo-system ./demo_configs/test/config/demo-configs.data.xml 

killall drunc-controller 2>/dev/null
sleep 5
drunc-unified-shell ssh-standalone test/config/demo-configs.data.xml simple-demo-system boot wait 10 conf wait 3 start 101 enable-triggers wait 10 disable-triggers drain-dataflow stop-trigger-sources stop scrap terminate

echo
echo
echo
tail -33 log_biery_simple-demo-system_tp-stream-writer.log
echo
echo
echo

oks_enable -d -s simple-demo-system ./demo_configs/test/config/demo-configs.data.xml tp-stream-writer

killall drunc-controller 2>/dev/null
sleep 5
drunc-unified-shell ssh-standalone test/config/demo-configs.data.xml simple-demo-system boot wait 10 conf wait 3 start 102 enable-triggers wait 10 disable-triggers drain-dataflow stop-trigger-sources stop scrap terminate

killall drunc-controller 2>/dev/null
echo
echo
echo
ls -alF *.hdf5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant