[GH-ISSUE #706] [Bug] 阿里云ESA报错 #475

Closed
opened 2026-03-03 01:03:37 +03:00 by kerem · 17 comments
Owner

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

# 请在此粘贴日志 / Paste logs here

其他 / Miscellaneous

No response

贡献 / Contribution

  • 我乐意为此贡献代码! / I am interested in contributing to this issue!
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 <details> ```console # 请在此粘贴日志 / Paste logs here ``` </details> ### 其他 / Miscellaneous _No response_ ### 贡献 / Contribution - [ ] 我乐意为此贡献代码! / I am interested in contributing to this issue!
kerem 2026-03-03 01:03:37 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@C018 commented on GitHub (May 20, 2025):

esa..aliyuncs.com 这个esa后面多了一个点,不知道有影响没

<!-- gh-comment-id:2892701599 --> @C018 commented on GitHub (May 20, 2025): esa..aliyuncs.com 这个esa后面多了一个点,不知道有影响没
Author
Owner

@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 过来~

<!-- gh-comment-id:2892722195 --> @fudiwei commented on GitHub (May 20, 2025): https://github.com/usual2970/certimate/blob/2906576de0ebb7813540f7b97db07a769886c500/internal/pkg/core/applicant/acme-dns-01/lego-providers/aliyun-esa/aliyun_esa.go#L24-L32 Region 漏传了。 如果你愿意参与贡献,可以本地验证后发个 PR 过来~
Author
Owner

@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

<!-- gh-comment-id:2896243225 --> @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
Author
Owner

@C018 commented on GitHub (May 21, 2025):

目前v0.3.13还存在这个问题,最近比较忙贡献不了代码喽,辛苦了

<!-- gh-comment-id:2896245748 --> @C018 commented on GitHub (May 21, 2025): 目前v0.3.13还存在这个问题,最近比较忙贡献不了代码喽,辛苦了
Author
Owner

@fudiwei 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

你这个站点是 NS 模式接入的吗?

<!-- gh-comment-id:2896395022 --> @fudiwei 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 你这个站点是 NS 模式接入的吗?
Author
Owner

@C018 commented on GitHub (May 21, 2025):

是的

<!-- gh-comment-id:2896460916 --> @C018 commented on GitHub (May 21, 2025): 是的
Author
Owner

@fudiwei commented on GitHub (May 21, 2025):

https://api.aliyun.com/api/ESA/2024-09-10/ListSites

把日志里打印的参数填进去看看响应是什么?

<!-- gh-comment-id:2896472632 --> @fudiwei commented on GitHub (May 21, 2025): https://api.aliyun.com/api/ESA/2024-09-10/ListSites 把日志里打印的参数填进去看看响应是什么?
Author
Owner

@fudiwei commented on GitHub (May 21, 2025):

诶不对,这步没日志。你把 SiteName 填了就行,就是错误信息里那个 xxxx.com,PageNumber 和 PageSize 都填 1,其他保持默认。

<!-- gh-comment-id:2896482394 --> @fudiwei commented on GitHub (May 21, 2025): 诶不对,这步没日志。你把 SiteName 填了就行,就是错误信息里那个 xxxx.com,PageNumber 和 PageSize 都填 1,其他保持默认。
Author
Owner

@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"
}
]
}

<!-- gh-comment-id:2896742504 --> @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" } ] }
Author
Owner

@C018 commented on GitHub (May 21, 2025):

{
"user-agent": "AlibabaCloud API Workbench",
"host": "esa.cn-hangzhou.aliyuncs.com"
}

<!-- gh-comment-id:2896743132 --> @C018 commented on GitHub (May 21, 2025): { "user-agent": "AlibabaCloud API Workbench", "host": "esa.cn-hangzhou.aliyuncs.com" }
Author
Owner

@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"
}

<!-- gh-comment-id:2896743663 --> @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" }
Author
Owner

@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"
}
]
}

<!-- gh-comment-id:2896753323 --> @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" } ] }
Author
Owner

@fudiwei 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" } ] }

响应里这条里的 SiteName 和错误信息里的那个是完全一致的吗?

<!-- gh-comment-id:2896812724 --> @fudiwei 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" } ] } 响应里这条里的 SiteName 和错误信息里的那个是完全一致的吗?
Author
Owner

@C018 commented on GitHub (May 21, 2025):

是的

<!-- gh-comment-id:2896853192 --> @C018 commented on GitHub (May 21, 2025): 是的
Author
Owner

@fudiwei commented on GitHub (May 21, 2025):

我也不知道为啥报找不到站点的错了 😕

如果方便的话可以给我邮箱发一个你的 AK/SK 我调试一下吗?邮箱地址见我的 GitHub 个人主页。你可以单独生成一对新的 AK/SK,分配只读权限即可。

<!-- gh-comment-id:2896869121 --> @fudiwei commented on GitHub (May 21, 2025): 我也不知道为啥报找不到站点的错了 😕 如果方便的话可以给我邮箱发一个你的 AK/SK 我调试一下吗?邮箱地址见我的 GitHub 个人主页。你可以单独生成一对新的 AK/SK,分配只读权限即可。
Author
Owner

@C018 commented on GitHub (May 21, 2025):

已经发送了,小心操作

<!-- gh-comment-id:2896927312 --> @C018 commented on GitHub (May 21, 2025): 已经发送了,小心操作
Author
Owner

@fudiwei commented on GitHub (May 21, 2025):

@C018 感谢提供测试环境,问题已修复。记得重置 AK/SK,以免数据泄露。

<!-- gh-comment-id:2897797259 --> @fudiwei commented on GitHub (May 21, 2025): @C018 感谢提供测试环境,问题已修复。记得重置 AK/SK,以免数据泄露。
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/certimate#475
No description provided.