marlof / ScORCH

DevOps Orchestration for Obrar deploy and Ansible playbooks
http://www.autoscorch.com
Apache License 2.0
5 stars 1 forks source link

The archive tar causes issues during HouseKeeping #171

Closed marlof closed 11 months ago

marlof commented 2 years ago

When the housekeeping function is run, there is a issue with tar files if they have not been used for a long time.

Housekeeping....
Some jobs are taking a long time to be processed: ./Job_ID-276_276.TEST.2_TEST_NA_
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
marlof commented 2 years ago

Investigation shows that the current tar file being used is corrupt but not immediately noticeable as the update section masks errors.

~/git/scorch/jobs/archived$ file archived.tar 
archived.tar: POSIX tar archive (GNU)

~/git/scorch/jobs/archived$ tar tf archived.tar
./Job_ID-269_269.SAFEDEMO.4_SAFEDEMO_1_
./Job_ID-269_269.SAFEDEMO.5_SAFEDEMO_2_
./Job_ID-269_269.SAFEDEMO.6_SAFEDEMO_3_
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
~/git/scorch/jobs/archived$ echo $?
2
marlof commented 2 years ago

Created 171 branch - adding a check snippet of code

marlof commented 11 months ago

Not notice - open a new ticket when seen again