Upgrade tyk2.0 from older version, Also want to setup in docker

Hello Martin,

I have already defined the node secret in my local gateway . But still have problems when trying to generate keys for the organization. I can in dashboard to create them but I cannot create when using my api. I have the same problem a while back and I talked to you and at the time You told me to create a little timer to wait for API reload. In the previous version it was working but know it gives a null pointer exception on tyk gateway.

The previous thread link Create Organisations, Users, Api Definitions, Key - #7 by Carlos_Carvalho

The stack trace is as follows.

time=“Jun 2 09:17:50” level=info msg=“Reloading endpoints”
time=“Jun 2 09:17:50” level=info msg=“Initiating reload”
time=“Jun 2 09:17:58” level=info msg=“Reloading endpoints”
time=“Jun 2 09:17:58” level=info msg=“Reloading endpoints”
time=“Jun 2 09:18:00” level=info msg=“Detected 4 APIs”
time=“Jun 2 09:18:00” level=info msg=“–> Loading API: Admin”
time=“Jun 2 09:18:00” level=info msg=“----> Tracking: (no host)”
time=“Jun 2 09:18:00” level=info msg=“----> Checking security policy: Open”
time=“Jun 2 09:18:00” level=info msg=“–> Loading API: Services”
time=“Jun 2 09:18:00” level=info msg=“----> Tracking: (no host)”
time=“Jun 2 09:18:00” level=info msg=“----> Checking security policy: Token”
time=“Jun 2 09:18:00” level=info msg=“–> Loading API: Order Service”
time=“Jun 2 09:18:00” level=error msg=“Duplicate listen path found, skipping. API ID: 78d4811b0b1448a16aa0736a65dff00f”
time=“Jun 2 09:18:00” level=warning msg=“----> Skipped!”
time=“Jun 2 09:18:00” level=info msg=“–> Loading API: Order Service”
time=“Jun 2 09:18:00” level=error msg=“Duplicate listen path found, skipping. API ID: 609c625e6b5947b6748e94da28a6d3e6”
time=“Jun 2 09:18:00” level=warning msg=“----> Skipped!”
time=“Jun 2 09:18:00” level=info msg=“Loading uptime tests…”
time=“Jun 2 09:18:00” level=info msg=“API reload complete”
time=“Jun 2 09:18:28” level=info msg=“Reset quota for key.” inbound-key=574ff9c6dc7161002400000a3de868c888f047386dae1e273e327fe8 key=quota-700f3253
2016/06/02 09:18:28 http: panic serving 172.18.0.21:39597: runtime error: invalid memory address or nil pointer dereference
goroutine 140 [running]:
net/http.(*conn).serve.func1(0xc8203a4a00)
/usr/local/go/src/net/http/server.go:1389 +0xc1
panic(0xc90e00, 0xc820012080)
/usr/local/go/src/runtime/panic.go:426 +0x4e9
main.createKeyHandler(0x7f4d5be5c0f8, 0xc8202a2000, 0xc8200749a0)
/home/tyk/go/src/github.com/lonelycode/tyk/api.go:1315 +0x141b
main.CheckIsAPIOwner.func1(0x7f4d5be5c0f8, 0xc8202a2000, 0xc8200749a0)
/home/tyk/go/src/github.com/lonelycode/tyk/middleware_api_security_handler.go:24 +0xe1
net/http.HandlerFunc.ServeHTTP(0xc820133d10, 0x7f4d5be5c0f8, 0xc8202a2000, 0xc8200749a0)
/usr/local/go/src/net/http/server.go:1618 +0x3a
github.com/gorilla/mux.(*Router).ServeHTTP(0xc82049c230, 0x7f4d5be5c0f8, 0xc8202a2000, 0xc8200749a0)
/home/tyk/go/src/github.com/gorilla/mux/mux.go:98 +0x29e
net/http.(*ServeMux).ServeHTTP(0xc82025cdb0, 0x7f4d5be5c0f8, 0xc8202a2000, 0xc8200749a0)
/usr/local/go/src/net/http/server.go:1910 +0x17d
net/http.serverHandler.ServeHTTP(0xc820444e80, 0x7f4d5be5c0f8, 0xc8202a2000, 0xc8200749a0)
/usr/local/go/src/net/http/server.go:2081 +0x19e
net/http.(*conn).serve(0xc8203a4a00)
/usr/local/go/src/net/http/server.go:1472 +0xf2e
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2137 +0x44e
root@gateway:/opt/tyk-gateway#

Thanks

Carlos Carvalho