-
-
Notifications
You must be signed in to change notification settings - Fork 398
core install
fails with "Access is denied" error
#723
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
Comments
I have just tried this with a newly built binary from master, and had the same problem.
|
I just checked the directory C:\Users\DAVITAYL\AppData\Local\Arduino15 and its properties dialog shows the 'Read-only' checkbox checked. I cleared it, and said apply that to all subfolders etc. I tried to install the AVR code again and got the same error. The 'Read-only' attr is set again. I cleared it again and reopened the props dialog without doing anything else and it is still set. The security tab says my user has full permissions. Anyway, I can do things in that dir tree in the shell:
|
I just tried it in a Windows sandbox instance and it worked fine. Must be my env, but I don't know what. Could installing the Windows Store version of the IDE cause this?
|
Rebooted, removed the AppData\local\Arduino15 dir entirely and tried to start from scratch with core update-index, core install arduino:avr. Same error :( Can I tell it to install stuff somewhere else? |
user\AppData\Local\Arduino15\packages\builtin\tools\serial-discovery\1.0.0: Access is denied. I have the same problem. Is there a solution |
@ywueoei |
Are you sure? I would think this only applies to driver installs, the package and tools themselves are just unpacked into your user directory, which should be writable by the current user without extra permissions, right? I wonder if there is maybe a virus scanner that blocks access? Or maybe the Windows 10 store version has additional sandboxing going on that restricts access to files even in the user's directory? |
@matthijskooijman |
I'm still seeing this issue in 0.18.3 even in an elevated command prompt (Windows)
|
Hi @sastorer-ms. I would first try restarting your computer. Some process might have the target path locked, although you could try to find it and end it, restarting is an easier way to make sure to start fresh. If that doesn't help, this sort of error is might be caused by interference from the antivirus software doing an on-access scan. You can check that by TEMPORARILY disabling your antivirus just long enough to run the installation to see if the problem goes away, then turn the antivirus back on. If the problem doesn't occur with the antivirus off you will need to adjust the settings of your antivirus to put the appropriate file, folder, or process on the "allow list" so it doesn't interfere with compilation. Please be cautious about working without an antivirus. This is only about temporarily disabling it for a quick test. If you don't feel comfortable doing that, fine. You can try going straight to configuring the antivirus to not interfere with the Arduino software. |
I've done what @per1234 suggested and it worked. PS: I'm using Kaspersky Total Security as my antivirus. |
core install
fails with "Access is denied" error
Had the same problem with arduino-cli.exe alpha Version: 0.18.3 Commit: d710b64 Date: 2021-05-14T12:36:58Z under windows arduino-cli lib install xxx : Access is denied My destination dir was in my dropbox and the solution was to temporarily install to C:\ then move them manually. In git for windows bash:
|
Hi @per1234 |
This problem seems related to antivirus/custom environment. Closing because unrelated to the CLI itself. If the problem persist with the latest release, open a new issue please. 😄 |
Bug Report
Current behavior
I am trying to install the AVR core to see if uploads work with that, to help debug my Feather problem.
The AVR core installation fails.
Again, I can compile and upload a sketch from within the IDE.
Environment
arduino-cli Version: 0.10.0 Commit: ec5c3ed
Win10.
The text was updated successfully, but these errors were encountered: