No Permissions for `var/log`
johnnyshankman opened this issue · comments
Heyo followed the python virtual env instructions. Got my credentials etc working but I get the following error when I run it:
The following error was encountered:
[Errno 13] Permission denied: '/var/log/letsencrypt'
Either run as root, or set --config-dir, --work-dir, and --logs-dir to writeable paths.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/folders/fg/g81x8hq51l14nnxd6wvg81hr0000gn/T/certbot-log-cnv0ol78/log or re-run Certbot with -v for more details.
Two questions for my own sanity:
- Is this referring to local folders? Ie in my virtual python environment?
- If not, I do not have
var/log
on my server in godaddy. Onlylogs
. So where is this log going?
In the docker instructions you have
You may want to change the volumes /var/lib/letsencrypt and /etc/letsencrypt to local directories where the certificates and configuration should be stored
On which machine? Server or my machine?
Solved.
Answer was my machine needs these folders with write perms in the virtual env. Solved by doing the following:
- Create
logs
directory in the venv - Create three directories inside of it,
config-dir
,logs-dir
, andwork-dir
- Add these flags so that it writes to them:
--config-dir logs/config-dir --work-dir logs/work-dir --logs-dir logs/logs-dir
I suppose this makes sense, we store the files locally then use the godaddy api to push them up to the servers or something I presume.