question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EACCESS Read-only Workspace Error on NixOS

See original GitHub issue

Describe the bug On NixOS, all package files are stored in a read-only file-system. Something in vscode-js-debug at some point copies a file, from the nix store (which is read-only) into the user’s configuration. This works the first time. But since the permissions on the file are read-only, the next time this is attempted, the previous file cannot be overwritten.

Error activating auto attach: Error: EACCES: permission denied, copyfile ‘/nix/store/s81m8m4p355x54snv6fnc56pw75vlprs-vscode-1.58.0/lib/vscode/resources/app/extensions/ms-vscode.js-debug/src/bootloader.bundle.js’ -> ‘/home/ldlework/.config/Code/User/workspaceStorage/ed6365eb04d72d5abb85f7871ffb763d/ms-vscode.js-debug/bootloader.js’

This only happens when workspaces are being used.

Is there a change (here upstream) that could be made? I’ve discussed the issue https://github.com/NixOS/nixpkgs/issues/130590# but NixOS can’t really do anything about an application copying a file out of the store, like making it writable or whatnot.

To Reproduce Steps to reproduce the behavior:

  1. Use NixOS or Nix
  2. Install vscode
  3. Use auto-attach
  4. Start a node process while in a workspace
  5. Stop debugging, and repeat 3.

VS Code Version: 1.58.2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
connor4312commented, Aug 5, 2021

The next Insiders that’s compatible with the nightly should be out within 24h

1reaction
connor4312commented, Jul 20, 2021

wrap everything in a try/catch and unlink/try again if it fails

Yep

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unpack phase: Permission denied - Help - NixOS Discourse
Hi everyone, I am trying to make a simple derivation working but getting permission denied error. I believe this is a recommended way...
Read more >
How do I remove/delete a folder that is not empty?
I am getting an 'access is denied' error when I attempt to delete a folder that is not empty.
Read more >
Zowe Documentation - Zowe Docs
Errors caused when running the Zowe desktop with node 8.16.1. ... Added the ability to disable/enable profile validation. ... workspace/app-server/users.
Read more >
bash Tips and Tricks - Softpanorama
One can disable this behavior with the BASH "shopt" built-in command: ... ERRORS EACCES The address is protected, and the user is not...
Read more >
Untitled
Resolves: Bug 1653163 - certmap fails when Issuer DN has comma in name - Resolves: Bug 1602001 - cannot add cenotaph in read...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found