Imported Google Group message. Original thread at: Redirecting to Google Groups Import Date: 2016-01-19 21:35:16 +0000.
Sender:Tarmo Janson
.
Date:Monday, 14 December 2015 13:57:49 UTC.
Hi,
I set up the new 1.9 gateway and 0.9.7.0 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 0.9.7.0
^[[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
main.setupPortalTemplates()
/home/tyk/go/src/github.com/lonelycode/tyk-analytics/Main.go:435 +0x675
main.main()
/home/tyk/go/src/github.com/lonelycode/tyk-analytics/Main.go:696 +0x48
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1
goroutine 5 [chan receive]:
github.com/getsentry/raven-go.(*Client).worker(0xc8200bbd90)
/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]:
time.Sleep(0x12a05f200)
/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]:
time.Sleep(0x1dcd6500)
/usr/local/go/src/runtime/time.go:59 +0xf9
gopkg.in/mgo%2ev2.(*mongoCluster).syncServersLoop(0xc82021c000)
/home/tyk/go/src/gopkg.in/mgo.v2/cluster.go:366 +0x2b1
created
…