Imported Google Group message. Original thread at: Redirecting to Google Groups Import Date: 2016-01-19 21:17:52 +0000.
Sender:Christoph
.
Date:Sunday, 12 July 2015 15:35:13 UTC+1.
Hi,
I am evaluation Tyk for use in our company and, based on the quickstart, I set everything up as docker containers deployed onto an Ubuntu VM hosted on Azure. Now for the second time I observed a “crash” of the gateway container. All I could find in the log is a panic message. Here are the log entries that lead up to the panic:
time=“2015-07-09T14:23:35Z” level=warning msg=“Restart signal (redis) received, restarting muxers”
time=“2015-07-09T14:23:35Z” level=info msg=“Using App Configuration from Mongo DB”
time=“2015-07-09T14:23:35Z” level=info msg=“Checking for transform paths…”
time=“2015-07-09T14:23:35Z” level=info msg=“Checking for transform paths…”
time=“2015-07-09T14:23:35Z” level=info msg=“Checking for transform paths…”
time=“2015-07-09T14:23:35Z” level=info msg=“Checking for transform paths…”
time=“2015-07-09T14:23:35Z” level=info msg=“Loading API configurations.”
time=“2015-07-09T14:23:35Z” level=info msg=“Loading API Spec for: Hello World”
time=“2015-07-09T14:23:35Z” level=info msg=“Connecting to redis on: redis:6379”
time=“2015-07-09T14:23:35Z” level=info msg=“Connecting to redis on: redis:6379”
time=“2015-07-09T14:23:35Z” level=info msg=“Health Checker initialised.”
time=“2015-07-09T14:23:35Z” level=info msg=“Connecting to redis on: redis:6379”
time=“2015-07-09T14:23:35Z” level=info msg=“Connecting to redis on: redis:6379”
time=“2015-07-09T14:23:35Z” level=info msg=“Loading Middleware”
time=“2015-07-09T14:23:35Z” level=info msg=“Connecting to redis on: redis:6379”
time=“2015-07-09T14:23:35Z” level=info msg=“Rate limits available at: /91558bbea1854354623735938efd8371/tyk/rate-limits/”
time=“2015-07-09T14:23:35Z” level=info msg=“Loading API Spec for: User Management API”
time=“2015-07-09T14:23:35Z” level=info msg=“Connecting to redis on: redis:6379”
time=“2015-07-09T14:23:35Z” level=info msg=“Connecting to redis on: redis:6379”
time=“2015-07-09T14:23:35Z” level=info msg=“Health Checker initialised.”
time=“2015-07-09T14:23:35Z” level=info msg=“Connecting to redis on: redis:6379”
time=“2015-07-09T14:23:35Z” level=info msg=“Connecting to redis on: redis:6379”
time=“2015-07-09T14:23:35Z” level=info msg=“Loading Middleware”
time=“2015-07-09T14:23:35Z” level=info msg=“Connecting to redis on: redis:6379”
panic: http: invalid pattern
goroutine 9 [running]:
net/http.(*ServeMux).Handle(0xc208230b40, 0xfb9c60, 0x0, 0x7f41c6eebe80, 0xc208555a70)
/usr/local/go/src/net/http/server.go:1551 +0xf8
main.loadApps(0xc20850fb80, 0x2, 0x2, 0xc208230b40)
/home/tyk/go/src/github.com/lonelycode/tyk/main.go:404 +0x15e4
main.ReloadURLStructure()
/home/tyk/go/src/github.com/lonelycode/tyk/main.go:493 +0x11c
main.HandleRedisReloadMsg(0xc20867d540, 0x19, 0xc2085ba370, 0x45, 0x45)
/home/tyk/go/src/github.com/lonelycode/tyk/reload_signal.go:39 +0x2a7
main.(*RedisStorageManager).StartPubSubHandler(0xc20822a160, 0xbfae10, 0x19, 0xda94b0, 0x0, 0x0)
/home/tyk/go/src/github.com/lonelycode/tyk/storage_handlers.go:540 +0x3e6
main.StartPubSubLoop()
/home/tyk/go/src/github.com/lonelycode/tyk/reload_signal.go:18 +0x7c
created by main.main
/home/tyk/go/src/github.com/lonelycode/tyk/main.go:646 +0x452
… followed by many more go routine stack traces.
Unfortunately, I can’t tell which action triggered the crash; all I know is a colleague played with the dashboard at that time. Since the dashboard is still up and running, he did not notice that something broke in the background.
Now whenever I try to restart the gateway, it immediately exits again and the log shows the same panic. I therefore suspect that some data was stored either in redis or mongo that does not agree with the HTTP muxer.
Is this a known issue? How can I debug the issue?
Best regards
Christoph