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
Discussed in https://github.com/spatie/laravel-backup/discussions/1720
NoSuchKey