Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3640

error: Failed to clean backup '' after archiving

    XMLWordPrintable

    Details

      Description

      The attached test fails on CFEngine 3.17.0 (running on FreeBSD). It does not fail on CFEngine 3.12.1 and 3.15.2 (both running on Debian).

      When writing a non-already-existent file, if the backup has been enabled the promise fails.

      3.12.1 on Debian buster
      $ bin/cf-agent -KI inputs/cfe-XXXX.cf 
       info: Created directory '/tmp/cfe-XXXX/.'
       info: Created directory '/tmp/cfe-XXXX/backups/.'
       info: Copying from 'localhost:/home/gpiero/.cfagent/inputs/cfe-XXXX.cf'
      R: CFEngine 3.12.1 (running on debian_10)
      R: Results: _repaired _reached _kept
      
      3.15.2 on Debian sid
      $ cf-agent -KI inputs/cfe-XXXX.cf 
          info: Copying from 'localhost:/home/gpiero/.cfagent/inputs/cfe-XXXX.cf'
          info: The file '' has already been moved to the repository once. Multiple update will cause loss of backup.
      R: CFEngine 3.15.2 (running on debian_11)
      R: Results: _repaired _reached _kept
      
      3.17.0 on FreeBSD 12.2
      $ cf-agent -KI inputs/cfe-XXXX.cf 
          info: Copied file '/usr/home/gpiero/.cfagent/inputs/cfe-XXXX.cf' to '/tmp/cfe-XXXX/file-1619124071-2136.cfnew' (mode '600')
          info: Moved '/tmp/cfe-XXXX/file-1619124071-2136.cfnew' to '/tmp/cfe-XXXX/file-1619124071-2136'
          info: The file '' has already been moved to the repository once. Multiple update will cause loss of backup.
          info: Archived backup ''
         error: Failed to clean backup '' after archiving
          info: Updated file '/tmp/cfe-XXXX/file-1619124071-2136' from 'localhost:/usr/home/gpiero/.cfagent/inputs/cfe-XXXX.cf'
         error: Errors encountered when actuating files promise '/tmp/cfe-XXXX/file-1619124071-2136'
      R: CFEngine 3.17.0a.68302fb6a (running on freebsd_12.2)
      R: Results: _kept _error _failed _reached _repaired
      
      3.17.0 on FreeBSD 13.0
      $ cf-agent -KI inputs/cfe-XXXX.cf 
          info: Copied file '/usr/home/gpiero/.cfagent/inputs/cfe-XXXX.cf' to '/tmp/cfe-XXXX/file-1619124082-7924.cfnew' (mode '600')
          info: Moved '/tmp/cfe-XXXX/file-1619124082-7924.cfnew' to '/tmp/cfe-XXXX/file-1619124082-7924'
          info: The file '' has already been moved to the repository once. Multiple update will cause loss of backup.
          info: Archived backup ''
         error: Failed to clean backup '' after archiving
          info: Updated file '/tmp/cfe-XXXX/file-1619124082-7924' from 'localhost:/usr/home/gpiero/.cfagent/inputs/cfe-XXXX.cf'
         error: Errors encountered when actuating files promise '/tmp/cfe-XXXX/file-1619124082-7924'
      R: CFEngine 3.17.0a.68302fb6a (running on freebsd_13.0)
      R: Results: _kept _error _failed _reached _repaired
      

        Attachments

          Activity

            People

            • Assignee:
              a10042 Nick Anderson
              Reporter:
              gpiero Gian Piero Carrubba
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel