hello in my discord project I’ve been getting the disk filled error, even though it was again please correct it my project name : azzureta4
Hey @ediciust, welcome to the forum! I’m going to take a look at the project.
Are you able to open the console and run ‘git prune; git gc’ (without the quotes)?
I took this error as the day goes by the space itself did not understand went
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
I’ve freed up some space in your project for you. Though this will only temporarily stop the project from becoming full again. This is because you have frequently changing data files in your project, like the .json files, that will quickly fill up the git folder in your project. We recommend you put such files in a directory called .data
, which is automatically .gitignored and thus they don’t get committed and fill up your project space. Or, if you need them in those locations, you can add them manually to a .gitignore file to do this yourself.
please help me, I also experienced the same thing.
Hi @ArataNagis, welcome to the Glitch forum!
Can you provide your project name so that we can take a look?
The project name is kuuhaku
Pada tanggal Min, 10 Mar 2019 9:57 PM cori schlegel via Glitch Support <glitch@discoursemail.com menulis:
Hey @ArataNagis it looks like your project is changing some files regularly and those changes are taking up a bunch of space in your project’s git repository. To resolve this:
- add whatever files are being changed regularly to a gitignore file
- Database or sqlite files are pretty common culprits here, or you can use your project’s console and run
git log --stat
and scroll through the results, looking for files that show up numerous times; pressingq
will allow you to exit thegit log
process. You can also usegit log --name-only --format="" | cat | sort | uniq -c | sort -nbr
to get a sorted list of which files have been committed the most times in your project’s history, although that list may include files you’ve alreadygitignore
d
- Database or sqlite files are pretty common culprits here, or you can use your project’s console and run
- open your project’s console
- type
git prune
and<enter>
- type
git gc
and<enter>
- type
refresh
and<enter>
After you’ve done that you’ll have cleaned up any excess space in your project’s repo and hopefully it won’t just fill back up again. I’ve expanded your project’s disk space for 24 hours to allow you time to resolve this.
yea, this keeps happening to me. Earlier today my project storage showed 10MB, I had no one editing the project during this time. By the time I log on, it shows that it’s full
You can run du -lh
in the terminal to see where the space is being taken up. I bet it’s the .cache folder if your project is a bot or something taking requests outside of the project.
I found out my problem. So my project uses pm2 in packages to run the server, and apparently saves anything that gets pushed into logs. Is there any way I can get a folder named pm or pm2 removed using force or you guys remove it? Also, the terminal seems to freeze my laptop when I try to open it.
may be easier to have it log somewhere else