{"action":"created","issue":{"url":"https://api.github.com/repos/facette/facette/issues/229","labels_url":"https://api.github.com/repos/facette/facette/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/facette/facette/issues/229/comments","events_url":"https://api.github.com/repos/facette/facette/issues/229/events","html_url":"https://github.com/facette/facette/issues/229","id":92030054,"number":229,"title":"No data in graphs and crash","user":{"login":"faxm0dem","id":112638,"avatar_url":"https://avatars.githubusercontent.com/u/112638?v=3","gravatar_id":"","url":"https://api.github.com/users/faxm0dem","html_url":"https://github.com/faxm0dem","followers_url":"https://api.github.com/users/faxm0dem/followers","following_url":"https://api.github.com/users/faxm0dem/following{/other_user}","gists_url":"https://api.github.com/users/faxm0dem/gists{/gist_id}","starred_url":"https://api.github.com/users/faxm0dem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faxm0dem/subscriptions","organizations_url":"https://api.github.com/users/faxm0dem/orgs","repos_url":"https://api.github.com/users/faxm0dem/repos","events_url":"https://api.github.com/users/faxm0dem/events{/privacy}","received_events_url":"https://api.github.com/users/faxm0dem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-30T08:56:38Z","updated_at":"2015-07-07T16:36:54Z","closed_at":null,"body":"Graphs show no data. Also I can't save graphs.\r\nWhen trying to load it into the browser, for a \"remote\" connector I get:\r\n\r\n    WARNING: server: unknown source `' for origin `collectd'\r\n\r\nAnd for a local connector I get:\r\n```\r\n2015/06/30 10:32:59 http: panic serving 127.0.0.1:58962: runtime error: invalid memory address or nil pointer dereference\r\ngoroutine 333 [running]:\r\nnet/http.func·011()\r\n        /usr/local/go/src/net/http/server.go:1130 +0xbb\r\ngithub.com/facette/facette/pkg/connector.(*RRDConnector).GetPlots(0xc208112a80, 0xc20db0a090, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /tmp/facette/build/facette-linux-amd64/src/github.com/facette/facette/pkg/connector/rrd.go:101 +0x107a\r\ngithub.com/facette/facette/pkg/server.executeQueries(0xc2223a2000, 0xc222420240, 0x0, 0x0)\r\n        /tmp/facette/build/facette-linux-amd64/src/github.com/facette/facette/pkg/server/api_plot.go:289 +0x11d\r\ngithub.com/facette/facette/pkg/server.(*Server).servePlots(0xc208079970, 0x7fac5812c308, 0xc2224412a0, 0xc2221656c0)\r\n        /tmp/facette/build/facette-linux-amd64/src/github.com/facette/facette/pkg/server/api_plot.go:109 +0xf77\r\ngithub.com/facette/facette/pkg/server.*Server.(github.com/facette/facette/pkg/server.servePlots)·fm(0x7fac5812c308, 0xc2224412a0, 0xc2221656c0)\r\n        /tmp/facette/build/facette-linux-amd64/src/github.com/facette/facette/pkg/server/worker_serve.go:58 +0x45\r\nnet/http.HandlerFunc.ServeHTTP(0xc20812c300, 0x7fac5812c308, 0xc2224412a0, 0xc2221656c0)\r\n        /usr/local/go/src/net/http/server.go:1265 +0x41\r\nnet/http.(*ServeMux).ServeHTTP(0xc208120150, 0x7fac5812c308, 0xc2224412a0, 0xc2221656c0)\r\n        /usr/local/go/src/net/http/server.go:1541 +0x17d\r\ngithub.com/facette/facette/pkg/server.(*Router).ServeHTTP(0xc20812c2c0, 0x7fac5812c2a8, 0xc20804fae0, 0xc2221656c0)\r\n        /tmp/facette/build/facette-linux-amd64/src/github.com/facette/facette/pkg/server/router.go:44 +0x153\r\nnet/http.(*ServeMux).ServeHTTP(0xc20803cc60, 0x7fac5812c2a8, 0xc20804fae0, 0xc2221656c0)\r\n        /usr/local/go/src/net/http/server.go:1541 +0x17d\r\nnet/http.serverHandler.ServeHTTP(0xc208074c00, 0x7fac5812c2a8, 0xc20804fae0, 0xc2221656c0)\r\n        /usr/local/go/src/net/http/server.go:1703 +0x19a\r\nnet/http.(*conn).serve(0xc20804f4a0)\r\n        /usr/local/go/src/net/http/server.go:1204 +0xb57\r\ncreated by net/http.(*Server).Serve\r\n        /usr/local/go/src/net/http/server.go:1751 +0x35e\r\n2015/06/30 10:33:00 http: panic serving 127.0.0.1:58967: runtime error: invalid memory address or nil pointer dereference\r\ngoroutine 350 [running]:\r\nnet/http.func·011()\r\n        /usr/local/go/src/net/http/server.go:1130 +0xbb\r\ngithub.com/facette/facette/pkg/connector.(*RRDConnector).GetPlots(0xc208112a80, 0xc20db0a3f0, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /tmp/facette/build/facette-linux-amd64/src/github.com/facette/facette/pkg/connector/rrd.go:101 +0x107a\r\ngithub.com/facette/facette/pkg/server.executeQueries(0xc2223a2840, 0xc2224203c0, 0x0, 0x0)\r\n        /tmp/facette/build/facette-linux-amd64/src/github.com/facette/facette/pkg/server/api_plot.go:289 +0x11d\r\ngithub.com/facette/facette/pkg/server.(*Server).servePlots(0xc208079970, 0x7fac5812c308, 0xc222430560, 0xc2221652b0)\r\n        /tmp/facette/build/facette-linux-amd64/src/github.com/facette/facette/pkg/server/api_plot.go:109 +0xf77\r\ngithub.com/facette/facette/pkg/server.*Server.(github.com/facette/facette/pkg/server.servePlots)·fm(0x7fac5812c308, 0xc222430560, 0xc2221652b0)\r\n        /tmp/facette/build/facette-linux-amd64/src/github.com/facette/facette/pkg/server/worker_serve.go:58 +0x45\r\nnet/http.HandlerFunc.ServeHTTP(0xc20812c300, 0x7fac5812c308, 0xc222430560, 0xc2221652b0)\r\n        /usr/local/go/src/net/http/server.go:1265 +0x41\r\nnet/http.(*ServeMux).ServeHTTP(0xc208120150, 0x7fac5812c308, 0xc222430560, 0xc2221652b0)\r\n        /usr/local/go/src/net/http/server.go:1541 +0x17d\r\ngithub.com/facette/facette/pkg/server.(*Router).ServeHTTP(0xc20812c2c0, 0x7fac5812c2a8, 0xc20804fd60, 0xc2221652b0)\r\n        /tmp/facette/build/facette-linux-amd64/src/github.com/facette/facette/pkg/server/router.go:44 +0x153\r\nnet/http.(*ServeMux).ServeHTTP(0xc20803cc60, 0x7fac5812c2a8, 0xc20804fd60, 0xc2221652b0)\r\n        /usr/local/go/src/net/http/server.go:1541 +0x17d\r\nnet/http.serverHandler.ServeHTTP(0xc208074c00, 0x7fac5812c2a8, 0xc20804fd60, 0xc2221652b0)\r\n        /usr/local/go/src/net/http/server.go:1703 +0x19a\r\nnet/http.(*conn).serve(0xc20804e500)\r\n        /usr/local/go/src/net/http/server.go:1204 +0xb57\r\ncreated by net/http.(*Server).Serve\r\n        /usr/local/go/src/net/http/server.go:1751 +0x35e\r\n2015/06/30 10:33:00 http: panic serving 127.0.0.1:58972: runtime error: invalid memory address or nil pointer dereference\r\ngoroutine 363 [running]:\r\nnet/http.func·011()\r\n        /usr/local/go/src/net/http/server.go:1130 +0xbb\r\ngithub.com/facette/facette/pkg/connector.(*RRDConnector).GetPlots(0xc208112a80, 0xc20db0a750, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /tmp/facette/build/facette-linux-amd64/src/github.com/facette/facette/pkg/connector/rrd.go:101 +0x107a\r\ngithub.com/facette/facette/pkg/server.executeQueries(0xc2223a3320, 0xc2224206c0, 0x0, 0x0)\r\n        /tmp/facette/build/facette-linux-amd64/src/github.com/facette/facette/pkg/server/api_plot.go:289 +0x11d\r\ngithub.com/facette/facette/pkg/server.(*Server).servePlots(0xc208079970, 0x7fac5812c308, 0xc222431880, 0xc222165d40)\r\n        /tmp/facette/build/facette-linux-amd64/src/github.com/facette/facette/pkg/server/api_plot.go:109 +0xf77\r\ngithub.com/facette/facette/pkg/server.*Server.(github.com/facette/facette/pkg/server.servePlots)·fm(0x7fac5812c308, 0xc222431880, 0xc222165d40)\r\n        /tmp/facette/build/facette-linux-amd64/src/github.com/facette/facette/pkg/server/worker_serve.go:58 +0x45\r\nnet/http.HandlerFunc.ServeHTTP(0xc20812c300, 0x7fac5812c308, 0xc222431880, 0xc222165d40)\r\n        /usr/local/go/src/net/http/server.go:1265 +0x41\r\nnet/http.(*ServeMux).ServeHTTP(0xc208120150, 0x7fac5812c308, 0xc222431880, 0xc222165d40)\r\n        /usr/local/go/src/net/http/server.go:1541 +0x17d\r\ngithub.com/facette/facette/pkg/server.(*Router).ServeHTTP(0xc20812c2c0, 0x7fac5812c2a8, 0xc2221360a0, 0xc222165d40)\r\n        /tmp/facette/build/facette-linux-amd64/src/github.com/facette/facette/pkg/server/router.go:44 +0x153\r\nnet/http.(*ServeMux).ServeHTTP(0xc20803cc60, 0x7fac5812c2a8, 0xc2221360a0, 0xc222165d40)\r\n        /usr/local/go/src/net/http/server.go:1541 +0x17d\r\nnet/http.serverHandler.ServeHTTP(0xc208074c00, 0x7fac5812c2a8, 0xc2221360a0, 0xc222165d40)\r\n        /usr/local/go/src/net/http/server.go:1703 +0x19a\r\nnet/http.(*conn).serve(0xc222136000)\r\n        /usr/local/go/src/net/http/server.go:1204 +0xb57\r\ncreated by net/http.(*Server).Serve\r\n        /usr/local/go/src/net/http/server.go:1751 +0x35e\r\n```\r\n\r\nHere's my config:\r\n```JSON\r\n{\r\n        \"bind\": \":12003\",\r\n        \"base_dir\": \"/opt/facette/share/facette\",\r\n        \"providers_dir\": \"/opt/etc/facette/providers\",\r\n        \"data_dir\": \"/var/lib/facette\",\r\n        \"pid_file\": \"/var/run/facette/facette.pid\",\r\n        \"read_only\": false\r\n}\r\n```\r\n```JSON\r\n{\r\n        \"connector\": {\r\n                \"type\": \"rrd\",\r\n                \"path\": \"/srv/rrd\",\r\n                \"pattern\": \"(?P<source>[^/]+)/(?P<metric>.+).rrd\"\r\n        },\r\n\r\n        \"filters\": [\r\n        ],\r\n\r\n        \"daemon\": \"unix:/var/run/rrdcached/rrdcached.sock\",\r\n\r\n        \"refresh_interval\": 0\r\n}\r\n```\r\n```JSON\r\n{\r\n  \"connector\": {\r\n    \"type\": \"facette\",\r\n    \"upstream\": \"http://otherfacette:12003\"\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/facette/facette/issues/comments/119262625","html_url":"https://github.com/facette/facette/issues/229#issuecomment-119262625","issue_url":"https://api.github.com/repos/facette/facette/issues/229","id":119262625,"user":{"login":"StephaneBunel","id":2349935,"avatar_url":"https://avatars.githubusercontent.com/u/2349935?v=3","gravatar_id":"","url":"https://api.github.com/users/StephaneBunel","html_url":"https://github.com/StephaneBunel","followers_url":"https://api.github.com/users/StephaneBunel/followers","following_url":"https://api.github.com/users/StephaneBunel/following{/other_user}","gists_url":"https://api.github.com/users/StephaneBunel/gists{/gist_id}","starred_url":"https://api.github.com/users/StephaneBunel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephaneBunel/subscriptions","organizations_url":"https://api.github.com/users/StephaneBunel/orgs","repos_url":"https://api.github.com/users/StephaneBunel/repos","events_url":"https://api.github.com/users/StephaneBunel/events{/privacy}","received_events_url":"https://api.github.com/users/StephaneBunel/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T16:36:54Z","updated_at":"2015-07-07T16:36:54Z","body":"Thank you @vbatoufflet it's ok now with the help of the filter to mimic the old naming convention."}}