-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue creating /etc/htpasswd as requested: [Errno 13] Permission denied: b'/etc/htpasswd' #22
Comments
Hey @Alynsk1 , It seems like the playbook doesn't have the permission to create the folder there. I see in the error payload various references to "selinux", would you happen to use it? It's a wild guess, but that may be causing the problem you see? You can also change the path where the files are created by setting the
Maybe you could try some other path to see if you encounter the same problem? |
Hi @louim , I run macos mojave 10.14.6 I have try to change the path to srv/www/htpasswd and i still got a permission error. I think I got an error with passlib missing from Trellis install on my first run (version 2.0.0) and I resolve by adding to trellis/group_vars/all/main.yml
as mentionned in Issue #15 Maybe there is a link between the two. I have this set to false in trellis/group_vars/all/security.yml
if there could be a problem here. I think I will try a fresh Trellis and try to push to a new droplet to see if i still got the error. |
Hi @louim , I made a fresh install of Trellis and reinstall the role. Now I have this error output I'm I suppose to see a Handler in |
When i run
ansible-playbook server.yml -e env=staging -vvv
i get this error
TASK [bedrock-site-protect : Creating htpasswd folder] ************************************************************************************************************************************************************** task path: /.../trellis/vendor/roles/bedrock-site-protect/tasks/install.yml:9 Using module file /Library/Python/2.7/site-packages/ansible/modules/files/file.py Pipelining is enabled. <xxx.xxx.xxx.xxx> ESTABLISH SSH CONNECTION FOR USER: admin <xxx.xxx.xxx.xxx> SSH: EXEC ssh -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o 'User="admin"' -o ConnectTimeout=10 -o ControlPath=/Users/.../.ansible/cp/8105218663 xxx.xxx.xxx.xxx '/bin/sh -c '"'"'python3 && sleep 0'"'"'' <xxx.xxx.xxx.xxx> (1, '\n{"msg": "There was an issue creating /etc/htpasswd as requested: [Errno 13] Permission denied: b\'/etc/htpasswd\'", "path": "/etc/htpasswd", "failed": true, "invocation": {"module_args": {"group": "root", "dest": "/etc/htpasswd", "state": "directory", "mode": 493, "owner": "root", "path": "/etc/htpasswd", "recurse": false, "force": false, "follow": true, "modification_time_format": "%Y%m%d%H%M.%S", "access_time_format": "%Y%m%d%H%M.%S", "_original_basename": null, "_diff_peek": null, "src": null, "modification_time": null, "access_time": null, "seuser": null, "serole": null, "selevel": null, "setype": null, "attributes": null, "content": null, "backup": null, "remote_src": null, "regexp": null, "delimiter": null, "directory_mode": null, "unsafe_writes": null}}}\n', '') <xxx.xxx.xxx.xxx> Failed to connect to the host via ssh: System info: Ansible 2.8.8; Darwin Trellis 1.3.0: December 7th, 2019
The text was updated successfully, but these errors were encountered: