Skip to content

Io error. Look inside err_kind for more details #18111

@kf6kjg

Description

@kf6kjg

Current Behavior

Executing

rm -rf node_modules/.cache/nx
npx nx run-many --output-style=stream --target=build --parallel=8

works fine. A second execution of

npx nx run-many --output-style=stream --target=build --parallel=8

Results in

>  NX   Running target build for 18 projects:
...REDACTED...

 >  NX   Successfully ran target build for 18 projects

 >  NX   Io error. Look inside err_kind for more details.

   Pass --verbose to see the stacktrace.

The verbose flag only shows the following additional data:

Error: Io error. Look inside err_kind for more details.
    at /app/node_modules/nx/src/tasks-runner/cache.js:155:21
    at new Promise (<anonymous>)
    at Cache.<anonymous> (/app/node_modules/nx/src/tasks-runner/cache.js:153:20)
    at Generator.next (<anonymous>)
    at /app/node_modules/tslib/tslib.js:167:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/app/node_modules/tslib/tslib.js:163:16)
    at Cache.remove (/app/node_modules/nx/src/tasks-runner/cache.js:151:24)
    at Cache.<anonymous> (/app/node_modules/nx/src/tasks-runner/cache.js:102:36)
    at Generator.next (<anonymous>)

I'm executing from inside of a customized Docker Dev Container based off of mcr.microsoft.com/vscode/devcontainers/javascript-node:0-18-bullseye using VSCode.

Expected Behavior

That NX should recognize that all entries are cached and not report any errors.

If there are indeed IO errors, then it should report the real error, not just the wrapper error posted by rust fs_extra. This would help me diagnose the underlying problem.

GitHub Repo

No response

Steps to Reproduce

I'm not sure I have a generic way to reproduce this at this time. The root cause may be unique to me - this request is more to see if we can get the error message handling provide better information. It looks like the change to using this library was recent? #17638

Nx Report

Node   : 18.16.0
   OS     : linux-arm64
   npm    : 8.19.4
   
   nx             : 16.5.2
   @nx/workspace  : 16.5.2
   @nx/devkit     : 16.5.2
   @nrwl/tao      : 16.5.2
   typescript     : 5.1.3
   ---------------------------------------
   Local workspace plugins:
         @REDACTED/config-demo
         @REDACTED/nx-config
         @REDACTED/types

Failure Logs

Error: Io error. Look inside err_kind for more details.
    at /app/node_modules/nx/src/tasks-runner/cache.js:155:21
    at new Promise (<anonymous>)
    at Cache.<anonymous> (/app/node_modules/nx/src/tasks-runner/cache.js:153:20)
    at Generator.next (<anonymous>)
    at /app/node_modules/tslib/tslib.js:167:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/app/node_modules/tslib/tslib.js:163:16)
    at Cache.remove (/app/node_modules/nx/src/tasks-runner/cache.js:151:24)
    at Cache.<anonymous> (/app/node_modules/nx/src/tasks-runner/cache.js:102:36)
    at Generator.next (<anonymous>)

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions