Skip to content
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

Permission denied, deploy task refuses to create website directory. #908

Closed
5 of 6 tasks
nextgenthemes opened this issue Oct 27, 2017 · 2 comments
Closed
5 of 6 tasks

Comments

@nextgenthemes
Copy link
Contributor

nextgenthemes commented Oct 27, 2017

Submit a feature request or bug report

Please let me know if there is sensible information in here I should not share. My URL and server IP not needs to be secret, changed user and servername.

This may relate to #668 I am not sure.

ansible-playbook deploy.yml -e "site=nico.onl env=production" -vvv

[...]

  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/srv/www/mydomain.com'

I had something setup wrong b4 I think this may be how I got here. I have trellis setup to block root ssh and it has the pass do get sudo with the admin user i can use myself so ssh in. I see this in /srv/www. In the letsencrypt dir there is only a empty ping.txt. Should Trellis not get sudo at this point and set the permissions right? Should I set them manually now? To what exactly? My guess is the root:root is wrong here but I think Trellis should automatically take care of this.

user@vps:/srv/www$ ll -a
total 12
drwxr-xr-x 3 root root 4096 Oct 27 03:24 ./
drwxr-xr-x 3 root root 4096 Oct 27 03:24 ../
drwxr-xr-x 2 root root 4096 Oct 27 03:25 letsencrypt/
@greatislander
Copy link
Contributor

It looks like you have not run ansible-playbook server.yml -e env=production. You can't deploy if you haven't provisioned the server. See: https://roots.io/trellis/docs/remote-server-setup/

@nextgenthemes
Copy link
Contributor Author

Oh well thanks, I thought I already did that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants