Welcome! Please see the About page for a little more info on how this works.

0 votes
ago in Ions by

Attempting to push an ion and get an error about not finding (or unable to read) ion-1.0.47.jar. I tried some troubleshooting and I don't think it is a permissions issue, because I am able to use the aws cli and copy ion-0.9.7.jar. So why is 1.0.47 not working?

deps.edn:

{:mvn/repos {"datomic-cloud" {:url "s3://datomic-releases-1fc2183a/maven/releases"}}

 :aliases {
           :ion-dev {:deps {com.datomic/ion-dev {:mvn/version "1.0.352"}
                            com.datomic/client-cloud {:mvn/version "1.0.131"}
                            com.datomic/ion {:mvn/version "1.0.71"}}
                     :main-opts ["-m" "datomic.ion.dev"]}}}

command I'm trying to run:

clojure -M:ion-dev '{:op :push :creds-profile "byt-wrought-test" :region "us-west-2"}'

error:

{:command-failed
 "{:op :push :creds-profile \"byt-wrought-test\" :region \"us-west-2\"}",
 :causes
 ({:message
   "Failed to read artifact descriptor for com.datomic:ion-http-direct:jar:1.0.47",
   :class ArtifactDescriptorException}
  {:message
   "Could not transfer artifact com.datomic:ion-http-direct:pom:1.0.47 from/to datomic-cloud (s3://datomic-releases-1fc2183a/maven/releases): Unexpected error downloading artifact from datomic-releases-1fc2183a",
   :class ArtifactResolutionException}
  {:message
   "Could not transfer artifact com.datomic:ion-http-direct:pom:1.0.47 from/to datomic-cloud (s3://datomic-releases-1fc2183a/maven/releases): Unexpected error downloading artifact from datomic-releases-1fc2183a",
   :class ArtifactTransferException}
  {:message
   "Unexpected error downloading artifact from datomic-releases-1fc2183a",
   :class ExceptionInfo,
   :data
   {:bucket "datomic-releases-1fc2183a",
    :path
    "maven/releases/com/datomic/ion-http-direct/1.0.47/ion-http-direct-1.0.47.pom",
    :reason :cognitect.anomalies/fault}})}

Based on some conversations I found on slack and datomic dev forum, I tried this as a troubleshooting step:

aws --profile byt-wrangle-test s3 cp s3://datomic-releases-1fc2183a/maven/releases/com/datomic/ion/0.9.7/ion-0.9.7.jar .

download: s3://datomic-releases-1fc2183a/maven/releases/com/datomic/ion/0.9.7/ion-0.9.7.jar to ./ion-0.9.7.jar

and that works. But the same attempt with 1.0.47 does not:

aws --profile byt-wrangle-test s3 cp s3://datomic-releases-1fc2183a/maven/releases/com/datomic/ion/1.0.47/ion-1.0.47.jar .
fatal error: An error occurred (403) when calling the HeadObject operation: Forbidden

Please log in or register to answer this question.

...