Skip to content

Library installation fails when sketchbook is under a redirected Windows Documents folder #1475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
gabest11 opened this issue Sep 21, 2022 · 1 comment
Open
3 tasks done
Labels
type: imperfection Perceived defect in any part of project

Comments

@gabest11
Copy link

gabest11 commented Sep 21, 2022

Describe the problem

I use the feature of Windows to redirect the common folders, including Documents, to a network share.

When I have my "Sketchbook location" preference set to a path under the redirected folder, Installation of libraries fails spuriously:

root ERROR Request install failed with error: 13 INTERNAL: Library install failed: moving extracted archive to destination dir: rename \\nas\users$\Gabest\Documents\Arduino\libraries\package-2423352759\ESP8266Audio-1.9.7 \\nas\users$\Gabest\Documents\Arduino\libraries\ESP8266Audio: Access is denied.

To reproduce

Reproduction instructions not provided.

Expected behavior

Arduino IDE has support for using redirected folders.

Arduino IDE version

Version: 2.0.0-nightly-20220921 Date: 2022-09-21T03:58:08.953Z CLI Version: 0.27.1 [a900cfb2]

Operating system

Windows

Operating system version

19042.2006

Additional context

If I try to open a sketch from a path under the redirected folder, it just loads the default empty project (#1797).

Related

Workaround

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Change the "Sketchbook location" preference to a path that is not under the redirected folder.
  3. Click the "OK" button.
    The "Preferences" dialog will close.

Keywords

  • "network drive"

  • "UNC path"

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details
@nightmare1942
Copy link

Hi @gabest11,

I had a similar issue for the library installation.
We discussed this on the arduino forum (https://forum.arduino.cc/t/error-13-library-install-failed-at-mkdir/1060822).
Maybe have a look there if the issue is the same and how to mitigate it.

Especially: Did you set the correct permission on both (share and ACL)?

@per1234 per1234 changed the title Broken file access to redirected Documents folder on Windows Library installation fails when sketchbook is under a redirected Windows Documents folder Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants