Bug 224017 - security/py-certbot: "Another instance of Certbot is already running."
Summary: security/py-certbot: "Another instance of Certbot is already running."
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Kubilay Kocak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-01 13:29 UTC by Gerard Seibert
Modified: 2017-12-01 15:24 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (koobs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.