Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Munin controller: TypeCannot read properties of undefined (reading 'value') #475

Closed
philippemilink opened this issue Oct 31, 2022 · 0 comments · Fixed by #480
Closed

Munin controller: TypeCannot read properties of undefined (reading 'value') #475

philippemilink opened this issue Oct 31, 2022 · 0 comments · Fixed by #480
Labels
semver/bugfix This is a minor backward-compatible fix status/verified This has been checked by a maintainer type/bug This is a problem

Comments

@philippemilink
Copy link
Member

Sentry reported the following error:

TypeError: Cannot read properties of undefined (reading 'value')
  File "/opt/zds/app/zmd/node_modules/zmarkdown/server/controllers/munin.js", line 105, col 77, in null.<anonymous>
    loopLag = parseFloat(proc.pm2_env.axm_monitor['Event Loop Latency'].value)
  ?, in Array.reduce
  File "/opt/zds/app/zmd/node_modules/zmarkdown/server/controllers/munin.js", line 95, col 28, in gatherData
    const procs = procList.reduce((acc, proc, i) => {
  File "/opt/zds/app/zmd/node_modules/zmarkdown/server/controllers/munin.js", line 204, col 18, in null.<anonymous>
    callback(gatherData(plist))
  File "/opt/zds/app/zmd/node_modules/pm2/lib/API.js", line 625, col 19, in null.<anonymous>
    return cb ? cb(null, list) : that.speedList(null);
  File "/opt/zds/app/zmd/node_modules/pm2-axon-rpc/lib/client.js", line 45, col 10, in null.<anonymous>
    fn.apply(null, msg.args);
  File "/opt/zds/app/zmd/node_modules/pm2-axon/lib/sockets/req.js", line 67, col 8, in Parser.<anonymous>
    fn.apply(null, msg.args);
  File "node:events", line 513, col 28, in Parser.emit
  File "node:domain", line 552, col 15, in Parser.emit
  File "/opt/zds/app/zmd/node_modules/amp/lib/stream.js", line 91, col 16, in Parser._write
    this.emit('data', Buffer.concat(this._bufs));

A representation slightly different of the same backtrace:

TypeError: Cannot read properties of undefined (reading 'value')
    at /opt/zds/app/zmd/node_modules/zmarkdown/server/controllers/munin.js:105:77
    at Array.reduce (<anonymous>)
    at gatherData (/opt/zds/app/zmd/node_modules/zmarkdown/server/controllers/munin.js:95:28)
    at /opt/zds/app/zmd/node_modules/zmarkdown/server/controllers/munin.js:204:18
    at /opt/zds/app/zmd/node_modules/pm2/lib/API.js:625:19
    at /opt/zds/app/zmd/node_modules/pm2-axon-rpc/lib/client.js:45:10
    at Parser.<anonymous> (/opt/zds/app/zmd/node_modules/pm2-axon/lib/sockets/req.js:67:8)
    at Parser.emit (node:events:513:28)
    at Parser.emit (node:domain:552:15)
    at Parser._write (/opt/zds/app/zmd/node_modules/amp/lib/stream.js:91:16)

Do not hesitate to ask if you need more context.

@philippemilink philippemilink added the type/bug This is a problem label Oct 31, 2022
@LikaKavkasidze LikaKavkasidze added semver/bugfix This is a minor backward-compatible fix status/verified This has been checked by a maintainer labels Nov 12, 2022
@LikaKavkasidze LikaKavkasidze added this to the zmarkdown@11.2.0 milestone Nov 12, 2022
LikaKavkasidze added a commit to LikaKavkasidze/zmarkdown that referenced this issue Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/bugfix This is a minor backward-compatible fix status/verified This has been checked by a maintainer type/bug This is a problem
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants