{"action":"created","issue":{"url":"https://api.github.com/repos/habitat-sh/habitat/issues/1341","repository_url":"https://api.github.com/repos/habitat-sh/habitat","labels_url":"https://api.github.com/repos/habitat-sh/habitat/issues/1341/labels{/name}","comments_url":"https://api.github.com/repos/habitat-sh/habitat/issues/1341/comments","events_url":"https://api.github.com/repos/habitat-sh/habitat/issues/1341/events","html_url":"https://github.com/habitat-sh/habitat/issues/1341","id":181835248,"number":1341,"title":"hab 0.10.2 doesn't copy keys inside the studio","user":{"login":"lilianmoraru","id":621738,"avatar_url":"https://avatars.githubusercontent.com/u/621738?v=3","gravatar_id":"","url":"https://api.github.com/users/lilianmoraru","html_url":"https://github.com/lilianmoraru","followers_url":"https://api.github.com/users/lilianmoraru/followers","following_url":"https://api.github.com/users/lilianmoraru/following{/other_user}","gists_url":"https://api.github.com/users/lilianmoraru/gists{/gist_id}","starred_url":"https://api.github.com/users/lilianmoraru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilianmoraru/subscriptions","organizations_url":"https://api.github.com/users/lilianmoraru/orgs","repos_url":"https://api.github.com/users/lilianmoraru/repos","events_url":"https://api.github.com/users/lilianmoraru/events{/privacy}","received_events_url":"https://api.github.com/users/lilianmoraru/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/habitat-sh/habitat/labels/Bug","name":"Bug","color":"d93f0b"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-10-08T16:33:01Z","updated_at":"2016-10-12T21:31:22Z","closed_at":null,"body":"- [x] The OS (including version) where you are running any of the Habitat commands.\r\n - Ubuntu 16.04 LTS, Linux 4.4.0-38-generic, x86_64\r\n - hab 0.10.2/20160930230245\r\n- [x] Debug/backtrace of the command you are trying to run. You can set the following environment variables before running the `hab` command to generate a trace:\r\n - https://gist.github.com/lilianmoraru/e242716d0e633fb9f6012caf329c4a72\r\n - After it loaded(you can scroll to the end for this) I did `ls /hab/cache/` so you can see that there is no `keys` folder inside it.\r\n After that I exited and entered the studio again(less output there) and listed `/hab/cache` again.\r\n\r\n- [x] Current Habitat environment variables where the `hab` command or supervisor is running.  These can be gathered using:\r\n - Does not print anyhing(no variables except for AUTH).\r\n\r\n- [x] If this is a key related issue, please include the list of files (including user/group permissions) in `/hab/cache/keys` and `$HOME/.hab/cache/keys` via `ls -la`.\r\n - ls -la /hab/cache/keys\r\n ```\r\nls -la /hab/cache/keys\r\ntotal 32\r\ndrwxr-xr-x 2 root root 4096 oct  8 09:41 .\r\ndrwxr-xr-x 6 root root 4096 iul 23 10:34 ..\r\n-rw-r--r-- 1 root root   75 iul 17 15:20 core-20160612031944.pub\r\n-rw-r--r-- 1 root root   75 sep 15 00:54 core-20160810182414.pub\r\n-r-------- 1 root root   77 iul 23 10:30 lilian-20160723073001.pub\r\n-r-------- 1 root root  121 iul 23 10:30 lilian-20160723073001.sig.key\r\n-r-------- 1 root root   77 oct  8 09:41 lilian-20161008064147.pub\r\n-r-------- 1 root root  121 oct  8 09:41 lilian-20161008064147.sig.key\r\n ```\r\n - ls -la $HOME/.hab/**cache.keys**\r\n ```\r\nls -la $HOME/.hab/cache/keys\r\ntotal 16\r\ndrwxr-xr-x 2 root root 4096 oct  8 09:10 .\r\ndrwxr-xr-x 3 root root 4096 oct  8 09:09 ..\r\n-rw-r--r-- 1 root root   75 oct  8 09:09 core-20160612031944.pub\r\n-rw-r--r-- 1 root root   75 oct  8 09:10 core-20160810182414.pub\r\n```\r\n\r\nI generate the keys with `sudo` and start the studio with `sudo`. I have always used it that way, it doesn't work just now.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/habitat-sh/habitat/issues/comments/253345758","html_url":"https://github.com/habitat-sh/habitat/issues/1341#issuecomment-253345758","issue_url":"https://api.github.com/repos/habitat-sh/habitat/issues/1341","id":253345758,"user":{"login":"lilianmoraru","id":621738,"avatar_url":"https://avatars.githubusercontent.com/u/621738?v=3","gravatar_id":"","url":"https://api.github.com/users/lilianmoraru","html_url":"https://github.com/lilianmoraru","followers_url":"https://api.github.com/users/lilianmoraru/followers","following_url":"https://api.github.com/users/lilianmoraru/following{/other_user}","gists_url":"https://api.github.com/users/lilianmoraru/gists{/gist_id}","starred_url":"https://api.github.com/users/lilianmoraru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilianmoraru/subscriptions","organizations_url":"https://api.github.com/users/lilianmoraru/orgs","repos_url":"https://api.github.com/users/lilianmoraru/repos","events_url":"https://api.github.com/users/lilianmoraru/events{/privacy}","received_events_url":"https://api.github.com/users/lilianmoraru/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T21:31:22Z","updated_at":"2016-10-12T21:31:22Z","body":"Yep, `.hab` and everything under `.hab` is owned by `root`.\r\nI'll remove the folder and try again."}}
{"actor":{"display_login":"lilianmoraru"}}