adamant-kite-43734
10/10/2023, 3:22 PMambitious-daybreak-95996
10/11/2023, 6:39 AMambitious-daybreak-95996
10/11/2023, 6:40 AMthousands-dog-54133
10/11/2023, 7:53 AMreq 0 0.000000000s s3:put_obj http status=404
====== req done req=0x7f650629e750 op status=0 http_status=404 latency=0.000000000s ======
thousands-dog-54133
10/11/2023, 7:55 AMs3:put_obj init_permissions on <NULL> failed, ret=-2002
, which sounds to me like the bucket does indeed not exist, but when I log into the UI using the same credentials that I use in my application for my REST requests, the bucket is clearly there.thousands-dog-54133
10/11/2023, 7:58 AMambitious-daybreak-95996
10/11/2023, 11:24 AM"PUT /3d357e45-30f8-4d4b-b5ec-57f517461666/53a257e6-6fb4-461c-a207-e6cb8d955009 HTTP/1.1"
ambitious-daybreak-95996
10/11/2023, 11:26 AMambitious-daybreak-95996
10/11/2023, 11:29 AMhost:assetbucket.localhost:7480
earlier in the logthousands-dog-54133
10/11/2023, 11:29 AMthousands-dog-54133
10/11/2023, 11:30 AMs3Client.putObject(request -> request.bucket(bucketName).key(assetName)
.metadata(Map.of(CONTENT_TYPE_ATTRIBUTE, contentType)),
RequestBody.fromInputStream(data, contentLength));
This is how I'm trying to create the object from my Java application using Amazons S3Client class.thousands-dog-54133
10/11/2023, 11:30 AMambitious-daybreak-95996
10/11/2023, 11:31 AMthousands-dog-54133
10/11/2023, 11:35 AMthousands-dog-54133
10/11/2023, 2:56 PMambitious-daybreak-95996
10/12/2023, 3:12 AMambitious-daybreak-95996
10/12/2023, 3:18 AMdocker run -p 7480:7480 <http://quay.io/s3gw/s3gw:latest|quay.io/s3gw/s3gw:latest>
. If you instead use docker run -p 7480:7480 <http://quay.io/s3gw/s3gw:latest|quay.io/s3gw/s3gw:latest> --rgw-backend-store sfs --debug-rgw 1 --rgw-dns-name localhost
it should let you use hostname based buckets.ambitious-daybreak-95996
10/12/2023, 3:20 AM--rgw-dns-name localhost
because you were testing on localhost, but of course if this were a real domain name, you'd use that instead of localhost. The other two parameters --rgw-backend-store sfs --debug rgw 1
are normally applied automatically, but if you add extra params, everything you add clobbers the defaults, these need to be explicitly specified too)ambitious-daybreak-95996
10/12/2023, 4:09 AM