I traced the error to the 'connection' line in Fog , one of the asset_sync dependencies, and it turns out that my FOG_REGION set incorrectly . In my case, the area should be us-west-2 , not s3-us-west-2 .
It has been a while since I set up my S3 account, so I first tried to determine which region I was using by logging into the AWS S3 console by clicking on the bucket name and clicking Properties. There, the region is listed as Oregon. Well, that didn't work. So, I clicked through the browser the objects and folders of one of my existing buckets until I got to the asset, looked at its “Properties” and saw “Link”:
https://s3-us-west-2.amazonaws.com/mybucketname/uploads/mymodel/image/1135/myimage.jpg
I was convinced that s3-us-west-2 was right until I noticed that Fog adds the s3 prefix .
In any case, now I know that as soon as you recognize your region by name (for example, Oregon), you can find it in this list of S3 regions (this is the name under the Location Constraint column).
I hope this helps someone.
user664833
source share