My site https://mrhack.io went down.
I host via DO via smallest droplet 1 GB Memory / 25 GB Disk.
When I try to ghost restart I get this error:
Message: Could not communicate with Ghost
Suggestion: journalctl -u ghost_mrhack-io -n 50
Debug Information:
OS: Ubuntu, v20.04.2 LTS
Node Version: v14.16.1
Ghost Version: 4.7.0
Ghost-CLI Version: 1.17.3
Environment: production
Command: 'ghost start'
A promise was rejected but did not have a .catch() handler:
Error: ENOENT: no such file or directory, mkdir '/home/ghost-mgr/.ghost/logs'
at Object.mkdirSync (fs.js:987:3)
at Object.module.exports.makeDirSync (/usr/lib/node_modules/ghost-cli/node_modules/fs-extra/lib/mkdirs/make-dir.js:101:15)
at System.writeErrorLog (/usr/lib/node_modules/ghost-cli/lib/system.js:361:12)
at UI.error (/usr/lib/node_modules/ghost-cli/lib/ui/index.js:404:44)
at Function._run (/usr/lib/node_modules/ghost-cli/lib/command.js:195:16)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
/usr/lib/node_modules/ghost-cli/lib/bootstrap.js:27
throw reason;
^
Error: ENOENT: no such file or directory, mkdir '/home/ghost-mgr/.ghost/logs'
at Object.mkdirSync (fs.js:987:3)
at Object.module.exports.makeDirSync (/usr/lib/node_modules/ghost-cli/node_modules/fs-extra/lib/mkdirs/make-dir.js:101:15)
at System.writeErrorLog (/usr/lib/node_modules/ghost-cli/lib/system.js:361:12)
at UI.error (/usr/lib/node_modules/ghost-cli/lib/ui/index.js:404:44)
at Function._run (/usr/lib/node_modules/ghost-cli/lib/command.js:195:16)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
errno: -2,
syscall: 'mkdir',
code: 'ENOENT',
path: '/home/ghost-mgr/.ghost/logs'
}
I found this thread with Node but when I try to update Node, I get another error
-y nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
linux-headers-5.4.0-90 linux-headers-5.4.0-90-generic
linux-image-5.4.0-90-generic linux-modules-5.4.0-90-generic
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
nodejs
1 upgraded, 0 newly installed, 0 to remove and 91 not upgraded.
1 not fully installed or removed.
Need to get 25.1 MB of archives.
After this operation, 2,638 kB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.
UPDATE: after running ghost doctor
✖ Checking free space
✔ Checking systemd unit file
✔ Checking systemd node version - found v14.16.1
One or more errors occurred.
1) SystemError
Message: You are recommended to have at least 1024 MB of free storage space available for smooth operation. It looks like you have ~16 MB available
Debug Information:
OS: Ubuntu, v20.04.2 LTS
Node Version: v14.16.1
Ghost Version: 4.7.0
Ghost-CLI Version: 1.17.3
Environment: production
Command: 'ghost doctor'
Try running ghost doctor to check your system for known issues.