Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ghost] upgrade not possible #667

Closed
mctogger opened this issue Feb 7, 2023 · 11 comments
Closed

[ghost] upgrade not possible #667

mctogger opened this issue Feb 7, 2023 · 11 comments
Assignees
Labels
ghost how-to How to issues reported by users solved stale 15 days without activity triage Triage is needed

Comments

@mctogger
Copy link

mctogger commented Feb 7, 2023

Describe your issue as much as you can

Hi,

the documentation concerning the AWS image seems to be outdated. According to the manual I can performe an upgrade by switching into the ghost directory and running sudo su ghost ghost update

This will return the following:
sh: 0: cannot open ghost: No such file

Just tried it again with a clean install - same result. Also tried to run the update command under the bitnami user, even with a new user. I'm always running into the "root" issue:

https://ghost.org/docs/faq/root-user-fix/#error
Unfortunately, this doesn't apply to AWS.

I took ownership of /opt/bitnami/ghost with a new user, after that I was able to run the update command. But I'd prefer a built-in / official solution without the need for a new user. Still getting some dodgy error messages. (can't update ghost cli i.e.)

aloha.

@mctogger mctogger added the how-to How to issues reported by users label Feb 7, 2023
@github-actions github-actions bot added the triage Triage is needed label Feb 7, 2023
@mctogger mctogger closed this as not planned Won't fix, can't repro, duplicate, stale Feb 7, 2023
@mctogger
Copy link
Author

mctogger commented Feb 7, 2023

... and there a still some more issues with https with the AWS image.

After configuring the https protocol for ghost images are not being displayed. Adding:

<VirtualHost *:443>
RequestHeader set X-Forwarded-Proto "https"

to /opt/bitnami/apps/apache2/conf/vhost/ghost-https-vhost.conf fixed it for me.

@mctogger mctogger reopened this Feb 7, 2023
@github-actions github-actions bot added solved and removed solved labels Feb 7, 2023
@gongomgra gongomgra added the ghost label Feb 9, 2023
@gongomgra
Copy link
Collaborator

Hi @mctogger,

Thanks for using Bitnami and for reporting this issue. I was able to reproduce it. However, I was able to properly run the ghost update command using a slightly different command than the one in our documentation.

sudo su ghost -c "ghost update"

Here is the output of running this

$ sudo su ghost -c "ghost update"

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org

✔ Checking system Node.js version - found v16.19.0
ℹ Ensuring user is not logged in as ghost user [skipped]
ℹ Checking if logged in user is directory owner [skipped]
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking free space
✔ Checking for available migrations
✔ Checking for latest Ghost version
All up to date!

We will open an internal task to update our documentation.

@gongomgra
Copy link
Collaborator

Hi @mctogger,

We updated our documentation site to reflect the new command to update Ghost.

https://docs.bitnami.com/aws/apps/ghost/administration/upgrade/

@mctogger
Copy link
Author

mctogger commented Feb 9, 2023

thank you! much appreciated

@gongomgra
Copy link
Collaborator

Hi @mctogger,

Thanks for your message. We are glad it worked for you. I'm closing the ticket as solved.

@ghost
Copy link

ghost commented Oct 29, 2023

I’m still getting an error now since the node version that comes with the image isn’t updated and so I can’t upgrade ghost.

`Checking system Node.js version - found v16.20.2
ℹ Ensuring user is not logged in as ghost user [skipped]
ℹ Checking if logged in user is directory owner [skipped]
✔ Checking current folder permissions
✔ Checking memory availability
✔ Checking free space
✔ Checking for available migrations
✔ Checking for latest Ghost version

5.71.0

  • ✨ Added Recommendations feature (#18743) - Sag
  • 🎨 Updated Source to v1.1.0 - Ghost CI
  • 🐛 Fixed custom setting image upload not working for multiple images (#18728) - Jono M
  • 🐛 Fixed indent behaviour for paragraphs (#18724) - renovate[bot]
  • 🔥 Dropped support for Node 16 - Daniel Lockyer

View the changelog for full details: TryGhost/Ghost@v5.70.2...v5.71.0

💻 We're looking for DevOps engineers to join Ghost: https://careers.ghost.org/devops-engineer

✔ Fetched release notes
✖ Downloading and updating Ghost to v5.71.0
A SystemError occurred.

Message: Ghost v5.71.0 is not compatible with the current Node version. Your node version is 16.20.2, but Ghost v5.71.0 requires ^18.12.1

Debug Information:
OS: Debian GNU/Linux, v11
Node Version: v16.20.2
Ghost Version: 5.67.0
Ghost-CLI Version: 1.25.3
Environment: production
Command: 'ghost update'

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

@github-actions github-actions bot removed the solved label Oct 29, 2023
@gongomgra gongomgra reopened this Oct 30, 2023
@gongomgra
Copy link
Collaborator

HI @iliveforme,

Thanks for using Bitnami. Can you tell us from which version of Ghost you are trying to upgrade? Unfortunately, the version of Node.js can't be upgraded on your instance. You will have to launch a new server with the updated version of Ghost and migrate your app data from the old server into the new one.

We recommend you to check the official Ghost documentation on how to migrate the data from one instance to another

https://ghost.org/docs/migration/ghost/

Hope it helps!

@Brzam
Copy link

Brzam commented Oct 30, 2023

Hi @gongomgra,

Jumping onto this as experienced the same issue today. Was using a fresh instance of the Lightsail Blueprint (which is as of writing is 5.67.0-2). I can see in the bitnami ghost changelog, that recent releases have the updated version of Node, but this has not yet filtered through to the Lightsail Blueprints.

As these releases are very recent do you know how long this new version would take to filter through to the Lightsail Blueprints, as the inclusion of node v18.18.2 would hopefully allow for future ghost updates to be done without a re-instance, avoid this issue for the foreseeable future.

Thanks,
Sam

@gongomgra
Copy link
Collaborator

gongomgra commented Oct 31, 2023

Hi @Brzam,

Thanks for your message. Unfortunately, we have no control on the Lightsail internal publish process and we can't provide you with any estimation on this. We send both images at the same time to AWS, but it is true that the Lightsail team usually takes longer to publish updated images. You will need to use an EC2 instance instead of Lightsail to have access to the latest Ghost image including the updated Node.js version in the meantime.

Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Nov 16, 2023
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ghost how-to How to issues reported by users solved stale 15 days without activity triage Triage is needed
Projects
None yet
Development

No branches or pull requests

4 participants