{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/influxdb/issues/6070","repository_url":"https://api.github.com/repos/influxdata/influxdb","labels_url":"https://api.github.com/repos/influxdata/influxdb/issues/6070/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/influxdb/issues/6070/comments","events_url":"https://api.github.com/repos/influxdata/influxdb/issues/6070/events","html_url":"https://github.com/influxdata/influxdb/issues/6070","id":142379130,"number":6070,"title":"CLI History Error on ARM","user":{"login":"rossmcdonald","id":4060903,"avatar_url":"https://avatars.githubusercontent.com/u/4060903?v=3","gravatar_id":"","url":"https://api.github.com/users/rossmcdonald","html_url":"https://github.com/rossmcdonald","followers_url":"https://api.github.com/users/rossmcdonald/followers","following_url":"https://api.github.com/users/rossmcdonald/following{/other_user}","gists_url":"https://api.github.com/users/rossmcdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/rossmcdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossmcdonald/subscriptions","organizations_url":"https://api.github.com/users/rossmcdonald/orgs","repos_url":"https://api.github.com/users/rossmcdonald/repos","events_url":"https://api.github.com/users/rossmcdonald/events{/privacy}","received_events_url":"https://api.github.com/users/rossmcdonald/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-21T15:14:29Z","updated_at":"2016-04-04T05:11:00Z","closed_at":null,"body":"When running the InfluxDB CLI on ARM Linux (specifically Raspbian), the command history returns the error:\r\n\r\n```\r\nThere was an error writing history file: open : no such file or directory\r\n```\r\n\r\nEven though the user is set appropriately. Based on [this](https://github.com/influxdata/influxdb/issues/5112#issuecomment-198695157) comment, it seems like the file history path isn't being set correctly."},"comment":{"url":"https://api.github.com/repos/influxdata/influxdb/issues/comments/205138813","html_url":"https://github.com/influxdata/influxdb/issues/6070#issuecomment-205138813","issue_url":"https://api.github.com/repos/influxdata/influxdb/issues/6070","id":205138813,"user":{"login":"jonseymour","id":207131,"avatar_url":"https://avatars.githubusercontent.com/u/207131?v=3","gravatar_id":"","url":"https://api.github.com/users/jonseymour","html_url":"https://github.com/jonseymour","followers_url":"https://api.github.com/users/jonseymour/followers","following_url":"https://api.github.com/users/jonseymour/following{/other_user}","gists_url":"https://api.github.com/users/jonseymour/gists{/gist_id}","starred_url":"https://api.github.com/users/jonseymour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonseymour/subscriptions","organizations_url":"https://api.github.com/users/jonseymour/orgs","repos_url":"https://api.github.com/users/jonseymour/repos","events_url":"https://api.github.com/users/jonseymour/events{/privacy}","received_events_url":"https://api.github.com/users/jonseymour/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T05:11:00Z","updated_at":"2016-04-04T05:11:00Z","body":"FWIW: i can reproduce the same symptom on linux/amd64 if I compile the influx binary with CGO_ENABLED=0 set in the environment. In this case, the reason is that user.Current() then fails with the error: 'Current not implemented on linux/amd64.'\r\n\r\nThis causes the branch in this [block](https://github.com/influxdata/influxdb/blob/master/cmd/influx/cli/cli.go#L171-L179) to be skipped, which then results in the reported symptom after a command is run (since the history path is never initialised properly).\r\n\r\nSo, I suspect the reason this is occurring on arm systems is either that the ARM build of the influx binary was done with CGO_ENABLED=0 for some reason or go has not implemented user.Current() for ARM systems for some different reason.\r\n"}}