Downloading and installing the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By gameover
#52558 I can't seem to install the esp8266 board in Arduino (versions 1.6.5, 1.6.8 or 1.6.10) due to broken links/downloads.

This url for the board manager doesn't appear to work:
http://arduino.esp8266.com/stable/package_esp8266com_index.json

However I did manage to trick the Arduino board manager by uploading a copy of the json file to my own server...

However then Arduino can't download osx-xtensa-lx106-elf-gb404fb9-2.tar.gz:

Code: Select allError downloading http://arduino.esp8266.com/osx-xtensa-lx106-elf-gb404fb9-2.tar.gz
java.lang.RuntimeException: java.lang.Exception: Error downloading http://arduino.esp8266.com/osx-xtensa-lx106-elf-gb404fb9-2.tar.gz
   at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$20(ContributionManagerUI.java:176)
   at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Error downloading http://arduino.esp8266.com/osx-xtensa-lx106-elf-gb404fb9-2.tar.gz
   at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:113)
   at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:67)
   at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:111)
   at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$20(ContributionManagerUI.java:173)
   ... 1 more
Caused by: java.io.IOException: Received invalid http status code from server: 500
   at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:194)
   at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
   at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:111)
   ... 4 more[/quote]


I get something pretty similar when trying to use git and python get.py (it reports a hash error but essentially it seems to be because the file can't be downloaded:

Code: Select allDownloading osx-xtensa-lx106-elf-gb404fb9-2.tar.gz
Done
Hash mismatch for dist/osx-xtensa-lx106-elf-gb404fb9-2.tar.gz, delete the file and try again
Traceback (most recent call last):
  File "get.py", line 116, in <module>
    get_tool(tool)
  File "get.py", line 83, in get_tool
    raise RuntimeError()
RuntimeError


Maybe there's a problem with the servers? Visiting http://arduino.esp8266.com/osx-xtensa-lx106-elf-gb404fb9-2.tar.gz directly yields several js errors:

Code: Select allReferenceError: constole is not defined
   at app.get.branch (/home/nodeuser/apps/download/index.js:23:5)
   at Layer.handle [as handle_request] (/home/nodeuser/apps/download/node_modules/express/lib/router/layer.js:95:5)
   at next (/home/nodeuser/apps/download/node_modules/express/lib/router/route.js:131:13)
   at Route.dispatch (/home/nodeuser/apps/download/node_modules/express/lib/router/route.js:112:3)
   at Layer.handle [as handle_request] (/home/nodeuser/apps/download/node_modules/express/lib/router/layer.js:95:5)
   at /home/nodeuser/apps/download/node_modules/express/lib/router/index.js:277:22
   at Function.process_params (/home/nodeuser/apps/download/node_modules/express/lib/router/index.js:330:12)
   at next (/home/nodeuser/apps/download/node_modules/express/lib/router/index.js:271:10)
   at logger (/home/nodeuser/apps/download/node_modules/morgan/index.js:144:5)
   at Layer.handle [as handle_request] (/home/nodeuser/apps/download/node_modules/express/lib/router/layer.js:95:5)