Skip to content

Failed to reset the Nx workspace due to lock #2341

Open
@siiron

Description

@siiron

Current Behavior

When running nx reset the plugin prevents this due to lock on the nx cache db.

Expected Behavior

The nx reset should be able to complete

Steps to Reproduce

Install IntelliJ

IntelliJ IDEA 2024.3 (Ultimate Edition)
Build #IU-243.21565.193, built on November 13, 2024

Install latest NX Console plugin 1.33.0

Run nx reset on a monorepo workspace

Failure Logs / Images / Videos

Failed to reset the Nx workspace.
Failed to clean up the workspace data directory.
Error: EBUSY: resource busy or locked, unlink 'C:\Projects\path-to-project\.nx\workspace-data\54bcfc73-8e5b-493f-bfc2-a6f8e81a6bda.db'
node:fs:2368
return binding.writeFileUtf8(
^

Error: ENOENT: no such file or directory, open 'C:\Projects\path-to-project\.nx\cache\terminalOutputs\4925364787582055960'
at writeFileSync (node:fs:2368:20)
at ForkedProcessTaskRunner.writeTerminalOutput (C:\Projects\path-to-project\node_modules\nx\src\tasks-runner\forked-process-task-runner.js:311:32)
at ChildProcess. (C:\Projects\path-to-project\node_modules\nx\src\tasks-runner\forked-process-task-runner.js:239:26)
at ChildProcess.emit (node:events:519:28)
at ChildProcess._handle.onexit (node:internal/child_process:294:12) {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\Projects\path-to-project\.nx\cache\terminalOutputs\4925364787582055960'
}

Node.js v20.16.0

Environment

  • Nx Console version: 1.33.0
  • IntelliJ IDEA 2024.3 (Ultimate Edition)
  • Windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions