askap-craco / CELEBI

The CRAFT Effortless Localisation and Enhanced Burst Inspection Pipeline
MIT License
4 stars 2 forks source link

"Could not Zap" #443

Closed marcinglowacki closed 1 year ago

marcinglowacki commented 1 year ago

AIPS does not readily safely quit, and so if a file is being written when the current process is suddenly killed, the file will remain open.

If you see this error of 'Could not Zap' and cannot resume the pipeline, then you will have to go into AIPS to clear the open file status first.

  1. Run AIPS with aips notv
  2. Enter the problematic user number. This can be found either as a -u flag of the python program causing the error, or as a random 4-digit string of numbers that will have been printed before running AIPS. Either way the Nextflow outputs of the process causing the error will tell you (check the log files in the work directory).
  3. Type uc, a list of loaded files should be listed, with at least one of them having the status WRIT. This is the problem file.
  4. Note the index of the problem file, and clear its status and zap: getn X; clrstat; zap
  5. Exit AIPS, and re-run the pipeline