[GH-ISSUE #400] [Bug] 证书实际部署成功,但状态显示部署失败,日志输出failed to run command, stdout: , stderr: : failed to execute ssh script: Process exited with status 1 #253

Closed
opened 2026-03-03 01:01:57 +03:00 by kerem · 4 comments
Owner

Originally created by @meixianggao on GitHub (Jan 2, 2025).
Original GitHub issue: https://github.com/certimate-go/certimate/issues/400

证书实际部署成功,但状态显示部署失败,日志输出failed to run command, stdout: , stderr: : failed to execute ssh script: Process exited with status 1
安装版本:Certimate v0.2.23-beta
screenshot-20250102-213603
screenshot-20250102-213501

Originally created by @meixianggao on GitHub (Jan 2, 2025). Original GitHub issue: https://github.com/certimate-go/certimate/issues/400 证书实际部署成功,但状态显示部署失败,日志输出failed to run command, stdout: , stderr: : failed to execute ssh script: Process exited with status 1 安装版本:Certimate v0.2.23-beta ![screenshot-20250102-213603](https://github.com/user-attachments/assets/62dd9779-f303-4442-8295-d813a7a72c1a) ![screenshot-20250102-213501](https://github.com/user-attachments/assets/93233bad-37cc-4c84-ba9e-d6a537263057)
kerem 2026-03-03 01:01:57 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@usual2970 commented on GitHub (Jan 3, 2025):

ssh 部署分为2步:

  1. 上传证书
  2. 执行自定义命令

你这个只是上传成功了,执行自定义命令失败了

<!-- gh-comment-id:2568558184 --> @usual2970 commented on GitHub (Jan 3, 2025): ssh 部署分为2步: 1. 上传证书 2. 执行自定义命令 你这个只是上传成功了,执行自定义命令失败了
Author
Owner

@meixianggao commented on GitHub (Jan 3, 2025):

您好,我的自定义命令并没有填写错误,是正确的命令,命令为:sudo docker exec -it nginx nginx -s reload 如下2张图

@.***

发件人: Yoan.liu
发送时间: 2025-01-03 08:33
收件人: usual2970/certimate
抄送: meixianggao; Author
主题: Re: [usual2970/certimate] [Bug] 证书实际部署成功,但状态显示部署失败,日志输出failed to run command, stdout: , stderr: : failed to execute ssh script: Process exited with status 1 (Issue #400)
ssh 部署分为2步:
上传证书
执行自定义命令
你这个只是上传成功了,执行自定义命令失败了

Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

<!-- gh-comment-id:2569188000 --> @meixianggao commented on GitHub (Jan 3, 2025): 您好,我的自定义命令并没有填写错误,是正确的命令,命令为:sudo docker exec -it nginx nginx -s reload 如下2张图 ***@***.*** 发件人: Yoan.liu 发送时间: 2025-01-03 08:33 收件人: usual2970/certimate 抄送: meixianggao; Author 主题: Re: [usual2970/certimate] [Bug] 证书实际部署成功,但状态显示部署失败,日志输出failed to run command, stdout: , stderr: : failed to execute ssh script: Process exited with status 1 (Issue #400) ssh 部署分为2步: 上传证书 执行自定义命令 你这个只是上传成功了,执行自定义命令失败了 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: ***@***.***>
Author
Owner

@meixianggao commented on GitHub (Jan 6, 2025):

您好,我确定我的自定义命令没有问题,如下图所示:
screenshot-20250106-192553
微信图片_20250106192233

<!-- gh-comment-id:2572915740 --> @meixianggao commented on GitHub (Jan 6, 2025): 您好,我确定我的自定义命令没有问题,如下图所示: ![screenshot-20250106-192553](https://github.com/user-attachments/assets/928e71c1-896f-42e1-8601-ca17b1d1e4e4) ![微信图片_20250106192233](https://github.com/user-attachments/assets/cb7e5e48-bdf4-4380-84ee-45de911c2383)
Author
Owner

@usual2970 commented on GitHub (Jan 6, 2025):

docker exec -it 是交互式的,建议去掉-it 试试,应该是golang 的cmd无法获取交互操作的返回结果

<!-- gh-comment-id:2572960888 --> @usual2970 commented on GitHub (Jan 6, 2025): docker exec -it 是交互式的,建议去掉-it 试试,应该是golang 的cmd无法获取交互操作的返回结果
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#253
No description provided.