Crashing with I/O Error


#1

Hi all,

My project (JS Discord Bot) was running normally (no update in 15dd) but just started to crash and I cant seem to identify the problem.

Appreciate any help!

thanks

======

Error: EIO: i/o error, read
at Object.fs.readSync (fs.js:675:18)
at tryReadSync (fs.js:540:20)
at Object.fs.readFileSync (fs.js:575:19)
at Object.Module._extensions…js (module.js:662:20)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/app/node_modules/ws/index.js:3:19)


#2

This solved it for me (saw in another thread):

  • remove npm_modules/ (i actually ZIPed it to allow further investiigation, if needed)
  • npm install

Any ideas why the problem happened ?


#3

This seems to be a frequent and recurring problem on Glitch. I’ve had this issue on my app for the last few days, completely inexplicably, and running npm install hasn’t done anything. Looking through the forum history, it seems to be a widespread thing.


#4

npm install/update hand’t solved it for me at first. I only got it working after removing thefolder npm_modules and then running npm install.

And yes, i saw a few topics about it, and got this solution in one of them…


#5

Hi,

we are sorry you are having this issue. Since it is very widespread, I’ve created a pinned topic describing how to get rid of it: [HOWTO] Fix: EIO: i/o error, read.

Hope it helps! :slight_smile:


(Yet) Another i/o error... what is causing this? [Fixed]