Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ghost 4.3.0 (docker, alphine) keeps crashing #12895

Closed
danielnachtrub opened this issue Apr 22, 2021 · 9 comments
Closed

Ghost 4.3.0 (docker, alphine) keeps crashing #12895

danielnachtrub opened this issue Apr 22, 2021 · 9 comments
Labels
support request [triage] A support request that belongs on the forum https://forum.ghost.org/c/help

Comments

@danielnachtrub
Copy link

Issue Summary

Upgrading ghost to 4.3.0 (running on a docker swarm) keeps crashing with error 139 (which might be a segmentation fault). Downgrading to 4.2.2 works fine again.

To Reproduce

  1. Upgrade to 4.3.0
  2. Visit blog frontend

Technical details:

  • Ghost Version: 4.3.0
  • Node Version: unknown
  • Browser/OS: Any
  • Database: mysql 8.0.24
@teddy-ferdinand
Copy link

Same issue here, running on K3S, with Sqlite database.

@noahsbwilliams
Copy link

Oh, got the same result here with both Sqlite and MySQL

@noahsbwilliams
Copy link

noahsbwilliams commented Apr 24, 2021

I'd love to post logs but sadly, there are none. The container exits and restarts without any output. Looking in docker logs ghost just shows a regular startup message.

@Gelmo
Copy link

Gelmo commented Apr 25, 2021

I am able to reproduce this issue consistently by uploading a page image. Reproducible on 4.3.2, not reproducible on 4.2.0

@braedon
Copy link

braedon commented Apr 26, 2021

Seems to be theme dependent for me. The ruby theme appears to work fine, for example, but switching to alto results in crashing.

On alto, some post images don't load on the home page, and Ghost crashes. Loading posts where the images do load on the home page works fine (once Ghost restarts). Loading posts where the images don't load on the home page results in another crash.

@ErisDS
Copy link
Member

ErisDS commented Apr 26, 2021

Seeing as this is a docker-only issue, can someone (or all of you) provide a dockerfile and proper reproduction steps please?

@fsgmhoward
Copy link

fsgmhoward commented Apr 26, 2021

Using: https://hub.docker.com/_/ghost
Theme: https://github.com/eddiesigner/liebling/releases/tag/v1.0.2

Docker-compose's stack.yml:

ghost:
    hostname: ghost
    image: ghost:alpine
    restart: unless-stopped
    volumes:
      - /XXXXXX/:/var/lib/ghost/content/
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - 127.0.0.1:65500:2368
      - ::1:65500:2368
    networks:
      - internal
      - outside
    environment:
      url: https://XXXXXX
      database__client: mysql
      database__connection__host: XXXXX
      database__connection__user: XXXXX
      database__connection__password: XXXXXX
      database__connection__database: XXXXX
      mail__transport: SMTP
      mail__options__host: smtp.sendgrid.net
      mail__options__port: 587
      mail__options__auth__user: apikey
      mail__options__auth__pass: XXXXXX

Logs:

[2021-04-26 07:36:19] INFO Ghost booted in 3.477s
[2021-04-26 07:36:28] INFO Ghost is running in production...
[2021-04-26 07:36:28] INFO Your site is now available on https://XXXXX/
[2021-04-26 07:36:28] INFO Ctrl+C to shut down
[2021-04-26 07:36:28] INFO Ghost server started in 0.808s
[2021-04-26 07:36:29] INFO Database is in a ready state.
[2021-04-26 07:36:29] INFO Ghost database ready in 1.255s
[2021-04-26 07:36:29] WARN Theme's file locales/zh-CN.json not found.
[2021-04-26 07:36:29] WARN Falling back to locales/en.json.
[2021-04-26 07:36:30] WARN Theme's file locales/zh-CN.json not found.
[2021-04-26 07:36:30] WARN Falling back to locales/en.json.
[2021-04-26 07:36:31] INFO Ghost booted in 3.373s
[2021-04-26 07:37:15] WARN Ghost is shutting down
[2021-04-26 07:37:15] WARN Ghost has shut down
[2021-04-26 07:37:15] WARN Your site is now offline
[2021-04-26 07:37:15] WARN Ghost was running for a minute
[2021-04-26 07:37:54] INFO Ghost is running in production...
[2021-04-26 07:37:54] INFO Your site is now available on https://XXXXX/
[2021-04-26 07:37:54] INFO Ctrl+C to shut down
[2021-04-26 07:37:54] INFO Ghost server started in 0.811s
[2021-04-26 07:37:54] INFO Database is in a ready state.
[2021-04-26 07:37:54] INFO Ghost database ready in 1.29s
[2021-04-26 07:37:55] WARN Theme's file locales/zh-CN.json not found.
[2021-04-26 07:37:55] WARN Falling back to locales/en.json.
[2021-04-26 07:37:55] WARN Theme's file locales/zh-CN.json not found.
[2021-04-26 07:37:55] WARN Falling back to locales/en.json.
[2021-04-26 07:37:56] INFO Ghost booted in 3.427s

The image is fresh and I pulled it just now.

root@xxxxx:/docker# docker image ls ghost
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
ghost               alpine              10f8283cfe2f        3 days ago          422MB

Boot loop confirms for the latest alpine build of ghost. I am trying whether ghost with other image as base has the same problem.

Edit: The debian-based image (latest tag) works fine.

@ErisDS
Copy link
Member

ErisDS commented Apr 26, 2021

In that case I'm going to close this as a support request (belongs on the forum to be solved by the community) as it is an issue with the community-maintained docker image using an OS that falls outside of our recommended stack.

@ErisDS ErisDS added the support request [triage] A support request that belongs on the forum https://forum.ghost.org/c/help label Apr 26, 2021
@label-actions
Copy link

label-actions bot commented Apr 26, 2021

Hey @danielnachtrub 👋 We ask that you please do not use GitHub for help or support 😄. We use GitHub solely for bug-tracking and on-going feature development.

Many questions can be answered by reviewing our documentation. If you can't find an answer then our forum is a great place to get community support, plus it helps create a central location for searching problems/solutions.

FYI: Many projects have their own support guidelines and GitHub will highlight them for you as it did here, or the project owners will use issue templates to point you in the right direction. Reading the guidelines or issue templates before opening issues can save you and project maintainers valuable time.

@label-actions label-actions bot closed this as completed Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support request [triage] A support request that belongs on the forum https://forum.ghost.org/c/help
Projects
None yet
Development

No branches or pull requests

7 participants