当前位置:   article > 正文

Attempting to renew cert (***.com) from /etc/letsencrypt/renewal/***.com.conf produced an unexpected_attempting to renew cert (hubsolv.xyz) from /etc/l

attempting to renew cert (hubsolv.xyz) from /etc/letsencrypt/renewal/hubsolv

第一种情况

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"
    1. ps -aux | grep "nginx: master process"
    2. pid
    3. 11122
    4. 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

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号