acme.sh icon indicating copy to clipboard operation
acme.sh copied to clipboard

NGINX certficate install failed

Open nsosnsos opened this issue 1 year ago • 2 comments

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

nsosnsos avatar Mar 04 '23 15:03 nsosnsos

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.

github-actions[bot] avatar Mar 04 '23 15:03 github-actions[bot]

Please send the nginx.conf.

Aniket999969 avatar Apr 07 '23 17:04 Aniket999969