Ghost: Update command not working with .tgz file from build
Issue Summary
Issue Summary
Created a custom zip/tgz file with yarn build and tried to upgrade a docker install of ghost(5.17.1) to it (5.17.2) with ghost update --zip .../../ to the custom one.
I’m thinking the package.json has wrong parameters https://github.com/TryGhost/Ghost/issues/15523.
When I run the update command as node user in docker after copying the archive I get the output as seen in the log section.
Please let me know where the problem lies so I can fix it.
Steps to Reproduce
-
Run Ghost as Docker and `docker exec -it <Container> bash` into it. -
From there go to `/var/lib/ghost` and examine the directories -
As you can see the directory structure is not nearly identical to the new 5. Versions -
Create a zip/tgz with yarn build on your local 5.17.2 instance and copy it to the docker -
Run `ghost update --zip .../../` inside the docker as node user and watch the log -
As you can see, the update command is terminating with the log shown below.
Ghost Version
5.17.1
Node.js Version
14.20
How did you install Ghost?
Docker
Database type
SQLite3
Browser & OS version
No response
Relevant log / error output
/var/lib/ghost $ ghost update --force --zip /var/lib/Ghost-5.17.2.tgz
Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org
Process manager 'systemd' will not run on this system, defaulting to 'local'
✔ Checking system Node.js version - found v16.17.1
✔ Ensuring user is not logged in as ghost user
✔ Checking if logged in user is directory owner
✔ Checking current folder permissions
✔ Checking folder permissions
✔ Checking file permissions
✔ Checking memory availability
✔ Checking free space
✔ Checking for available migrations
✖ Checking for latest Ghost version
A SystemError occurred.
Message: Archive file does not contain a Ghost release.
Debug Information:
OS: Alpine Linux, v3.16.2
Node Version: v16.17.1
Ghost Version: 5.17.1
Ghost-CLI Version: 1.23.1
Environment: production
Command: 'ghost update --force --zip /var/lib/Ghost-5.17.2.tgz'
Try running ghost doctor to check your system for known issues.
You can always refer to https://ghost.org/docs/ghost-cli/ for troubleshooting.
Code of Conduct
- I agree to be friendly and polite to people in this repository
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19 (9 by maintainers)
This isn’t the behaviour on an up-to-date and unmodified version of the monorepo. I suggest trying to run
yarn buildwithout any modifications applied first, to see if that build works for you.