Broke ghost installation

Hello,

I just updated to ubuntu server 25.04, and when I start ghost I get this :

  • sudo systemctl start ghost_www-carrotstudio-fr
  • sudo systemctl stop ghost_www-carrotstudio-fr
    :multiply: Starting Ghost: www-carrotstudio-fr
    A GhostError occurred.

Message: Ghost was able to start, but errored during boot with: Plugin ‘mysql_native_password’ is not loaded
Help: Unknown database error
Suggestion: journalctl -u ghost_www-carrotstudio-fr -n 50

Debug Information:
OS: Ubuntu, v25.04
Node Version: v20.18.1
Ghost Version: 5.121.0
Ghost-CLI Version: 1.27.0
Environment: production
Command: ‘ghost start’

Additional log info available in: /home/guillaume/.ghost/logs/ghost-cli-debug-2025-06-09T20_31_38_590Z.log

Try running ghost doctor to check your system for known issues.

You can always refer to Ghost-CLI - A fully loaded tool for installation and configuration for troubleshooting.

here is the logs

guillaume@ubuntu:/var/www/carrotstudio$ journalctl -u ghost_www-carrotstudio-fr -n 50
Jun 09 22:31:37 ubuntu node[7154]: Error ID:
Jun 09 22:31:37 ubuntu node[7154]: 500
Jun 09 22:31:37 ubuntu node[7154]: Error Code:
Jun 09 22:31:37 ubuntu node[7154]: ER_PLUGIN_IS_NOT_LOADED
Jun 09 22:31:37 ubuntu node[7154]: ----------------------------------------
Jun 09 22:31:37 ubuntu node[7154]: Error: Plugin ‘mysql_native_password’ is no>
Jun 09 22:31:37 ubuntu node[7154]: at /var/www/carrotstudio/versions/5.121>
Jun 09 22:31:37 ubuntu node[7154]: at Packet.asError (/var/www/carrotstudi>
Jun 09 22:31:37 ubuntu node[7154]: at ClientHandshake.execute (/var/www/ca>
Jun 09 22:31:37 ubuntu node[7154]: at Connection.handlePacket (/var/www/ca>
Jun 09 22:31:37 ubuntu node[7154]: at PacketParser.onPacket (/var/www/carr>
Jun 09 22:31:37 ubuntu node[7154]: at PacketParser.executeStart (/var/www/>
Jun 09 22:31:37 ubuntu node[7154]: at Socket. (/var/www/carrots>
Jun 09 22:31:37 ubuntu node[7154]: at Socket.emit (node:events:518:28)
Jun 09 22:31:37 ubuntu node[7154]: at addChunk (node:internal/streams/read>
Jun 09 22:31:37 ubuntu node[7154]: at readableAddChunkPushByteMode (node:i>
Jun 09 22:31:37 ubuntu node[7154]: at Readable.push (node:internal/streams>
Jun 09 22:31:37 ubuntu node[7154]:
Jun 09 22:31:37 ubuntu node[7154]: [2025-06-09 22:31:37] WARN Ghost is shuttin>
Jun 09 22:31:37 ubuntu node[7154]: [2025-06-09 22:31:37] WARN Ghost has shut d>
Jun 09 22:31:37 ubuntu node[7154]: [2025-06-09 22:31:37] WARN Your site is now>
Jun 09 22:31:37 ubuntu node[7154]: [2025-06-09 22:31:37] WARN Ghost was runnin>
Jun 09 22:31:37 ubuntu node[7154]: [2025-06-09 22:31:37] INFO Bootstrap client>
lines 1-23…skipping…
Jun 09 22:31:37 ubuntu node[7154]: Error ID:
Jun 09 22:31:37 ubuntu node[7154]: 500
Jun 09 22:31:37 ubuntu node[7154]: Error Code:
Jun 09 22:31:37 ubuntu node[7154]: ER_PLUGIN_IS_NOT_LOADED
Jun 09 22:31:37 ubuntu node[7154]: ----------------------------------------
Jun 09 22:31:37 ubuntu node[7154]: Error: Plugin ‘mysql_native_password’ is not loaded
Jun 09 22:31:37 ubuntu node[7154]: at /var/www/carrotstudio/versions/5.121.0/node_modules/knex-migrator/lib/database.js:57:19
Jun 09 22:31:37 ubuntu node[7154]: at Packet.asError (/var/www/carrotstudio/versions/5.121.0/node_modules/mysql2/lib/packets/packet.js:740:17)
Jun 09 22:31:37 ubuntu node[7154]: at ClientHandshake.execute (/var/www/carrotstudio/versions/5.121.0/node_modules/mysql2/lib/commands/command.js:29:26)
Jun 09 22:31:37 ubuntu node[7154]: at Connection.handlePacket (/var/www/carrotstudio/versions/5.121.0/node_modules/mysql2/lib/base/connection.js:475:34)
Jun 09 22:31:37 ubuntu node[7154]: at PacketParser.onPacket (/var/www/carrotstudio/versions/5.121.0/node_modules/mysql2/lib/base/connection.js:93:12)
Jun 09 22:31:37 ubuntu node[7154]: at PacketParser.executeStart (/var/www/carrotstudio/versions/5.121.0/node_modules/mysql2/lib/packet_parser.js:75:16)
Jun 09 22:31:37 ubuntu node[7154]: at Socket. (/var/www/carrotstudio/versions/5.121.0/node_modules/mysql2/lib/base/connection.js:100:25)
Jun 09 22:31:37 ubuntu node[7154]: at Socket.emit (node:events:518:28)
Jun 09 22:31:37 ubuntu node[7154]: at addChunk (node:internal/streams/readable:561:12)
Jun 09 22:31:37 ubuntu node[7154]: at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
Jun 09 22:31:37 ubuntu node[7154]: at Readable.push (node:internal/streams/readable:392:5)
Jun 09 22:31:37 ubuntu node[7154]:
Jun 09 22:31:37 ubuntu node[7154]: [2025-06-09 22:31:37] WARN Ghost is shutting down
Jun 09 22:31:37 ubuntu node[7154]: [2025-06-09 22:31:37] WARN Ghost has shut down
Jun 09 22:31:37 ubuntu node[7154]: [2025-06-09 22:31:37] WARN Your site is now offline
Jun 09 22:31:37 ubuntu node[7154]: [2025-06-09 22:31:37] WARN Ghost was running for a few seconds
Jun 09 22:31:37 ubuntu node[7154]: [2025-06-09 22:31:37] INFO Bootstrap client was closed.
Jun 09 22:31:37 ubuntu systemd[1]: Stopping ghost_www-carrotstudio-fr.service - Ghost systemd service for blog: www-carrotstudio-fr…
Jun 09 22:31:38 ubuntu node[7122]: /usr/local/lib/node_modules/ghost-cli/lib/process-manager.js:46
Jun 09 22:31:38 ubuntu node[7122]: throw error;
Jun 09 22:31:38 ubuntu node[7122]: ^
Jun 09 22:31:38 ubuntu node[7122]: {
Jun 09 22:31:38 ubuntu node[7122]: message: {
Jun 09 22:31:38 ubuntu node[7122]: statusCode: 500,
Jun 09 22:31:38 ubuntu node[7122]: errorType: ‘DatabaseError’,
Jun 09 22:31:38 ubuntu node[7122]: level: ‘critical’,
Jun 09 22:31:38 ubuntu node[7122]: id: 500,
Jun 09 22:31:38 ubuntu node[7122]: help: ‘Unknown database error’,
Jun 09 22:31:38 ubuntu node[7122]: code: ‘ER_PLUGIN_IS_NOT_LOADED’,
Jun 09 22:31:38 ubuntu node[7122]: property: null,
Jun 09 22:31:38 ubuntu node[7122]: redirect: null,
Jun 09 22:31:38 ubuntu node[7122]: hideStack: false,
Jun 09 22:31:38 ubuntu node[7122]: message: “Ghost was able to start, but errored during boot with: Plugin ‘mysql_native_password’ is not loaded”,
Jun 09 22:31:38 ubuntu node[7122]: name: ‘DatabaseError’,
Jun 09 22:31:38 ubuntu node[7122]: errno: 1524,
Jun 09 22:31:38 ubuntu node[7122]: sqlState: ‘HY000’,
Jun 09 22:31:38 ubuntu node[7122]: sqlMessage: “Plugin ‘mysql_native_password’ is not loaded”
Jun 09 22:31:38 ubuntu node[7122]: }
Jun 09 22:31:38 ubuntu node[7122]: }
Jun 09 22:31:38 ubuntu node[7122]: Node.js v20.18.1
Jun 09 22:31:38 ubuntu systemd[1]: ghost_www-carrotstudio-fr.service: Main process exited, code=exited, status=1/FAILURE
Jun 09 22:31:38 ubuntu systemd[1]: ghost_www-carrotstudio-fr.service: Failed with result ‘exit-code’.
Jun 09 22:31:38 ubuntu systemd[1]: Stopped ghost_www-carrotstudio-fr.service - Ghost systemd service for blog: www-carrotstudio-fr.
Jun 09 22:31:38 ubuntu systemd[1]: ghost_www-carrotstudio-fr.service: Consumed 9.202s CPU time.

Ubuntu 25 is not on the list of supported distros. If you have a snapshot from before your upgrade, rolling back might make a lot of sense.