Hello, in my Discord bot project I’ve been getting the disk filled error, I can’t run git prune; git gc in the console. Because I’m getting this error: error: couldn’t write .git/logs/HEAD: No space left on device error: couldn’t write .git/logs/refs/heads/master: No space left on device error: failed to run reflog
My Glitch project name: selam-eternal
Please help me.
That’s kind of a obvious error.
Check your container stats.
Keep in mind you do not get infinite storage access on glitch at the moment. You get like 194 Mega Bytes per project.
I’d recommend not storing massive databases inside of your glitch project, instead use a third party database to store the information.
Since your projects space is too full to be able to run the commands to help lower this, you will have to wait until a staff member adds some space to your project to give you time to run the needed commands.
If you need to have this fixed now and you are 100% certain that there is nothing that you would need to undo with the rewind feature, then you can run rm -rf .git in your projects console, and that will most likely completely lower the space usage however, I only recommend that if you have nothing you will ever need rewinding!
To stop your projects space from filling up all the time, I suggest creating a file called .gitignore and inside that file, but the directory and/or file names of any database files or just any files that you have which are being updates regularly into the file, all on a new file! After you add the file, you will not be able to see the file in the projects file tree after a refresh, but it will be there, to make the file visible again, just remove it from the gitignore and add it back once you are finished making whatever changes you had made to it, if any!
I’ve granted your project additional space for 24 hours to help resolve this issue. Here are the steps you’ll need to take to prevent it from happening again
add whatever files are being changed regularly to a gitignore file (you can use git log --stat in the console to see what those are)