Start a new topic

PM2 error: Error: ESPIPE: invalid seek, read


I encounter this error on Google Cloud Run, it is not breaking, the API runs fine but I keep seeing that error in the log. Any ideas?
1 Comment

Hi Sean,


The error happens when PM2 (the process manager used by visionbox) is unable to read memory and cpu utilization info, the solution is to run this command and recommit your image:


path to npm modules:

npm root -g

The path for recent Visionbox versions is:

/usr/lib/node_modules



Running this command inside your visionbox should fix the problem:

RUN sed -i 's/pidusage(pids, function retPidUsage(err, statistics) {/pidusage(pids, { usePs: true }, function retPidUsage(err, statistics) {/' /usr/lib/node_modules/pm2/lib/God/ActionMethods.js


Github issue:

https://github.com/Unitech/pm2/issues/4360


Nezare

Login or Signup to post a comment