Trying to renew Let's Encrypt SSL certificate for custom domain using https://github.com/smart48/le-ssl-laravel-package . Our package and one we never had issues with before until we now moved to new server, but optimized Nginx settings for main app server block.
I run the command:
php artisan ssl-controller:update-certificate site.com
Certificate updating requested.
Then Laravel Horizon Job shows
Imagewize\SslManager\Jobs\UpdateCertificate
Collapse
ID
9fb8d0ea-fd8b-4aa5-900f-23da8f008b05
Queue
ssl-manager
Pushed
2023-04-13 16:16:25
Completed
-
Data
Collapse
{
"domain":
"site.com",
"renew":
"false",
"queue":
"ssl-manager"
}
After 5 minutes it fails. Job gets300 seconds and 3 tries it seems.
Failure shows
Illuminate\Queue\MaxAttemptsExceededException: Imagewize\SslManager\Jobs\UpdateCertificate has been attempted too many times or run too long. The job may have previously timed out. in /home/ploi/site.com/releases/5/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:746
Base conf did get added
cat ~/smart48.com/shared/storage/tls/sites.d/site.com.conf
server {
listen 80;
listen [::]:80;
server_name site.com;
location /.well-known/acme-challenge {
default_type "text/plain";
alias /home/ploi/app.com/shared/storage/tls/challenges/site.com;
}
# Reset connection
location / {
return 444;
}
}
But post challenge not replaced by real complete Nginx configuration . Did not have the issue before. Also the cat /var/log/nginx/access.log |grep site shows nothing and looking for "GET /.well-known/acme-challenge/ also shows nothing.. Like the command did not trigger a ACME challenge renewal.
Anyone any ideas how to solve this?