{"action":"created","issue":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/1611","labels_url":"https://api.github.com/repos/influxdb/influxdb/issues/1611/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb/issues/1611/comments","events_url":"https://api.github.com/repos/influxdb/influxdb/issues/1611/events","html_url":"https://github.com/influxdb/influxdb/issues/1611","id":57714953,"number":1611,"title":"InfluxDB 0.8.8 - Authentication error returns 200 OK","user":{"login":"silasistefan","id":2762435,"avatar_url":"https://avatars.githubusercontent.com/u/2762435?v=3","gravatar_id":"","url":"https://api.github.com/users/silasistefan","html_url":"https://github.com/silasistefan","followers_url":"https://api.github.com/users/silasistefan/followers","following_url":"https://api.github.com/users/silasistefan/following{/other_user}","gists_url":"https://api.github.com/users/silasistefan/gists{/gist_id}","starred_url":"https://api.github.com/users/silasistefan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silasistefan/subscriptions","organizations_url":"https://api.github.com/users/silasistefan/orgs","repos_url":"https://api.github.com/users/silasistefan/repos","events_url":"https://api.github.com/users/silasistefan/events{/privacy}","received_events_url":"https://api.github.com/users/silasistefan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-15T02:33:37Z","updated_at":"2015-03-04T08:04:43Z","closed_at":null,"body":"Clean installation of InfluxDB 0.8.8 amd64 on Debian from packages. Web interface works fine, curl doesn't.\r\n\r\n```\r\n# curl -X POST -d '[{\"name\": \"test1\",\"columns\": [\"time\",\"test\"],\"points\": [[1420070401000, \"test\"]]}]' 'http://127.0.0.1:8086/db/monitorme/series?u=root&p=root' -vs\r\n* About to connect() to 127.0.0.1 port 8086 (#0)\r\n*   Trying 127.0.0.1...\r\n* connected\r\n* Connected to 127.0.0.1 (127.0.0.1) port 8086 (#0)\r\n> POST /db/monitorme/series?u=root&p=root HTTP/1.1\r\n> User-Agent: curl/7.26.0\r\n> Host: 127.0.0.1:8086\r\n> Accept: */*\r\n> Content-Length: 82\r\n> Content-Type: application/x-www-form-urlencoded\r\n>\r\n* upload completely sent off: 82 out of 82 bytes\r\n* additional stuff not fine transfer.c:1037: 0 0\r\n* HTTP 1.1 or later with persistent connection, pipelining supported\r\n< HTTP/1.1 200 OK\r\n< Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept\r\n< Access-Control-Allow-Methods: GET, POST, PUT, DELETE\r\n< Access-Control-Allow-Origin: *\r\n< Access-Control-Max-Age: 2592000\r\n< Content-Type: text/plain\r\n< X-Influxdb-Version: InfluxDB v0.8.8 (git: afde71e) (leveldb: 1.15)\r\n< Date: Sun, 15 Feb 2015 02:26:52 GMT\r\n< Content-Length: 0\r\n<\r\n* Connection #0 to host 127.0.0.1 left intact\r\n* Closing connection #0\r\n```\r\n\r\nDebug log:\r\n```\r\n[2015/02/15 02:26:52 UTC] [DEBG] (github.com/influxdb/influxdb/api/http.(*HttpServer).tryAsDbUserAndClusterAdmin:752) Trying to auth as a db user\r\n[2015/02/15 02:26:52 UTC] [DEBG] (github.com/influxdb/influxdb/coordinator.(*Coordinator).AuthenticateDbUser:715) (raft:b6a2519917eb16bf) Authenticating password for monitorme:root\r\n[2015/02/15 02:26:52 UTC] [DEBG] (github.com/influxdb/influxdb/api/http.(*HttpServer).tryAsDbUserAndClusterAdmin:755) Authenticating as a db user failed with Invalid username/password (401)\r\n```"},"comment":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/comments/77112676","html_url":"https://github.com/influxdb/influxdb/issues/1611#issuecomment-77112676","issue_url":"https://api.github.com/repos/influxdb/influxdb/issues/1611","id":77112676,"user":{"login":"BartVB","id":32803,"avatar_url":"https://avatars.githubusercontent.com/u/32803?v=3","gravatar_id":"","url":"https://api.github.com/users/BartVB","html_url":"https://github.com/BartVB","followers_url":"https://api.github.com/users/BartVB/followers","following_url":"https://api.github.com/users/BartVB/following{/other_user}","gists_url":"https://api.github.com/users/BartVB/gists{/gist_id}","starred_url":"https://api.github.com/users/BartVB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BartVB/subscriptions","organizations_url":"https://api.github.com/users/BartVB/orgs","repos_url":"https://api.github.com/users/BartVB/repos","events_url":"https://api.github.com/users/BartVB/events{/privacy}","received_events_url":"https://api.github.com/users/BartVB/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T08:04:43Z","updated_at":"2015-03-04T08:04:43Z","body":"I get exactly the same output with those commands, but as far as I can tell the API call did work. You're getting a 200 HTTP response and in my case the posted data ends up in the correct place in InfluxDB.\r\n\r\nThe real problem seems to be that the debug log tells a different story. It states that the login failed while it did not."}}