SSL setup error OrderNotReady

Hi,

A few months ago, I installed Ghost and I was able to setup SSL for the root domain. Now I am trying to setup SSL for WWW so if someone tries to use it to access my site they would be redirected to the root domain that already works.

I did follow Ghost guide here: Ghost CLI - SSL and I also read a few threads on this forum and elsewhere, but I do not understand why I keep getting the following error:

[Fri 17 Sep 2021 01:54:54 AM UTC] Sign failed, finalize code is not 200.
[Fri 17 Sep 2021 01:54:54 AM UTC] {
  "type": "urn:ietf:params:acme:error:orderNotReady",
  "detail": "Order's status (\"invalid\") is not acceptable for finalization",
  "status": 403
}

I also made sure that it is not in private mode.

I tried the exact same procedure on a different Ghost instance/domain and it worked flawlessly.
Any ideas? :slight_smile:

This is the whole error message.

Command failed: /bin/sh -c sudo -S -p '#node-sudo-passwd#'  /etc/letsencrypt/acme.sh --issue --home /etc/letsencrypt --domain www.mydomain.tld --webroot /var/www/mydomain.tld/system/nginx-root --reloadcmd "nginx -s reload" --accountemail contact@mydomain.tld
[Fri 17 Sep 2021 06:41:42 PM UTC] Sign failed, finalize code is not 200.
[Fri 17 Sep 2021 06:41:42 PM UTC] {
  "type": "urn:ietf:params:acme:error:orderNotReady",
  "detail": "Order's status (\"invalid\") is not acceptable for finalization",
  "status": 403
}

[Fri 17 Sep 2021 06:41:42 PM UTC] Please add '--debug' or '--log' to check more details.
[Fri 17 Sep 2021 06:41:42 PM UTC] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh

[Fri 17 Sep 2021 06:41:23 PM UTC] Using CA: https://acme-v02.api.letsencrypt.org/directory
[Fri 17 Sep 2021 06:41:23 PM UTC] Single domain='www.mydomain.tld'
[Fri 17 Sep 2021 06:41:23 PM UTC] Getting domain auth token for each domain
[Fri 17 Sep 2021 06:41:25 PM UTC] Getting webroot for domain='www.mydomain.tld'
[Fri 17 Sep 2021 06:41:25 PM UTC] Verifying: www.mydomain.tld
[Fri 17 Sep 2021 06:41:28 PM UTC] Pending
[Fri 17 Sep 2021 06:41:30 PM UTC] Pending
[Fri 17 Sep 2021 06:41:32 PM UTC] Pending
[Fri 17 Sep 2021 06:41:35 PM UTC] Pending
[Fri 17 Sep 2021 06:41:37 PM UTC] Pending
[Fri 17 Sep 2021 06:41:39 PM UTC] Pending
[Fri 17 Sep 2021 06:41:42 PM UTC] Success
[Fri 17 Sep 2021 06:41:42 PM UTC] Verify finished, start to sign.
[Fri 17 Sep 2021 06:41:42 PM UTC] Lets finalize the order.
[Fri 17 Sep 2021 06:41:42 PM UTC] Le_OrderFinalize='https://acme-v02.api.letsencrypt.org/acme/finalize/122424646/25198066910'