Trying to install IDE 2.1.1. The IDE itself is installed and runs but at least one library does not load.
The complete error message is:
"Could not install Arduino AVR platform: Error: 2 UNKNOWN: read tcp xx.xx.xx.xx:xxxx -> 104.18.12.241:80: wsarecv: An existing connection was forcibly closed by the remote host."
When I enter 104.18.12.241:80 in the browser, I get an error message from Cloudflare "Direct IP access not allowed"
This is from a corporate network. My company's IT department says they do not restrict access to that IP block.
What should I do?
TIA
I'm getting the same thing, but with different IP addess and port numbers, which is totally expected. I'm working remote through a corporate VPN as well.
Hey there,
I was about to say I also facing the same problem with me form last couples of days. How can I fix it? Need help regarding this.
I am also having this same error. I discovered these two threads about the issue, but was unable to resolve the issue after following steps recommended there;
I'm using an Arduino Uno R3, in IDE 2.1.2 on Windows 10.
I have the same issue trying to install Arduino UNO R4 Boards and other board platforms, I received my Arduino UNO R4, but I can't install the core in the Arduino IDE using the Boards Manager.
This is the error message I'm encountering:
Tool arduino:dfu-util@0.11.0-arduino5 already installed
Tool builtin:dfu-discovery@0.1.2 already installed
Downloading packages
arduino:openocd@0.11.0-arduino2
arduino:arm-none-eabi-gcc@7-2017q4
Failed to install platform: arduino:renesas_uno.
Error: 2 UNKNOWN: read tcp 192.168.1.184:2240->104.18.12.241:80: wsarecv: An existing connection was forcibly closed by the remote host.
I've attempted the following troubleshooting steps:
- Disabled the firewall
- Tried using different internet connections (work, home, etc.)
- Restarted my PC
- Reinstalled the Arduino IDE
- Tried using my friend's PCs
- Executed Arduino IDE as an administrator
- Tried Arduino IDE version 1.8xx
- Attempted to install an older version of the core
- Tried installing both yesterday and today
Could someone please assist me with resolving this problem?
I tried with a faster internet connection, and it worked. I think this issue might be a timeout error, but the timeout threshold seems to be too low. Not everybody has access to a fast internet connection, which doesn't align well with the spirit of 'Open Source,' in my opinion.
I'm new to this world. What can we do to increase the timeout threshold in the Arduino source code?
After struggling with this problem for a few hours, I found the solution. The avr package it downloads, or tries to download results in a corrupt archive file avr-gcc-7.3.0-atmel3.6.1-arduino7-i686-w64-mingw32.zip
In a browser go to this URL: https://downloads.arduino.cc/tools/avr-gcc-7.3.0-atmel3.6.1-arduino7-i686-w64-mingw32.zip
Save or move the file here (overwrite the corrupt one that is there):
C:\Users\username\AppData\Local\Arduino15\staging\packages (substitute your username for username)
- If you can't see the AppData folder while in File Explorer, Select the "View" tab and, make sure "Hidden Items" is checked.
Start the Arduino IDE and it should install automatically with no errors in the CLI. If you go to Tools -> Boards -> Boards Manager, you should see avr 1.8.6 installed.
I hope this helps someone that is running into this same problem.
Cheers.
- Edit 10/24/2023 added instructions for turning on hidden items.
@Benjamin269 Thank you for the post..
However, I've tried your instructions by downloading the file. It didn't help me in fixing the issue.
I've downloaded the file using your link, the file size of the extracted file is 550 kb. Inside the extracted folder, I can only see avr directory and 2 exe files within this directory structure
"C:\Users<path>\avr-gcc-7.3.0-atmel3.6.1-arduino7-i686-w64-mingw32\avr\libexec\gcc\avr\7.3.0" with the names as 'collect2.exe' and 'lto-wrapper.exe' files
I believe the URL to the zip file or the zip file itself got corrupted ?!!! Please let me know if there is a way to fix this issue.
Been watching this post for weeks now. Hoping that someone had found a working solution.
Our students are running into the same issue on Campus. Our IT networking people believe it has to do with the server URL that Arduino attempts to contact as I am told nothing is being blocked on our end.
When i posed this to Arduino support, they seemed unreceptive to investigating.
At this point, we may end up dropping the Arduino completely from our programs unless something is identified. This problem only began happening with our fall semester.
We use the UNO R3 board for a few courses, and the MEGA for a different course/program not currently being ran this fall. So far when students tried to install the latest software for the UNO R3, is where I was first advised by the instructor of this error.
Selecting an older core libarary 1.6.22 seemed to get through the problem. Choosing the latest (at this present time) version 1.8.6 resulted in 'connection dropped by remote host' error.
Now, weeks later, both library downloads fail with the same message.
would love to hear what others have learned with their experiences.
Maybe Firewall issue - arduino software detected as malware shines some light on the issue. Post #15 might have a solution.
More search results:
Search results for '#software:ide-2-x An existing connection was forcibly closed by the remote host' - Arduino Forum.
That's the problem. The file should be 51MB (51,289kb), but if you are having trouble downloading it with the IDE in the first place, you may have problems downloading the single file from arduino.
I have posted the file to dropbox, so please try to download it from there and then follow the instructions.
Once you click on the link, click the download button to download the entire zip. (Downward arrow next to the Login / Signup buttons)
Here are some other things of note that I have found:
- The people I have encountered are all on a corporate or University type LAN. Those LANs can have many convoluted firewall rules that foul things up. Sometimes just downloading stuff from home fixes the problem and I stop trying to get the network people to figure it out. (Note, your Windows firewall and LAN firewall are two different things).
- If you have any corrupt files in the staging/packages folder, it will continue to fail. Some people have tried (and failed) other previous versions, which also corrupted upon download. Remove any zips from this folder that you don't need or won't open cleanly by double-clicking on them in Win Explorer.
If you try this, let us know if it works or not so the community can learn.
What I've found out so far is that our University network blocks certain files that, according to virustotal.com, contain viruses. Virustotal gives a (presumably) false positive on the avr-gcc tools and thus dropping the connection (An existing connection was forcibly closed by the remote host.).
We tried to allow "Virus/Win32.WGeneric.dqjbov" in our firewalls. That seemed to work. But obviously this was only a test and no IT department in the world will ever agree with such a policy exception.
I tried the solution as explained here: Firewall issue - arduino software detected as malware - #20 by ledsyn but so far haven't had any success. Maybe you can try this on your end and see if this works for you?
btw the other proposed solution is to manually install the Arduino CLI and then use a terminal command to install the Arduino AVR Boards tools (which include avr-gcc). But this is far too technical for my students.
Thanks for this thread, which helped me install AVR files and install the platform. The issue clearly still exists 8 months after being first raised and with Arduino IDE2.3.0. I found that
- The issue occurs on slow internet, but not fast internet (I have a separate PC at work)
- The solution from Benjamin269 helped me find that I had a partially downloaded avr-gcc-7.3.0-atmel3.6.1-arduino7-i686-w64-mingw32.zip in the C:\Users*user*\AppData\Local\Arduino15\staging\packages directory, which the Arduino IDE v2.3.0 could not download due to a TCP timeout
- I found that I could hit the 'install' IDE button and after a few tries get a URL for a file that wasn't downloading
- In my case I needed to download avrdude-6.3.0-arduino17-i686-w64-mingw32.zip and avr-1.8.6.tar.bz2 as well as the file mentioned by Benjamin269 to fix the issue
- Although the Arduino IDE 2.3.0 could not download these files, firefox was able to do so (in a number of cases the download did fail part way though, but firefox allowed me to restart the download from the point of failure.)
- Having moved all 3 missing files into the C:\Users*user*\AppData\Local\Arduino15\staging\packages directory, the Arduino platform installed without error.
I conclude that the Arduino IDE v2.3.0 is not very good at downloading files over slow internet from arduino.cc. The issue is an interaction of at least 3 factors because
- Additional platforms I use (ATTiny, STM32, ESP8266 and ESP32 downloaded OK from within the IDE on slow internet, but these come from different servers.
- I could download the AVR platform using firefox with retries on slow internet
- I didn't have any issues on fast internet with IDE 2.2.0 downloading all platforms.
Thanks for all contributors to this thread who helped me surmount the issues!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.