Hi @irfan24. You must have changed the proxy settings in the Arduino IDE preferences since the last time the IDE was in a functional state. There is a bug in Arduino IDE that causes it to get an invalid configuration if you set the preferences to cause Arduino IDE to access the Internet through a proxy and then later change the preferences back to "No proxy":
I'll provide instructions you can follow to fix the configuration:
Select File > Quit from the Arduino IDE menus if it is running.
Delete the file at the following path:
C:\Users\Ronan\.arduinoIDE\arduino-cli.yaml
Please be careful when deleting things from your computer. When in doubt, back up!
Start the Arduino IDE.
Arduino IDE should now start up fully and be functional as usual.
Note that the file you deleted is also used to store other IDE preferences. These will all have been reset to the default values. If you had customized either the "Sketchbook location"
or "Additional Boards Manager URLs" preferences, you'll need to select File > Preferences from the Arduino IDE menus and then set those preferences once again.
Please let me know if you have any questions or problems while following those instructions.
Thank you for the reply!. but still i am getting error as below
arduino:[email protected]
Failed to install platform: 'arduino:avr:1.8.6'.
Error: 2 UNKNOWN: read tcp 10.68.254.58:58805->104.18.32.201:80: wsarecv: An existing connection was forcibly closed by the remote host.
I need to resolve the issue at the earliest, please help me.
@Benjamin269 I've tried to click your link and move the file but the link just downloads an empty zip file. I can't extract anything from it and my machine says it's empty.
Any advice? I'm having the same issue where I get the following error message when IDE boots and tries to load the AVR boards, also get it when I do a manual download. I am able to download other boards without issue but this was just be trying and they're of no use as I don't have those physical boards, I only have a UNO SMD R3.
Ah ok, it worked with 7zip. I don't seem to have the same file path that you mention above though,
C:\Users*username* \AppData\Local\Arduino15\staging\packages (substitute your username for username )
I don't have Appdata under my username within C:\users, this is a company machine, could this be some kind of permissions issue?
C:\Users\<username>\AppData\Local\Arduino15\staging\packages is the location where the Arduino IDE Boards Manager downloads archive files before installing them to the final location under C:\Users\<username>\AppData\Local\Arduino15\packages. So you won't have such a folder if you never successfully downloaded anything via the Arduino IDE Boards Manager.
The files are persistently stored under the staging folder as a convenience so that Arduino IDE can reuse them instead of downloading fresh copies in case some future Boards Manager installation requires such files. They don't serve any purpose other than that and are not in any way essential.
If looking for it with your file manager or command line, note that the AppData folder is hidden by default. On Windows "File Explorer", you can make it visible by opening the "View" menu, then checking the box next to "☐ Hidden items".
I do this on all of my computers when I first set them up and didn't think about it when I wrote the instructions. I will go back and edit the original post to make it a bit more clear.
Also, opening the zip file is a good sanity check to make sure the file is not corrupt, but you don't need to unpack the file in order to use it. Just simply copy the zip file to the location and the IDE will handle it from there.
As far as your Windows zip handler not working, I have seen before where there was a problem with one of the MS Visual C++ runtime libraries needing to either be repaired or reinstalled and the problem was fixed. This user couldn't open any zip files, not just one in particular.
Thanks @Benjamin269@ptillisch for the help. Managed to get the folder into the directory you provided. Initial manual download of Arduino AVR boards looked to be working but then a few seconds in the same error occured.
Failed to install platform: 'Arduino AVR Boards:1.8.6'. 2 UNKNOWN: read tcp 10.169.164.75:62570->104.18.32.201:80: wsarecv: An existing connection was forcibly closed by the remote host.
I spoken to company IT and they have said there is nothing being blocked, they carried out a remote session and asked me to try whilst they monitored the traffic. They said nothing was being blocked so weren't sure why it was providing this error.
I've since started again from scratch and followed the instructions step by step. IDE doesn't auto install and I still get the same error message when I try a manual install of of AVR boards. Not sure if it relevant or helps but I am able to download version 1.6.21. The board doesn't work and I can't select a port but it does allow the download to go through.
So you copied the new zip file and overwrote the existing (corrupt) one? Starting the IDE should find and install this new zip file and not need to download anything.
Make sure Windows didn't add (1) or (2), etc. to the end of the filename, since you have several download attempts. If you leave the broken zip file there, I think the IDE will still try (and fail) to download a new copy.
Yes, removed all other downloaded files. Re-downloaded the file via the link, copied to the packages folder, overwrite the existing file. See screenshot of what's in my packages folder,
I'm curious, should the board be working with the 1.6.21 version of AVR boards downloaded? With this version downloaded and the board connected I still don't see any port, the port selection is greyed out. in device manager i see the connection on COM5 appear and disappear when i plug.unplug the usb cable. it doesn't bring up any name associated with the board, it just calls is
The download via the link provided is only coming in at 308kb! Unzipped it's only 744KB. I'm not sure why the folder size isn't like you're expecting. Any ideas?
I managed to get the AVR board to download today but I was on a call with my company IT when it worked. They gave me temporary access through the network so for me the issue looks to have been with company security or our vpn.