Unable to write/read in make_vhost_ssl


#1

Cann’t find a solution for the error I get when create a new certificate.
Server is running centos 7.
When I run the following command:
./letsencrypt-auto --apache -d [my.site.name]

Get the question (after the second run as the certificate already exists):
Unable to write/read in make_vhost_ssl

What am I doing wrong?

from the log:
2016-03-08 21:16:08,392:DEBUG:root:Sending GET request to https://acme-v01.api.letsencrypt.org/directory. args: (), kwargs: {}
2016-03-08 21:16:08,399:INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
2016-03-08 21:16:08,823:DEBUG:requests.packages.urllib3.connectionpool:“GET /directory HTTP/1.1” 200 263
2016-03-08 21:16:08,825:DEBUG:root:Received <Response [200]>. Headers: {‘Content-Length’: ‘263’, ‘Expires’: ‘Tue, 08 Mar 2016 21:18:47 GMT’, ‘Strict-Transport-Security’: ‘max-age=604800’, ‘Server’: ‘nginx’, ‘Connection’: ‘keep-alive’, ‘Pragma’: ‘no-cache’, ‘Cache-Control’: ‘max-age=0, no-cache, no-store’, ‘Date’: ‘Tue, 08 Mar 2016 21:18:47 GMT’, ‘X-Frame-Options’: ‘DENY’, ‘Content-Type’: ‘application/json’, ‘Replay-Nonce’: ‘HIKvEbEG6_rKK1xlQ54C2AqQrBDr0wwTqZppJtKjN7A’}. Content: '{“new-authz”:“https://acme-v01.api.letsencrypt.org/acme/new-authz",“new-cert”:“https://acme-v01.api.letsencrypt.org/acme/new-cert”,“new-reg”:“https://acme-v01.api.letsencrypt.org/acme/new-reg”,“revoke-cert”:"https://acme-v01.api.letsencrypt.org/acme/revoke-cert”}'
2016-03-08 21:16:08,826:DEBUG:acme.client:Received response <Response [200]> (headers: {‘Content-Length’: ‘263’, ‘Expires’: ‘Tue, 08 Mar 2016 21:18:47 GMT’, ‘Strict-Transport-Security’: ‘max-age=604800’, ‘Server’: ‘nginx’, ‘Connection’: ‘keep-alive’, ‘Pragma’: ‘no-cache’, ‘Cache-Control’: ‘max-age=0, no-cache, no-store’, ‘Date’: ‘Tue, 08 Mar 2016 21:18:47 GMT’, ‘X-Frame-Options’: ‘DENY’, ‘Content-Type’: ‘application/json’, ‘Replay-Nonce’: ‘HIKvEbEG6_rKK1xlQ54C2AqQrBDr0wwTqZppJtKjN7A’}): '{“new-authz”:“https://acme-v01.api.letsencrypt.org/acme/new-authz",“new-cert”:“https://acme-v01.api.letsencrypt.org/acme/new-cert”,“new-reg”:“https://acme-v01.api.letsencrypt.org/acme/new-reg”,“revoke-cert”:"https://acme-v01.api.letsencrypt.org/acme/revoke-cert”}'
2016-03-08 21:16:08,838:INFO:letsencrypt.cli:Cert not yet due for renewal
2016-03-08 21:22:13,437:CRITICAL:letsencrypt_apache.configurator:Error writing/reading to file in make_vhost_ssl
2016-03-08 21:22:13,454:DEBUG:letsencrypt.error_handler:Encountered exception:
Traceback (most recent call last):
File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/letsencrypt/client.py”, line 355, in deploy_certificate
fullchain_path=fullchain_path)
File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/letsencrypt_apache/configurator.py”, line 214, in deploy_cert
vhost = self.choose_vhost(domain)
File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/letsencrypt_apache/configurator.py”, line 308, in choose_vhost
vhost = self.make_vhost_ssl(vhost)
File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/letsencrypt_apache/configurator.py”, line 714, in make_vhost_ssl
self._copy_create_ssl_vhost_skeleton(avail_fp, ssl_fp)
File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/letsencrypt_apache/configurator.py”, line 830, in _copy_create_ssl_vhost_skeleton
raise errors.PluginError(“Unable to write/read in make_vhost_ssl”)
PluginError: Unable to write/read in make_vhost_ssl

2016-03-08 21:22:13,454:DEBUG:letsencrypt.error_handler:Calling registered functions
2016-03-08 21:22:13,454:WARNING:letsencrypt.reverter:File:

  • Could not be found to be deleted /etc/httpd/conf-le-ssl.conf - LE probably shut down unexpectedly
    2016-03-08 21:22:13,468:DEBUG:letsencrypt.cli:Exiting abnormally:
    Traceback (most recent call last):
    File “/root/.local/share/letsencrypt/bin/letsencrypt”, line 9, in
    load_entry_point(‘letsencrypt==0.4.2’, ‘console_scripts’, ‘letsencrypt’)()
    File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/letsencrypt/cli.py”, line 1993, in main
    return config.func(config, plugins)
    File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/letsencrypt/cli.py”, line 667, in run
    lineage.chain, lineage.fullchain)
    File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/letsencrypt/client.py”, line 355, in deploy_certificate
    fullchain_path=fullchain_path)
    File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/letsencrypt_apache/configurator.py”, line 214, in deploy_cert
    vhost = self.choose_vhost(domain)
    File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/letsencrypt_apache/configurator.py”, line 308, in choose_vhost
    vhost = self.make_vhost_ssl(vhost)
    File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/letsencrypt_apache/configurator.py”, line 714, in make_vhost_ssl
    self._copy_create_ssl_vhost_skeleton(avail_fp, ssl_fp)
    File “/root/.local/share/letsencrypt/lib/python2.7/site-packages/letsencrypt_apache/configurator.py”, line 830, in _copy_create_ssl_vhost_skeleton
    raise errors.PluginError(“Unable to write/read in make_vhost_ssl”)
    PluginError: Unable to write/read in make_vhost_ssl

[root@server]# python -V
Python 2.7.5