mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #918] Another instance of Certbot is already running #780
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#780
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cargnellogiacomo on GitHub (Feb 28, 2021).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/918
Describe the bug
To Reproduce
Steps to reproduce the behavior:
[2/28/2021] [1:56:54 PM] [SSL ] › ℹ info Renewing Let'sEncrypt certificates for Cert #3: xxxxxx.duckdns.org
[2/28/2021] [1:56:57 PM] [Express ] › ⚠ warning Command failed: /usr/bin/certbot renew --non-interactive --config "/etc/letsencrypt.ini" --cert-name "npm-3" --preferred-challenges "dns,http" --disable-hook-validation
Another instance of Certbot is already running.
[2/28/2021] [2:01:29 PM] [SSL ] › ✖ error Error: Command failed: /usr/bin/certbot renew --non-interactive --quiet --config "/etc/letsencrypt.ini" --preferred-challenges "dns,http" --disable-hook-validation
Expected behavior
The certificate is renewed without error.
Operating System
@mbenkler commented on GitHub (Mar 5, 2021):
i have the same issue with NPM 2.8.0.
I solved it:
it seems to be a parsing error and NPM ist trying to renew the certificate in the background.
so i just deleted the Certificate and issued a new one.
@cargnellogiacomo commented on GitHub (Mar 9, 2021):
I tried the same. I will see if at the time of the renewal I will notice the same issue.
@henkisdabro commented on GitHub (Mar 30, 2021):
I'm experiencing this error on (docker) version 2.8.1 when issuing new letsencrypt cert.
@jzcad1828 commented on GitHub (Mar 31, 2021):
I ran into this with v2.8.1 docker image. In my case, I docker exec bash'd the npm app container and killed the existing certbot process. This allowed me to generate a certificate from the CLI and UI. This occurred on an earlier version of NPM from January, and after upgrading it to v2.8.1.
@samr28 commented on GitHub (Apr 2, 2021):
Also running into this issue. I docker exec'd in too and there was one running that seemed to be for renewal. Even if I kill that one, it still fails. I also checked and after killing the renewal one, there were no existing lock files for it.
Any other suggestions to fix?
EDIT: not sure what changed but mine seems to be working okay now
@cargnellogiacomo commented on GitHub (Apr 3, 2021):
I cannot test now as NPM does not renew certificates that are not due for renewal. If you restart the container, do you see the same issue and do you need to kill everytime the certbot process?
@kamegami13 commented on GitHub (Apr 11, 2021):
I have the same issue. It occurs when I attempt to create a new SSL cert in the SSL tab. If I attempt to renew a certificate or create a new certificate in the proxy host menu then I just get "Internal Error". I have restarted my container numerous times and have attempted to kill existing certbot processes. What occurs is a new certbot process will immediately start. I will even see multiple certbot processes in the ps menu and see different PIDs if I run multiple 'ps' commands in a row. Perhaps cerbot is continually being started by a background process on a loop due to some error that occurs, and thus there is always a lock when a certbot instance is called from the UI manually. The container logs didn't have any useful information, I'm not sure where to find a general log file.
Error: Command failed: /usr/bin/certbot certonly --non-interactive --config "/etc/letsencrypt.ini" --cert-name "npm-21" --agree-tos --preferred-challenges "dns,http" --domains xxxxxxxxxxxx
Another instance of Certbot is already running.
@at-cf commented on GitHub (Apr 23, 2021):
Then new cert can be added. Seems like it was unable to renew the SSL cert (using DNS challenge in my case) and the process that was trying is re-spawned, even on --force-recreate container restart, even after SSL certificate deletion. Also using v2.8.1.
@kamegami13 commented on GitHub (May 3, 2021):
A followup on this, I noticed certb has a new process id everytime i check. The commands below are run in quick succession, certb seems to be failing/restarting in an endless loop.
@tarkh commented on GitHub (May 14, 2021):
grep certbis the process of you doinggrep certbcommand at current time, it's not certbot process.@chaptergy commented on GitHub (Oct 13, 2021):
I am not sure when exactly certbot does this, but there are two things you can do to fix this:
Kill the second certbot process if it is indeed running as already answered by others:
The other possibility is that there isn't actually a second process running, but there is a lockfile left somewhere by certbot, which you can delete by running:
Unfortunately I don't think there is a "fix" to prevent this from occuring except to switch away from certbot, which is planned for v3.
Source
@eitch commented on GitHub (Sep 8, 2022):
I have the same issue, but something that is really weird, is that ps doesn't seem to be installed:
How can this be? What am i missing?
@eitch commented on GitHub (Sep 8, 2022):
After installing procps ps is available. I find it weird that such a tool is missing, but so much other tools are available... Anyhow, i solved my issue. Thanks
@Trolann commented on GitHub (Jan 10, 2023):
Same situation for me. I think this issue should be something about certbot getting hung, and not having a way to clear it out.
@github-actions[bot] commented on GitHub (Mar 18, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@Cyanoure commented on GitHub (Nov 23, 2024):
Same error here. I don't know when did it broke. I pulled the latest version of the image, restarted everything, same error.
The following command from @chaptergy is solved the problem and all certs are automatically updated:
I think this should be fixed. I don't remember doing anything that could break this.
@rombat commented on GitHub (Dec 19, 2024):
that did the trick, thanks a lot !
@github-actions[bot] commented on GitHub (Jun 21, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍