Scheduling posts doesn't work

Issue Summary

  • Scheduling posts doesn’t work
  • Scheduled a post for 18:30 CET but it did not published

Setup information

Ghost Version
4.34.1

Node.js Version
14.18.3

Operating system
Ubuntu 20.04

Database type
MariaDB

Relevant log / error output

{"name":"Log","hostname":"website","pid":----,"level":50,"err":{"id":"---------","domain":"https://domain.com/","code":"UNABLE_TO_VERIFY_LEAF_SIGNATURE","name":"InternalServerError","statusCode":500,"level":"critical","message":"The server has encountered an error.","stack":"RequestError: unable to verify the first certificate\n    at /var/www/domain.com/versions/4.34.1/core/server/adapters/scheduling/SchedulingDefault.js:319:23\n    at ClientRequest.<anonymous> (/var/www/domain.com/versions/4.34.1/node_modules/got/source/request-as-event-emitter.js:178:14)\n    at Object.onceWrapper (events.js:520:26)\n    at ClientRequest.emit (events.js:412:35)\n    at ClientRequest.origin.emit (/var/www/domain.com/versions/4.34.1/node_modules/@szmarczak/http-timer/source/index.js:37:11)\n    at TLSSocket.socketErrorListener (_http_client.js:475:9)\n    at TLSSocket.emit (events.js:400:28)\n    at emitErrorNT (internal/streams/destroy.js:106:8)\n    at emitErrorCloseNT (internal/streams/destroy.js:74:3)\n    at processTicksAndRejections (internal/process/task_queues.js:82:21)"},"msg":"The server has encountered an error.","time":"2022-03-04T17:29:59.964Z","v":0}

Does it have something to do with node.js not having Cloudflare’s root certificate since my website uses Cloudflare’s SSL certificate?

If so, should I switch off the validation process with
[process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";] (Is that safe to do?)

or should I add the root certificate to node.js?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.