Dashboard service not running


Imported Google Group message. Original thread at: https://groups.google.com/forum/#!topic/tyk-community-support/zuUwTZ0T2MM Import Date: 2016-01-19 21:35:16 +0000.
Sender:Tarmo Janson.
Date:Monday, 14 December 2015 13:57:49 UTC.


I set up the new 1.9 gateway and dashboard up on a Ubuntu VM using apt.
When trying to start the dashboard with “sudo service tyk-dashboard start”, it says it started but it stops right away.
If I start it from /opt/tyk-dashboard with “./tyk-analytics”, it keeps running and shows the dev portal just fine. But if I refresh a portal page it logs out “WARN[0008] Failed to retrieve object: not found”

This is written to the dashboard log file multiple times after running “sudo service tyk-dashboard start”:
(I checked and all the template files are in /opt/tyk-dashboard/portal/templates/)
^[[34mINFO^[[0m[0000] Using /opt/tyk-dashboard/tyk_analytics.conf for configuration

^[[34mINFO^[[0m[0000] Creating new Redis connection pool

^[[34mINFO^[[0m[0000] Tyk Analytics Dashboard

^[[34mINFO^[[0m[0000] Copyright Martin Buhr 2015

^[[34mINFO^[[0m[0000] https://www.tyk.io

^[[34mINFO^[[0m[0000] Listening on port: 3000

panic: html/template: pattern matches no files: portal/templates/*.html

goroutine 1 [running]:

html/template.Must(0x0, 0x7f690a475028, 0xc8201fec30, 0x0)

    /usr/local/go/src/html/template/template.go:330 +0x4b


    /home/tyk/go/src/github.com/lonelycode/tyk-analytics/Main.go:435 +0x675


    /home/tyk/go/src/github.com/lonelycode/tyk-analytics/Main.go:696 +0x48

goroutine 17 [syscall, locked to thread]:


    /usr/local/go/src/runtime/asm_amd64.s:1696 +0x1

goroutine 5 [chan receive]:


    /home/tyk/go/src/github.com/getsentry/raven-go/client.go:415 +0x60

created by github.com/getsentry/raven-go.newClient

    /home/tyk/go/src/github.com/getsentry/raven-go/client.go:304 +0x192

goroutine 20 [sleep]:


    /usr/local/go/src/runtime/time.go:59 +0xf9

gopkg.in/mgo%2ev2.(*mongoServer).pinger(0xc820118380, 0x1)

    /home/tyk/go/src/gopkg.in/mgo.v2/server.go:297 +0x1b4

created by gopkg.in/mgo%2ev2.newServer

    /home/tyk/go/src/gopkg.in/mgo.v2/server.go:90 +0x162

goroutine 19 [sleep]:


    /usr/local/go/src/runtime/time.go:59 +0xf9


    /home/tyk/go/src/gopkg.in/mgo.v2/cluster.go:366 +0x2b1



Imported Google Group message.
Sender:Martin Buhr.
Date:Monday, 14 December 2015 14:29:28 UTC.

Hi Tarmo,

Did you run the configuration script:


It sets up your dashboard configuration file, the one that ships by default could error out because the paths in the tyk_analytics.conf file wil not be setup to run outside of the home folder.

You can run the configurations script as many times as you like, it will just overwrite the old one.

You can also check the logs in /var/log/upstart/

They’ll show you the output of the service trying to start.