If you’re looking for help, please provide information about your environment. If you delete this template and don’t provide any information, your topic will be automatically closed.
If you aren’t running the latest version of Ghost, the first thing we’ll ask you to do is update to the latest version of Ghost.
- What’s your URL? This is the easiest way for others to help you
blog.talescript.com - What version of Ghost are you using? If it’s not the latest, please update Ghost first before opening your topic
ghost version
Ghost-CLI version: 1.25.3
Ghost version: 5.75.1 (at /var/www/talescript)
And
-
How was Ghost installed and configured?
It was installed using the ghost install guide for ubuntu
How to install & setup Ghost on Ubuntu 20.04 or 22.04 -
What Node version, database, OS & browser are you using?
node --version
v18.17.1
cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
mysql --version
mysql Ver 8.0.35-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
Firefox
- What errors or information do you see in the console?
cat ghost_error.log
Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org
- Inspecting operating system
- Checking for deprecations
[13:25:03] Checking for Ghost-CLI updates [started]
[13:25:03] Checking for Ghost-CLI updates [completed]
[13:25:03] Ensuring correct ~/.config folder ownership [started]
[13:25:03] Ensuring correct ~/.config folder ownership [completed]
+ sudo systemctl is-active ghost_blog-talescript-com
/usr/lib/node_modules/ghost-cli/lib/ui/index.js:148
throw new errors.SystemError('Prompts have been disabled, all options must be provided via command line flags');
^
SystemError: Prompts have been disabled, all options must be provided via command line flags
at UI.prompt (/usr/lib/node_modules/ghost-cli/lib/ui/index.js:148:19)
at Socket.<anonymous> (/usr/lib/node_modules/ghost-cli/lib/ui/index.js:248:22)
at Socket.emit (node:events:526:35)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) {
options: {
message: 'Prompts have been disabled, all options must be provided via command line flags'
},
logMessageOnly: undefined,
help: 'You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.',
err: {}
}
Node.js v18.17.1
- What steps could someone else take to reproduce the issue you’re having?
I have a bash script to update ghost.
#!/usr/bin/bash
DIR=/var/www
sudo -u ghostUser bash << EOF
cd $DIR/talescript && ghost update && \
cd $DIR/johnswebsite && ghost update
EOF
as an aside, I’m not too sure if using sudo in the script is a good practice or not
I’ve added a nopasswd into visudo
ghostUser ALL=(ghostUser) NOPASSWD: /home/ghostUser/bin/update_ghost.sh
The cronjob was created using root sudo crontab -e
25 13 * * * /usr/bin/bash /home/ghostUser/bin/update_ghost.sh >> /home/ghostUser/bin/ghost_error.log 2>&1
After an extensive search, this is the closest workable suggestion I have managed to find but I am not entirely sure if it is the correct solution [Using Ghost-CLI programatically · Issue #721 · TryGhost/Ghost-CLI · GitHub](https://Using Ghost-CLI programatically) (honestly I didn’t quite understand the proposed solution)
**EDIT:**So, I changed from using the root crontab to using the users crontab crontab -e
and managed to get rid of the errors, however, it is not updating to the new version of ghost
cat ghost_error.log
Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org
- Inspecting operating system
- Checking for deprecations
[15:19:05] Checking for Ghost-CLI updates [started]
[15:19:05] Checking for Ghost-CLI updates [completed]
[15:19:05] Ensuring correct ~/.config folder ownership [started]
[15:19:05] Ensuring correct ~/.config folder ownership [completed]
+ sudo systemctl is-active ghost_blog-talescript-com