NodeJS v10.16.1 crash while using elastic-apm-node
See original GitHub issueDescribe the bug
Since I have started using elastic-apm-node, it has started throwing Could not process callsites
errors and node process to crash :
Errors:
could not capture stack trace for span { span: '627f2bf485604de9',
parent: '5c26008e6557b10e',
trace: '5d8bc7df6238f7bf83bccf7a95c8ce0f',
name: 'GET',
type: 'cache.redis',
err: 'Could not process callsites' }
could not capture stack trace for span { span: 'e1e0625c65b656ca',
parent: '6ed44490829eabca',
trace: 'c4f78b304cf844d368b5830712c5c88f',
name: 'SELECT FROM `XXXX`',
type: 'db.mysql.query',
err: 'Could not process callsites' }
Crash error:
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:198:13)
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:198:13)
13 verbose stack at maybeClose (internal/child_process.js:982:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
To Reproduce Steps to reproduce the behavior: Use this config node v10.16.1 + npm v6.9.0 (docker base image: node:10-slim) elastic-apm-node v2.13.0 apm-server v6.5.4 mongoose v5.6.2 ioredis v4.3.0 mysql v2.16.0 mysql2 v1.6.4
Environment (please complete the following information)
- Docker base image: node:10-slim
- OS: Debian
- Node.js version: 10.16.1
- APM Server version: 6.5.4
- Agent version: 2.13.0
How are you starting the agent? (please tick one of the boxes)
- Calling
agent.start()
directly (e.g.require('elastic-apm-node').start(...)
) - Requiring
elastic-apm-node/start
from within the source code - Starting node with
-r elastic-apm-node/start
Issue Analytics
- State:
- Created 4 years ago
- Comments:24 (13 by maintainers)
Top Results From Across the Web
APM agent crashes NodeJs after reporting exception in ...
Elastic-apm-node v3.9.0 crashes NodeJs running NestJs server ... that root cause of the exception is an Null reference on the request params.
Read more >app crashed with error Node.js version required
After deploying a cap application, with mta.yaml, the srv app crashed. Below the app's log. ERR Node.js v12.18 or higher is required for...
Read more >3 New Ways to Crash your NodeJS Server, Update ... - YouTube
Nodejs Updates are now available for v10.x, v12.x, v14.x and v15.x Node.js release lines for the following issues.0:00 Intro1:50 HTTP/2 ...
Read more >elastic-apm-node - npm
The official Elastic APM agent for Node.js. Latest version: 3.41.1, last published: 5 days ago. Start using elastic-apm-node in your project ...
Read more >NodeJS server is getting crashed due to no open connection ...
c5.4xlarge: 16 CPU and 32 GB RAM with SSD storage; Node version: 6.11; MongoDB NPM Version: 1.4.28; CPU Utilization is 30-40 % in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
re: log level – I’m fine with changing that to debug.
FYI, I’ve noticed that the module
source-map-support
can cause this the issue of the missing span stack traces. We’re looking into if it can be easily worked around it.