Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

GKE: Error scanning the filesystem #377

Closed
blerest opened this issue Dec 12, 2017 · 5 comments · Fixed by #379 or #381
Closed

GKE: Error scanning the filesystem #377

blerest opened this issue Dec 12, 2017 · 5 comments · Fixed by #379 or #381
Assignees
Labels
api: clouddebugger Issues related to the googleapis/cloud-debug-nodejs API. 🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@blerest
Copy link

blerest commented Dec 12, 2017

When I start the debug agent on GCP GKE I have the following error:

ERROR:@google-cloud/debug-agent: Error scanning the filesystem. Error: ENOENT: no such file or directory, lstat '/proc/15/fd/11'

I'm not able to see the application on debug UI.

require('@google-cloud/debug-agent').start({
  allowExpressions: true,
  serviceContext: {
    service: 'service-sms',
  },
});

My cluster has the the cloud_debugger OAuth scope.

@ofrobots ofrobots added bug priority: p2 Moderately-important priority. Fix may not be included in next release. labels Dec 12, 2017
@ofrobots
Copy link
Contributor

ofrobots commented Dec 12, 2017

Thanks for the bug report. We'll take a look at this.

In the meanwhile, my theory is that you are building your docker image with the app (specifically package.json) being in the root directory. We try to scan the file system starting from the app directory to find all the .js files that could potentially see a breakpoint. In this case since your package.json is in the root directory, we probably ended up scanning the entire filesystem (we need to fix this).

As a work-around, can you try putting your app into a sub-directory, say /app? Let us know if that helps.

@blerest
Copy link
Author

blerest commented Dec 12, 2017

As a work-around, can you try putting your app into a sub-directory, say /app? Let us know if that helps.

Yeah I just changed the WORKDIR and it's now working.

@DominicKramer
Copy link
Contributor

This issue is being addressed by PR #379

@jmdobry jmdobry removed the priority: p2 Moderately-important priority. Fix may not be included in next release. label Dec 20, 2017
@DominicKramer
Copy link
Contributor

PR #381 implements a change where the agent won't start if the working directory is a root directory to avoid scanning the entire filesystem during startup for Javascript files.

@DominicKramer
Copy link
Contributor

@google-cloud/debug-agent version 2.3.2 addresses this issue.

@google-cloud-label-sync google-cloud-label-sync bot added the api: clouddebugger Issues related to the googleapis/cloud-debug-nodejs API. label Jan 31, 2020
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: clouddebugger Issues related to the googleapis/cloud-debug-nodejs API. 🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
5 participants