So when making a Python Discord bot, my disk space suddenly filled up, and I cannot do anything about it. I cannot run prune, gc, or anything. I cannot find the .git files either. This is kind of time sensitive, as this is my beta bot, and I need to push a database fix!
You might want to contact [email protected]. Can you also run ls -a
and show me the result?
That is not a command?
@RiversideRocks
Did you run it in the terminal of your project?
Yes I did, and it said ‘command not found’
Can you send a screenshot of that?
Please run this command.
app@fantasy-lake-pulsar:~ 00:42
$ ls -a
. .. .bash_history .cache .data .env .git .glitch-assets glitch.json .local .nano .profile public
README.md requirements.txt server.py views
You do have a .git folder.
What happens when you run git gc && git prune
It says no space.
Ok, try running this command:
rm -rf .git
Then check your space.
It stays the same.
Use la
or ls
to show all files/folders.
Try deleting your node_modules folder, run enable-pnpm in your terminal then run pnpm install.
There is no node_modules
folder on Glitch.
Even then, not much data there.
What’s shrinkwrap.yaml? It got imported into my git repo once.
It is actually part of Node. I don’t go too deep inside Node that much.
To see where most of the disk is taken up, try du -h -d 1
du
means disk usage.
-d 1
means depth of 1, to avoid the spammy result in .git
-h
means human readable sizes.
An example
$ du -h -d 1
3.1M ./.local
581K ./.cache
1.0K ./.data
3.0K ./views
2.0K ./.config
4.0K ./public
1.0K ./node_modules
188K ./.git
3.9M .
Thanks all for your help, i found out my python3.7 file was 144mb, so i just deleted it, started fresh, and its all good now