Hi have managed to nuke my dashboard
[[90m[Oct 24 07:49:14]^[[0m ^[[32m INFO^[[0m Generating portal for: my-tyk-instance.com
panic: http: multiple registrations for my-tyk-instance.com:3000/
goroutine 1 [running]:
panic(0xabff80, 0xc8203aea80)
/usr/local/go/src/runtime/panic.go:464 +0x3e6
net/http.(*ServeMux).Handle(0xc82038d8c0, 0xc8203a9440, 0x19, 0x7f0b0fa1ba78, 0xc8202c1080)
/usr/local/go/src/net/http/server.go:1926 +0x297
main.GenerateRoutes()
/home/tyk/go/src/github.com/lonelycode/tyk-analytics/Main.go:746 +0x428d
main.main()
/home/tyk/go/src/github.com/lonelycode/tyk-analytics/Main.go:763 +0x59
When I check tyk_organisations collection in Mongo I see this
{ "_id" : ObjectId("580a979256c02c0ae0000001"), "owner_name" : "Default Org.", "owner_slug" : "default", "cname_enabled" : true, "cname" : "", "apis" : [ ], "developer_quota" : 0, "developer_count" : 0, "event_options" : { }, "hybrid_enabled" : false, "ui" : { "languages" : { }, "hide_help" : false, "default_lang" : "", "login_page" : { }, "nav" : { }, "uptime" : { }, "portal_section" : { }, "designer" : { }, "dont_show_admin_sockets" : false, "dont_allow_license_management" : false, "dont_allow_license_management_view" : false } }
{ "_id" : ObjectId("580a98a056c02c0ae0000003"), "owner_name" : "Default Org.", "owner_slug" : "default", "cname_enabled" : true, "cname" : "my-tyk-instance.com", "apis" : [ { "api_human_name" : "Login-RIB", "api_id" : "15204a4eb380471471d61ed0eea696bb" }, { "api_human_name" : "GetCustAcctListDetailedDomestic-ESERIB", "api_id" : "0252a7f9674f47a37960693a83d07f13" }, { "api_human_name" : "GetCustAcctListDetailed-ESERIB", "api_id" : "83ce1a711b48498654057c108b918e64" }, { "api_human_name" : "GetCustAcctListDetailedPackages-ESERIB", "api_id" : "d1e16da764004c8159229001f86a563d" }, { "api_human_name" : "GetCustAcctListDetailedCards-ESERIB", "api_id" : "a38dcd2eeb7a456b65310ca3d2d58804" }, { "api_human_name" : "get-account-authorisers", "api_id" : "ff848d048ec0432f50b1a7a0bda0dcca" }, { "api_human_name" : "GetCreditInterestEarned-ESERIB", "api_id" : "cdd29b5f375e42a0600d81e588219111" }, { "api_human_name" : "GetCustAcctListBriefDomestic-ESERIB", "api_id" : "9f642879fd8a4840422c1bd5b08eb772" }, { "api_human_name" : "GetCustAcctListBriefPackages-ESERIB", "api_id" : "7c280dd9bf594072429954c2b55d6f45" }, { "api_human_name" : "GetCustAcctDetails-ESERIB", "api_id" : "265bc383f3244960627c060aa9282a9d" }, { "api_human_name" : "GetAllAccountBalances-ESERIB", "api_id" : "09aadc8ff018457d4fc47bcb7d6f5bac" }, { "api_human_name" : "GetCustAcctListBrief-ESERIB", "api_id" : "9a959fee7a5d44455bd567de97f80848" } ], "developer_quota" : 0, "developer_count" : 0, "event_options" : { }, "hybrid_enabled" : false, "ui" : { "languages" : { }, "hide_help" : false, "default_lang" : "", "login_page" : { }, "nav" : { }, "uptime" : { }, "portal_section" : { }, "designer" : { }, "dont_show_admin_sockets" : false, "dont_allow_license_management" : false, "dont_allow_license_management_view" : false } }
{ "_id" : ObjectId("580c3b3556c02c0ae000000f"), "owner_name" : "Org1", "owner_slug" : "org1", "cname_enabled" : true, "cname" : "", "apis" : [ ], "developer_quota" : 0, "developer_count" : 0, "event_options" : { }, "hybrid_enabled" : false, "ui" : { "languages" : { }, "hide_help" : false, "default_lang" : "", "login_page" : { }, "nav" : { }, "uptime" : { }, "portal_section" : { }, "designer" : { }, "dont_show_admin_sockets" : false, "dont_allow_license_management" : false, "dont_allow_license_management_view" : false } }
{ "_id" : ObjectId("580c3b3556c02c0ae0000010"), "owner_name" : "Org2", "owner_slug" : "org1", "cname_enabled" : true, "cname" : "", "apis" : [ ], "developer_quota" : 0, "developer_count" : 0, "event_options" : { }, "hybrid_enabled" : false, "ui" : { "languages" : { }, "hide_help" : false, "default_lang" : "", "login_page" : { }, "nav" : { }, "uptime" : { }, "portal_section" : { }, "designer" : { }, "dont_show_admin_sockets" : false, "dont_allow_license_management" : false, "dont_allow_license_management_view" : false } }
{ "_id" : ObjectId("580c3b3556c02c0ae0000011"), "owner_name" : "Org3", "owner_slug" : "org1", "cname_enabled" : true, "cname" : "", "apis" : [ { "api_human_name" : "Portal", "api_id" : "8f1ca70b5f4341016877d4e889725f64" }, { "api_human_name" : "Portal API", "api_id" : "12fcd7a3e99c43034bb7118eea561f19" }, { "api_human_name" : "Portal Assets", "api_id" : "b2c49de62ca7456d7bedec7e5614b2db" } ], "developer_quota" : 0, "developer_count" : 0, "event_options" : { }, "hybrid_enabled" : false, "ui" : { "languages" : { }, "hide_help" : false, "default_lang" : "", "login_page" : { }, "nav" : { }, "uptime" : { }, "portal_section" : { }, "designer" : { }, "dont_show_admin_sockets" : false, "dont_allow_license_management" : false, "dont_allow_license_management_view" : false } }
There is only one reference to my-tyk-instance.com in there. Wondering if portal and dashboard should be on different domains?