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

Error: ENOENT: no such file or directory, access 'internal/process/task_queues.js.map #913

Closed
benjamine opened this issue Apr 14, 2020 · 6 comments
Labels
bug Something isn't working community core
Milestone

Comments

@benjamine
Copy link
Contributor

benjamine commented Apr 14, 2020

We recently found this error in our datadog traces:

Error: ENOENT: no such file or directory, access 'internal/process/task_queues.js.map'
    at Object.accessSync (fs.js:195:3)
    at /usr/src/app/node_modules/dd-trace/packages/dd-trace/src/tracer.js:91:53
    at /usr/src/app/node_modules/dd-trace/packages/dd-trace/src/tracer.js:43:56
    at Scope._activate (/usr/src/app/node_modules/dd-trace/packages/dd-trace/src/scope/async_hooks.js:51:14)
    at Scope.activate (/usr/src/app/node_modules/dd-trace/packages/dd-trace/src/scope/base.js:12:19)
    at DatadogTracer.trace (/usr/src/app/node_modules/dd-trace/packages/dd-trace/src/tracer.js:43:35)
    at Object.accessSync (/usr/src/app/node_modules/dd-trace/packages/dd-trace/src/tracer.js:91:23)
    at isReadableFile (/usr/src/app/node_modules/get-stack-trace/src/isReadableFile.js:7:8)
    at resolveCallSiteSourceCodeLocation (/usr/src/app/node_modules/get-stack-trace/src/resolveCallSiteSourceCodeLocation.js:36:7)
    at /usr/src/app/node_modules/get-stack-trace/src/getStackTrace.js:40:18
    at tryCatcher (/usr/src/app/node_modules/bluebird/js/release/util.js:16:23)
    at MappingPromiseArray._promiseFulfilled (/usr/src/app/node_modules/bluebird/js/release/map.js:68:38)
    at MappingPromiseArray.PromiseArray._iterate (/usr/src/app/node_modules/bluebird/js/release/promise_array.js:115:31)
    at MappingPromiseArray.init (/usr/src/app/node_modules/bluebird/js/release/promise_array.js:79:10)
    at MappingPromiseArray._asyncInit (/usr/src/app/node_modules/bluebird/js/release/map.js:37:10)
    at _drainQueueStep (/usr/src/app/node_modules/bluebird/js/release/async.js:97:12)

it's been hard to find exact reproduction steps, but I can try getting more details on the sample maybe.
this is on a span created for the fs automatic instrumentation.

Environment
production

  • Operation system:
    alpine-node:12.13.1

  • Node version:
    v12.13.1

  • Tracer version:
    0.17.0

  • Agent version:
    0.17.0

@benjamine benjamine added the bug Something isn't working label Apr 14, 2020
@rochdev rochdev added this to the 0.19.1 milestone Apr 14, 2020
@rochdev
Copy link
Member

rochdev commented Apr 14, 2020

At a glance this looks like it could be an error from fs being used by a dependency (bluebird?). The tracer captures the error which is then handled by the library. It doesn't cause an actual exception since the library handled the error, but the tracer already captured the error at that point. This is a known issue and for now we have removed errors from the fs plugin completely to avoid confusion. This will be in the next version.

@pcothenet
Copy link

For the record, I'm seeing this for a different file as well: ENOENT: no such file or directory, open '/tmp/.aws/config'

@rochdev
Copy link
Member

rochdev commented Apr 14, 2020

@pcothenet That file is definitely what originally put this on our radar, since it basically happens for anyone using aws-sdk.

I'll do a release by the end of the week with the fix.

@rochdev
Copy link
Member

rochdev commented Apr 20, 2020

Released in 0.19.1.

@rochdev rochdev closed this as completed Apr 20, 2020
@benjamine
Copy link
Contributor Author

thank you!! 👏

@freshollie
Copy link

Update on this, I think this issue actually relates to gajus/get-stack-trace#4 and will be solved with gajus/get-stack-trace#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working community core
Projects
None yet
Development

No branches or pull requests

4 participants