You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am attempting to send the backups to S3 - I've set up the disk within laravel and am able to store files without issue using Storage::disk('s3')->put.... however when running the laravel-backup artisan command I encounter some errors that are seemingly related to bucket access policies. My bucket is completely private with no public access, but it seems this package is using Guzzle to access the bucket to get a listing of backups.
When I attempt to create a backup these are the responses/errors I come across.
dev:: php artisan backup:run --only-files
Starting backup...
Determining files to backup...
Zipping 7206 files and directories...
Created zip containing 7206 files and directories. Size is 27.54 MB
Copying zip to disk named s3...
Successfully copied zip to disk named s3.
Sending notification failed
Backup completed!
Within my laravel logs I see the following errors:
[2020-09-06 16:22:49] local.ERROR: Error executing "ListObjects" on "https://XXXXXX.s3.amazonaws.com/?prefix=Laravel%2F&encoding-type=url"; AWS HTTP error: Client error: GET https://XXXXXX.s3.amazonaws.com/?prefix=Laravel%2F&encoding-type=url` resulted in a 403 Forbidden response:`
So I'm assuming I have to have my bucket open to some extent however I'm not super familiar with policies required to allow ONLY this package to list backups.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I am attempting to send the backups to S3 - I've set up the disk within laravel and am able to store files without issue using Storage::disk('s3')->put.... however when running the laravel-backup artisan command I encounter some errors that are seemingly related to bucket access policies. My bucket is completely private with no public access, but it seems this package is using Guzzle to access the bucket to get a listing of backups.
When I attempt to create a backup these are the responses/errors I come across.
dev:: php artisan backup:run --only-files
Starting backup...
Determining files to backup...
Zipping 7206 files and directories...
Created zip containing 7206 files and directories. Size is 27.54 MB
Copying zip to disk named s3...
Successfully copied zip to disk named s3.
Sending notification failed
Backup completed!
Within my laravel logs I see the following errors:
[2020-09-06 16:22:49] local.ERROR: Error executing "ListObjects" on "https://XXXXXX.s3.amazonaws.com/?prefix=Laravel%2F&encoding-type=url"; AWS HTTP error: Client error:
GET https://XXXXXX.s3.amazonaws.com/?prefix=Laravel%2F&encoding-type=url` resulted in a403 Forbidden
response:`So I'm assuming I have to have my bucket open to some extent however I'm not super familiar with policies required to allow ONLY this package to list backups.
Any help is appreciated!
Beta Was this translation helpful? Give feedback.
All reactions