MySQL install was not found or is stopped
See original GitHub issueSummary
ghost doctor command is giving below warning/error
✔ Checking system Node.js version ✔ Checking logged in user ✔ Ensuring user is not logged in as ghost user ✔ Checking if logged in user is directory owner ✔ Checking current folder permissions ✔ Checking system compatibility Local MySQL install was not found or is stopped. You can ignore this if you are using a remote MySQL host. Alternatively you could: a) install/start MySQL locally b) run
ghost install --db=sqlite3
to use sqlite c) runghost install local
to get a development install using sqlite3. ? Continue anyway? Yes MySQL check skipped ! Checking for a MySQL installation [skipped] sudo systemctl is-active ghost_www-sitename-com ? Sudo Password [hidden] Instance is currently running ! Validating config [skipped] ✔ Checking folder permissions ✔ Checking file permissions ✔ Checking content folder ownership ✔ Checking memory availability ✔ Checking binary dependencies ✔ Checking free space
Steps to Reproduce
- Upgrade Ghost, Ghost-CLI, Node to recommended v14 and NPM to latest version
- Use ghost doctor
Ghost is running in production mode and is running fine with ghost start. However ghost doctor is still throwing above MySQL install was not found or is stopped warning/error.
Technical details
This is automatically output by Ghost-CLI if an error occurs, please copy & paste:
- OS: Ubuntu, v20.04.2 LTS
- Node Version: v14.16.1
- Ghost-CLI Version: 1.16.3
- Environment: production
- Command: ghost doctor
Bug submission checklist
Please fill out this checklist to acknowledge that you followed the requirements to submit a bug report.
- Tried to find help in the forum & docs
- Checked for existing issues
- Attached log file
- Provided technical details incl. operating system
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top GitHub Comments
I don’t know if this will help anyone, but I went and modified the current ghost-cli/lib/commands/doctor/checks/mysql.js file on my own system (Ghost v4.25.1, fresh install, Ubuntu 20.04.3, Node v16.13.1, Ghost-CLI 1.18.1) to add a mariadb check after the mysql check. It seemed to me to be the quickest and cleanest change to make a mariadb check work on Ubuntu 20.04. I am not a programmer by any stretch, but it -does- work for me for now, so here you go:
this goes immediately after the “async function mysqlIsRunning()” code block:
and this goes directly into the “async function mysqlCheck(ctx, task)” block. after the “if (await mysqlIsRunning())” block:
This way when the mysql check fails, it checks for mariadb. Only if that one ALSO fails will the “Local MySQL install was not found” show. YMMV
Closing this as a duplicate of https://github.com/TryGhost/Ghost-CLI/issues/460