Malformed output of `ghost ls` for multiple ghost installations

Issue - malformed output of ghost ls

Running command ghost ls with 5 ghost installation breaks randomly - meaning that new lines are not respected:

+ sudo systemctl is-active ghost_example-com
                                               + sudo systemctl is-active ghost_example-3-com
                                                                                                + sudo systemctl is-active ghost_example-2-com
                                                                                                                                              + sudo systemctl is-active ghost_softhints-com
                              + sudo systemctl is-active ghost_datascientyst-com
                                                                                ┌───────────────────┬────────────────┬─────────┬──────────────────────┬────────────────────────────┬──────┬─────────────────┐
                                               │ Name              │ Location       │ Version │ Status               │ URL                        │ Port │ Process Manager │
              ├───────────────────┼────────────────┼─────────┼──────────────────────┼────────────────────────────┼──────┼─────────────────┤
                                                                                                                                           │ fantasyan-com     │ /var/www/fanta │ 5.115.1 │ running (production) │ https://fantasyan.com/     │

Checking the command didn’t helped:

Workaround

To get correct output I need to use:

ghost ls | tail -n 20

The issue persists for me for more than 20 versions.

Setup

The latest ghost version.

And

  • How was Ghost installed and configured?
    • self hosting
  • What Node version, database, OS & browser are you using?
    • Ubuntu server
  • What errors or information do you see in the console?
    • no errors
  • What steps could someone else take to reproduce the issue you’re having?
    • use ghost ls on multiple ghost installations

P.S. Probably this is self explanatory for future reference if anyone face the same issue.

I don’t see this behavior. Which version of Ubuntu and node are you on?

Ubuntu version is:

Welcome to Ubuntu 22.04.5 LTS (GNU/Linux 5.15.0-135-generic x86_64)

Hosting is VPS from Hetzner.

Installation was done based on the ghost docs.
Using:

  • Node.js - v20.19.0

It’s broke after one of the updates and it was like this for year or more.

It’s not big deal - just for info if someone else have the same issue.