getappmap / appmap-js

Client libraries for AppMap
49 stars 17 forks source link

Indexer exits with `Error: ELOOP: too many symbolic links encountered, stat` #909

Closed symwell closed 1 year ago

symwell commented 1 year ago

The indexer exited with this error message

Error: ELOOP: too many symbolic links encountered, stat '/Users/test/Documents/some_path/vendor/bundle/gems/autodoc-0.7.0/spec/dummy/spec'
Emitted 'error' event on FSWatcher instance at:
    at FSWatcher._handleError (/Users/polo/Library/Application Support/Code/User/globalStorage/appland.appmap/node_modules/chokidar/index.js:647:10)
    at FsEventsHandler._handleFsEventsSymlink (/Users/polo/Library/Application Support/Code/User/globalStorage/appland.appmap/node_modules/chokidar/lib/fsevents-handler.js:398:18) {
  errno: -62,
  code: 'ELOOP',
  syscall: 'stat',
  path: '/Users/test/Documents/some_path/vendor/bundle/gems/autodoc-0.7.0/spec/dummy/spec'
}

Log%20and%20session_Id%20%3D%3D%20%2238c8075d-c2c7-4776-8384-ee4fa23dd5901671098301709%22%7C%20extend%20logLen%3Dstrlen(customDimensions%5B%22appmap.cli.log%22%5D)%2Clog%3DcustomDimensions%5B%22appmap.cli.log%22%5D%2Cexception%3DcustomDimensions%5B%22appmap.debug.exception%22%5D%7C%20project-reorder%20timestamp%2Cname%2Cuser_Id%2ClogLen%2Clog%2Cexception). Slack.

Saw this many times but for only one user.

symwell commented 1 year ago

ELOOP now happening with another user. Log%20and%20session_Id%20%3D%3D%20%224d5039ba-b047-4116-9e30-0ae0f2d183ab1671210762638%22%7C%20extend%20logLen%3Dstrlen(customDimensions%5B%22appmap.cli.log%22%5D)%2Clog%3DcustomDimensions%5B%22appmap.cli.log%22%5D%2Cexception%3DcustomDimensions%5B%22appmap.debug.exception%22%5D%7C%20project-reorder%20timestamp%2Cname%2Cuser_Id%2ClogLen%2Clog%2Cexception). Slack.

symwell commented 1 year ago

It seems to be a result of a symlink created badly where a file or directory points to itself or points to a directory further "up". This means if one tries to traverse that directory recursively the operation would never stop. It'd be in an infinite loop. The ELOOP error is raised when this infinite loop is detected.

appland-release commented 1 year ago

:tada: This issue has been resolved in version @appland/appmap-v3.57.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: