miigotu / certbot-dns-godaddy

A godaddy dns plugin using lexicon for cerbot to authenticate and retrieve letsencrypt certificates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Is this referring to local folders? Ie in my virtual python environment?
  2. If not, I do not have var/log on my server in godaddy. Only logs. 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:

  1. Create logs directory in the venv
  2. Create three directories inside of it, config-dir, logs-dir, and work-dir
  3. 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.