| 1384 | | |
| | 1384 | * TdB: Cleaned out some stuck files in update processing: |
| | 1385 | Looking at mysql, there are more exps in update under update.LAP.PV3 than IPPmonitor is showing. A likely cause is that the data_state of those is not in update. Need to investiagte a bit, since those could be in wait state. |
| | 1386 | {{{ |
| | 1387 | mysql -hscidbm -uX -pX gpc1 -B -e 'SELECT chip_id,data_group,label FROM chipRun WHERE state like "update" and label like "update.LAP.PV3";' |
| | 1388 | }}} |
| | 1389 | Get more info: |
| | 1390 | {{{ |
| | 1391 | mysql -hippdb08 -uX -pX gpc1 -e "SELECT count(*) as cnt,chipRun.chip_id,chipRun.state as chip_state,chipRun.data_group as chip_datgrp,chipRun.label as chip_label,camRun.data_group as cam_datgrp,warpRun.warp_id,warpRun.state as wrp_state,warpRun.label as wrp_label,warpRun.data_group as wrp_datgrp,chipProcessedImfile.data_state as chip_datstate,warpSkyfile.data_state as wrp_datstate FROM warpRun join warpSkyfile using (warp_id) JOIN fakeRun using (fake_id) JOIN camRun using (cam_id) JOIN chipRun using (chip_id) JOIN chipProcessedImfile using (chip_id) WHERE chipRun.label like 'update.LAP.PV3' AND chipRun.state = 'update' group by chipRun.chip_id,chipRun.state,warpRun.state,chipProcessedImfile.data_state,warpSkyfile.data_state" > LAP.PV3_datastate_new |
| | 1392 | }}} |
| | 1393 | There was a case of a warp exp stuck in goto_cleaned with label = update.LAP.PV3 and corresponding chip stuck in cleaned state |
| | 1394 | {{{ |
| | 1395 | chiptool -dbname gpc1 -updaterun -set_label update.LAP.PV3 -chip_id 1131183 |
| | 1396 | chiptool -dbname gpc1 -setimfiletoupdate -set_label update.LAP.PV3 -chip_id 1131183 |
| | 1397 | |
| | 1398 | warptool -dbname gpc1 -updaterun -set_label goto_cleaned -warp_id 1082990 |
| | 1399 | warptool -dbname gpc1 -updaterun -set_label update.LAP.PV3 -warp_id 1082990 |
| | 1400 | warptool -dbname gpc1 -setskyfiletoupdate -set_label update.LAP.PV3 -warp_id 1082990 |
| | 1401 | }}} |
| | 1402 | There are also 43 warp exps stuck in cleaned state. Sending them to skyfileupdate does nothing. Send them back to cleanup and then back to update |
| | 1403 | Next,there are chip exps in update state with data_state=cleaned. Try to send them to setimfiletoupdate and see if that helps: |
| | 1404 | {{{ |
| | 1405 | mysql -hscidbm -uX -pX gpc1 -B -e ' select chip_id,warp_id,warpRun.label,warpRun.data_group,warpRun.state,chipRun.label,chipRun.state from warpRun join warpSkyfile using (warp_id) join fakeRun using (fake_id) join camRun using (cam_id) join chipRun using (chip_id) join chipProcessedImfile using (chip_id) where chipRun.label like "update.LAP.PV3" and chipProcessedImfile.data_state like "cleaned" group by chip_id; ' | grep -v data_group | awk '{print "chiptool -dbname gpc1 -setimfiletoupdate -set_label update.LAP.PV3 -chip_id "$1 }' | tcsh |
| | 1406 | }}} |
| | 1407 | There are also chip exps stuck in the full data_state but with general state=update. Try to send them to setimfiletoupdate and see if that helps: |
| | 1408 | {{{ |
| | 1409 | mysql -hscidbm -uX -pX gpc1 -B -e ' select chip_id,warp_id,warpRun.label,warpRun.data_group,warpRun.state,chipRun.label,chipRun.state from warpRun join warpSkyfile using (warp_id) join fakeRun using (fake_id) join camRun using (cam_id) join chipRun using (chip_id) join chipProcessedImfile using (chip_id) where chipRun.label like "update.LAP.PV3" and chipProcessedImfile.data_state like "full" and warpRun.state like "full" and chipRun.state like "update" group by chip_id; ' | grep -v data_group | awk '{print "chiptool -dbname gpc1 -setimfiletoupdate -set_label update.LAP.PV3 -chip_id "$1 }' | tcsh |
| | 1410 | }}} |
| | 1411 | I will continue tomorrow, since there are more stuck files. |