nixys / nxs-backup

The tool for creating, delivering and rotating backups for GNU/Linux distributions.
https://nxs-backup.io
Apache License 2.0
255 stars 13 forks source link

Failed to delivery backup to S3 #83

Closed TheAlh closed 2 months ago

TheAlh commented 2 months ago

Description: When running nxs-backup on Sundays, the daily backup fails to be delivered to S3, while the weekly backup is successfully delivered.

Expected Behavior: Both the daily and weekly backups should be delivered to S3.

Actual Behavior: Only the weekly backup is delivered to S3; the daily backup is missing.

Logs:

INFO [2024-08-18 00:15:03.501] Backup starting.
INFO [2024-08-18 00:15:03.501] No external jobs.
INFO [2024-08-18 00:15:03.501] No databases jobs.
INFO [2024-08-18 00:15:03.502] Starting backup files jobs.
DEBUG [2024-08-18 00:15:03.502][openvpn-desc-files-s3] Starting rotate outdated backups.
INFO [2024-08-18 00:15:03.750][openvpn-desc-files-s3](local) Deleted old backup file '/var/nxs-backup/files/desc/dump/openvpn/apps/weekly/apps_2024-07-21_00-15.tar'
INFO [2024-08-18 00:15:03.750][openvpn-desc-files-s3](local) Deleted old backup file '/var/nxs-backup/files/desc/dump/openvpn/apps/daily/apps_2024-08-12_00-15.tar'
INFO [2024-08-18 00:15:03.750][openvpn-desc-files-s3] Starting
DEBUG [2024-08-18 00:15:09.151][openvpn-desc-files-s3] Created temp backup /var/nxs-backup/files/desc/dump_tmp/desc_files_2024-08-18_00-15/openvpn/apps_2024-08-18_00-15.tar
INFO [2024-08-18 00:15:12.423][openvpn-desc-files-s3](s3) Successfully uploaded object '/nxs-backup/openvpn/openvpn/apps/weekly/apps_2024-08-18_00-15.tar' to bucket nxs3-backups
ERROR [2024-08-18 00:15:12.747][openvpn-desc-files-s3](s3) Failed to uploaded object '/nxs-backup/openvpn/openvpn/apps/daily/apps_2024-08-18_00-15.tar' to bucket nxs3-backups
ERROR [2024-08-18 00:15:12.747][openvpn-desc-files-s3](s3) Error: EOF
DEBUG [2024-08-18 00:15:12.748][openvpn-desc-files-s3](s3) Response: {Bucket: Key: ETag: Size:0 LastModified:0001-01-01 00:00:00 +0000 UTC Location: VersionID: Expiration:0001-01-01 00:00:00 +0000 UTC ExpirationRuleID: ChecksumCRC32: ChecksumCRC32C: ChecksumSHA1: ChecksumSHA256:}

INFO [2024-08-18 00:15:12.748][openvpn-desc-files-s3](local) Successfully moved temp backup to /var/nxs-backup/files/desc/dump/openvpn/apps/weekly/apps_2024-08-18_00-15.tar
INFO [2024-08-18 00:15:12.748][openvpn-desc-files-s3](local) Successfully created symlink /var/nxs-backup/files/desc/dump/openvpn/apps/daily/apps_2024-08-18_00-15.tar
ERROR [2024-08-18 00:15:12.748][openvpn-desc-files-s3] Failed to delivery backup. Errors: 1 error occurred:
        * EOF

INFO [2024-08-18 00:15:12.748][openvpn-desc-files-s3] Finished
INFO [2024-08-18 00:15:12.748] Backup finished.

ERROR [2024-08-18 00:15:12.749] cmd routine fail: (details: Some of backups failed with next errors:
1 error occurred:
        * EOF

)

Additional Information: Application Version: 3.9.1

randreev1321 commented 2 months ago

Hi, @TheAlh.

The problem was due to nxs-backup not working correctly with the backup file during delivery to s3.

This has been fixed and released as part of the v3.11.0 release.

New ideas and suggestions are welcome.