Bug 224017

Summary: security/py-certbot: "Another instance of Certbot is already running."
Product: Ports & Packages Reporter: Gerard Seibert <gerard_seibert>
Component: Individual Port(s)Assignee: Kubilay Kocak <koobs>
Status: New ---    
Severity: Affects Some People CC: marek
Priority: --- Flags: bugzilla: maintainer-feedback? (koobs)
Version: Latest   
Hardware: Any   
OS: Any   

Description Gerard Seibert 2017-12-01 13:29:24 UTC
~ $ uname -a
FreeBSD scorpio.seibercom.net 11.1-RELEASE-p4 FreeBSD 11.1-RELEASE-p4 #0: Tue Nov 14 06:12:40 UTC 2017     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

~ $ freebsd-version
11.1-RELEASE-p5

dovecot-2.2.33.2_2

py27-certbot-0.19.0,1

I have been using the p5-certbot port without a problem until recently. It is being run via cron:  /usr/local/bin/certbot -q renew --pre-hook "service dovecot stop" --post-hook "service dovecot start". Until recently that worked fine. Now I have started receiving this error message:  "Another instance of Certbot is already running." Try as I might, I cannot find another instance of "certbot" running.

Apparently, the only way to correct the problem is to reboot the system. This only works until after the cron command has run one time, after which the problem resurfaces.

I have confirmed that at least one other user is experiencing this problem. He stated that the problem does not occur if the command is only run via the command line. He believes that certbot is waiting on the post-hook command, but only when it was ran from cron. I have not confirmed this, however.