spatie / laravel-backup

A package to backup your Laravel app
https://spatie.be/docs/laravel-backup
MIT License
5.61k stars 761 forks source link

Unable to retrieve backups using backup:list #1721

Closed ubxty closed 11 months ago

ubxty commented 11 months ago

Discussed in https://github.com/spatie/laravel-backup/discussions/1720

Originally posted by **ubxty** October 6, 2023 Using s3 bucket to store backups on aws The s3 user has s3FullAccess Policy attached php artisan backup:run works Starting backup... Dumping database laravelapp... Determining files to backup... Zipping 19807 files and directories... Created zip containing 19807 files and directories. Size is 636.66 MB Copying zip to disk named s3BACKUP... Successfully copied zip to disk named s3BACKUP. Backup completed! backup:list +-------------+-------+-----------+---------+--------------+---------------+--------------+ | Name | Disk | Reachable | Healthy | # of backups | Newest backup | Used storage | +-------------+-------+-----------+---------+--------------+---------------+--------------+ |laravelapp |s3BACKUP | ❌ | ❌ | / | / | / | +-------------+-------+-----------+---------+--------------+---------------+--------------+ | The backup destination cannot be reached. exception 'Aws\S3\Exception\S3Exception' with message 'Error executing "ListObjectsV2" on s3_bucket_path resulted in a `404 Not Found` response: | | | | | | | | | | NoSuchKeyThe specified key does not exist. (truncated...) | | | | | NoSuchKey (client): The specified key does not exist. - From .env S3_AWS_BUCKET=mybucket S3_AWS_URL=https://s3.us-east-1.amazonaws.com/ S3_AWS_ENDPOINT=https://s3.us-east-1.amazonaws.com/mybucket Please advise
ubxty commented 11 months ago

@freekmurze Any idea or suggestions please