Score:0

Upgraded to 21.10, now getting socket error `Error: Command failed: cat /sys/fs/cgroup/memory/memory.stat` using Node.js

de flag

Last night I upgraded my Ubuntu to version 21.10 using the automatic installer. Now I am unable to execute my Node.js application I am working on for my job. I'm getting two different errors:

Error: Command failed: cat /sys/fs/cgroup/memory/memory.limit_in_bytes 
cat: /sys/fs/cgroup/memory/memory.limit_in_bytes: No such file or directory

    at ChildProcess.exithandler (child_process.js:308:12)
    at ChildProcess.emit (events.js:315:20)
    at ChildProcess.EventEmitter.emit (domain.js:486:12)
    at maybeClose (internal/child_process.js:1048:16)
    at Socket.<anonymous> (internal/child_process.js:439:11)
    at Socket.emit (events.js:315:20)
    at Socket.EventEmitter.emit (domain.js:486:12)
    at Pipe.<anonymous> (net.js:673:12)
    at Pipe.callbackTrampoline (internal/async_hooks.js:129:14) {
  killed: false,
  code: 1,
  signal: null,
  cmd: 'cat /sys/fs/cgroup/memory/memory.limit_in_bytes '
}
Error: Command failed: cat /sys/fs/cgroup/memory/memory.stat 
cat: /sys/fs/cgroup/memory/memory.stat: No such file or directory

    at ChildProcess.exithandler (child_process.js:308:12)
    at ChildProcess.emit (events.js:315:20)
    at ChildProcess.EventEmitter.emit (domain.js:486:12)
    at maybeClose (internal/child_process.js:1048:16)
    at Socket.<anonymous> (internal/child_process.js:439:11)
    at Socket.emit (events.js:315:20)
    at Socket.EventEmitter.emit (domain.js:486:12)
    at Pipe.<anonymous> (net.js:673:12)
    at Pipe.callbackTrampoline (internal/async_hooks.js:129:14) {
  killed: false,
  code: 1,
  signal: null,
  cmd: 'cat /sys/fs/cgroup/memory/memory.stat '
}

Obviously those two files, /sys/fs/cgroup/memory/memory.stat and /sys/fs/cgroup/memory/memory.limit_in_bytes no longer exist and the Node.js framework needs them to open a socket. I haven't been able to find a solution on Google. I have tried reinstalling Node and the npm package.

Can anyone help?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.