IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Initial Version and Version 1 of diff_fixits


Ignore:
Timestamp:
Sep 7, 2010, 9:55:50 AM (16 years ago)
Author:
bills
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • diff_fixits

    v1 v1  
     1
     2{{{
     3We have 2 diff faults today. Let's fix them.
     4
     5***************************************
     6
     7diff_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
     10Confirm 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
     21Yep it's toast.
     22
     23To 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
     28no-update because we don't want to update the database (The warpRun is full. The warpSkyfile is in the database.
     29We just want to fix the bits)
     30
     31Unfortunately runwarpskycell fails because input chips not found.
     32
     33This is sweetspot data from early August being diffed against the stacks.
     34
     35To find out why the data can't be found use
     36
     37    chiptool -processedimfile -chip_id 121251 -class_id xy52
     38
     39to find the state of one of the required inputs.
     40
     41We find chipRun has been cleaned (The data was previously processed as warp warp diffs. We've been
     42keeping the warps around to run against the stacks which were made at the end of the month)
     43
     44We can get the chip images back with
     45
     46 chiptool -setimfiletoupdate -chip_id 121251 -set_label update
     47
     48For extra credit we could use warptool -scmap -warp_id 90720 -skycell_id skycell.1194.140 to find
     49the subset of chips to process, but I didn't. We'd queue them for updates 1 at a time by
     50adding -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
     55Since we'll clean the data soon why bother.
     56
     57Since 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
     61Wait for updates to complete. 5 minutes or so.
     62
     63Then run the runwarpupdate.pl script. Success
     64
     65Now revert the diff failure
     66    difftool -revertdiffskyfile -diff_id 76390
     67
     68A few minutes later the diff is complete
     69
     70*****************************************
     71Case 2.
     72
     73?????????????????????????????????????????????Assertion failed in function psThreadLauncher at psThread.c:244. Error stack:
     74Unable to perform ppSub: 4 at /home/panstarrs/ipp/psconfig//ipp-20100823.lin64/bin/diff_skycell.pl line 400.
     75Running [/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
     77This is a recurring bug at the diff stage. Ticket #1422 covers it.
     78
     79I have had success fixing these by running the command by hand without threads.
     80
     81They also sometimes succeed after reverting. Let's try that
     82
     83    difftool -revertdiffskyfile -diff_id 76373
     84
     85Wait 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
     91It worked. It would be nice to fix this bug.
     92}}}