{"action":"opened","issue":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/5155","labels_url":"https://api.github.com/repos/influxdb/influxdb/issues/5155/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb/issues/5155/comments","events_url":"https://api.github.com/repos/influxdb/influxdb/issues/5155/events","html_url":"https://github.com/influxdb/influxdb/issues/5155","id":122794150,"number":5155,"title":"query returning no data, even though I definitely placed data into db","user":{"login":"bigKS","id":16140156,"avatar_url":"https://avatars.githubusercontent.com/u/16140156?v=3","gravatar_id":"","url":"https://api.github.com/users/bigKS","html_url":"https://github.com/bigKS","followers_url":"https://api.github.com/users/bigKS/followers","following_url":"https://api.github.com/users/bigKS/following{/other_user}","gists_url":"https://api.github.com/users/bigKS/gists{/gist_id}","starred_url":"https://api.github.com/users/bigKS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigKS/subscriptions","organizations_url":"https://api.github.com/users/bigKS/orgs","repos_url":"https://api.github.com/users/bigKS/repos","events_url":"https://api.github.com/users/bigKS/events{/privacy}","received_events_url":"https://api.github.com/users/bigKS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-17T18:27:11Z","updated_at":"2015-12-17T18:27:11Z","closed_at":null,"body":"Hi,\r\n\r\nI'm getting no data returned (tried CLI, and direct GET using CURL and the golang v2 client api... all 3 methods) even though I wrote points/series into a db (see the \"show series\" output for proof? that there was data written):\r\n\r\n[ksengal@csdev-ksengal influxdb]$ influx\r\nVisit https://enterprise.influxdata.com to register for updates, InfluxDB server management, and monitoring.\r\nConnected to http://localhost:8086 version 0.9.5.1\r\nInfluxDB shell 0.9.5.1\r\n%> show databases\r\nname: databases\r\n---------------\r\nname\r\nsystemstats\r\ncs\r\n\r\n%> use cs\r\nUsing database cs\r\n%> show series\r\nname: cpu_usage\r\n---------------\r\n_key\t\t\tcpu\r\ncpu_usage,cpu=cpu-total\tcpu-total\r\n\r\n\r\nname: fakeMeasurementName\r\n-------------------------\r\n_key\t\t\t\t\t\t\t\t\t\tfakeTagLabel1\tfakeTagLabel2\r\nfakeMeasurementName,fakeTagLabel1=fakeTagValue1,fakeTagLabel2=fakeTagValue2\tfakeTagValue1\tfakeTagValue2\r\n\r\n%> select * from fakeMeasurementName\r\n%>\r\n\r\nCurlGET:\r\n\r\n[ksengal@csdev-ksengal influxdb]$ curl -G 'http://localhost:8086/query' --data-urlencode \"db=cs\" --data-urlencode \"q=SELECT * FROM fakeMeasurement\"\r\n{\"results\":[{}]}\r\n\r\n\r\nHow do I debug this further?  As far as I know, points without fields are impossible to create?\r\n\r\nHOW did I write this into DB? using the \"v2\" golang client api... part of the code:\r\n\r\n106     // specify tags and fields to create a point\r\n107     tags := map[string]string{\"fakeTagLabel1\": \"fakeTagValue1\", \"fakeTagLabel2\": \"fakeTagValue2\"}\r\n108     fields := map[string]interface{}{\r\n109         \"fakeFieldLabel1\": 2032.23,\r\n110         \"fakeFieldLabel2\": 23234.2,\r\n111     }\r\n112     point, err := influx.NewPoint(\"fakeMeasurementName\", tags, fields, time.Now())\r\n\r\n116 \r\n117     // create second point, which only differs in the value of the fields\r\n118     fields = map[string]interface{}{\r\n119         \"fakeFieldLabel1\": 1.2,\r\n120         \"fakeFieldLabel2\": 2.3,\r\n121     }\r\n122     point2, err := influx.NewPoint(\"fakeMeasurementName\", tags, fields, time.Now())\r\n\r\n\r\n(Above creates 2 points, which then you add to a \"batch\" and write via an HTTPclient ).\r\n( Yes, in real code I'm checking \"err\" returned from all methods against nil )\r\n\r\nAny special debug commands and such that I can use to investigate this deeper?\r\n\r\n\r\n"}}