Go Down

Topic: arduino 1.6.7 error downloading (Read 4615 times) previous topic - next topic

rsatw

Hi

 I using windows 8 .1 my arduino  board is a mega 2560 .

 I keep getting errors the drivers will not install this is my first error
Loading configuration...
Initializing packages...
Preparing boards...
Starting...
Using proxy DIRECT
Using proxy DIRECT
Using proxy DIRECT
Using proxy DIRECT
Using proxy DIRECT
 Error downloading http://downloads.arduino.cc/libraries/library_index.json
java.lang.RuntimeException: java.lang.Exception: Error downloading http://downlo
ads.arduino.cc/libraries/library_index.json
        at cc.arduino.contributions.libraries.ui.LibraryManagerUI.lambda$onUpdat
ePressed$13(LibraryManagerUI.java:205)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Error downloading http://downloads.arduino.cc/li
braries/library_index.json
        at cc.arduino.contributions.DownloadableContributionsDownloader.download
(DownloadableContributionsDownloader.java:113)
        at cc.arduino.contributions.JsonDownloader.download(JsonDownloader.java:
49)
        at cc.arduino.contributions.GZippedJsonDownloader.download(GZippedJsonDo
wnloader.java:59)
        at cc.arduino.contributions.libraries.LibraryInstaller.updateIndex(Libra
ryInstaller.java:66)
        at cc.arduino.contributions.libraries.ui.LibraryManagerUI.lambda$onUpdat
ePressed$13(LibraryManagerUI.java:202)
        ... 1 more
Caused by: java.net.SocketException: Permission denied: connect
        at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
        at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketI
mpl.java:85)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.ja
va:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocket
Impl.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(HttpURLC
onnection.java:1169)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConn
ection.java:1148)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:999)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:933)
        at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.j
ava:165)
        at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:
123)
        at cc.arduino.contributions.DownloadableContributionsDownloader.download
(DownloadableContributionsDownloader.java:111)
        ... 5 more


When I run the arduino-.debug  in command prompt this is the error.

  Loading configuration...
Initializing packages...
Preparing boards...
Starting...
Using proxy DIRECT
Using proxy DIRECT
Using proxy DIRECT
Using proxy DIRECT
Using proxy DIRECT
 Error downloading http://downloads.arduino.cc/libraries/library_index.json
java.lang.RuntimeException: java.lang.Exception: Error downloading http://downlo
ads.arduino.cc/libraries/library_index.json
        at cc.arduino.contributions.libraries.ui.LibraryManagerUI.lambda$onUpdat
ePressed$13(LibraryManagerUI.java:205)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Error downloading http://downloads.arduino.cc/li
braries/library_index.json
        at cc.arduino.contributions.DownloadableContributionsDownloader.download
(DownloadableContributionsDownloader.java:113)
        at cc.arduino.contributions.JsonDownloader.download(JsonDownloader.java:
49)
        at cc.arduino.contributions.GZippedJsonDownloader.download(GZippedJsonDo
wnloader.java:59)
        at cc.arduino.contributions.libraries.LibraryInstaller.updateIndex(Libra
ryInstaller.java:66)
        at cc.arduino.contributions.libraries.ui.LibraryManagerUI.lambda$onUpdat
ePressed$13(LibraryManagerUI.java:202)
        ... 1 more
Caused by: java.net.SocketException: Permission denied: connect
        at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
        at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketI
mpl.java:85)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.ja
va:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocket
Impl.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(HttpURLC
onnection.java:1169)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConn
ection.java:1148)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:999)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:933)
        at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.j
ava:165)
        at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:
123)
        at cc.arduino.contributions.DownloadableContributionsDownloader.download
(DownloadableContributionsDownloader.java:111)
       
     ... 5 more



Any solutions for this ?

Thanks RSA


jimnelson

I'm using 1.6.12 on a RasPi and I'm also getting this error.  Is there a resolution for it?

pert

The Arduino IDE needs access to the internet to download the Library Manager index file. It may be that your firewall or other network security settings are preventing this. Can you whitelist the Arduino IDE?

jimnelson


johnwasser

"Caused by: java.net.SocketException: Permission denied: connect"

Looks like a permission problem.  Try using 'sudo' to run the program with root permissions.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp

ballscrewbob

Using "Run as Administrator" might also help seeing as you are using Windows.

You can google it if you wish or see if you already have the option enabled.
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

pert

Quote
Try using 'sudo' to run the program with root permissions.
They're using Windows, which doesn't have sudo.

jimnelson

In my case, it a RasPi.



 Error downloading http://downloads.arduino.cc/libraries/library_index.json
java.lang.RuntimeException: java.lang.Exception: Error downloading http://downloads.arduino.cc/libraries/library_index.json
   at cc.arduino.contributions.libraries.ui.LibraryManagerUI.lambda$onUpdatePressed$0(LibraryManagerUI.java:212)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Error downloading http://downloads.arduino.cc/libraries/library_index.json
   at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:113)
   at cc.arduino.contributions.JsonDownloader.download(JsonDownloader.java:49)
   at cc.arduino.contributions.GZippedJsonDownloader.download(GZippedJsonDownloader.java:63)
   at cc.arduino.contributions.libraries.LibraryInstaller.updateIndex(LibraryInstaller.java:66)
   at cc.arduino.contributions.libraries.ui.LibraryManagerUI.lambda$onUpdatePressed$0(LibraryManagerUI.java:209)
   ... 1 more
Caused by: java.net.SocketTimeoutException
   at java.net.SocksSocketImpl.remainingMillis(SocksSocketImpl.java:111)
   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

pert

Oops, my bad. I was looking at rsatw's post.

pert

Did you try the things we suggested:

Whitelist the Arduino IDE application in your firewall software.

Run the program with root permissions.

jimnelson

Running it sudo didn't change anything. 

What do I whitelist?  Arduino isn't listed.

jimnelson

Probably not a firewall issue.

Borrowed a windows machine, installed the latest widows version, success.

Also installed 64 bit linux version on a Linux laptop.  Success.

So it seems it's an issue with the RasPi or the Arm release.

Go Up