Attempting to renew cert (***.com) from /etc/letsencrypt/renewal/***.com.conf produced an unexpected

第一种情况

Attempting to parse the version 0.27.1 renewal configuration file found at /etc/letsencrypt/renewal/***.com.conf with version 0.27.0 of Certbot. This might not work.
Could not choose appropriate plugin: The nginx plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError()
Attempting to renew cert (***.com) from /etc/letsencrypt/renewal/***.com.conf produced an unexpected error: The nginx plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError(). Skipping.

其中一种原因:

 nginx -s reload
nginx: [error] invalid PID number "" in "/var/run/nginx.pid"

  • 直接将 nginx 主进程的 PID 写入 "/run/nginx.pid"
  • 
    ps -aux | grep "nginx: master process"
    pid
    11122
    sudo echo 11122> /run/nginx.pid

第二种情况

Could not choose appropriate plugin: The nginx plugin is not working; there may be problems with your existing configuration.
 5114 The error was: NoInstallationError("Could not find a usable 'nginx' binary. Ensure nginx exists, the binary is executable, and your PATH is set correctly.",)
 5115 Failed to renew certificate test.store.zhenligroup.com with error: The nginx plugin is not working; there may be problems with your existing configuration.
 5116 The error was: NoInstallationError("Could not find a usable 'nginx' binary. Ensure nginx exists, the binary is executable, and your PATH is set correctly.",)

指定 nginx path:--nginx-ctl /usr/sbin/nginx 

/usr/bin/certbot --nginx-ctl /usr/sbin/nginx renew

  • 15
    点赞
  • 22
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值