[GH-ISSUE #723] 证书更新不成功 #3478

Closed
opened 2026-02-28 11:56:17 +03:00 by kerem · 16 comments
Owner

Originally created by @ftyszyx on GitHub (Nov 14, 2024).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/723

无法获取证书了
issue cert get acme user error: get default user error: record not found
image

Originally created by @ftyszyx on GitHub (Nov 14, 2024). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/723 无法获取证书了 issue cert get acme user error: get default user error: record not found ![image](https://github.com/user-attachments/assets/54663e70-fd3f-4f8c-89c3-a66d2a0ad34e)
kerem 2026-02-28 11:56:17 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ftyszyx commented on GitHub (Nov 14, 2024):

image

<!-- gh-comment-id:2475722857 --> @ftyszyx commented on GitHub (Nov 14, 2024): ![image](https://github.com/user-attachments/assets/d576e8e2-0001-43a5-8991-e74d21aa05b7)
Author
Owner

@0xJacky commented on GitHub (Nov 14, 2024):

如果提示系统默认用户不存在,请手动选定 ACME 用户JackyOn Nov 14, 2024, at 4:36 PM, ftyszyx @.***> wrote:
image.png (view on web)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

<!-- gh-comment-id:2475752462 --> @0xJacky commented on GitHub (Nov 14, 2024): 如果提示系统默认用户不存在,请手动选定 ACME 用户JackyOn Nov 14, 2024, at 4:36 PM, ftyszyx ***@***.***> wrote: image.png (view on web) —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Author
Owner

@ftyszyx commented on GitHub (Nov 14, 2024):

已经选了
image

<!-- gh-comment-id:2475756549 --> @ftyszyx commented on GitHub (Nov 14, 2024): 已经选了 ![image](https://github.com/user-attachments/assets/cb7e9bf3-358f-43c1-8f8d-7fbf83d9695b)
Author
Owner

@ftyszyx commented on GitHub (Nov 15, 2024):

证书更新不成功,有解决方案吗?

<!-- gh-comment-id:2478257519 --> @ftyszyx commented on GitHub (Nov 15, 2024): 证书更新不成功,有解决方案吗?
Author
Owner

@ftyszyx commented on GitHub (Nov 15, 2024):

acme用户是有效的

<!-- gh-comment-id:2478258174 --> @ftyszyx commented on GitHub (Nov 15, 2024): acme用户是有效的
Author
Owner

@0xJacky commented on GitHub (Nov 15, 2024):

我会尝试复现这个问题,但是默认用户确实不见了,你有删过或者改过名字吗

<!-- gh-comment-id:2478261192 --> @0xJacky commented on GitHub (Nov 15, 2024): 我会尝试复现这个问题,但是默认用户确实不见了,你有删过或者改过名字吗
Author
Owner

@ftyszyx commented on GitHub (Nov 15, 2024):

我给你的截图都是没改acme用户的名字的。连不上。
我又试了改了用户名字,还是更新不到证书,一样的报错。
那怎么样才能恢复默认的用户呢?

<!-- gh-comment-id:2478273789 --> @ftyszyx commented on GitHub (Nov 15, 2024): 我给你的截图都是没改acme用户的名字的。连不上。 我又试了改了用户名字,还是更新不到证书,一样的报错。 那怎么样才能恢复默认的用户呢?
Author
Owner

@0xJacky commented on GitHub (Nov 15, 2024):

安装/更新之后系统没有自动创建默认用户吗,这个是你手动新建的?如果创建失败了可能是网络问题,一般重启会重新注册

<!-- gh-comment-id:2478280981 --> @0xJacky commented on GitHub (Nov 15, 2024): 安装/更新之后系统没有自动创建默认用户吗,这个是你手动新建的?如果创建失败了可能是网络问题,一般重启会重新注册
Author
Owner

@ftyszyx commented on GitHub (Nov 15, 2024):

安装/更新之后系统没有自动创建默认用户吗?(忘了)
应该是手动新建的。不过已经稳定运行半年多了,所以之前的配置应该是没问题的。
网络问题,一般重启会重新注册。我重启了container,还是不行

<!-- gh-comment-id:2478287858 --> @ftyszyx commented on GitHub (Nov 15, 2024): 安装/更新之后系统没有自动创建默认用户吗?(忘了) 应该是手动新建的。不过已经稳定运行半年多了,所以之前的配置应该是没问题的。 网络问题,一般重启会重新注册。我重启了container,还是不行
Author
Owner

@0xJacky commented on GitHub (Nov 15, 2024):

我晚些时候再回复

<!-- gh-comment-id:2478293539 --> @0xJacky commented on GitHub (Nov 15, 2024): 我晚些时候再回复
Author
Owner

@0xJacky commented on GitHub (Nov 15, 2024):

Docker 镜像版本是最新的吗

<!-- gh-comment-id:2478332736 --> @0xJacky commented on GitHub (Nov 15, 2024): Docker 镜像版本是最新的吗
Author
Owner

@ftyszyx commented on GitHub (Nov 15, 2024):

我没升级过docker镜像,我都是在系统内升级的,已经是最新
image

<!-- gh-comment-id:2478350565 --> @ftyszyx commented on GitHub (Nov 15, 2024): 我没升级过docker镜像,我都是在系统内升级的,已经是最新 ![image](https://github.com/user-attachments/assets/92a33ae5-32de-45c0-9704-51e29b40ebcf)
Author
Owner

@0xJacky commented on GitHub (Nov 15, 2024):

确实有 bug,用户没保存下来,我修复一下

<!-- gh-comment-id:2478624902 --> @0xJacky commented on GitHub (Nov 15, 2024): 确实有 bug,用户没保存下来,我修复一下
Author
Owner

@0xJacky commented on GitHub (Nov 15, 2024):

麻烦检查配置文件是否自动迁移成功,可能有些特殊情况下导致 Nginx UI 的配置从 v1 迁移到 v2 失败。
目前获取默认用户的逻辑就是

[cert]
Email = 用户邮箱
CADir = 自定义 CADir

用户邮箱+CADir(如果为空就是默认的 https://acme-v02.api.letsencrypt.org/directory)查找用户是否存在。

关于手动指定用户但是仍无法签发,这个是一个小 bug,临时解决方案是修改完 ACME User 后点击一次保存,再点击更新证书。

<!-- gh-comment-id:2479120247 --> @0xJacky commented on GitHub (Nov 15, 2024): 麻烦检查配置文件是否自动迁移成功,可能有些特殊情况下导致 Nginx UI 的配置从 v1 迁移到 v2 失败。 目前获取默认用户的逻辑就是 ``` [cert] Email = 用户邮箱 CADir = 自定义 CADir ``` 用户邮箱+CADir(如果为空就是默认的 `https://acme-v02.api.letsencrypt.org/directory`)查找用户是否存在。 关于手动指定用户但是仍无法签发,这个是一个小 bug,临时解决方案是修改完 ACME User 后点击一次保存,再点击更新证书。
Author
Owner

@ftyszyx commented on GitHub (Nov 15, 2024):

image
已经清空,并重启了系统,但还是不行
image

<!-- gh-comment-id:2480153880 --> @ftyszyx commented on GitHub (Nov 15, 2024): ![image](https://github.com/user-attachments/assets/c49a9439-bb0b-49e8-8e92-754b4b35de27) 已经清空,并重启了系统,但还是不行 ![image](https://github.com/user-attachments/assets/69290a35-ebad-4ac9-ac30-96eec5c9226c)
Author
Owner

@0xJacky commented on GitHub (Nov 16, 2024):

image

已经清空,并重启了系统,但还是不行

image

Email 设置一下,再重启 Nginx UI

<!-- gh-comment-id:2480231173 --> @0xJacky commented on GitHub (Nov 16, 2024): > ![image](https://github.com/user-attachments/assets/c49a9439-bb0b-49e8-8e92-754b4b35de27) > > 已经清空,并重启了系统,但还是不行 > > ![image](https://github.com/user-attachments/assets/69290a35-ebad-4ac9-ac30-96eec5c9226c) > > Email 设置一下,再重启 Nginx UI
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#3478
No description provided.