Yesterday everything worked fine.
But today minio dashbord still works, but I am not able to put files there. No changes made since yesterday.
Unable to write file at location: 8596cc71-2db5-4f32-b51b-acdbeee05b86.jpg. Error executing "PutObject" on "http://images.localhost:9000/8596cc71-2db5-4f32-b51b-acdbeee05b86.jpg"; AWS HTTP error: cURL error 7: Failed to connect to images.localhost port 9000 after 0 ms: Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for http://images.localhost:9000/8596cc71-2db5-4f32-b51b-acdbeee05b86.jpg
My config:
AWS_ACCESS_KEY_ID=sail
AWS_SECRET_ACCESS_KEY=password
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=images
AWS_USE_PATH_STYLE_ENDPOINT=false
AWS_ENDPOINT=http://localhost:9000
AWS_URL=http://localhost:9000/images
Weird thing I found:
if I set bucket name (in .env
file) to be shorter than 3 characters, eg xx
, it tries to call http://localhost:9000/xx/8596cc71-2db5-4f32-b51b-acdbeee05b86.jpg
url. If longer than 3 characters like images
it calls http://images.localhost:9000/8596cc71-2db5-4f32-b51b-acdbeee05b86.jpg
.
In both cases it does not work.
I have absolutely no idea what happened.
Stack used:
- laravel sail with php 8.1
- laravel "^9.19"
- league/flysystem-aws-s3-v3": "^3.0"
- league/flysystem-ftp": "^3.0"