Problems with fs.js


#1

Hello Glitch!
I’m having some problems with my Discord Bot, I can’t change a file, because everytime that i change it, It appers “Reconnecting…” and everything that i maded is deleted. And now, i get this error on my console:

fs.js:750
return binding.writeBuffer(fd, buffer, offset, length, position);
^
Error: ENOSPC: no space left on device, write
at Object.fs.writeSync (fs.js:750:20)
at Object.fs.writeFileSync (fs.js:1329:24)
at process.on (/home/nvm/pnpm/lib/node_modules/pnpm/lib/node_modules/pnpm-file-reporter/lib/index.js:25:12)
at process.emit (events.js:185:15)
at processEmit [as emit] (/home/nvm/pnpm/lib/node_modules/pnpm/lib/node_modules/signal-exit/index.js:149:35)
at process.exit (internal/process.js:140:15)
at Timeout.setTimeout [as _onTimeout] (/home/nvm/pnpm/lib/node_modules/pnpm/lib/err.js:10:30)
at ontimeout (timers.js:466:11)
at tryOnTimeout (timers.js:304:5)
at Timer.listOnTimeout (timers.js:267:5)

This happens when i try to download FFMPEG-STATIC, Can someone help me?


#2

It sounds like you’re hitting the disk space limit. Your project is limited to 128MB: https://glitch.com/faq#restrictions


#3

But why? I have deleted the node_modules, and i get the same error, and why i can’t edit my files?


#4

in the console, can you please run: enable-pnpm, and see if this problem still happen for you? You’ve to wait a couple minutes for it to take effect.

If it does not work, please share your project name, and make it public/DM us the join link if it is private.


#5

I will try it, Thankss!


#6

I confirm that you have a full disk (you can find out by doing df -h . in the console). You need to figure out what is taking space and eventually remove it.


#7

How i do that? I just used df -h /app and see that my app is using 110mb…


#8

Yes, which is the max that we provide