https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227289
Bug ID: 227289 Summary: security/py-certbot-nginx: Wrong nginx configuration path set Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: pyt...@freebsd.org Reporter: fbsdbugzi...@csj.no Flags: maintainer-feedback?(pyt...@freebsd.org) Assignee: pyt...@freebsd.org Installing nginx, py-certbot and py-certbot-nginx results in wrong behaviour when running certbot: # certbot Saving debug log to /var/log/letsencrypt/letsencrypt.log Error while running nginx -c /etc/nginx/nginx.conf -t. nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) nginx: configuration file /etc/nginx/nginx.conf test failed Certbot doesn't know how to automatically configure the web server on this system. However, it can still get a certificate for you. Please run "certbot certonly" to do so. You'll need to manually configure your web server to use the resulting certificate. Digging through the system, I eventually came across this file: /usr/local/lib/python2.7/site-packages/certbot_nginx/constants.py In constants.py, the server_root for nginx is set: CLI_DEFAULTS = dict( server_root="/etc/nginx", ctl="nginx", ) This should be set to /usr/local/etc/nginx, which is where nginx' config files reside on FreeBSD. Changing server_root to /usr/local/etc/nginx and recompiling constants.py to constants.pyc and constants.pyo solves the problem and certificate requests and renewals work as expected. System: FreeBSD 11.1-RELEASE-p9 amd64 Nginx: www/nginx-devel (1.13.10) Certbot: security/py-certbot (0.22.2,1) Certbot-nginx: security/py-certbot-nginx (0.22.2) -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-python@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-python To unsubscribe, send any mail to "freebsd-python-unsubscr...@freebsd.org"