# Uchiwa problem with stash

**URL:** <https://discourse.sensu.io/t/uchiwa-problem-with-stash/384>\
**Category:** Sensu Classic (EOL)\
**Created:** [March 4, 2015, 3:34am UTC](https://discourse.sensu.io/t/uchiwa-problem-with-stash/384 "2015-03-04T03:34:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Kong](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@Anthony\_Kong](https://discourse.sensu.io/u/Anthony_Kong)\
**Post date:** [March 4, 2015, 3:34am UTC](https://discourse.sensu.io/t/uchiwa-problem-with-stash/384/1 "2015-03-04T03:34:50Z")

</div>

Hi,

It is very strange. The uchiwa frontend can apparently display clients and events withno issue.

But when it comes to stash, I find a lot of error in the log:

{“Date”:“2015-03-03T20:20:53.70131664Z”,“Level”:“warning”,“Src”:{“Func”:“[github.com/sensu/uchiwa/uchiwa.Build",“Line”:49},“Output”:"API](http://github.com/sensu/uchiwa/uchiwa.Build%22,%22Line%22:49%7D,%22Output%22:%22API) call to “[http://127.0.0.1:4567/stashes](http://127.0.0.1:4567/stashes)” returned: Get [http://127.0.0.1:4567/stashes:](http://127.0.0.1:4567/stashes:) dial tcp 127.0.0.1:4567: connection refused”}

Here is my config.json

{

“rabbitmq”: {

```
"host": "localhost",

"port": 5671,

"vhost": "/sensu",

"user": "sensu",

"password": "password",

"ssl": {

  "cert_chain_file": "/etc/sensu/ssl/cert.pem",

  "private_key_file": "/etc/sensu/ssl/key.pem"

}

```

},

“redis”: {

```
"host": "localhost",

"port": 6379

```

},

“api”: {

```
"host": "localhost",

"bind": "0.0.0.0",

"port": 4567

```

}

}

and here is my uchiwa config:

{

“uchiwa”: {

```
"user": "admin",

"pass": "password",

"refresh": 5,

"host": "0.0.0.0",

"port": 3000

```

},

“sensu”: [

```
{

  "name": "Sensu",

  "host": "127.0.0.1",

  "port": 4567,

  "path": "",

  "ssl": false,

  "timeout": 5

}

```

]

}

What did I miss in my configuration?

---

<div class="post-metadata">

**Author:** ![Simon\_Plourde](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Simon\_Plourde](https://discourse.sensu.io/u/Simon_Plourde)\
**Post date:** [March 4, 2015, 2:25pm UTC](https://discourse.sensu.io/t/uchiwa-problem-with-stash/384/2 "2015-03-04T14:25:20Z")

</div>

Hi Anthony,

The reason why you see entries regarding the stashes is simply because it’s the first call made to an API by Uchiwa and if it fails, it will pass to the next API.

I recommend that to verify your Sensu API logs in order to understand why Uchiwa can’t connect temporarily to the API. It might be, for example, because your configuration management tool is restarting the API.

> **···**
>
> On Tuesday, March 3, 2015 at 10:34:50 PM UTC-5, Anthony Kong wrote:
> 
> > Hi,
> 
> > It is very strange. The uchiwa frontend can apparently display clients and events withno issue.
> 
> > 
> 
> > But when it comes to stash, I find a lot of error in the log:
> 
> > 
> 
> > {“Date”:“2015-03-03T20:20:53.70131664Z”,“Level”:“warning”,“Src”:{“Func”:“[github.com/sensu/uchiwa/uchiwa.Build](http://github.com/sensu/uchiwa/uchiwa.Build)”,“Line”:49},“Output”:“API call to "[[http://127.0.0.1:4567/stashes\](http://127.0.0.1:4567/stashes%5C)]([http://127.0.0.1:4567/stashes\](http://127.0.0.1:4567/stashes%5C))” returned: Get [http://127.0.0.1:4567/stashes](http://127.0.0.1:4567/stashes): dial tcp [127.0.0.1:4567](http://127.0.0.1:4567): connection refused"}
> 
> > 
> 
> > Here is my config.json
> 
> > 
> 
> > 
> 
> > {
> 
> > “rabbitmq”: {
> 
> > ```
> > "host": "localhost",
> > 
> > ```
> 
> > ```
> > "port": 5671,
> > 
> > ```
> 
> > ```
> > "vhost": "/sensu",
> > 
> > ```
> 
> > ```
> > "user": "sensu",
> > 
> > ```
> 
> > ```
> > "password": "password",
> > 
> > ```
> 
> > ```
> > "ssl": {
> > 
> > ```
> 
> > ```
> > "cert_chain_file": "/etc/sensu/ssl/cert.pem",
> > 
> > ```
> 
> > ```
> > "private_key_file": "/etc/sensu/ssl/key.pem"
> > 
> > ```
> 
> > ```
> > }
> > 
> > ```
> 
> > },
> 
> > “redis”: {
> 
> > ```
> > "host": "localhost",
> > 
> > ```
> 
> > ```
> > "port": 6379
> > 
> > ```
> 
> > },
> 
> > “api”: {
> 
> > ```
> > "host": "localhost",
> > 
> > ```
> 
> > ```
> > "bind": "0.0.0.0",
> > 
> > ```
> 
> > ```
> > "port": 4567
> > 
> > ```
> 
> > }
> 
> > 
> 
> > }
> 
> > and here is my uchiwa config:
> 
> > 
> 
> > {
> 
> > “uchiwa”: {
> 
> > ```
> > "user": "admin",
> > 
> > ```
> 
> > ```
> > "pass": "password",
> > 
> > ```
> 
> > ```
> > "refresh": 5,
> > 
> > ```
> 
> > ```
> > "host": "0.0.0.0",
> > 
> > ```
> 
> > ```
> > "port": 3000
> > 
> > ```
> 
> > },
> 
> > “sensu”: [
> 
> > ```
> > {
> > 
> > ```
> 
> > ```
> > "name": "Sensu",
> > 
> > ```
> 
> > ```
> > "host": "127.0.0.1",
> > 
> > ```
> 
> > ```
> > "port": 4567,
> > 
> > ```
> 
> > ```
> > "path": "",
> > 
> > ```
> 
> > ```
> > "ssl": false,
> > 
> > ```
> 
> > ```
> > "timeout": 5
> > 
> > ```
> 
> > ```
> > }
> > 
> > ```
> 
> > ]
> 
> > 
> 
> > }
> 
> > 
> 
> > What did I miss in my configuration?
> 
> >
