weixin_39653311
weixin_39653311
2021-01-12 07:42

Permission Denied during Deploy

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!


[root.server] sudo: mkdir -p /var/log/cabot/
[root.server] sudo: chmod -R 777 /var/log/cabot/
[root.server] sudo: test -d /home/cabot/venv
[root.server] sudo: psql -c "CREATE USER cabot WITH NOCREATEDB NOCREATEUSER ENCRYPTED PASSWORD E'cabot'"
[root.server] out: /bin/bash: line 0: cd: /home/cabot/2015-08-06-f5f201c: Permission denied
[root.server] out: 


Warning: sudo() received nonzero return code 1 while executing 'psql -c "CREATE USER cabot WITH NOCREATEDB NOCREATEUSER ENCRYPTED PASSWORD E'cabot'"'!

[root.server] sudo: psql -c "CREATE DATABASE index WITH OWNER cabot"
[root.server] out: /bin/bash: line 0: cd: /home/cabot/2015-08-06-f5f201c: Permission denied
[root.server] out: 


Warning: sudo() received nonzero return code 1 while executing 'psql -c "CREATE DATABASE index WITH OWNER cabot"'!

[root.server] sudo: foreman run -e conf/production.env /home/cabot/venv/bin/pip install --editable /home/cabot/2015-08-06-f5f201c --exists-action=w
[root.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
[root.server] out: Obtaining file:///home/cabot/2015-08-06-f5f201c
[root.server] out:   Running setup.py egg_info for package from file:///home/cabot/2015-08-06-f5f201c
[root.server] out:     Traceback (most recent call last):
[root.server] out:       File "<string>", line 3, in <module>
[root.server] out:     ImportError: No module named setuptools.command
[root.server] out:     Complete output from command python setup.py egg_info:
[root.server] out:     Traceback (most recent call last):
[root.server] out: 
[root.server] out:   File "<string>", line 3, in <module>
[root.server] out: 
[root.server] out: ImportError: No module named setuptools.command
[root.server] out: 
[root.server] out: ----------------------------------------
[root.server] out: Cleaning up...
[root.server] out: Command python setup.py egg_info failed with error code 1 in /home/cabot/2015-08-06-f5f201c
[root.server] out: Storing complete log in /root/.pip/pip.log
[root.server] out: 


Fatal error: sudo() received nonzero return code 1 while executing!

Requested: foreman run -e conf/production.env /home/cabot/venv/bin/pip install --editable /home/cabot/2015-08-06-f5f201c --exists-action=w
Executed: 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"

Aborting.
</module></string></module></string>

该提问来源于开源项目:arachnys/cabot

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

8条回答