weixin_39653311
2021-01-12 07:42Permission 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条回答
为你推荐
- 华为手机,已动态申请权限,但是无法读取相册,提示Permission Denied
- android
- 1个回答
- 尝试调用Go AWS Lambda函数时权限被拒绝
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 1个回答
- GCP上的golang =>监听tcp:443:绑定:权限被拒绝
- https
- 2个回答
- paypal live - 使用Rest API获取响应代码400 PERMISSION_DENIED
- paypal
- symfony
- php
- 1个回答
- 微信 隐藏分享按钮出现permission denied
- html5
- java
- 微信
- 3个回答
换一换