[GH-ISSUE #280] Let's Encrypt "Cron" Job does not run reliably #7268

Closed
opened 2026-03-12 19:52:27 +03:00 by kerem · 1 comment
Owner

Originally created by @wsewrftgyhujikolp on GitHub (Feb 9, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/280

Describe the bug
When auto_cert -> AutoObtain runs into a problem, the gocron Background task stops and does not run anymore.

To Reproduce
Steps to reproduce the behavior:

  1. Have a many certificates, so that the rate limit of let's encrypt is exceeded. (Or have some other problem where let's encrypt certificate validation does not succeed.)
  2. Have certificates that are close to expiring
  3. Look at the nginx-ui logs, it stopped trying to renew the certificates that need to be renewed.

Expected behavior
gocron should continue trying to renew all the certificates every 30 minutes, even if last time there was a problem. (See InitAutoObtainCert)

Screenshots
image

Info (please complete the following information):

  • Server OS: Ubuntu 22.04
  • Server Arch: aach64
  • Nginx UI Version: 1.9.9 (110)
  • Your Browser: N/A

Additional context
I don't know golang, or I would make a PR

Originally created by @wsewrftgyhujikolp on GitHub (Feb 9, 2024). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/280 **Describe the bug** When `auto_cert -> AutoObtain` runs into a problem, the `gocron` Background task stops and does not run anymore. **To Reproduce** Steps to reproduce the behavior: 1. Have a many certificates, so that the rate limit of let's encrypt is exceeded. (Or have some other problem where let's encrypt certificate validation does not succeed.) 2. Have certificates that are close to expiring 3. Look at the nginx-ui logs, it stopped trying to renew the certificates that need to be renewed. **Expected behavior** `gocron` should continue trying to renew all the certificates every 30 minutes, even if last time there was a problem. (See `InitAutoObtainCert`) **Screenshots** ![image](https://github.com/0xJacky/nginx-ui/assets/153927261/75bdc4cc-8bed-4274-9bdd-0f24e604634d) **Info (please complete the following information):** - Server OS: Ubuntu 22.04 - Server Arch: aach64 - Nginx UI Version: 1.9.9 (110) - Your Browser: N/A **Additional context** I don't know golang, or I would make a PR
kerem 2026-03-12 19:52:27 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@0xJacky commented on GitHub (Feb 9, 2024):

Please upgrade to v2.0.0-beta.x, this bug has been fixed.

<!-- gh-comment-id:1935771387 --> @0xJacky commented on GitHub (Feb 9, 2024): Please upgrade to v2.0.0-beta.x, this bug has been fixed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#7268
No description provided.