Items in node_modules counts towards your disk usage. Try a df and see what the /app usage is. Glitch takes automatic snapshots of projects, so it’d be worth checking out the size of your .git directory as that might be using up space. But your .gitignore looks pretty comprehensive, and if you aren’t writing to disk, then it very well may be a bug. Does it still give you the error if you remix your project? It didn’t for me, so if it’s actively blocking your development, then that’s a quick work around.
The app seems to work normally without errors when it starts, but then the disk space errors start rolling in.
Or not, I’ve just been playing with it and I’m not getting errors now…
Yeah, we’re looking into it. I saw similar behaviour when testing later - temporary full disk usage, flicking back to normal. I’ll let you know when we figure it out. Sorry for the hassle!
Just want to add that the same error is happening on our project: https://glitch.com/edit/#!/co-ment. I am seeing 39M reported from du -hs. The error comes and goes, and we can’t replicate it on demand…
I’m having this same problem. The error appeared after I left my project open for a long time and then came back and tweaked one thing, causing a reload.
I symlink’d to /tmp. It was fixed for a while. Now I’ve been able to keep the error at bay by cutting out my dependencies, then adding them back in when it reappears.
Just to update this issue: unfortunately, it seems newer filesystems like btrfs don’t play nicely with df, so we’re actively looking into possible solutions and should have this resolved soon.
A “solution”, until we fix the underlying issue, is the following:
Open the Terminal (Project menu -> Advanced Options)
In the Terminal, run:
rm -rf node_modules
sync -f .
refresh
This will cause the editor to reconnect to the project, and the dependencies of the project to be redownloaded and reinstalled, so it might take a few seconds.
Typically, after all these steps the filesystem should report less disk usage (except if the error is legit and you actually need to free up space).
I’m seeing a similar problem, where the logs report “ERROR: Your project is out of disk space (used 127.8 out of 128 MB).” but df -h shows “/dev/rbd10 128M 95M 68K 100% /app” (i.e. it’s reporting 100% usage at 95M).