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

Need to check for available disk space before doing ghost update #1301

Closed
dsecareanu opened this issue Sep 21, 2020 · 2 comments
Closed

Need to check for available disk space before doing ghost update #1301

dsecareanu opened this issue Sep 21, 2020 · 2 comments

Comments

@dsecareanu
Copy link

Summary

When running ghost update, because ghost keeps a lot of files in various folders (i.e. lots of content .json files in content/data folder, going back even 2 years or 5 versions of itself for the rollback option) you do happen to run out of disk space on your virtual machine (my case was running 10 ghost blogs on a 30gb aws ec2, 7 of them with just demo content and no traffic, but all of them occupying 2-3gb disk space just because of some of the things mentioned above, mainly rollback versions).

In this particular instance I did run out of space when doing a ghost update, which caused weird error log messages (attached an archive for reference
Archive.zip
) and all ghost sites to be unable to start anymore (even if server restarted). Only one site wasn't updated and was still running, but next time I tried to update it (even though there was like 5gb free space on disk now), the result of that update was identical as with the other sites (which tells me the space issues caused smth in some of components of ghost).

Initially I thought it was a database corruption issue cause by the failed updates, but migrating the sites on another server and doing fresh installs + content overwrite + database restore from broken sites ghost eventually worked and sites were restored properly.

Anyways, the idea is that there is a need to check for existing disk space, in the same way in which ghost checks for available memory when doing a ghost update.

@acburdine said he will add an issue based on https://forum.ghost.org/t/issues-updating-ghost-due-to-insufficient-space/16627/15, but I think he forgot.

Thanks! :)

@vikaspotluri123
Copy link
Member

This was completed in #1284 😄 closing as a duplicate of #1282

@dsecareanu
Copy link
Author

Oh, ok. :) I didn't see any open issue (didn't see it in the latest updates) so I assumed it wasn't added maybe. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants