Nginx certificate renewal/deployment FAILED after 2.2.4 update on HA setup

yaboc

Member
Nov 23, 2017
112
9
18
35
Hi,

i have HA pair that was updated from 2.2.2 to 2.2.4 and also manually matched the APP_KEY in .env prior to the upgrade. Everything went find but i keep getting cron tab failed job alert regarding SSL cert renewal.

Code:
The Nginx HTTPS certificate renewal, deployment, or verification FAILED.

Hostname: pbx.domain.com
Server: pbxa
Peer: pbxb.domain.com

Error: Dehydrated renewal failed: /usr/local/sbin/fspbx-deploy-nginx-certificate: line 65: nginx: command not found
Nginx rejected the new certificate; the previous certificate was restored.
ERROR: unchanged_cert hook returned with non-zero exit code

A certificate issued successfully may still not be served by Nginx.
The next scheduled run will retry renewal, deployment, and HTTPS verification.
Manual retry: cd /var/www/fspbx && sudo php artisan app:renew-nginx-certificate