Hi,
I am hosting Ghost in a Docker container on my own host and scheduled posts do not seem to work.
Error
ghost-1-ghost-1 | [2025-01-03 21:26:57] ERROR The server has encountered an error.
ghost-1-ghost-1 |
ghost-1-ghost-1 | The server has encountered an error.
ghost-1-ghost-1 |
ghost-1-ghost-1 | Error ID:
ghost-1-ghost-1 | 7614c300-ca19-11ef-a33a-77a5ae058a1e
ghost-1-ghost-1 |
ghost-1-ghost-1 | Error Code:
ghost-1-ghost-1 | ETIMEDOUT
ghost-1-ghost-1 |
ghost-1-ghost-1 | ----------------------------------------
ghost-1-ghost-1 |
ghost-1-ghost-1 | RequestError: Timeout awaiting 'request' for 5000ms
ghost-1-ghost-1 | at /var/lib/ghost/versions/5.105.0/core/server/adapters/scheduling/scheduling-default.js:319:23
ghost-1-ghost-1 | at ClientRequest.<anonymous> (file:///var/lib/ghost/versions/5.105.0/node_modules/@tryghost/request/node_modules/got/dist/source/core/index.js:792:61)
ghost-1-ghost-1 | at Object.onceWrapper (node:events:632:26)
ghost-1-ghost-1 | at ClientRequest.emit (node:events:529:35)
ghost-1-ghost-1 | at TLSSocket.socketErrorListener (node:_http_client:501:9)
ghost-1-ghost-1 | at TLSSocket.emit (node:events:517:28)
ghost-1-ghost-1 | at emitErrorNT (node:internal/streams/destroy:151:8)
ghost-1-ghost-1 | at emitErrorCloseNT (node:internal/streams/destroy:116:3)
ghost-1-ghost-1 | at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
ghost-1-ghost-1 | at Timeout.timeoutHandler [as _onTimeout] (file:///var/lib/ghost/versions/5.105.0/node_modules/@tryghost/request/node_modules/got/dist/source/core/timed-out.js:42:25)
ghost-1-ghost-1 | at listOnTimeout (node:internal/timers:571:11)
ghost-1-ghost-1 | at process.processTimers (node:internal/timers:512:7)
- I have checked that the container is able to ping the hostname (phlog.thesatelliteoflove.com)
- I have checked that i can use curl from inside the container and that it can successfully return the site using the configured URL (https://phlog.thesatelliteoflove.com)
- A curl from inside the container to curl -X PUT https://phlog.thesatelliteoflove.com/ghost/api/v0.1/schedules/posts/6778405b3755e70001cfd2bf returns the following error:
{"errors":[{"message":"Resource not found","context":null,"type":"NotFoundError","details":null,"property":null,"help":null,"code":null,"id":"88610750-ca1c-11ef-82ad-6531cade3680","ghostErrorCode":null}]}
Docker Compose:
services:
ghost:
image: ghost:5-alpine
restart: unless-stopped
environment:
- database__client=sqlite3
- database__connection__filename=/var/lib/ghost/content/data/ghost.db
- database__useNullAsDefault=true
- url=https://phlog.thesatelliteoflove.com
volumes:
- ghost:/var/lib/ghost/content
extra_hosts:
- 'phlog.thesatelliteoflove.com:172.20.0.5'
volumes:
ghost:
driver: local
networks:
default:
external: true
name: lava
Caddyfile
phlog.thesatelliteoflove.com {
reverse_proxy ghost-1-ghost-1:2368
}