acmesh-official / acme.sh

A pure Unix shell script implementing ACME client protocol
https://acme.sh
GNU General Public License v3.0
39.57k stars 4.98k forks source link

NGINX certficate install failed #4538

Open nsosnsos opened 1 year ago

nsosnsos commented 1 year ago

acme.sh --issue -d ${SITE_NAME} --nginx --debug

[Sat Mar 4 23:36:19 HKT 2023] Check the nginx conf before setting up. [Sat Mar 4 23:36:19 HKT 2023] nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied) 2023/03/04 23:36:19 [warn] 14730#14730: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1 nginx: the configuration file /etc/nginx/nginx.conf syntax is ok 2023/03/04 23:36:19 [emerg] 14730#14730: open() "/run/nginx.pid" failed (13: Permission denied) nginx: configuration file /etc/nginx/nginx.conf test failed


acme.sh  --issue .....   --debug 2
github-actions[bot] commented 1 year ago

Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade If it's still not working, please provide the log with --debug 2, otherwise, nobody can help you.

bugsfixing commented 1 year ago

Please send the nginx.conf.