Skip to content

EACCES: permission denied when renaming file on extension installation #11641

Closed

Description

@moseswynn

Environment data

  • VS Code version: 1.44.2
  • Extension version (available under the Extensions sidebar): 2020.4.76186
  • OS and version: WSL Ubuntu
  • Python version (& distribution if applicable, e.g. Anaconda): 3.6.9
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Relevant/affected Python packages and their versions: N/A
  • Relevant/affected Python-related VS Code extensions and their versions: N/A
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info How to update the language server to the latest stable version #3977):N/A
  • Value of the python.languageServer setting: N/A

Expected behaviour

Extension installs without issue.

Actual behaviour

Extension fails to install in WSL and returns the error message:
EACCES: permission denied, rename '/home/moses/.vscode-server/extensions/.ms-python.python-2020.4.76186' -> '/home/moses/.vscode-server/extensions/ms-python.python-2020.4.76186'

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Navigate to the extension's page in the extensions marketplace.
  2. Click the Install in WSL: Ubuntu button.

Logs

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

No Output


Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

  ERR Error while installing 'ms-python.python' extension in the remote server. EACCES: permission denied, rename '/home/moses/.vscode-server/extensions/.ms-python.python-2020.4.76186' -> '/home/moses/.vscode-server/extensions/ms-python.python-2020.4.76186'
log.ts:185  INFO Trying to download 'ms-python.python' extension locally and install
log.ts:197   ERR Error: EACCES: permission denied, rename '/home/moses/.vscode-server/extensions/.ms-python.python-2020.4.76186' -> '/home/moses/.vscode-server/extensions/ms-python.python-2020.4.76186'
notificationsAlerts.ts:38 Error: EACCES: permission denied, rename '/home/moses/.vscode-server/extensions/.ms-python.python-2020.4.76186' -> '/home/moses/.vscode-server/extensions/ms-python.python-2020.4.76186'

Activity

  1. added
    triage-neededNeeds assignment to the proper sub-team
    bugIssue identified by VS Code Team member as probable bug
    on May 6, 2020
  2. moseswynn commented on May 6, 2020

    @moseswynn
    Author

    I was able to get the extension installed through this workaround:

    1. Download the .vsix file from the marketplace.
    2. Open vscode and connect to remote-wsl.
    3. From the command pallette select `Extensions: Install from VSIX...
    4. Browse to the downloaded .vsix file and select it.
    5. Wait for the install to complete and then restart vscode.
  3. ghost removed
    triage-neededNeeds assignment to the proper sub-team
    on May 6, 2020
  4. locked as resolved and limited conversation to collaborators on May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions