# Entities do not show up in UI as per namespace but sensuctl shows entities correctly

**URL:** <https://discourse.sensu.io/t/entities-do-not-show-up-in-ui-as-per-namespace-but-sensuctl-shows-entities-correctly/1929>\
**Category:** Sensu Go\
**Tags:** sensu-go\
**Created:** [July 1, 2020, 6:22pm UTC](https://discourse.sensu.io/t/entities-do-not-show-up-in-ui-as-per-namespace-but-sensuctl-shows-entities-correctly/1929 "2020-07-01T18:22:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![swapzero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/swapzero/32/529_2.png) [@swapzero](https://discourse.sensu.io/u/swapzero)\
**Post date:** [July 1, 2020, 6:22pm UTC](https://discourse.sensu.io/t/entities-do-not-show-up-in-ui-as-per-namespace-but-sensuctl-shows-entities-correctly/1929/1 "2020-07-01T18:22:35Z")

</div>

**Sensu Go Topic Template**  
Make sure to [read the docs](https://docs.sensu.io/) before asking your question. Please be kind and remember that this those helping you are volunteers.

Having a problem and looking for help? Consider including:

1. What have you already tried? Please include links to gists and/or code blocks (if relatively small)

I have multiple agents connected to the backend with events and checks configured which are behaving as expected. When i add namespace to the `agent.yml` configuration, the checks move from default namespace to the new namespace on the UI but the entities are not seen as expected in the new namespace.

1. Tell us about your setup, this should include OS, version of Sensu, version of Sensu components plugin versions (if applicable), anything special about your setup such as an airgapped network or strict ACLs

Sensu-backend, agent and sensuctl are all `(devel)+ce, community edition, built with go1.13` on CentOS 7 machines on AWS.

1. Is there a Github issue related to your issue?
2. Is there anything else that can help us effectively help you?
3. use the Discourse upload button to attach Sensu relevant yaml or json configuration files.

My agent configuration is

```auto
subscriptions:
  - webserver
  - system
  - all
backend-url:
  - "ws://<REDACTED>:8081"
name: "sensu-agent-01"
namespace: "nonprod"

```

My sensuctl output for entities is as follows

```auto
# sensuctl entity list --namespace default
              ID Class OS Subscriptions Last Seen
 ───────────────────────────── ─────── ─────── ────────────────────────────────────────────────────────── ───────────────────────────────
  <REDACTED> agent linux webserver,windows,all,entity:<REDACTED> 2020-06-30 18:30:53 +0000 UTC

# sensuctl entity list --namespace nonprod
              ID Class OS Subscriptions Last Seen
 ───────────────────────────── ─────── ─────── ───────────────────────────────────────────────────────── ───────────────────────────────
  <REDACTED> agent linux webserver,system,all,entity:<REDACTED> 2020-06-30 18:41:53 +0000 UTC
  sensu-agent-01 agent linux webserver,system,all,entity:sensu-agent-01 2020-07-01 17:37:56 +0000 UTC

```

---

<div class="post-metadata">

**Author:** ![swapzero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/swapzero/32/529_2.png) [@swapzero](https://discourse.sensu.io/u/swapzero)\
**Post date:** [July 1, 2020, 6:25pm UTC](https://discourse.sensu.io/t/entities-do-not-show-up-in-ui-as-per-namespace-but-sensuctl-shows-entities-correctly/1929/2 "2020-07-01T18:25:18Z")

</div>

Also attached are the screenshots for the UI view where we can see the events but not the entities in the nonprod namespace

 ![Screen Shot 2020-07-01 at 2.22.12 PM](https://us1.discourse-cdn.com/flex016/uploads/sensu/original/1X/dc690f520a35431ed5572f00954152566c50c780.png) ![Screen Shot 2020-07-01 at 2.22.30 PM](https://us1.discourse-cdn.com/flex016/uploads/sensu/original/1X/746f8039bfc56bdea10db018b828c6a9fb3b47ab.png)

---

<div class="post-metadata">

**Author:** ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)\
**Post date:** [July 1, 2020, 7:06pm UTC](https://discourse.sensu.io/t/entities-do-not-show-up-in-ui-as-per-namespace-but-sensuctl-shows-entities-correctly/1929/3 "2020-07-01T19:06:48Z")

</div>

This looks like an OSS local build based on the version string.

Did you build against master or a specific tag? Its unfortunate you didn’t encode the git commit sha into the version info. makes it difficult to know what commit you built against.

First thing you want to do is probably update your build process and make sure you are using the version of the build instructions in the repository README that include the build versioning. Especially the github commit SHA.

Without more information, I’m let assuming you are building against the tip of master, which is probably not what you want to do, unles you are looking for bugs, or trying to develop a bug fix to submit back as a pull request. if you aren’t comfortable troubleshooting bugs as you find them, maybe you want to first start with a build from a release tag checkout. Don’t get me wrong I love seeing people testing the bleeding edge of the OSS codebase, but its probably going to be a buggy experience, without a lot of other people who can help. The tip of master isn’t expected to be regression free.

---

<div class="post-metadata">

**Author:** ![swapzero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/swapzero/32/529_2.png) [@swapzero](https://discourse.sensu.io/u/swapzero)\
**Post date:** [July 1, 2020, 7:15pm UTC](https://discourse.sensu.io/t/entities-do-not-show-up-in-ui-as-per-namespace-but-sensuctl-shows-entities-correctly/1929/4 "2020-07-01T19:15:35Z")

</div>

Yeah this is definitely built against the master branch. I will build this against tag 5.21.0 instead and report if the issue persists. Thanks for the quick response

---

<div class="post-metadata">

**Author:** ![swapzero](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/swapzero/32/529_2.png) [@swapzero](https://discourse.sensu.io/u/swapzero)\
**Post date:** [July 1, 2020, 7:23pm UTC](https://discourse.sensu.io/t/entities-do-not-show-up-in-ui-as-per-namespace-but-sensuctl-shows-entities-correctly/1929/5 "2020-07-01T19:23:21Z")

</div>

Was definitely a version issue. Recreating the commands from release 5.21 did the trick. My bad in assuming the master branch was up-to-date with the latest release. Thank you @jspaleta
