# Troubleshooting :deploy-status "FAILED", :code-deploy-status "SUCCEEDED"

**URL:** <https://forum.datomic.com/t/troubleshooting-deploy-status-failed-code-deploy-status-succeeded/2052>\
**Category:** Troubleshooting\
**Created:** [February 22, 2022, 9:53am UTC](https://forum.datomic.com/t/troubleshooting-deploy-status-failed-code-deploy-status-succeeded/2052 "2022-02-22T09:53:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yesyes](https://avatars.discourse-cdn.com/v4/letter/y/f6c823/32.png) [@yesyes](https://forum.datomic.com/u/yesyes)\
**Post date:** [February 22, 2022, 9:53am UTC](https://forum.datomic.com/t/troubleshooting-deploy-status-failed-code-deploy-status-succeeded/2052/1 "2022-02-22T09:53:52Z")

</div>

I am trying to deploy the `ion-starter` project. This is the furthest I’ve gotten:

```auto
{:deploy-status "FAILED", :code-deploy-status "SUCCEEDED"}

```

Debugging and finding meaningful error messages in AWS has been somewhat demoralizing.

Searching CloudWatch for “Alert - Alert” reveals no events.

I did not modify the `ion-starter` codebase except for configuring the `:endpoint` and `:app-name`.

(I was able to complete the steps in “Develop at the REPL” [0]. I assume this means I configured my connection correctly.)

[0]: [https://docs.datomic.com/cloud/ions/ions-tutorial.html#repl](https://docs.datomic.com/cloud/ions/ions-tutorial.html#repl)

My guess is that I am doing something wrong with deps.edn or maybe API Gateway because these are the parts of Clojure and AWS, respectively, I understand least.

Note: I have probably created seven different AWS accounts to start “fresh”. I have tried creating stacks in every possible way: Master Stack using Solo, Master Stack using Production, Master Stack using Query Group, Split Stack using the 939-9127 templates [1].

[1]: [https://docs.datomic.com/cloud/operation/new-system.html](https://docs.datomic.com/cloud/operation/new-system.html)

User deps.edn:

```auto
{:aliases
  {:ion-dev
    {:deps {com.datomic/ion-dev {:mvn/version "1.0.298"}}
    :main-opts ["-m" "datomic.ion.dev"]}}
 :mvn/repos {"datomic-cloud" {:url "s3://datomic-releases-1fc2183a/maven/releases"}}}

```

Project deps.edn:

```auto
{:paths ["src" "resources"]
 :deps {com.cognitect/anomalies {:mvn/version "0.1.12"}
        com.datomic/client-cloud {:mvn/version "1.0.119"}
        com.datomic/ion {:mvn/version "1.0.58"}
        org.clojure/clojure {:mvn/version "1.10.1"}
        org.clojure/data.json {:mvn/version "0.2.6"}}
 :mvn/repos {"datomic-cloud" {:url "s3://datomic-releases-1fc2183a/maven/releases"}}}

```

---

<div class="post-metadata">

**Author:** ![yesyes](https://avatars.discourse-cdn.com/v4/letter/y/f6c823/32.png) [@yesyes](https://forum.datomic.com/u/yesyes)\
**Post date:** [March 9, 2022, 9:59am UTC](https://forum.datomic.com/t/troubleshooting-deploy-status-failed-code-deploy-status-succeeded/2052/2 "2022-03-09T09:59:21Z")

</div>

Could someone chime in and help me understand why this post didn’t receive a response so I can form better questions in the future?

---

<div class="post-metadata">

**Author:** ![jaret](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/jaret/32/45_2.png) [@jaret](https://forum.datomic.com/u/jaret)\
**Post date:** [March 9, 2022, 12:33pm UTC](https://forum.datomic.com/t/troubleshooting-deploy-status-failed-code-deploy-status-succeeded/2052/3 "2022-03-09T12:33:22Z")

</div>

@yesyes frankly I didn’t see the thread or I would have jumped in. Sorry about that! Can you share your ion-config.edn? As a troubleshooting step it is worthwhile to try deploying an empty ion (meaning removing all the code from your ion-config.edn and re-deploying). Alternatively you can test with _just_ [the ion-starter project](https://github.com/Datomic/ion-starter)? The status you are showing indicates to me that the code deploy succeeded and you should be able to confirm that in the code deploy console, but the deploy failed to deploy to your target stack. Can you share your exact output from running `push` and `deploy` along with the command you ran?

In the code deploy console can you find your deployment and confirm that it deployed to the instance you are targeting with your system?

When you drill into a deploy you can select “view events” and see which instance it deployed to. Here is a successful set of events from a recent deploy.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/cognitect/original/1X/b6314686b0309299d279e5ec9c2dbb9aa40aad58.png)

---

<div class="post-metadata">

**Author:** ![jaret](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.datomic.com/jaret/32/45_2.png) [@jaret](https://forum.datomic.com/u/jaret)\
**Post date:** [March 10, 2022, 1:40pm UTC](https://forum.datomic.com/t/troubleshooting-deploy-status-failed-code-deploy-status-succeeded/2052/4 "2022-03-10T13:40:43Z")

</div>

Adding here that we added an example of an empty ion config deploy: [Ions Tutorial | Datomic](https://docs.datomic.com/cloud/ions-tutorial/cleanup.html#ion-cleanup)
