# uchiwa not coming up and crash

**URL:** <https://discourse.sensu.io/t/uchiwa-not-coming-up-and-crash/307>\
**Category:** Sensu Classic (EOL)\
**Created:** [November 7, 2014, 11:24pm UTC](https://discourse.sensu.io/t/uchiwa-not-coming-up-and-crash/307 "2014-11-07T23:24:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nathan\_Paul](https://avatars.discourse-cdn.com/v4/letter/n/ce7236/32.png) [@Nathan\_Paul](https://discourse.sensu.io/u/Nathan_Paul)\
**Post date:** [November 7, 2014, 11:24pm UTC](https://discourse.sensu.io/t/uchiwa-not-coming-up-and-crash/307/1 "2014-11-07T23:24:25Z")

</div>

Uchiwa crashing immediately after start on Ubuntu 12.0.4

Anybody see this issue? Is there any work around?.,

Thanks in advance.

NP

Log file:  
{“Date”:“2014-11-07T23:19:07.266321513Z”,“Level”:“info”,“Src”:{“Func”:“[github.com/sensu/uchiwa/uchiwa.LoadConfig",“Line”:96},“Output”:"Loading](http://github.com/sensu/uchiwa/uchiwa.LoadConfig%22,%22Line%22:96%7D,%22Output%22:%22Loading) configuration file /etc/sensu/conf.d/uchiwa.json”}  
{“Date”:“2014-11-07T23:19:07.267049731Z”,“Level”:“info”,“Src”:{“Func”:“[github.com/sensu/uchiwa/uchiwa.WebServer",“Line”:146},“Output”:"Uchiwa](http://github.com/sensu/uchiwa/uchiwa.WebServer%22,%22Line%22:146%7D,%22Output%22:%22Uchiwa) is now listening on 127.0.0.1:3000”}

Error file:  
panic: interface conversion: interface is nil, not string

goroutine 20 [running]:  
runtime.panic(0x6939e0, 0xc208040e40)  
/usr/local/go/src/pkg/runtime/panic.c:279 +0xf5  
[github.com/sensu/uchiwa/uchiwa.BuildEvents()](http://github.com/sensu/uchiwa/uchiwa.BuildEvents())  
/root/go/src/github.com/sensu/uchiwa/uchiwa/events.go:48 +0xd26  
[github.com/sensu/uchiwa/uchiwa.Build(0x8686d0)](http://github.com/sensu/uchiwa/uchiwa.Build(0x8686d0))  
/root/go/src/github.com/sensu/uchiwa/uchiwa/dc.go:106 +0x2e6  
[github.com/sensu/uchiwa/uchiwa.Fetch(0xa)](http://github.com/sensu/uchiwa/uchiwa.Fetch(0xa))  
/root/go/src/github.com/sensu/uchiwa/uchiwa/dc.go:117 +0x2a  
created by main.main  
/tmp/build/assets/opt/uchiwa/src/uchiwa.go:21 +0x1b0

---

<div class="post-metadata">

**Author:** ![Nathan\_Paul](https://avatars.discourse-cdn.com/v4/letter/n/ce7236/32.png) [@Nathan\_Paul](https://discourse.sensu.io/u/Nathan_Paul)\
**Post date:** [November 8, 2014, 9:16pm UTC](https://discourse.sensu.io/t/uchiwa-not-coming-up-and-crash/307/2 "2014-11-08T21:16:05Z")

</div>

Noticed the http listener crashing when API auth is configured in uchiwa.json. When I configured with wrong values it is working and I see the dashboard.

> **···**
>
> On Fri, Nov 7, 2014 at 3:24 PM, Nathan Paul [nathan.paul8@gmail.com](mailto:nathan.paul8@gmail.com) wrote:
> 
> > Uchiwa crashing immediately after start on Ubuntu 12.0.4
> > 
> > Anybody see this issue? Is there any work around?.,
> > 
> > Thanks in advance.
> > 
> > NP
> > 
> > Log file:  
> > {“Date”:“2014-11-07T23:19:07.266321513Z”,“Level”:“info”,“Src”:{“Func”:“[github.com/sensu/uchiwa/uchiwa.LoadConfig](http://github.com/sensu/uchiwa/uchiwa.LoadConfig)”,“Line”:96},“Output”:“Loading configuration file /etc/sensu/conf.d/uchiwa.json”}  
> > {“Date”:“2014-11-07T23:19:07.267049731Z”,“Level”:“info”,“Src”:{“Func”:“[github.com/sensu/uchiwa/uchiwa.WebServer](http://github.com/sensu/uchiwa/uchiwa.WebServer)”,“Line”:146},“Output”:“Uchiwa is now listening on [127.0.0.1:3000](http://127.0.0.1:3000)”}
> > 
> > Error file:  
> > panic: interface conversion: interface is nil, not string
> > 
> > goroutine 20 [running]:  
> > runtime.panic(0x6939e0, 0xc208040e40)  
> > /usr/local/go/src/pkg/runtime/panic.c:279 +0xf5  
> > [github.com/sensu/uchiwa/uchiwa.BuildEvents()](http://github.com/sensu/uchiwa/uchiwa.BuildEvents())  
> > /root/go/src/[github.com/sensu/uchiwa/uchiwa/events.go:48](http://github.com/sensu/uchiwa/uchiwa/events.go:48) +0xd26  
> > [github.com/sensu/uchiwa/uchiwa.Build(0x8686d0)](http://github.com/sensu/uchiwa/uchiwa.Build(0x8686d0))  
> > /root/go/src/[github.com/sensu/uchiwa/uchiwa/dc.go:106](http://github.com/sensu/uchiwa/uchiwa/dc.go:106) +0x2e6  
> > [github.com/sensu/uchiwa/uchiwa.Fetch(0xa)](http://github.com/sensu/uchiwa/uchiwa.Fetch(0xa))  
> > /root/go/src/[github.com/sensu/uchiwa/uchiwa/dc.go:117](http://github.com/sensu/uchiwa/uchiwa/dc.go:117) +0x2a  
> > created by main.main  
> > /tmp/build/assets/opt/uchiwa/src/uchiwa.go:21 +0x1b0

---

<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:** [November 10, 2014, 2:19am UTC](https://discourse.sensu.io/t/uchiwa-not-coming-up-and-crash/307/3 "2014-11-10T02:19:39Z")

</div>

Hi Nathan,

Which version of Sensu and Uchiwa are you using?

Also, could you provide me the JSON returned by the events endpoint of the Sensu API (usually something like http://sensu\_api:4567/events).

Thanks

> **···**
>
> On Saturday, November 8, 2014 4:16:06 PM UTC-5, Nathan Paul wrote:
> 
> > Noticed the http listener crashing when API auth is configured in uchiwa.json. When I configured with wrong values it is working and I see the dashboard.
> 
> > On Fri, Nov 7, 2014 at 3:24 PM, Nathan Paul [nathan...@gmail.com](mailto:nathan...@gmail.com) wrote:
> > 
> > > Uchiwa crashing immediately after start on Ubuntu 12.0.4
> > > 
> > > Anybody see this issue? Is there any work around?.,
> > > 
> > > Thanks in advance.
> > > 
> > > NP
> > > 
> > > Log file:  
> > > {“Date”:“2014-11-07T23:19:07.266321513Z”,“Level”:“info”,“Src”:{“Func”:“[github.com/sensu/uchiwa/uchiwa.LoadConfig](http://github.com/sensu/uchiwa/uchiwa.LoadConfig)”,“Line”:96},“Output”:“Loading configuration file /etc/sensu/conf.d/uchiwa.json”}  
> > > {“Date”:“2014-11-07T23:19:07.267049731Z”,“Level”:“info”,“Src”:{“Func”:“[github.com/sensu/uchiwa/uchiwa.WebServer](http://github.com/sensu/uchiwa/uchiwa.WebServer)”,“Line”:146},“Output”:“Uchiwa is now listening on [127.0.0.1:3000](http://127.0.0.1:3000)”}
> > > 
> > > Error file:  
> > > panic: interface conversion: interface is nil, not string
> > > 
> > > goroutine 20 [running]:  
> > > runtime.panic(0x6939e0, 0xc208040e40)  
> > > /usr/local/go/src/pkg/runtime/panic.c:279 +0xf5  
> > > [github.com/sensu/uchiwa/uchiwa.BuildEvents()](http://github.com/sensu/uchiwa/uchiwa.BuildEvents())  
> > > /root/go/src/[github.com/sensu/uchiwa/uchiwa/events.go:48](http://github.com/sensu/uchiwa/uchiwa/events.go:48) +0xd26  
> > > [github.com/sensu/uchiwa/uchiwa.Build(0x8686d0)](http://github.com/sensu/uchiwa/uchiwa.Build(0x8686d0))  
> > > /root/go/src/[github.com/sensu/uchiwa/uchiwa/dc.go:106](http://github.com/sensu/uchiwa/uchiwa/dc.go:106) +0x2e6  
> > > [github.com/sensu/uchiwa/uchiwa.Fetch(0xa)](http://github.com/sensu/uchiwa/uchiwa.Fetch(0xa))  
> > > /root/go/src/[github.com/sensu/uchiwa/uchiwa/dc.go:117](http://github.com/sensu/uchiwa/uchiwa/dc.go:117) +0x2a  
> > > created by main.main  
> > > /tmp/build/assets/opt/uchiwa/src/uchiwa.go:21 +0x1b0
> 
> >
