andyzhshg / syno-acme

通过acme协议更新群晖HTTPS泛域名证书的自动脚本
MIT License
739 stars 259 forks source link

7.01 第一次申请和替换证书没问题,update中断 #76

Open undosh77 opened 2 years ago

undosh77 commented 2 years ago

群晖7.01-42218 syno-acme-0.3.0_dsm7_beta

第一次申请证书+替换原证书没问题。但是计划任务update中断。 命令 sh /volume1/docker/syno-acme/cert-up.sh update >> /volume1/docker/syno-acme/log.txt 2>&1

任务计划程序已完成计划任务。 任务:acme 开始时间:Tue, 09 Nov 2021 20:02:55 GMT 结束时间:Tue, 09 Nov 2021 20:02:59 GMT 当前状态:1 (已中断) 标准输出/错误:

acme.sh-2.8.6/notify/slack.sh acme.sh-2.8.6/notify/smtp.sh acme.sh-2.8.6/notify/xmpp.sh begin installing acme.sh tool... [Tue Nov 9 20:02:59 CST 2021] It is recommended to install socat first. [Tue Nov 9 20:02:59 CST 2021] We use socat for standalone server if you use standalone mode. [Tue Nov 9 20:02:59 CST 2021] If you don't use standalone mode, just ignore this warning. [Tue Nov 9 20:02:59 CST 2021] Installing to /volume1/docker/syno-acme/acme.sh [Tue Nov 9 20:02:59 CST 2021] Installed to /volume1/docker/syno-acme/acme.sh/acme.sh [Tue Nov 9 20:02:59 CST 2021] Installing alias to '/root/.profile' [Tue Nov 9 20:02:59 CST 2021] OK, Close and reopen your terminal to start using acme.sh [Tue Nov 9 20:02:59 CST 2021] Good, bash is found, so change the shebang to use bash as preferred. [Tue Nov 9 20:02:59 CST 2021] OK done installAcme begin generateCrt /volume1/docker/syno-acme/cert-up.sh: line 50: source: config: file not found

查看了下目录 /volume1/docker/syno-acme/
cetup-up.sh 和 config 都在同一个目录下存在的,不止哪里出错而不能update?

iihong commented 2 years ago

这是安装acme.sh-2.8.6 成功,获取Let's Encrypt证书会失败,主要原因是请求服务器不成功,可能是背墙或被屏蔽,现在基本都换ZeroSSL证书服务商,解决方案参考链接: https://github.com/andyzhshg/syno-acme/issues/77#issuecomment-984498185