Ghost blog post says undefined after a docker instance restart

#1

If you’re looking for some help, it’s important to provide as much context as possible so that people are able to assist you. Try to always mention:

  • What’s your URL? This is the easiest way for others to debug your issue
  • What version of Ghost are you using?

2.19.1

  • What configuration?

I am running ghost via Docker, using MySQL and S3 storage driver.

See ansible script:

- name: run docker image
docker_container:
name: “{{CONTAINER_NAME}}”
image: “{{REPO_IMAGE_TAG}}”
state: started
restart: yes
ports:
- “{{LOCAL_PORT}}:2368”
detach: yes
restart_policy: on-failure
restart_retries: 5
env:
GHOST_DO_KEY: “{{GHOST_DO_KEY}}”
GHOST_DO_SECRET: “{{GHOST_DO_SECRET}}”
GHOST_DO_REGION: “{{GHOST_DO_REGION}}”
GHOST_DO_BUCKET: “{{GHOST_DO_BUCKET}}”
GHOST_DO_SPACE_URL: “{{GHOST_DO_SPACE_URL}}”
GHOST_DO_SUBFOLDER: “{{GHOST_DO_SUBFOLDER}}”
GHOST_DO_ENDPOINT: “{{GHOST_DO_ENDPOINT}}”
url: “{{BLOG_URL}}”
storage__active: “digitalocean”
database__client: “mysql”
database__connection__host: “{{MYSQL_HOST}}”
database__connection__user: “{{MYSQL_USER}}”
database__connection__password: “{{MYSQL_PASSWD}}”
database__connection__database: “{{MYSQL_DB}}”

  • What browser?

Chrome

  • What errors or information do you see in the console?

N/A

  • What steps could someone else take to reproduce the issue you’re having?
#2

Anyone? Seems like all the post content are there in the Ghost admin.

However, when clicking Preview or View Post, it either says 404 (for posts that are not published), or for posts that are published, it says Undefined.

closed #3

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