{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat.Ansible/issues/19","repository_url":"https://api.github.com/repos/RocketChat/Rocket.Chat.Ansible","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat.Ansible/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat.Ansible/issues/19/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat.Ansible/issues/19/events","html_url":"https://github.com/RocketChat/Rocket.Chat.Ansible/issues/19","id":150433739,"number":19,"title":"Issue with Installing Node.js","user":{"login":"codyaray","id":44062,"avatar_url":"https://avatars.githubusercontent.com/u/44062?v=3","gravatar_id":"","url":"https://api.github.com/users/codyaray","html_url":"https://github.com/codyaray","followers_url":"https://api.github.com/users/codyaray/followers","following_url":"https://api.github.com/users/codyaray/following{/other_user}","gists_url":"https://api.github.com/users/codyaray/gists{/gist_id}","starred_url":"https://api.github.com/users/codyaray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codyaray/subscriptions","organizations_url":"https://api.github.com/users/codyaray/orgs","repos_url":"https://api.github.com/users/codyaray/repos","events_url":"https://api.github.com/users/codyaray/events{/privacy}","received_events_url":"https://api.github.com/users/codyaray/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-22T17:59:19Z","updated_at":"2016-04-25T15:35:36Z","closed_at":null,"body":"Followed the instructions on the docs for [installation using ansible](https://rocket.chat/docs/master/installing-and-updating/deployment-options/ansible).\r\n\r\n```\r\n$ cat inventory\r\n[chat_servers]\r\nrocket.mydomain.com\r\n\r\n$ cat rocket_chat.yml\r\n---\r\n  - name: Apply the RocketChat.Server role to chat_servers\r\n    hosts: chat_servers\r\n    become: yes\r\n    roles:\r\n      - RocketChat.Server\r\n```\r\n\r\nRan\r\n\r\n```\r\n$ ansible-playbook -i inventory rocket_chat.yml\r\n```\r\n\r\nBut failed at this error:\r\n\r\n```\r\nTASK [RocketChat.Server : Install the 0.10.40 NodeJS environment via n] ********\r\nfatal: [rocket.mydomain.com]: FAILED! => {\"changed\": true, \"cmd\": \"n 0.10.40\", \"delta\": \"0:00:00.007168\", \"end\": \"2016-04-22 12:21:52.906581\", \"failed\": true, \"rc\": 127, \"start\": \"2016-04-22 12:21:52.899413\", \"stderr\": \"/bin/sh: n: command not found\", \"stdout\": \"\", \"stdout_lines\": [], \"warnings\": []}\r\n```\r\n\r\nI tried logging in to see if `n` is actually available, but I can only test it as myself since `rocketchat` user is setup without a shell. Even running as myself, it seems like `n` is installed (command is found) but has permissions issues. Of course, running as `sudo n` shows the help without any issues.\r\n\r\n```\r\n$ n\r\nmkdir: cannot create directory ‘/usr/local/n’: Permission denied\r\nmkdir: cannot create directory ‘/usr/local/n’: Permission denied\r\nfind: `/usr/local/n/versions': No such file or directory\r\n\r\n  Error: no installed version\r\n\r\n  Usage: n [options/env] [COMMAND] [args]\r\n\r\n  Environments:\r\n    n [COMMAND] [args]            Uses default env (node)\r\n    n io [COMMAND]                Sets env as io\r\n    n project [COMMAND]           Uses custom env-variables to use non-official sources\r\n<snip>\r\n```\r\n\r\nAny idea what's going on here?"},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat.Ansible/issues/comments/214398596","html_url":"https://github.com/RocketChat/Rocket.Chat.Ansible/issues/19#issuecomment-214398596","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat.Ansible/issues/19","id":214398596,"user":{"login":"codyaray","id":44062,"avatar_url":"https://avatars.githubusercontent.com/u/44062?v=3","gravatar_id":"","url":"https://api.github.com/users/codyaray","html_url":"https://github.com/codyaray","followers_url":"https://api.github.com/users/codyaray/followers","following_url":"https://api.github.com/users/codyaray/following{/other_user}","gists_url":"https://api.github.com/users/codyaray/gists{/gist_id}","starred_url":"https://api.github.com/users/codyaray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codyaray/subscriptions","organizations_url":"https://api.github.com/users/codyaray/orgs","repos_url":"https://api.github.com/users/codyaray/repos","events_url":"https://api.github.com/users/codyaray/events{/privacy}","received_events_url":"https://api.github.com/users/codyaray/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T15:35:36Z","updated_at":"2016-04-25T15:35:36Z","body":"Does this require SSH access to github or only HTTPS? If SSH, that could be a problem. I'm in a corporate environment so its pretty locked down.\r\n\r\nLooks like I can access both npm registry and github fine over HTTP/HTTPS from the new VM.\r\n\r\n```\r\n$ curl http://registry.npmjs.org\r\n{\"db_name\":\"registry\",\"doc_count\":311735,\"doc_del_count\":357,\"update_seq\":2149407,\"purge_seq\":0,\"compact_running\":false,\"disk_size\":1473653752,\"data_size\":1158682637,\"instance_start_time\":\"1461332563000990\",\"disk_format_version\":6,\"committed_update_seq\":2149406}\r\n\r\n$ curl https://registry.npmjs.org\r\n{\"db_name\":\"registry\",\"doc_count\":311735,\"doc_del_count\":357,\"update_seq\":2149407,\"purge_seq\":0,\"compact_running\":false,\"disk_size\":1473653752,\"data_size\":1158682637,\"instance_start_time\":\"1461332563000990\",\"disk_format_version\":6,\"committed_update_seq\":2149406}\r\n```\r\n\r\n```\r\n$ curl -i http://github.com/RocketChat/Rocket.Chat.Ansible\r\nHTTP/1.1 301 Moved Permanently\r\nContent-length: 0\r\nLocation: https://github.com/RocketChat/Rocket.Chat.Ansible\r\nConnection: close\r\n\r\n$ curl -si https://github.com/RocketChat/Rocket.Chat.Ansible | head\r\nHTTP/1.1 200 OK\r\nServer: GitHub.com\r\nDate: Mon, 25 Apr 2016 15:32:53 GMT\r\nContent-Type: text/html; charset=utf-8\r\nTransfer-Encoding: chunked\r\nStatus: 200 OK\r\nCache-Control: no-cache\r\nVary: X-PJAX\r\nX-UA-Compatible: IE=Edge,chrome=1\r\nSet-Cookie: logged_in=no; domain=.github.com; path=/; expires=Fri, 25 Apr 2036 15:32:53 -0000; secure; HttpOnly\r\n```\r\n"}}