I’ve tried a few flavors of Kadira including MontiAPM (using montiapm:agent) and NodeChef (tried both meteorhacks:kadira and lmachens:kadira) but can’t seem to get past a server error on startup…
Here’s the error using lmachens:kadira agent:
I20210317-20:00:54.409(-7)? Exception in callback of async function: TypeError: Cannot read property 'prototype' of undefined
I20210317-20:00:54.409(-7)? at setLabels (packages/lmachens_kadira.js:3692:46)
I20210317-20:00:54.410(-7)? at packages/lmachens_kadira.js:3201:5
I20210317-20:00:54.410(-7)? at runWithAFiber (packages/lamhieu_meteorx.js:217:5)
I20210317-20:00:54.410(-7)? at packages/lamhieu_meteorx.js:210:5
I20210317-20:00:54.410(-7)? at Array.forEach (<anonymous>)
I20210317-20:00:54.410(-7)? at packages/lamhieu_meteorx.js:209:27
And same error using MontiAPM agent:
I20210317-19:13:21.709(-7)? Exception in callback of async function: TypeError: Cannot read property 'prototype' of undefined
I20210317-19:13:21.710(-7)? at setLabels (packages/montiapm:agent/lib/hijack/set_labels.js:9:46)
I20210317-19:13:21.710(-7)? at packages/montiapm:agent/lib/hijack/instrument.js:45:5
I20210317-19:13:21.710(-7)? at runWithAFiber (packages/lamhieu_meteorx.js:217:5)
I20210317-19:13:21.710(-7)? at packages/lamhieu_meteorx.js:210:5
I20210317-19:13:21.711(-7)? at Array.forEach (<anonymous>)
I20210317-19:13:21.711(-7)? at packages/lamhieu_meteorx.js:209:27
It’s happening in kadira/lib/hijack/set_labels.js at line 9:
var originalSendAdds = MeteorX.Multiplexer.prototype._sendAdds;
Apparently MeteorX.Multiplexer is undefined
I’ve tested it on another Meteor app I have and it works fine. So the bug seems to be specific to Rocket Chat.
Any help would be appreciated!
Currently running:
Rocket.Chat 3.7.4
Dev machine: OS X 10.15.7 Catalina