Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

证书更新不成功 #723

Closed
ftyszyx opened this issue Nov 14, 2024 · 16 comments
Closed

证书更新不成功 #723

ftyszyx opened this issue Nov 14, 2024 · 16 comments
Labels
bug Something isn't working

Comments

@ftyszyx
Copy link

ftyszyx commented Nov 14, 2024

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

@ftyszyx ftyszyx added the bug Something isn't working label Nov 14, 2024
@ftyszyx
Copy link
Author

ftyszyx commented Nov 14, 2024

image

@0xJacky
Copy link
Owner

0xJacky commented Nov 14, 2024 via email

@ftyszyx
Copy link
Author

ftyszyx commented Nov 14, 2024

已经选了
image

@ftyszyx ftyszyx changed the title issue cert get acme user error: get default user error: record not found 证书更新不成功 Nov 15, 2024
@ftyszyx
Copy link
Author

ftyszyx commented Nov 15, 2024

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

@ftyszyx
Copy link
Author

ftyszyx commented Nov 15, 2024

acme用户是有效的

@0xJacky
Copy link
Owner

0xJacky commented Nov 15, 2024

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

@ftyszyx
Copy link
Author

ftyszyx commented Nov 15, 2024

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

@0xJacky
Copy link
Owner

0xJacky commented Nov 15, 2024

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

@ftyszyx
Copy link
Author

ftyszyx commented Nov 15, 2024

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

@0xJacky
Copy link
Owner

0xJacky commented Nov 15, 2024

我晚些时候再回复

@0xJacky
Copy link
Owner

0xJacky commented Nov 15, 2024

Docker 镜像版本是最新的吗

@ftyszyx
Copy link
Author

ftyszyx commented Nov 15, 2024

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

@0xJacky
Copy link
Owner

0xJacky commented Nov 15, 2024

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

@0xJacky
Copy link
Owner

0xJacky commented Nov 15, 2024

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

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

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

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

@ftyszyx
Copy link
Author

ftyszyx commented Nov 15, 2024

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

@0xJacky
Copy link
Owner

0xJacky commented Nov 16, 2024

image

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

image

Email 设置一下,再重启 Nginx UI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants