error is right here:
EROFS: read-only file system
this line is concerning:
At random times
this sounds like a drive failure. Discord’s logger can’t write to the filesystem; it’s reporting as read-only.
what’s the drive like where /opt lives?
weird. i’d probably good around for drive checks personally, any test should be pretty definitive. how did you install Discord? the AUR? maybe a reinstall is in order.
i don’t think this is Node specific. if i were writing logs, i’d want to be pretty sure they get written, either by creating the directories necessary, putting them in a place i was pretty dang sure existed, and/or crashing as early as possible if the location didn’t exist, which makes me think it’s a weird Discord config error.