# Resource is reporting "DOWN" even though it was deployed successfully

**URL:** <https://discuss.hashicorp.com/t/resource-is-reporting-down-even-though-it-was-deployed-successfully/55179>\
**Category:** Waypoint\
**Created:** [June 19, 2023, 4:37pm UTC](https://discuss.hashicorp.com/t/resource-is-reporting-down-even-though-it-was-deployed-successfully/55179 "2023-06-19T16:37:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zboralski](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/zboralski/32/35323_2.png) [@zboralski](https://discuss.hashicorp.com/u/zboralski)\
**Post date:** [June 19, 2023, 4:37pm UTC](https://discuss.hashicorp.com/t/resource-is-reporting-down-even-though-it-was-deployed-successfully/55179/1 "2023-06-19T16:37:36Z")

</div>

this is my waypoint.hcl

```plaintext
project = "imgserver"

app "imgserver" {
  build {
    use "docker" {
      buildkit = true
      platform = "linux/amd64"
      disable_entrypoint = true
    }

    registry {
      use "docker" {
        image = "xxx/imgserver"
        tag = "latest"
        local = false
      }
    }
  }

  deploy {
    use "nomad-jobspec" {
      jobspec = templatefile("${path.app}/imgserver.nomad.hcl", {
        hostname = var.hostname
        datacenter = var.datacenter
        host_network = var.host_network
      })
    }
  }

  release {}

  url {
    auto_hostname = false
  }
}

variable "hostname" {
  type = string
  default = "localhost"
}

variable "datacenter" {
  type = string
  default = "dc1"
}

variable "host_network" {
  type = string
  default = "default"
}

```

and my nomad template:

```plaintext
job "imgserver" {
  datacenters = ["${datacenter}"]
  group "imgserver" {
    network {
      port "http" {
        host_network = "${host_network}"
        to = 8080
      }
    }

    service {
      provider = "nomad"
      name = "imgserver"
      port = "http"

      check {
        type = "http"
        path = "/health"
        interval = "10s"
        timeout = "1m"
      } 

      tags = [
        "traefik.enable=true",
        "traefik.http.routers.imgserver.rule=Host(`${hostname}`)",
        "traefik.http.routers.imgserver.tls=true",
        "traefik.http.routers.imgserver.entrypoints=imgserver",
        "traefik.http.routers.imgserver.tls.certresolver=letsencrypt",
      ]
    }

    vault {
      policies = ["nomad-imgserver"]
    }

    task "imgserver" {
      driver = "docker"
      config {
        image = "xxx/imgserver:latest"

        ports = ["http"]
        force_pull = true
      }

      env {
        WAYPOINT_CEB_DISABLE_EXEC = "1"
      }

      template {
        data = <<EOH
REDIS_HOST="{{ env "NOMAD_IP_http" }}:6379"
{{ with secret "keydb/creds/imgserver" }}REDIS_USERNAME={{ .Data.username }}
REDIS_PASSWORD={{ .Data.password }}{{ end }}
EOH
        destination = "$${NOMAD_SECRETS_DIR}/imgserver.env"
        change_mode = "restart"
        env = true
        perms = "0400"
      }
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![zboralski](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/zboralski/32/35323_2.png) [@zboralski](https://discuss.hashicorp.com/u/zboralski)\
**Post date:** [June 19, 2023, 4:40pm UTC](https://discuss.hashicorp.com/t/resource-is-reporting-down-even-though-it-was-deployed-successfully/55179/2 "2023-06-19T16:40:47Z")

</div>

n.b. the health endpoint is working

curl [https://xxx:8443/health](https://xxx:8443/health)  
OK%

---

<div class="post-metadata">

**Author:** ![paladin-devops](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/paladin-devops/32/25689_2.png) [@paladin-devops](https://discuss.hashicorp.com/u/paladin-devops)\
**Post date:** [June 21, 2023, 8:49pm UTC](https://discuss.hashicorp.com/t/resource-is-reporting-down-even-though-it-was-deployed-successfully/55179/3 "2023-06-21T20:49:08Z")

</div>

Hey @zboralski , Waypoint may be reporting the job as `DOWN` because Waypoint runs a status report as soon as the deployment is complete, and the app may not be fully up and running yet. After some time passes, the app may be fully online, but unless polling is enabled, that status will not refresh automatically. To trigger that to update, try running `waypoint status -p imgserver -a imgserver -refresh`.
