Closed janantala closed 8 years ago
Isn't 0.12.7 ancient in Node terms?
I could reproduce the error message with the offical node:0.12 image. But it did not crash my app. Anyhow the bug is fixed in https://github.com/sematext/spm-agent-nodejs/commit/d0a3eb62d79f9d977659fce5d2401e58bf3e3b3f and npm release 1.29.12. @janantala please let me know how it works and wich base image you use. In case of Alpine Linux you might need to add RUN apk add --update procps
to your docker file.
Ok thanks. I have tested one legacy app running 0.12.7 as it should be supported according to readme with official node docker image. However I don't need it, I use node 6 primary.
The reason was not fully clear, it looks after startup reading from /proc failed (fs or graceful-fs errors), so the new version ignores missing CPU info. In my test CPU usage was readable after a few function calls.
I get following error when I run app inside docker container using node:0.12.7 image. However node:6 works fine.