mirror of
https://github.com/certimate-go/certimate.git
synced 2026-04-26 05:05:56 +03:00
[GH-ISSUE #706] [Bug] 阿里云ESA报错 #475
Labels
No labels
announcement
backlog
bug
declined
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
invalid
pull-request
question
stale
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/certimate#475
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 @C018 on GitHub (May 20, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/706
软件版本 / Release Version
0.3.12
缺陷描述 / Description
error: one or more domains had a problem: [.xxxx.com] [.xxxx.com] acme: error presenting token: alicloud-esa: could not find site for zone "xxxx.com.": Get "https://esa..aliyuncs.com/?AccessType=NS&PageNumber=1&PageSize=1&SiteName=xxxx.com.": dial tcp: lookup esa..aliyuncs.com: no such host [xxxx.com] [xxxx.com] acme: error presenting token: alicloud-esa: could not find site for zone "xxxx.com.": Get "https://esa..aliyuncs.com/?AccessType=NS&PageNumber=1&PageSize=1&SiteName=xxxx.com.": dial tcp: lookup esa..aliyuncs.com: no such host
复现步骤 / Steps to reproduce
部署后手动执行
日志 / Logs
其他 / Miscellaneous
No response
贡献 / Contribution
@C018 commented on GitHub (May 20, 2025):
esa..aliyuncs.com 这个esa后面多了一个点,不知道有影响没
@fudiwei commented on GitHub (May 20, 2025):
github.com/usual2970/certimate@2906576de0/internal/pkg/core/applicant/acme-dns-01/lego-providers/aliyun-esa/aliyun_esa.go (L24-L32)Region 漏传了。
如果你愿意参与贡献,可以本地验证后发个 PR 过来~
@C018 commented on GitHub (May 21, 2025):
error: one or more domains had a problem: [.xxxx.com] [.xxxx.com] acme: error presenting token: alicloud-esa: could not find site for zone "xxxx.com.": failed to get site id [xxxx.com] [xxxx.com] acme: error presenting token: alicloud-esa: could not find site for zone "xxxx.com.": failed to get site id
@C018 commented on GitHub (May 21, 2025):
目前v0.3.13还存在这个问题,最近比较忙贡献不了代码喽,辛苦了
@fudiwei commented on GitHub (May 21, 2025):
你这个站点是 NS 模式接入的吗?
@C018 commented on GitHub (May 21, 2025):
是的
@fudiwei commented on GitHub (May 21, 2025):
https://api.aliyun.com/api/ESA/2024-09-10/ListSites
把日志里打印的参数填进去看看响应是什么?
@fudiwei commented on GitHub (May 21, 2025):
诶不对,这步没日志。你把 SiteName 填了就行,就是错误信息里那个 xxxx.com,PageNumber 和 PageSize 都填 1,其他保持默认。
@C018 commented on GitHub (May 21, 2025):
{
"TotalCount": 1,
"RequestId": "E7D29C25-DF64-5CBD-B90E-BC25A6723EBC",
"PageSize": 500,
"PageNumber": 1,
"Sites": [
{
"Status": "active",
"SiteId": 656779382818432,
"NameServerList": "alaska-range.ns.atrustdns.com,adriatic.ns.atrustdns.com",
"OfflineReason": "",
"ResourceGroupId": "rg-acfmxymykol7hai",
"SiteName": "xxxx.com",
"VisitTime": "2025-05-21T01:43:45Z",
"InstanceId": "esa-site-a9t9cmy395og",
"CreateTime": "2025-03-20T01:39:36Z",
"Coverage": "global",
"PlanName": "medium",
"VerifyCode": "verify_48cfaa5e6bacb2914cbac8a8afc2f499",
"UpdateTime": "2025-04-09T06:50:50Z",
"CnameZone": "a1.inittt.com",
"AccessType": "NS"
}
]
}
@C018 commented on GitHub (May 21, 2025):
{
"user-agent": "AlibabaCloud API Workbench",
"host": "esa.cn-hangzhou.aliyuncs.com"
}
@C018 commented on GitHub (May 21, 2025):
{
"date": "Wed, 21 May 2025 06:21:27 GMT",
"content-type": "application/json;charset=utf-8",
"content-length": "595",
"connection": "keep-alive",
"keep-alive": "timeout=25",
"access-control-allow-origin": "",
"access-control-expose-headers": "",
"x-acs-request-id": "E7D29C25-DF64-5CBD-B90E-BC25A6723EBC",
"x-acs-trace-id": "6aa608174742784fc00601baf0d35593",
"etag": "5HYPcyr1cBNdojhAQ8zuhwg5"
}
@C018 commented on GitHub (May 21, 2025):
{
"TotalCount": 1,
"RequestId": "C5B24861-AACC-59C1-B19F-5A53168E2BD2",
"PageSize": 1,
"PageNumber": 1,
"Sites": [
{
"Status": "active",
"SiteId": 656779382818432,
"NameServerList": "alaska-range.ns.atrustdns.com,adriatic.ns.atrustdns.com",
"OfflineReason": "",
"ResourceGroupId": "rg-acfmxymykol7hai",
"SiteName": "xxxx.com",
"VisitTime": "2025-05-21T01:43:45Z",
"InstanceId": "esa-site-a9t9cmy395og",
"CreateTime": "2025-03-20T01:39:36Z",
"Coverage": "global",
"PlanName": "medium",
"VerifyCode": "verify_48cfaa5e6bacb2914cbac8a8afc2f499",
"UpdateTime": "2025-04-09T06:50:50Z",
"CnameZone": "a1.inittt.com",
"AccessType": "NS"
}
]
}
@fudiwei commented on GitHub (May 21, 2025):
响应里这条里的 SiteName 和错误信息里的那个是完全一致的吗?
@C018 commented on GitHub (May 21, 2025):
是的
@fudiwei commented on GitHub (May 21, 2025):
我也不知道为啥报找不到站点的错了 😕
如果方便的话可以给我邮箱发一个你的 AK/SK 我调试一下吗?邮箱地址见我的 GitHub 个人主页。你可以单独生成一对新的 AK/SK,分配只读权限即可。
@C018 commented on GitHub (May 21, 2025):
已经发送了,小心操作
@fudiwei commented on GitHub (May 21, 2025):
@C018 感谢提供测试环境,问题已修复。记得重置 AK/SK,以免数据泄露。