# Push fails by not finding an artifact in S3

**URL:** <https://forum.datomic.com/t/push-fails-by-not-finding-an-artifact-in-s3/1056>\
**Category:** Troubleshooting\
**Created:** [July 1, 2019, 6:44pm UTC](https://forum.datomic.com/t/push-fails-by-not-finding-an-artifact-in-s3/1056 "2019-07-01T18:44:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jgomo3](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/jgomo3/32/207_2.png) [@jgomo3](https://forum.datomic.com/u/jgomo3)\
**Post date:** [July 1, 2019, 6:44pm UTC](https://forum.datomic.com/t/push-fails-by-not-finding-an-artifact-in-s3/1056/1 "2019-07-01T18:44:30Z")

</div>

After finished the ions tutorial, I wanted to play a bit with it with an SPA.

So I had to enable CORS, and following AWS API-GW documentation, I decided to change the Lambda function. I supposed to do it in the code, by adding an HTTP header in the [items-by-type function](https://github.com/Datomic/ion-starter/blob/efc93063578719ce5d754e0e960bfc4b7c94b0af/src/datomic/ion/starter.clj#L147):

```auto
      {:status 200
       :headers {"Content-Type" "application/edn"
                 "Access-Control-Allow-Origin" "*"} ;; <- Here
       :body (-> (self-describing-items-by-type (d/db (get-connection)) type)
                 pp-str)}

```

After committing the change, I ran:

```auto
clojure -A:dev -m datomic.ion.dev '{:op :push}'

```

But received this message:

```auto
Downloading: com/datomic/java-io/0.1.11/java-io-0.1.11.pom from s3://datomic-releases-1fc2183a/maven/releases/
{:command-failed "{:op :push}",
 :causes
 ({:message
   "Could not find artifact org.clojure:data.json:jar:0.2.6 in datomic-cloud (s3://datomic-releases-1fc2183a/maven/releases)",
   :class ArtifactResolutionException}
  {:message
   "Could not find artifact org.clojure:data.json:jar:0.2.6 in datomic-cloud (s3://datomic-releases-1fc2183a/maven/releases)",
   :class ArtifactNotFoundException})}

```

Did I miss an step?

Aside Meta: You could add a new category for ions

---

<div class="post-metadata">

**Author:** ![marshall](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/marshall/32/48_2.png) [@marshall](https://forum.datomic.com/u/marshall)\
**Post date:** [July 2, 2019, 1:48pm UTC](https://forum.datomic.com/t/push-fails-by-not-finding-an-artifact-in-s3/1056/2 "2019-07-02T13:48:51Z")

</div>

That artifact (`org.clojure:data.json:jar:0.2.6`) is in maven central (not the datomic-cloud repository).

Can you try deleting the `.cpcache` folder from your project directory and trying again?

Also, what are the contents of your `deps.edn` file?

---

<div class="post-metadata">

**Author:** ![marshall](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/marshall/32/48_2.png) [@marshall](https://forum.datomic.com/u/marshall)\
**Post date:** [July 2, 2019, 1:50pm UTC](https://forum.datomic.com/t/push-fails-by-not-finding-an-artifact-in-s3/1056/3 "2019-07-02T13:50:10Z")

</div>

Also, have you modified your global clojure CLI properties (i.e. `~/.clojure/deps.edn`)?

---

<div class="post-metadata">

**Author:** ![marshall](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/marshall/32/48_2.png) [@marshall](https://forum.datomic.com/u/marshall)\
**Post date:** [July 2, 2019, 7:28pm UTC](https://forum.datomic.com/t/push-fails-by-not-finding-an-artifact-in-s3/1056/4 "2019-07-02T19:28:11Z")

</div>

We’ve identified an issue with the latest release of the Clojure CLI and ion-dev. See the details here: [Ion-dev incompatibility with CLI](https://forum.datomic.com/t/ion-dev-incompatibility-with-cli/1057)

I suspect this is the cause of your issue.

---

<div class="post-metadata">

**Author:** ![jgomo3](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/jgomo3/32/207_2.png) [@jgomo3](https://forum.datomic.com/u/jgomo3)\
**Post date:** [July 3, 2019, 10:32pm UTC](https://forum.datomic.com/t/push-fails-by-not-finding-an-artifact-in-s3/1056/5 "2019-07-03T22:32:18Z")

</div>

Yes, that was the problem, Thank you!

This is my 1.10.1.458 is my Clojure version.

I downgraded it to …457 and it worked. I suppose the fix would be to add maven central in the deps file.

---

<div class="post-metadata">

**Author:** ![marshall](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/marshall/32/48_2.png) [@marshall](https://forum.datomic.com/u/marshall)\
**Post date:** [July 5, 2019, 2:51pm UTC](https://forum.datomic.com/t/push-fails-by-not-finding-an-artifact-in-s3/1056/6 "2019-07-05T14:51:35Z")

</div>

Newest update to the CLI fixes this issue:

> [@Ion-dev incompatibility with CLI](https://forum.datomic.com/t/ion-dev-incompatibility-with-cli/1057/2):
>
> The Clojure CLI version 1.10.1.462 includes a fix for this issue. Instructions for updating can be found at [https://clojure.org/guides/getting\_started](https://clojure.org/guides/getting_started)
