| | 1 | |
| | 2 | {{{ |
| | 3 | We have 2 diff faults today. Let's fix them. |
| | 4 | |
| | 5 | *************************************** |
| | 6 | |
| | 7 | diff_id 76390 skycell.1194.140 fails because it can't read input warp file on ipp045 |
| | 8 | (This was a node that had some troublesome days last month) |
| | 9 | |
| | 10 | Confirm that file is corrupt with |
| | 11 | |
| | 12 | funpack -S /data/ipp045.0/nebulous/2d/e8/391435564.gpc1:SweetSpot.nt:2010:08:08:o5416g0096o.204249:SR_o5416g0096o.204249.wrp.90720.skycell.1194.140.wt.fits > broken.fits |
| | 13 | |
| | 14 | FITSIO status = 108: error reading from FITS file |
| | 15 | Error reading data buffer from file: |
| | 16 | /data/ipp045.0/nebulous/2d/e8/391435564.gpc1:SweetSpot.nt:2010:08:08:o5416g0096o |
| | 17 | .204249:SR_o5416g0096o.204249.wrp.90720.skycell.1194.140.wt.fits |
| | 18 | Error reading elements 1 thru 2147418112 from column 1 (ffgclb). |
| | 19 | error reading compressed byte stream from binary table |
| | 20 | |
| | 21 | Yep it's toast. |
| | 22 | |
| | 23 | To regenerate the file execute the new script that I am going to finish and add to the tools directory. |
| | 24 | (Or perhaps I will build the feature into warp_skycell.pl) |
| | 25 | |
| | 26 | perl runwarpskycell.pl --warp_id 90720 --skycell_id skycell.1194.140 --no-update |
| | 27 | |
| | 28 | no-update because we don't want to update the database (The warpRun is full. The warpSkyfile is in the database. |
| | 29 | We just want to fix the bits) |
| | 30 | |
| | 31 | Unfortunately runwarpskycell fails because input chips not found. |
| | 32 | |
| | 33 | This is sweetspot data from early August being diffed against the stacks. |
| | 34 | |
| | 35 | To find out why the data can't be found use |
| | 36 | |
| | 37 | chiptool -processedimfile -chip_id 121251 -class_id xy52 |
| | 38 | |
| | 39 | to find the state of one of the required inputs. |
| | 40 | |
| | 41 | We find chipRun has been cleaned (The data was previously processed as warp warp diffs. We've been |
| | 42 | keeping the warps around to run against the stacks which were made at the end of the month) |
| | 43 | |
| | 44 | We can get the chip images back with |
| | 45 | |
| | 46 | chiptool -setimfiletoupdate -chip_id 121251 -set_label update |
| | 47 | |
| | 48 | For extra credit we could use warptool -scmap -warp_id 90720 -skycell_id skycell.1194.140 to find |
| | 49 | the subset of chips to process, but I didn't. We'd queue them for updates 1 at a time by |
| | 50 | adding -class_id xy?? to |
| | 51 | chiptool -setimfiletoupdate -chip_id 121251 -set_label update -class_id xy52 |
| | 52 | chiptool -setimfiletoupdate -chip_id 121251 -set_label update -class_id xy53 |
| | 53 | etc. |
| | 54 | |
| | 55 | Since we'll clean the data soon why bother. |
| | 56 | |
| | 57 | Since magicked == -1 destreaking is necessary for the warps to run so |
| | 58 | |
| | 59 | magicdstool -updaterun -set_state new -set_label update -magic_ds_id 215998 |
| | 60 | |
| | 61 | Wait for updates to complete. 5 minutes or so. |
| | 62 | |
| | 63 | Then run the runwarpupdate.pl script. Success |
| | 64 | |
| | 65 | Now revert the diff failure |
| | 66 | difftool -revertdiffskyfile -diff_id 76390 |
| | 67 | |
| | 68 | A few minutes later the diff is complete |
| | 69 | |
| | 70 | ***************************************** |
| | 71 | Case 2. |
| | 72 | |
| | 73 | ?????????????????????????????????????????????Assertion failed in function psThreadLauncher at psThread.c:244. Error stack: |
| | 74 | Unable to perform ppSub: 4 at /home/panstarrs/ipp/psconfig//ipp-20100823.lin64/bin/diff_skycell.pl line 400. |
| | 75 | Running [/home/panstarrs/ipp/psconfig/ipp-20100823.lin64/bin/difftool -diff_id 76373 -skycell_id skycell.1460.009 -fault 4 -adddiffskyfile -dtime_script 62.9999801516533 -hostname ipp053 -path_base neb://ipp053.0/gpc1/SweetSpot.nightlyscience/2010/09/07/RINGS.V0/skycell.1460.009/RINGS.V0.skycell.1460.009.dif.76373 -dbname gpc1]... |
| | 76 | |
| | 77 | This is a recurring bug at the diff stage. Ticket #1422 covers it. |
| | 78 | |
| | 79 | I have had success fixing these by running the command by hand without threads. |
| | 80 | |
| | 81 | They also sometimes succeed after reverting. Let's try that |
| | 82 | |
| | 83 | difftool -revertdiffskyfile -diff_id 76373 |
| | 84 | |
| | 85 | Wait few minutes |
| | 86 | |
| | 87 | difftool -diffskyfile -diff_id 76373 -skycell_id skycell.1460.009 | grep state |
| | 88 | data_state STR full |
| | 89 | state STR full |
| | 90 | |
| | 91 | It worked. It would be nice to fix this bug. |
| | 92 | }}} |