{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1347","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1347/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1347/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1347/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/1347","id":121035854,"number":1347,"title":"npm module fails on OS X","user":{"login":"anthonygreen","id":1336742,"avatar_url":"https://avatars.githubusercontent.com/u/1336742?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonygreen","html_url":"https://github.com/anthonygreen","followers_url":"https://api.github.com/users/anthonygreen/followers","following_url":"https://api.github.com/users/anthonygreen/following{/other_user}","gists_url":"https://api.github.com/users/anthonygreen/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonygreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonygreen/subscriptions","organizations_url":"https://api.github.com/users/anthonygreen/orgs","repos_url":"https://api.github.com/users/anthonygreen/repos","events_url":"https://api.github.com/users/anthonygreen/events{/privacy}","received_events_url":"https://api.github.com/users/anthonygreen/received_events","type":"User","site_admin":false},"labels":[{"id":437719791,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/affects_2.0","name":"affects_2.0","color":"5319e7","default":false},{"id":132898023,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":415779102,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2015-12-08T15:50:39Z","updated_at":"2016-12-07T15:44:51Z","closed_at":null,"body":"##### Issue Type:\n\nBug Report\n##### Component Name:\n\nnpm module\n##### Ansible Version:\n\nAnsible 2.0.0 (stable-2.0)\n##### Environment:\n\nOS X 10.9.5\nPython 2.7.11\n##### Summary:\n\nAnsible npm_module doesn't work on OS X\n##### Steps To Reproduce:\n\nThis task fails\n\n```\n- npm: name=appium global=yes executable=/usr/local/bin/npm \n```\n##### Expected Results:\n\nssh into the machine and running \n\n```\n/usr/local/bin/npm install -g appium\n```\n\ndoes work\n##### Actual Results:\n\n```\nTASK [appium : npm executable=/usr/local/bin/npm global=yes name=appium] *******\ntask path: /Users/test/ansible/roles/appium/tasks/main.yml:8\n<earth> ESTABLISH SSH CONNECTION FOR USER: ansible\n<earth> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/Users/test/.ansible/cp/ansible-ssh-%h-%p-%r -tt earth ( umask 22 && mkdir -p \"$( echo $HOME/.ansible/tmp/ansible-tmp-1449589290.97-103049231967831 )\" && echo \"$( echo $HOME/.ansible/tmp/ansible-tmp-1449589290.97-103049231967831 )\" )\n<earth> PUT /var/folders/sm/vgbwtrps3yv2yl79n43t_f916ldxgl/T/tmpps7GAn TO /Users/ansible/.ansible/tmp/ansible-tmp-1449589290.97-103049231967831/npm\n<earth> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/Users/test/.ansible/cp/ansible-ssh-%h-%p-%r [earth]\n<earth> ESTABLISH SSH CONNECTION FOR USER: ansible\n<earth> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=ansible -o ConnectTimeout=10 -o ControlPath=/Users/test/.ansible/cp/ansible-ssh-%h-%p-%r -tt earth LANG=en_GB.UTF-8 LC_ALL=en_GB.UTF-8 LC_MESSAGES=en_GB.UTF-8 /usr/bin/python /Users/ansible/.ansible/tmp/ansible-tmp-1449589290.97-103049231967831/npm; rm -rf \"/Users/ansible/.ansible/tmp/ansible-tmp-1449589290.97-103049231967831/\" > /dev/null 2>&1\nfatal: [earth]: FAILED! => {\"changed\": false, \"failed\": true, \"invocation\": {\"module_args\": {\"executable\": \"/usr/local/bin/npm\", \"global\": \"yes\", \"name\": \"appium\"}, \"module_name\": \"npm\"}, \"msg\": \"Traceback (most recent call last):\\r\\n  File \\\"/Users/ansible/.ansible/tmp/ansible-tmp-1449589290.97-103049231967831/npm\\\", line 2188, in <module>\\r\\n    main()\\r\\n  File \\\"/Users/ansible/.ansible/tmp/ansible-tmp-1449589290.97-103049231967831/npm\\\", line 245, in main\\r\\n    installed, missing = npm.list()\\r\\n  File \\\"/Users/ansible/.ansible/tmp/ansible-tmp-1449589290.97-103049231967831/npm\\\", line 169, in list\\r\\n    data = json.loads(self._exec(cmd, True, False))\\r\\n  File \\\"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py\\\", line 338, in loads\\r\\n    return _default_decoder.decode(s)\\r\\n  File \\\"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py\\\", line 366, in decode\\r\\n    obj, end = self.raw_decode(s, idx=_w(s, 0).end())\\r\\n  File \\\"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py\\\", line 384, in raw_decode\\r\\n    raise ValueError(\\\"No JSON object could be decoded\\\")\\r\\nValueError: No JSON object could be decoded\\r\\nOpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011\\ndebug1: Reading configuration data /etc/ssh_config\\r\\ndebug1: /etc/ssh_config line 20: Applying options for *\\r\\ndebug1: auto-mux: Trying existing master\\r\\ndebug2: fd 3 setting O_NONBLOCK\\r\\ndebug2: mux_client_hello_exchange: master version 4\\r\\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\\r\\ndebug3: mux_client_request_session: entering\\r\\ndebug3: mux_client_request_alive: entering\\r\\ndebug3: mux_client_request_alive: done pid = 29940\\r\\ndebug3: mux_client_request_session: session request sent\\r\\ndebug1: mux_client_request_session: master session id: 2\\r\\ndebug3: mux_client_read_packet: read header failed: Broken pipe\\r\\ndebug2: Received exit status from master 0\\r\\nShared connection to earth closed.\\r\\n\", \"parsed\": false}\n\nPLAY RECAP *********************************************************************\nearth                      : ok=16   changed=5    unreachable=0    failed=1   \n```\n\nIs this connected to https://github.com/ansible/ansible/issues/12982 ?\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/265482067","html_url":"https://github.com/ansible/ansible-modules-extras/issues/1347#issuecomment-265482067","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1347","id":265482067,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T15:44:51Z","updated_at":"2016-12-07T15:44:51Z","body":"This repository has been locked. All new issues and pull requests should be filed in https://github.com/ansible/ansible\n\nPlease read through the <a href=\"http://docs.ansible.com/ansible/dev_guide/repomerge.html#move-issues-and-prs-to-new-repo\">repomerge</a> page in the dev guide. The guide contains links to tools which automatically move your issue or pull request to the ansible/ansible repo.\n\n<!-- boilerplate: repomerge -->"}}
{"actor":{"display_login":"ansibot"}}