[GH-ISSUE #738] [Bug] 通过阿里云 CAS 创建 DCDN 部署任务失败 #495

Closed
opened 2026-03-03 01:03:47 +03:00 by kerem · 1 comment
Owner

Originally created by @Anbool on GitHub (May 28, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/738

软件版本 / Release Version

v0.3.14

缺陷描述 / Description

获得 DescribeDeploymentJob 接口响应体后,Status 字段返回了 editing 值,然后程序快速返回了 unexpected deployment job status
我在 internal/pkg/core/deployer/providers/aliyun-cas-deploy/aliyun_cas_deploy.go 看到了相关代码:
github.com/usual2970/certimate@a4f736e0f3/internal/pkg/core/deployer/providers/aliyun-cas-deploy/aliyun_cas_deploy.go (L144-L146)
后续我通过 OpenAPI 门户查看到该部署任务一直处于 editing 状态,这是为什么呢?

复现步骤 / Steps to reproduce

按照正常的操作流程

日志 / Logs

[2025-05-28 16:48:06]
sdk request 'cas.DescribeDeploymentJob'
request:
{"JobId":266209}
response:
{"headers":{"access-control-allow-origin":"*","access-control-expose-headers":"*","connection":"keep-alive","content-length":"568","content-type":"application/json;charset=utf-8","date":"Wed, 28 May 2025 08:48:06 GMT","etag":"5+WnWdwHpng4","keep-alive":"timeout=25","x-acs-request-id":"12430EB3F-A743-54E3-A1FD-C5480B4F1781","x-acs-trace-id":"bffbd14283e3da8"},"statusCode":200,"body":{"CasContacts":[{"Email":"*@**.com","Id":"1216070","Mobile":"***********","Name":"**"}],"CertDomain":"*.**.net","CertType":"upload","Config":"{\"akList\":[],\"certIds\":[16718950],\"free\":false,\"scheduleType\":\"now\",\"shareCertIds\":[]}","Del":0,"GmtCreate":"1748422086000","GmtModified":"1748422086000","Id":266209,"InstanceId":"cas-job-user-u8bnmc","JobType":"user","Name":"certimate-1748422086495","ProductName":"DCDN","RequestId":"12430EB3F-A743-54E3-A1FD-C5480B4F1781","Rollback":0,"ScheduleTime":"1748422087000","Status":"editing","UserId":1730971866221916}}

[2025-05-28 16:48:06]
failed to deploy

[2025-05-28 16:48:06]
unexpected deployment job status

其他 / Miscellaneous

No response

贡献 / Contribution

  • 我乐意为此贡献代码! / I am interested in contributing to this issue!
Originally created by @Anbool on GitHub (May 28, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/738 ### 软件版本 / Release Version v0.3.14 ### 缺陷描述 / Description 获得 `DescribeDeploymentJob` 接口响应体后,`Status` 字段返回了 `editing` 值,然后程序快速返回了 `unexpected deployment job status` 我在 `internal/pkg/core/deployer/providers/aliyun-cas-deploy/aliyun_cas_deploy.go` 看到了相关代码: https://github.com/usual2970/certimate/blob/a4f736e0f3fc044808a40981677741a40ad8c03c/internal/pkg/core/deployer/providers/aliyun-cas-deploy/aliyun_cas_deploy.go#L144-L146 后续我通过 OpenAPI 门户查看到该部署任务一直处于 `editing` 状态,这是为什么呢? ### 复现步骤 / Steps to reproduce 按照正常的操作流程 ### 日志 / Logs ```console [2025-05-28 16:48:06] sdk request 'cas.DescribeDeploymentJob' request: {"JobId":266209} response: {"headers":{"access-control-allow-origin":"*","access-control-expose-headers":"*","connection":"keep-alive","content-length":"568","content-type":"application/json;charset=utf-8","date":"Wed, 28 May 2025 08:48:06 GMT","etag":"5+WnWdwHpng4","keep-alive":"timeout=25","x-acs-request-id":"12430EB3F-A743-54E3-A1FD-C5480B4F1781","x-acs-trace-id":"bffbd14283e3da8"},"statusCode":200,"body":{"CasContacts":[{"Email":"*@**.com","Id":"1216070","Mobile":"***********","Name":"**"}],"CertDomain":"*.**.net","CertType":"upload","Config":"{\"akList\":[],\"certIds\":[16718950],\"free\":false,\"scheduleType\":\"now\",\"shareCertIds\":[]}","Del":0,"GmtCreate":"1748422086000","GmtModified":"1748422086000","Id":266209,"InstanceId":"cas-job-user-u8bnmc","JobType":"user","Name":"certimate-1748422086495","ProductName":"DCDN","RequestId":"12430EB3F-A743-54E3-A1FD-C5480B4F1781","Rollback":0,"ScheduleTime":"1748422087000","Status":"editing","UserId":1730971866221916}} [2025-05-28 16:48:06] failed to deploy [2025-05-28 16:48:06] unexpected deployment job status ``` ### 其他 / Miscellaneous _No response_ ### 贡献 / Contribution - [ ] 我乐意为此贡献代码! / I am interested in contributing to this issue!
kerem 2026-03-03 01:03:47 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Anbool commented on GitHub (May 28, 2025):

抱歉,自己上传的证书通过 CAS 部署到云产品是需要消耗部署次数的,而部署次数又是收费的。详见:https://help.aliyun.com/zh/ssl-certificate/user-guide/deploy-ssl-certificates-to-alibaba-cloud-services?spm=a2c4g.11186623.help-menu-28533.d_2_0_2_3.46be45ecf5lC2i
真狗!

<!-- gh-comment-id:2915621628 --> @Anbool commented on GitHub (May 28, 2025): 抱歉,自己上传的证书通过 CAS 部署到云产品是需要消耗部署次数的,而部署次数又是收费的。详见:https://help.aliyun.com/zh/ssl-certificate/user-guide/deploy-ssl-certificates-to-alibaba-cloud-services?spm=a2c4g.11186623.help-menu-28533.d_2_0_2_3.46be45ecf5lC2i 真狗!
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#495
No description provided.