Teevity / ice

AWS Usage Tool
2.85k stars 434 forks source link

AwsUtils.java has incorrect format for s3 download bucket #284

Open kdsounds opened 6 years ago

kdsounds commented 6 years ago

Get error: Caused by UnknownHostException: bucketname.s3-us-east-1.amazonaws.com ->> 1280 | getAllByName0 in java.net.InetAddress

Cause: /src/java/com/netflix/ice/common/AwsUtils.java has a "public static boolean downloadFileIfChangedSince" definition that is incorrectly formatting "s3Client.setEndpoint" as "("s3." + bucketFileRegion + ".amazonaws.com").

Resolution: Manually modifying the local AwsUtils.java file, changing as follows: ("s3." + bucketFileRegion + ".amazonaws.com").

Restart service and errors should go away. Need this part of the codebase updated!!!

gino-u commented 6 years ago

@kdsounds The two definitions that you posted are identical. Can you share the actual before and after for that definition?

stephen-dayman commented 6 years ago

Its currently 's3-' but it needs to be 's3.'

hhh0505 commented 6 years ago

this works! Thanks