mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 16:55:56 +03:00
[GH-ISSUE #1321] 无法删除证书 #732
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#732
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 @kailicom on GitHub (Aug 22, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1321
Describe the bug
删除证书报错:"invalid character '}' after object key"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
目前证书还会自动执行续期任务,经常提示报错,希望可以先提供一个临时删除的办法。
Screenshots

Info (please complete the following information):
@0xJacky commented on GitHub (Aug 22, 2025):
可以提供一下删除时候的日志吗,docker logs -f 看一下
@kailicom commented on GitHub (Aug 22, 2025):
我截取了一部分,如果需要更多我可以导出文件:
2025/08/22 15:09:34 github.com/uozi-tech/cosy@v1.24.10/delete.go:37 invalid character '}' after object key
[0.151ms] [rows:1] SELECT * FROM
certsWHEREcerts.id= 1 ANDcerts.deleted_atIS NULL ORDER BYcerts.idLIMIT 12025-08-22 15:09:34 ERROR github.com/0xJacky/Nginx-UI/api/certificate/certificate.go:219 invalid character '}' after object key
[GIN] 2025/08/22 - 15:09:34 | 500 | 877.324µs | 113.227.131.140 | DELETE "/api/certs/1"
@0xJacky commented on GitHub (Aug 22, 2025):
不太清楚出现这个问题的原因,您可以用 sqlite 数据库编辑工具,修改 database.db 中的 certs 表,删除掉有问题的条目。