"moving extracted archive to destination dir: ... Access is denied"

I also have an another error
Error: 2 UNKNOWN: installing tool arduino:avrdude@6.3.0-arduino17: moving extracted archive to destination dir: rename C:\Users\user\AppData\Local\Arduino15\tmp\package-639606991\avrdude C:\Users\user\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17: Access is denied.

I got this error while trying to install required packages for Arduino Uno

This sort of error could be caused by your antivirus software. Try TEMPORARILY disabling your antivirus for a single compilation 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 whitelist the appropriate file, folder, or process 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 whitelist the Arduino software.

Okay will try ..thanks

One more thing I want to tell, that is I downloaded it yerstday but at that time problem was serious
.... I was getting same error as swcompiting but it was serial discovery @1.2.1.... when opened it today,,, it was all okay with just the errors I told you now,, I don't know how
I had tried yerstday several times but could not heal it

The IDE does need access to the Internet on the first startup in order to download this serial-discovery tool. So maybe there was a temporary network outage that is now resolved.

Thanks pert, I disabled my antivirus and quickly downloaded the required packages for Uno and enabled the antivirus again
Both are functioning without interfering the work of other

You're welcome. I'm glad to hear it's working now. Enjoy!
Per

I get 2 errors as soon as the IDE Starts. Can anyone help?

PS C:\Users\shubh\AppData\Local\Programs\Arduino IDE> & '.\Arduino IDE.exe'
PS C:\Users\shubh\AppData\Local\Programs\Arduino IDE>
PS C:\Users\shubh\AppData\Local\Programs\Arduino IDE> & '.\Arduino IDE.exe'
PS C:\Users\shubh\AppData\Local\Programs\Arduino IDE>
Starting backend process. PID: 20964
Configuring to accept webviews on '^.+\.webview\..+$' hostname.
root WARN please install @theia/electron@1.12.0-next.1a1d7afc as a runtime dependency
root INFO Configuration directory URI: 'file:///c%3A/Users/shubh/.theia'
root INFO Theia app listening on http://localhost:56280.
root WARN The local plugin referenced by local-dir:/c%3A/Users/shubh/.arduinoIDE/plugins does not exist.
root WARN The local plugin referenced by local-dir:/c%3A/Users/shubh/.arduinoIDE/extensions does not exist.
root WARN The local plugin referenced by local-dir:C:\Users\shubh\.arduinoProIDE\plugins does not exist.
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "cortex-debug" to a VS Code extension "cortex-debug@0.3.10" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-arduino-tools" to a VS Code extension "vscode-arduino-tools@0.0.1-beta.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-cpp" to a VS Code extension "cpp@1.52.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json" to a VS Code extension "json@1.46.1" with engines:
root INFO PluginTheiaDirectoryHandler: accepting plugin with path
root INFO Resolved "vscode-builtin-json-language-features" to a VS Code extension "json-language-features@1.46.1" with engines:
root INFO Deploying backend plugin "cortex-debug@0.3.10" from "C:\Users\shubh\AppData\Local\Programs\Arduino IDE\resources\app\plugins\cortex-debug\extension\dist\extension"
root INFO Deploying backend plugin "vscode-arduino-tools@0.0.1-beta.1" from "C:\Users\shubh\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-arduino-tools\extension\dist\bundle"
root INFO Deploying backend plugin "cpp@1.52.1" from "C:\Users\shubh\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-builtin-cpp\extension"
root INFO Deploying backend plugin "json@1.46.1" from "C:\Users\shubh\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-builtin-json\extension"
root INFO Deploying backend plugin "json-language-features@1.46.1" from "C:\Users\shubh\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain"
root INFO Deploy plugins list took: 85.5 ms
root WARN Backend ConfigServiceImpl.onStart is slow, took: 182.0 ms
daemon INFO Starting daemon from C:\Users\shubh\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\arduino-ide-extension\build\arduino-cli.exe...
daemon INFO Using config file: c:\Users\shubh\.arduinoIDE\arduino-cli.yaml
daemon INFO arduino-cli.exe version 0.18.3
daemon INFO Setting up Prometheus metrics on :9090/metrics
daemon INFO Starting daemon on TCP address 127.0.0.1:50051
daemon INFO Daemon is now listening on 127.0.0.1:50051...
daemon INFO Daemon is running.
daemon INFO Checking signature [index: c:\Users\shubh\AppData\Local\Arduino15\package_index.json, signaturefile: c:\Users\shubh\AppData\Local\Arduino15\package_index.json.sig, trusted: true]
daemon INFO Checking signature [error: opening signature file: open c:\Users\shubh\AppData\Local\Arduino15\package_esp8266com_index.json.sig: The system cannot find the file specified., index: c:\Users\shubh\AppData\Local\Arduino15\package_esp8266com_index.json, signaturefile: c:\Users\shubh\AppData\Local\Arduino15\package_esp8266com_index.json.sig]
daemon INFO Loading hardware from: c:\Users\shubh\AppData\Local\Arduino15\packages
daemon INFO Loading package builtin from: C:\Users\shubh\AppData\Local\Arduino15\packages\builtin
daemon INFO Checking existence of 'tools' path: C:\Users\shubh\AppData\Local\Arduino15\packages\builtin\tools
daemon INFO Loading tools from dir: C:\Users\shubh\AppData\Local\Arduino15\packages\builtin\tools
daemon INFO Loading package esp8266 from: C:\Users\shubh\AppData\Local\Arduino15\packages\esp8266\hardware
root INFO Git askpass helper is listening on http://127.0.0.1:56299.
daemon INFO Loaded platform [platform: {ID:"esp8266:esp8266",Installed:"2.7.4",Latest:"3.0.0",Name:"esp8266"}]
daemon INFO Checking existence of 'tools' path: C:\Users\shubh\AppData\Local\Arduino15\packages\esp8266\tools
daemon INFO Loading tools from dir: C:\Users\shubh\AppData\Local\Arduino15\packages\esp8266\tools
daemon INFO Loaded tool [tool: Version: 2.5.0-4-fe5bb56 Systems: [OS: aarch64-linux-gnu, OS: arm-linux-gnueabihf, OS: i686-pc-linux-gnu, OS: i686-pc-linux-gnu, OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: x86_64-mingw32]]
daemon INFO Loaded tool [tool: Version: 2.5.0-4-b40a506 Systems: [OS: aarch64-linux-gnu, OS: arm-linux-gnueabihf, OS: i686-pc-linux-gnu, OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: x86_64-mingw32]]
daemon INFO Loaded tool [tool: Version: 3.7.2-post1 Systems: [OS: x86_64-mingw32, OS: i686-mingw32, OS: aarch64-linux-gnu, OS: arm-linux-gnueabihf, OS: i686-pc-linux-gnu, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu]]
daemon INFO Loaded tool [tool: Version: 2.5.0-4-b40a506 Systems: [OS: aarch64-linux-gnu, OS: arm-linux-gnueabihf, OS: i686-pc-linux-gnu, OS: i686-mingw32, OS: x86_64-apple-darwin, OS: x86_64-pc-linux-gnu, OS: x86_64-mingw32]]
daemon INFO Adding libraries dir [dir: c:\Users\shubh\Documents\Arduino\libraries, location: user]
daemon INFO Adding libraries dir [dir: C:\Users\shubh\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries, location: platform]
root WARN Frontend CommonFrontendContribution.configure is slow, took: 465.8 ms
root WARN Failed to resolve module: @types/body-parser
root WARN Failed to resolve module: @types/cookie
root WARN Failed to resolve module: @types/express
root WARN Failed to resolve module: @types/fs-extra
root WARN Failed to resolve module: @types/lodash.debounce
root WARN Failed to resolve module: @types/lodash.throttle
root WARN Failed to resolve module: @types/react
root WARN Failed to resolve module: @types/react-dom
root WARN Failed to resolve module: @types/react-virtualized
root WARN Failed to resolve module: @types/route-parser
root WARN Failed to resolve module: @types/safer-buffer
root WARN Failed to resolve module: @types/ws
root WARN Failed to resolve module: @types/yargs
root WARN Failed to resolve module: @theia/monaco
root WARN Failed to resolve module: @theia/editor
root WARN Failed to resolve module: @types/rimraf
root WARN Failed to resolve module: @types/tar-fs
root WARN Failed to resolve module: @types/uuid
root WARN Failed to resolve module: @theia/navigator
root WARN Failed to resolve module: @types/p-queue
root WARN Failed to resolve module: @theia/preferences
root WARN Failed to resolve module: @theia/electron
root WARN Failed to resolve module: @theia/keymaps
root WARN Failed to resolve module: @theia/messages
root WARN Failed to resolve module: @types/diff
root WARN Failed to resolve module: @types/dompurify
root WARN Failed to resolve module: @types/mime
root WARN Failed to resolve module: @types/request
root WARN Failed to resolve module: @types/dateformat
root WARN Failed to resolve module: @types/deepmerge
root WARN Failed to resolve module: @types/glob
root WARN Failed to resolve module: @types/google-protobuf
root WARN Failed to resolve module: @types/js-yaml
root WARN Failed to resolve module: @types/ncp
root WARN Failed to resolve module: @types/ps-tree
root WARN Failed to resolve module: @types/react-select
root WARN Failed to resolve module: @types/react-tabs
root WARN Failed to resolve module: @types/sinon
root WARN Failed to resolve module: @types/temp
root WARN Failed to resolve module: @types/which
root WARN Failed to resolve module: js-yaml
root WARN Failed to resolve module: temp
root INFO Using Git [2.31.1.windows.1] from the PATH. (C:\Program Files\Git\cmd\git.exe)
daemon INFO Installing tool [tool: Version: 5.8-arduino11 Systems: [OS: i686-pc-linux-gnu, OS: x86_64-pc-linux-gnu, OS: i686-mingw32, OS: x86_64-apple-darwin, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu]]
daemon WARN Cannot install tool [tool: Version: 5.8-arduino11 Systems: [OS: i686-pc-linux-gnu, OS: x86_64-pc-linux-gnu, OS: i686-mingw32, OS: x86_64-apple-darwin, OS: arm-linux-gnueabihf, OS: aarch64-linux-gnu], error: moving extracted archive to destination dir: rename c:\Users\shubh\AppData\Local\Arduino15\tmp\package-296732239\ctags-5.8-arduino11 c:\Users\shubh\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11: Access is denied.]
root ERROR Could not create client for gRPC.
root ERROR Request searchBoards failed with error: 2 UNKNOWN: installing builtin:ctags@5.8-arduino11 tool: installing tool builtin:ctags@5.8-arduino11: moving extracted archive to destination dir: rename c:\Users\shubh\AppData\Local\Arduino15\tmp\package-296732239\ctags-5.8-arduino11 c:\Users\shubh\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11: Access is denied.
root ERROR Uncaught Exception:
root ERROR Error: 2 UNKNOWN: installing builtin:ctags@5.8-arduino11 tool: installing tool builtin:ctags@5.8-arduino11: moving extracted archive to destination dir: rename c:\Users\shubh\AppData\Local\Arduino15\tmp\package-296732239\ctags-5.8-arduino11 c:\Users\shubh\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11: Access is denied.
    at Object.callErrorFromStatus (C:\Users\shubh\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\call.js:31:26)
    at Object.onReceiveStatus (C:\Users\shubh\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\client.js:327:49)
    at Object.onReceiveStatus (C:\Users\shubh\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\client-interceptors.js:299:181)
    at C:\Users\shubh\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\@grpc\grpc-js\build\src\call-stream.js:145:78
    at processTicksAndRejections (internal/process/task_queues.js:76:11)
root ERROR Request createNewSketch failed with error: 2 UNKNOWN: installing builtin:ctags@5.8-arduino11 tool: installing tool builtin:ctags@5.8-arduino11: moving extracted archive to destination dir: rename c:\Users\shubh\AppData\Local\Arduino15\tmp\package-296732239\ctags-5.8-arduino11 c:\Users\shubh\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11: Access is denied.
root FATAL Failed to determine the sketch directory: Error: Request createNewSketch failed with message: 2 UNKNOWN: installing builtin:ctags@5.8-arduino11 tool: installing tool builtin:ctags@5.8-arduino11: moving extracted archive to destination dir: rename c:\Users\shubh\AppData\Local\Arduino15\tmp\package-296732239\ctags-5.8-arduino11 c:\Users\shubh\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11: Access is denied.
root WARN Frontend EditorNavigationContribution.onStart is slow, took: 602.1 ms
root ERROR Request installed failed with error: 2 UNKNOWN: installing builtin:ctags@5.8-arduino11 tool: installing tool builtin:ctags@5.8-arduino11: moving extracted archive to destination dir: rename c:\Users\shubh\AppData\Local\Arduino15\tmp\package-296732239\ctags-5.8-arduino11 c:\Users\shubh\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11: Access is denied.
root ERROR Request list failed with error: 2 UNKNOWN: installing builtin:ctags@5.8-arduino11 tool: installing tool builtin:ctags@5.8-arduino11: moving extracted archive to destination dir: rename c:\Users\shubh\AppData\Local\Arduino15\tmp\package-296732239\ctags-5.8-arduino11 c:\Users\shubh\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11: Access is denied.
root ERROR Request searchBoards failed with error: 2 UNKNOWN: installing builtin:ctags@5.8-arduino11 tool: installing tool builtin:ctags@5.8-arduino11: moving extracted archive to destination dir: rename c:\Users\shubh\AppData\Local\Arduino15\tmp\package-296732239\ctags-5.8-arduino11 c:\Users\shubh\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11: Access is denied.
root INFO Changed application state from 'init' to 'started_contributions'.
root INFO Changed application state from 'started_contributions' to 'attached_shell'.
root INFO >>> Restoring the layout state...
root INFO [f99d6d26-4521-48f6-afd8-b33ba6de1a3e] Sync of 5 plugins took: 413.0 ms
root INFO <<< The layout has been successfully restored.
root INFO [hosted-plugin: 13344] PLUGIN_HOST(13344) starting instance
root ERROR Request loadSketch failed with error: 2 UNKNOWN: installing builtin:ctags@5.8-arduino11 tool: installing tool builtin:ctags@5.8-arduino11: moving extracted archive to destination dir: rename c:\Users\shubh\AppData\Local\Arduino15\tmp\package-296732239\ctags-5.8-arduino11 c:\Users\shubh\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11: Access is denied.
root INFO Changed application state from 'attached_shell' to 'initialized_layout'.
root INFO [f99d6d26-4521-48f6-afd8-b33ba6de1a3e][marus25.cortex-debug]: Loaded contributions.
root INFO [f99d6d26-4521-48f6-afd8-b33ba6de1a3e][arduino.vscode-arduino-tools]: Loaded contributions.
root INFO [f99d6d26-4521-48f6-afd8-b33ba6de1a3e][vscode.cpp]: Loaded contributions.
root INFO [f99d6d26-4521-48f6-afd8-b33ba6de1a3e][vscode.json]: Loaded contributions.
root INFO [f99d6d26-4521-48f6-afd8-b33ba6de1a3e][vscode.json-language-features]: Loaded contributions.
root INFO [f99d6d26-4521-48f6-afd8-b33ba6de1a3e] Load contributions of 5 plugins took: 44.2 ms
root WARN 'cpp' language is remapped from 'source.cpp.embedded.macro' to 'source.cpp' scope
root WARN a registered grammar configuration for 'cpp' language is overridden
root ERROR Request search failed with error: 2 UNKNOWN: installing builtin:ctags@5.8-arduino11 tool: installing tool builtin:ctags@5.8-arduino11: moving extracted archive to destination dir: rename c:\Users\shubh\AppData\Local\Arduino15\tmp\package-296732239\ctags-5.8-arduino11 c:\Users\shubh\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11: Access is denied.
root ERROR Request search failed with error: 2 UNKNOWN: installing builtin:ctags@5.8-arduino11 tool: installing tool builtin:ctags@5.8-arduino11: moving extracted archive to destination dir: rename c:\Users\shubh\AppData\Local\Arduino15\tmp\package-296732239\ctags-5.8-arduino11 c:\Users\shubh\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11: Access is denied.
root ERROR Error: Request 'loadSketch' failed
    at Proxy.<anonymous> (file:///C:/Users/shubh/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/bundle.js:64108:33)
    at ArduinoFrontendContribution.<anonymous> (file:///C:/Users/shubh/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/55.bundle.js:3431:65)
    at step (file:///C:/Users/shubh/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/55.bundle.js:3022:23)
    at Object.next (file:///C:/Users/shubh/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/55.bundle.js:3003:53)
    at file:///C:/Users/shubh/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/55.bundle.js:2997:71
    at new Promise (<anonymous>)
    at push../node_modules/arduino-ide-extension/lib/browser/arduino-frontend-contribution.js.__awaiter (file:///C:/Users/shubh/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/55.bundle.js:2993:12)
    at ArduinoFrontendContribution.push../node_modules/arduino-ide-extension/lib/browser/arduino-frontend-contribution.js.ArduinoFrontendContribution.openSketchFiles (file:///C:/Users/shubh/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/55.bundle.js:3423:16)
    at ArduinoFrontendContribution.<anonymous> (file:///C:/Users/shubh/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/55.bundle.js:3382:26)
    at step (file:///C:/Users/shubh/AppData/Local/Programs/Arduino%20IDE/resources/app/lib/55.bundle.js:3022:23)
root INFO [hosted-plugin: 13344] PLUGIN_HOST(13344): PluginManagerExtImpl/init()
root INFO [hosted-plugin: 13344] PLUGIN_HOST(13344): initializing(cortex-debug@0.3.10 with C:\Users\shubh\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node/plugin-vscode-init.js)
root INFO [hosted-plugin: 13344] Debugger contribution has been registered: cortex-debug
root INFO [hosted-plugin: 13344] PLUGIN_HOST(13344): initializing(vscode-arduino-tools@0.0.1-beta.1 with C:\Users\shubh\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node/plugin-vscode-init.js)
root INFO [hosted-plugin: 13344] PLUGIN_HOST(13344): initializing(cpp@1.52.1 with C:\Users\shubh\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node/plugin-vscode-init.js)
root INFO [hosted-plugin: 13344] PLUGIN_HOST(13344): initializing(json@1.46.1 with C:\Users\shubh\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node/plugin-vscode-init.js)
PLUGIN_HOST(13344): initializing(json-language-features@1.46.1 with C:\Users\shubh\AppData\Local\Programs\Arduino IDE\resources\app\node_modules\@theia\plugin-ext-vscode\lib\node/plugin-vscode-init.js)
root INFO [hosted-plugin: 13344] PLUGIN_HOST(13344): PluginManagerExtImpl/loadPlugin(C:\Users\shubh\AppData\Local\Programs\Arduino IDE\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\jsonMain)
root INFO [f99d6d26-4521-48f6-afd8-b33ba6de1a3e][marus25.cortex-debug]: Started plugin.
root INFO [f99d6d26-4521-48f6-afd8-b33ba6de1a3e][arduino.vscode-arduino-tools]: Started plugin.
root INFO [f99d6d26-4521-48f6-afd8-b33ba6de1a3e][vscode.cpp]: Started plugin.
root INFO [f99d6d26-4521-48f6-afd8-b33ba6de1a3e][vscode.json]: Started plugin.
root INFO [f99d6d26-4521-48f6-afd8-b33ba6de1a3e][vscode.json-language-features]: Started plugin.
root INFO [f99d6d26-4521-48f6-afd8-b33ba6de1a3e] Start of 5 plugins took: 545.8 ms
root INFO Changed application state from 'initialized_layout' to 'ready'.

Hi @shubham9727. Thanks for giving the Arduino IDE 2.x beta a try!

This sort of error could be caused by your antivirus software. Try TEMPORARILY disabling your antivirus for a single compilation 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.

Thank you so much! :grimacing:
It worked perfectly.

You're welcome. I'm glad to hear it's working now. Enjoy!
Per

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.