{"action":"created","issue":{"url":"https://api.github.com/repos/arachnys/cabot/issues/243","labels_url":"https://api.github.com/repos/arachnys/cabot/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/arachnys/cabot/issues/243/comments","events_url":"https://api.github.com/repos/arachnys/cabot/issues/243/events","html_url":"https://github.com/arachnys/cabot/issues/243","id":99484199,"number":243,"title":"Permission Denied during Deploy","user":{"login":"wstiern","id":9751703,"avatar_url":"https://avatars.githubusercontent.com/u/9751703?v=3","gravatar_id":"","url":"https://api.github.com/users/wstiern","html_url":"https://github.com/wstiern","followers_url":"https://api.github.com/users/wstiern/followers","following_url":"https://api.github.com/users/wstiern/following{/other_user}","gists_url":"https://api.github.com/users/wstiern/gists{/gist_id}","starred_url":"https://api.github.com/users/wstiern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wstiern/subscriptions","organizations_url":"https://api.github.com/users/wstiern/orgs","repos_url":"https://api.github.com/users/wstiern/repos","events_url":"https://api.github.com/users/wstiern/events{/privacy}","received_events_url":"https://api.github.com/users/wstiern/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-06T17:13:53Z","updated_at":"2015-08-06T22:09:12Z","closed_at":"2015-08-06T22:09:12Z","body":"Hi. I'm getting the following error when trying to provision. Confirmed that the cabot user and postgres user both have password-less sudo rights. Any help provided would be appreciated as I've rummaged around through the fabfiles and can't really figure out what the problem is. Thanks in advance!\r\n\r\n````\r\n[root@cabot.server] sudo: mkdir -p /var/log/cabot/\r\n[root@cabot.server] sudo: chmod -R 777 /var/log/cabot/\r\n[root@cabot.server] sudo: test -d /home/cabot/venv\r\n[root@cabot.server] sudo: psql -c \"CREATE USER cabot WITH NOCREATEDB NOCREATEUSER ENCRYPTED PASSWORD E'cabot'\"\r\n[root@cabot.server] out: /bin/bash: line 0: cd: /home/cabot/2015-08-06-f5f201c: Permission denied\r\n[root@cabot.server] out: \r\n\r\n\r\nWarning: sudo() received nonzero return code 1 while executing 'psql -c \"CREATE USER cabot WITH NOCREATEDB NOCREATEUSER ENCRYPTED PASSWORD E'cabot'\"'!\r\n\r\n[root@cabot.server] sudo: psql -c \"CREATE DATABASE index WITH OWNER cabot\"\r\n[root@cabot.server] out: /bin/bash: line 0: cd: /home/cabot/2015-08-06-f5f201c: Permission denied\r\n[root@cabot.server] out: \r\n\r\n\r\nWarning: sudo() received nonzero return code 1 while executing 'psql -c \"CREATE DATABASE index WITH OWNER cabot\"'!\r\n\r\n[root@cabot.server] sudo: foreman run -e conf/production.env /home/cabot/venv/bin/pip install --editable /home/cabot/2015-08-06-f5f201c --exists-action=w\r\n[root@cabot.server] out: /usr/local/share/gems/gems/foreman-0.78.0/lib/foreman/cli.rb:92: warning: Insecure world writable dir /mnt/Production/Apps/HAProxy/ in PATH, mode 040777\r\n[root@cabot.server] out: Obtaining file:///home/cabot/2015-08-06-f5f201c\r\n[root@cabot.server] out:   Running setup.py egg_info for package from file:///home/cabot/2015-08-06-f5f201c\r\n[root@cabot.server] out:     Traceback (most recent call last):\r\n[root@cabot.server] out:       File \"<string>\", line 3, in <module>\r\n[root@cabot.server] out:     ImportError: No module named setuptools.command\r\n[root@cabot.server] out:     Complete output from command python setup.py egg_info:\r\n[root@cabot.server] out:     Traceback (most recent call last):\r\n[root@cabot.server] out: \r\n[root@cabot.server] out:   File \"<string>\", line 3, in <module>\r\n[root@cabot.server] out: \r\n[root@cabot.server] out: ImportError: No module named setuptools.command\r\n[root@cabot.server] out: \r\n[root@cabot.server] out: ----------------------------------------\r\n[root@cabot.server] out: Cleaning up...\r\n[root@cabot.server] out: Command python setup.py egg_info failed with error code 1 in /home/cabot/2015-08-06-f5f201c\r\n[root@cabot.server] out: Storing complete log in /root/.pip/pip.log\r\n[root@cabot.server] out: \r\n\r\n\r\nFatal error: sudo() received nonzero return code 1 while executing!\r\n\r\nRequested: foreman run -e conf/production.env /home/cabot/venv/bin/pip install --editable /home/cabot/2015-08-06-f5f201c --exists-action=w\r\nExecuted: sudo -S -p 'sudo password:'  /bin/bash -l -c \"cd /home/cabot/2015-08-06-f5f201c && foreman run -e conf/production.env /home/cabot/venv/bin/pip install --editable /home/cabot/2015-08-06-f5f201c --exists-action=w\"\r\n\r\nAborting.\r\n````"},"comment":{"url":"https://api.github.com/repos/arachnys/cabot/issues/comments/128523426","html_url":"https://github.com/arachnys/cabot/issues/243#issuecomment-128523426","issue_url":"https://api.github.com/repos/arachnys/cabot/issues/243","id":128523426,"user":{"login":"wstiern","id":9751703,"avatar_url":"https://avatars.githubusercontent.com/u/9751703?v=3","gravatar_id":"","url":"https://api.github.com/users/wstiern","html_url":"https://github.com/wstiern","followers_url":"https://api.github.com/users/wstiern/followers","following_url":"https://api.github.com/users/wstiern/following{/other_user}","gists_url":"https://api.github.com/users/wstiern/gists{/gist_id}","starred_url":"https://api.github.com/users/wstiern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wstiern/subscriptions","organizations_url":"https://api.github.com/users/wstiern/orgs","repos_url":"https://api.github.com/users/wstiern/repos","events_url":"https://api.github.com/users/wstiern/events{/privacy}","received_events_url":"https://api.github.com/users/wstiern/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T22:09:12Z","updated_at":"2015-08-06T22:09:12Z","body":"Incorrectly configured Redis environment. All daemons seem to be starting now, though the connection is still refused when I try to hit :5000 on the box. Done for today though and the original issue is resolved, so closing."}}