Skip to content
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

Error downloading http://downloads.arduino.cc/packages/package_index.json #5188

Closed
clivepengelly opened this issue Jul 31, 2016 · 58 comments
Closed
Labels
Component: Board/Lib Manager Boards Manager or Library Manager Type: Bug

Comments

@clivepengelly
Copy link

clivepengelly commented Jul 31, 2016

I have installed a fresh copy of the IDE but continue to get this error when opening the Boards Manager.

I have followed instructions on the forum to rectify the problem but nothing works.

I am running Windows 10.

I can access this URL from my browser.

I am able to install some of the boards that are listed in the Boards Manager, but most give errors when trying to install.

image

Error downloading http://downloads.arduino.cc/packages/package_index.json
java.lang.RuntimeException: java.lang.Exception: Error downloading http://downloads.arduino.cc/packages/package_index.json
    at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$0(ContributionManagerUI.java:151)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Error downloading http://downloads.arduino.cc/packages/package_index.json
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:113)
    at cc.arduino.contributions.packages.ContributionInstaller.download(ContributionInstaller.java:330)
    at cc.arduino.contributions.packages.ContributionInstaller.downloadIndexAndSignature(ContributionInstaller.java:305)
    at cc.arduino.contributions.packages.ContributionInstaller.updateIndex(ContributionInstaller.java:283)
    at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$0(ContributionManagerUI.java:147)
    ... 1 more
Caused by: java.net.SocketException: Address family not supported by protocol family: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:83)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
    at sun.net.www.http.HttpClient.New(HttpClient.java:308)
    at sun.net.www.http.HttpClient.New(HttpClient.java:326)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1148)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
    at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:170)
    at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:111)
    ... 5 more
@agdl
Copy link
Member

agdl commented Aug 1, 2016

Hi, If you open the preferences menu, you can navigate to the .Arduino15 folder clicking on the preferences path. Then open the folder staging/packages and try to delete all the archive you have there. Please let me know if the problem persist.

@agdl agdl added the Waiting for feedback More information must be provided before we can proceed label Aug 1, 2016
@clivepengelly
Copy link
Author

clivepengelly commented Aug 1, 2016

Hi.

Thanks for the reply.

Deleted the folder, same problem.

@agdl
Copy link
Member

agdl commented Aug 4, 2016

Can you please give a try to this?

http://stackoverflow.com/questions/16373906/address-family-not-supported-by-protocol-family-socketexception-on-a-specific/21383865#21383865

@clivepengelly
Copy link
Author

clivepengelly commented Aug 4, 2016

GENIUS!

This worked.

I am surprised that many more people do not have this problem. I do not have anything special in my environment.

This is what I had to do – nothing else:-

  1. Open command prompt (windows start button, type cmd in search)
  2. Click top left of command prompt, click properties, enable quick edit mode
  3. Copy: setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true
  4. Right click on command prompt, should paste
  5. Hit enter. That easy!

@cmaglie
Copy link
Member

cmaglie commented Aug 4, 2016

@clivepengelly
from the linked article it seems that the problem is caused by a spyware:

Try to check whether the spy program called "RelevantKnowledge" is installed. Its
uninstallation helped me to solve the problem.

You may probably want to check if you have this program installed too.

BTW happy that you solved it!

@cmaglie cmaglie closed this as completed Aug 4, 2016
@clivepengelly
Copy link
Author

clivepengelly commented Aug 4, 2016

I do have this relevant knowledge thing running. What is it and where does it come from?

I download a lot of development and test software.

@cmaglie
Copy link
Member

cmaglie commented Aug 4, 2016

It doesn't surely come from Arduino.
Probably you installed it bundled with some other software, without noticing.

From a quick search on google:
http://www.relevantknowledge.com/faq.aspx
http://www.shouldiremoveit.com/RelevantKnowledge-12964-program.aspx

@sachin1389
Copy link

sachin1389 commented Aug 19, 2016

Please help the problem still exist for me

I have done:

setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true

on command prompt. I am getting "Success: specified value was saved".

I also checked for the relevant knowledge spy.

I also tried Arduino 1.6.8.

I also deleted archives in arduino15 file.

I'm still getting the error:

 Error downloading http://downloads.arduino.cc/packages/package_index.json
java.lang.RuntimeException: java.lang.Exception: Error downloading http://downloads.arduino.cc/packages/package_index.json
    at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$19(ContributionManagerUI.java:151)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Error downloading http://downloads.arduino.cc/packages/package_index.json
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:113)
    at cc.arduino.contributions.packages.ContributionInstaller.download(ContributionInstaller.java:330)
    at cc.arduino.contributions.packages.ContributionInstaller.downloadIndexAndSignature(ContributionInstaller.java:305)
    at cc.arduino.contributions.packages.ContributionInstaller.updateIndex(ContributionInstaller.java:283)
    at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$19(ContributionManagerUI.java:147)
    ... 1 more
Caused by: java.net.SocketTimeoutException: Connect timed out
    at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:126)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:459)
    at java.net.Socket.connect(Socket.java:589)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
    at sun.net.www.http.HttpClient.New(HttpClient.java:308)
    at sun.net.www.http.HttpClient.New(HttpClient.java:326)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1148)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
    at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:170)
    at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:111)
    ... 5 more
 Error downloading http://downloads.arduino.cc/packages/package_index.json
java.lang.RuntimeException: java.lang.Exception: Error downloading http://downloads.arduino.cc/packages/package_index.json
    at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$19(ContributionManagerUI.java:151)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Error downloading http://downloads.arduino.cc/packages/package_index.json
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:113)
    at cc.arduino.contributions.packages.ContributionInstaller.download(ContributionInstaller.java:330)
    at cc.arduino.contributions.packages.ContributionInstaller.downloadIndexAndSignature(ContributionInstaller.java:305)
    at cc.arduino.contributions.packages.ContributionInstaller.updateIndex(ContributionInstaller.java:283)
    at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$19(ContributionManagerUI.java:147)
    ... 1 more
Caused by: java.net.SocketTimeoutException: Connect timed out
    at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:126)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:459)
    at java.net.Socket.connect(Socket.java:589)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
    at sun.net.www.http.HttpClient.New(HttpClient.java:308)
    at sun.net.www.http.HttpClient.New(HttpClient.java:326)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1148)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
    at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:170)
    at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:111)
    ... 5 more
 Error downloading http://downloads.arduino.cc/packages/package_index.json
java.lang.RuntimeException: java.lang.Exception: Error downloading http://downloads.arduino.cc/packages/package_index.json
    at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$19(ContributionManagerUI.java:151)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Error downloading http://downloads.arduino.cc/packages/package_index.json
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:113)
    at cc.arduino.contributions.packages.ContributionInstaller.download(ContributionInstaller.java:330)
    at cc.arduino.contributions.packages.ContributionInstaller.downloadIndexAndSignature(ContributionInstaller.java:305)
    at cc.arduino.contributions.packages.ContributionInstaller.updateIndex(ContributionInstaller.java:283)
    at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$19(ContributionManagerUI.java:147)
    ... 1 more
Caused by: java.net.SocketTimeoutException: Connect timed out
    at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:126)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:459)
    at java.net.Socket.connect(Socket.java:589)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
    at sun.net.www.http.HttpClient.New(HttpClient.java:308)
    at sun.net.www.http.HttpClient.New(HttpClient.java:326)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1148)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
    at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:170)
    at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:111)
    ... 5 more
 Error downloading http://downloads.arduino.cc/packages/package_index.json
java.lang.RuntimeException: java.lang.Exception: Error downloading http://downloads.arduino.cc/packages/package_index.json
    at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$19(ContributionManagerUI.java:151)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Error downloading http://downloads.arduino.cc/packages/package_index.json
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:113)
    at cc.arduino.contributions.packages.ContributionInstaller.download(ContributionInstaller.java:330)
    at cc.arduino.contributions.packages.ContributionInstaller.downloadIndexAndSignature(ContributionInstaller.java:305)
    at cc.arduino.contributions.packages.ContributionInstaller.updateIndex(ContributionInstaller.java:283)
    at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$19(ContributionManagerUI.java:147)
    ... 1 more
Caused by: java.net.SocketTimeoutException: Connect timed out
    at java.net.SocksSocketImpl.readSocksReply(SocksSocketImpl.java:126)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:459)
    at java.net.Socket.connect(Socket.java:589)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
    at sun.net.www.http.HttpClient.New(HttpClient.java:308)
    at sun.net.www.http.HttpClient.New(HttpClient.java:326)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1148)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
    at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:170)
    at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
    at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:111)
    ... 5 more

@sachin1389
Copy link

Hey Problem solved,I just tried remove as much software which was seeing to be unknown to me
and then deleted the arduino and reinstalled and then restarted my pc . now it is working fine.

@cmaglie cmaglie removed the Waiting for feedback More information must be provided before we can proceed label Oct 18, 2016
@adam4142
Copy link

adam4142 commented Nov 5, 2016

Its worked ...........
you r a GENIUS>............

@ArimoJak7
Copy link

thanks
it worked

@paulenuta
Copy link

paulenuta commented Feb 4, 2017

I had same error, but could not even manually open the http://downloads.arduino.cc/packages/package_index.json list.
I solve the problem be restarting PPOE connection to the ISP on the internet Router.

@TechnocratLabs
Copy link

it's a problem of Internet connectivity in PC or laptop.

@bigelite
Copy link

bigelite commented Jun 3, 2017

i have this problem too,
I have followed instructions on the forum to rectify the problem but nothing works.
I am running Windows 10.
I can access this URL from my browser.
I've opened the folder staging/packages and deleted all the archive that i had.
I've tried this one: setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true

but its still had an error. i don't know what to do!

@ShotgunBurger
Copy link

ShotgunBurger commented Jun 19, 2017

I had this issue - I am running Windows 10, Arduino IDE 1.8.3
I tried the CMD Prompt "setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true"
I tried a fresh install of the Arduino IDE
I tried resetting my PPPoE Connection via my modem to my ISP
I tried using WiFi, Ethernet and tethering to my cell phone's ISP via personal hotspot
None of these fixed the problem.

I fixed my issue by going to "ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15" and deleting the file "package_index.json.tmp"

Now it works fine.

@mrohner
Copy link

mrohner commented Jun 28, 2017

This setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true
results in an error:
ERROR: Invalid syntax. Default option is not allowed more than '2' time(s).
Type "SETX /?" for usage.

@jeanmoretto
Copy link

@ShotgunBurger perfect for me. I just deleted that file and "voilà".
It back to work.

@hamid1234567
Copy link

I could solved this issue by correcting java configuration and change the proxy seeting of java network to correct solution. try these step in windows
1- search configure java from start menu
2- In general tab open network setting and correct it (i changed it to direct connection - no proxy )
arduino work and download rapidly any things

@friesandacoke
Copy link

@ShotgunBurger That was what I needed. Perfect. Thanks!

To add, most will need to unhide hidden files and folders before they can see the appdata folders.

@sunnydevtale
Copy link

Hi,

I am also facing the same error while managing the Arduino libraries. I have tried all above solution but this didn't worked for me.

For me, getting this error due to internet connectivity. I have switch to another internet network and tried again and this Works..!.

Hopefully this issue will resolve for you also.

@MrJ6
Copy link

MrJ6 commented Oct 10, 2017

@ShotgunBurger , thanks man you are a life saver ^^

@sunnydevtale
Copy link

:) YW..!

@AlexSwensen
Copy link

I think it might be down today. Tried to access the URL from my phone and home connection. No dice.

@AlexSwensen
Copy link

And its back.

@tin345
Copy link

tin345 commented Nov 18, 2017

I fixed my issue by going to "ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15" and deleting the file "package_index.json.tmp"

This one worked for me also.... Thanks Much...

@per1234 per1234 added the Component: Board/Lib Manager Boards Manager or Library Manager label Feb 11, 2018
@SYEDMAQSOOD05
Copy link

SYEDMAQSOOD05 commented Feb 27, 2018

Error downloading https://github.com/esp8266/Arduino/releases/download/2.3.0/win32-xtensa-lx106-elf-gb404fb9-2.tar.gz
java.lang.RuntimeException: java.lang.Exception: Error downloading https://github.com/esp8266/Arduino/releases/download/2.3.0/win32-xtensa-lx106-elf-gb404fb9-2.tar.gz
	at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$1(ContributionManagerUI.java:176)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Exception: Error downloading https://github.com/esp8266/Arduino/releases/download/2.3.0/win32-xtensa-lx106-elf-gb404fb9-2.tar.gz
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:131)
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:69)
	at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:110)
	at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$1(ContributionManagerUI.java:173)
	... 1 more
Caused by: java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(SocketInputStream.java:210)
	at java.net.SocketInputStream.read(SocketInputStream.java:141)
	at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
	at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:593)
	at sun.security.ssl.InputRecord.read(InputRecord.java:532)
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:983)
	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:940)
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:105)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
	at sun.net.www.MeteredStream.read(MeteredStream.java:134)
	at java.io.FilterInputStream.read(FilterInputStream.java:133)
	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3375)
	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3368)
	at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:209)
	at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:129)
	... 4 more

error

@yokozawa766
Copy link

Just copy company's proxy setting to ArduinoIDE>preference>NetworkTab. It works. You can use library manager and board manager.

@maurodom
Copy link

maurodom commented Oct 8, 2018

I tried every fix here with no results.
Afterward I momentarely disabled my TinyWall firewall and then the "Error downloading http://downloads.arduino.cc/packages/package_index.json" disappeared.
All the boards I needed have been immediately downloaded.
Hope it helps.

@yokozawa766
Copy link

MR. maurodom,
I write the way to the picture ;
http://yokozawa766.car.coocan.jp/proxy.jpg

@zexalistic
Copy link

I had this issue - I am running Windows 10, Arduino IDE 1.8.3
I tried the CMD Prompt "setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true"
I tried a fresh install of the Arduino IDE
I tried resetting my PPPoE Connection via my modem to my ISP
I tried using WiFi, Ethernet and tethering to my cell phone's ISP via personal hotspot
None of these fixed the problem.

I fixed my issue by going to "ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15" and deleting the file "package_index.json.tmp"

Now it works fine.

Thank you very much!!!

@cooldew2007
Copy link

I had this issue - I am running Windows 10, Arduino IDE 1.8.3
I tried the CMD Prompt "setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true"
I tried a fresh install of the Arduino IDE
I tried resetting my PPPoE Connection via my modem to my ISP
I tried using WiFi, Ethernet and tethering to my cell phone's ISP via personal hotspot
None of these fixed the problem.

I fixed my issue by going to "ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15" and deleting the file "package_index.json.tmp"

Now it works fine.

This worked for me. Cheers

@DarkStar18
Copy link

DarkStar18 commented Nov 18, 2018

@clivepengelly Wow, open the Command and paste "setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true" WORK perfectly. Thank you so much for solving my problem. <3

@xuanbka1
Copy link

xuanbka1 commented Mar 6, 2019

I had this issue - I am running Windows 10, Arduino IDE 1.8.3
I tried the CMD Prompt "setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true"
I tried a fresh install of the Arduino IDE
I tried resetting my PPPoE Connection via my modem to my ISP
I tried using WiFi, Ethernet and tethering to my cell phone's ISP via personal hotspot
None of these fixed the problem.

I fixed my issue by going to "ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15" and deleting the file "package_index.json.tmp"

Now it works fine.

thanks !! so lady

@AnnaLobo
Copy link

I had this issue - I am running Windows 10, Arduino IDE 1.8.3
I tried the CMD Prompt "setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true"
I tried a fresh install of the Arduino IDE
I tried resetting my PPPoE Connection via my modem to my ISP
I tried using WiFi, Ethernet and tethering to my cell phone's ISP via personal hotspot
None of these fixed the problem.

I fixed my issue by going to "ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15" and deleting the file "package_index.json.tmp"

Now it works fine.

thaaaaanks the only thing that worked \o/

@amrithmmh
Copy link

I had this issue - I am running Windows 10, Arduino IDE 1.8.3
I tried the CMD Prompt "setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true"
I tried a fresh install of the Arduino IDE
I tried resetting my PPPoE Connection via my modem to my ISP
I tried using WiFi, Ethernet and tethering to my cell phone's ISP via personal hotspot
None of these fixed the problem.

I fixed my issue by going to "ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15" and deleting the file "package_index.json.tmp"

Now it works fine.

this worked for me

@NeMeSiS97
Copy link

I had this issue - I am running Windows 10, Arduino IDE 1.8.3
I tried the CMD Prompt "setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true"
I tried a fresh install of the Arduino IDE
I tried resetting my PPPoE Connection via my modem to my ISP
I tried using WiFi, Ethernet and tethering to my cell phone's ISP via personal hotspot
None of these fixed the problem.

I fixed my issue by going to "ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15" and deleting the file "package_index.json.tmp"

Now it works fine.

This is indeed the correct solution.
Thanks alot mate

@iofirag
Copy link

iofirag commented Jun 24, 2019

open arduino ide
File > Preferences

copy paste to the input box of (Additional boards manager urls):
https://arduino.esp8266.com/stable/package_esp8266com_index.json

click on arduino folder url link at the bottom. and leave it aside.

click ok in preferences screen.

open cmd and copy paste this:
"setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true"

open ide again, and wait a minute.
looking on the content folder from before, when something has changed,
wait some seconds to finish,
and then,
delete all from the folder except from the preferences.txt

open:
Tools > Board > Board Manager

see if the loader in the bottom finish working

@smtpsantiago
Copy link

They recommend deleting the file package_index.json that is stored in package_index.json or package_index.json.tmp

@JeffrySan
Copy link

I had this issue - I am running Windows 10, Arduino IDE 1.8.3
I tried the CMD Prompt "setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true"
I tried a fresh install of the Arduino IDE
I tried resetting my PPPoE Connection via my modem to my ISP
I tried using WiFi, Ethernet and tethering to my cell phone's ISP via personal hotspot
I tried by going to "ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15" and delete all of them and nothing happend
None of these fixed the problem.

but when i try to uninstall java and reinstall it and plus to configure java path on Advance System Settings, it's good (in condition i reinstall arduino, i delete file in arduino>file>preferences folder)

Goodluck guyss

@pvinod424
Copy link

It worked for me!! Try this definately
I fixed my issue by going to "ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15" and deleting the file "package_index.json.tmp"

@Ksol13
Copy link

Ksol13 commented Oct 9, 2019

I have the same problem.
But if i try to delete "package_index.json.tmp", a new file comes up again and again.
Whats my mistake?

@JeffrySan
Copy link

JeffrySan commented Oct 11, 2019 via email

@MiracelVip
Copy link

I have the same problem here... my computer is connected to an IPv6 DSLITE internet. I cant open the "https://downloads.arduino.cc/libraries/library_index.json.sig" it says "not found" the only posibility was to open a hotspot with my mobile and download the file

It seems like a ipv4 ipv6 problem

@yihanglim
Copy link

I have the same problem.
But if i try to delete "package_index.json.tmp", a new file comes up again and again.
Whats my mistake?

Same here, tried all method stated above, the file just keep comes up again when try to open board manager. Are you able to solve it yet?

@ptrooms
Copy link

ptrooms commented Jun 9, 2020

@yihanglim I've perhaps a related problem.
When I try to use Board_Manager, I run into an java.lang.RuntimeException:

java.lang.NullPointerException
java.lang.RuntimeException: java.lang.NullPointerException
        at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$1(ContributionManagerUI.java:150)
        at java.lang.Thread.run(Thread.java:748)

Note: this BM action updates file(s) from "http://downloads.arduino.cc/packages/package_index.json"
After this, BM exception, Arduino cannot be restarted as long the "package_index.json" exists.
Removing this re-iterates the problem as soon as I (need to) update board manager.

Note: I run Linux, the problem initiated on my old Arduino 1.8.5 (which was fine) and now persists with the latest 1.8.12. The same happens on a cleanly installed machine. Hence, something seems to be wrong with "package_index.json".

@KTibow
Copy link

KTibow commented Jun 9, 2020

You could try deleting all files that seem related to package_index.json, not just package_index.json.tmp.

@ptrooms
Copy link

ptrooms commented Jun 9, 2020

@KTibow : same result. Clearing the .Arduino15 directory will refill it with newly downloaded files as soon when I try to use BoardManager.

Further testing, show that (my problem) is related to the signature file "package_index.json.sig", as soon as I remove that file and/or change the original contents of "package_index.json" (which causes an unmatched signature), I can restart Arduino with the per BoardManager newly updated json file.
Problem remains of course that whenever I try to use BoardManager, this file is renewed and again re-iterate the start of the problem (java null-exception at/with BoardManager).

I also compared "package_index.json" with te preserved old one (dated january 2020) and found that new file now of contains the following extra packages: arduino-beta, Arduino megaAVR Boards 1.8.6 (in addition tot 1.8.5), Arduino nRF528x Boards (Mbed OS), avr-gcc 7.3.0-atmel3.6.1-arduino7 (in addition to 7.3.0-atmel3.6.1-arduino5.

I see #10333 reporting this (exception) and continue to contribute there.

@yihanglim
Copy link

@ptrooms after spending whole night of troubleshooting, I couldn't find a solution. This version used to work fine for a few days before and suddenly this issue occurred out of nothing. So I uninstalled 1.8.12 and installed the hourly builds (last upated 3 June 2020 22:13:17 GMT) . So far everything runs alright.

@ptrooms
Copy link

ptrooms commented Jun 10, 2020

@yihanglim , yes metoo. Currently I'm using the nightly version also. See the other threads for more details. Time for a good nap of sleep.

@facchinm
Copy link
Member

We had a problem on our package_index.json that caused the error and prevented the IDE to start.
Now the package_index has been fixed, but to recover a working installation you must delete once again the package_index.json with the cache folder and restart the IDE as usual.

Windows:

  • remove file C:\Users\YourUsername\AppData\Local\Arduino15\package_index.json
  • remove folder C:\Users\YourUsername\AppData\Local\Arduino15\cache

Mac:

  • remove file /Users/YourUsername/Library/Arduino15/package_index.json
  • remove folder /Users/YourUsername/Library/Arduino15/cache

Linux:

  • remove file /home/YourUsername/.arduino15/package_index.json
  • remove folder /home/YourUsername/.arduino15/cache

Please note that the problem that prevents the IDE to start has already been fixed and it's ready for the next release, that's the reason why the Nightly/Beta Builds are not affected, and also the reason why we did not detect this problem earlier, sorry about that!

@dharmik768
Copy link

Tried everything and at last, @ShotgunBurger fixed my bug thanks man.

@dammyjay
Copy link

I fixed my issue by going to "ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15" and deleting the file "package_index.json.tmp"

This one worked for me also.... Thanks Much...

so reliefed

@bunya017
Copy link

If everything here doesn't work for you, download the package manually and place it in C:\Users\< USER >\AppData\Local\Arduino15\staging\packages. Then go back to the IDE and install again.

@behnamsaberi
Copy link

I had this issue - I am running Windows 10, Arduino IDE 1.8.3 I tried the CMD Prompt "setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true" I tried a fresh install of the Arduino IDE I tried resetting my PPPoE Connection via my modem to my ISP I tried using WiFi, Ethernet and tethering to my cell phone's ISP via personal hotspot None of these fixed the problem.

I fixed my issue by going to "ThisPC>(C:)>Users>xxxx>AppData>Local>Arduino15" and deleting the file "package_index.json.tmp"

Now it works fine.

hi , it worked for me too
thanksssss

@arduino arduino locked as resolved and limited conversation to collaborators Jan 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: Board/Lib Manager Boards Manager or Library Manager Type: Bug
Projects
None yet
Development

No branches or pull requests