Cannot install toolchain-xtensa on any OS

Hi all,

First post here, been using PlatformIO for some time, but this one has me stumped.

I installed it on Ubuntu and tried to build for an ESP8266 board (actually, I tried two variants), and kept running into an apparent Cloudflare issue:-

Platform Manager: espressif8266@4.2.1 has been installed!

Tool Manager: Installing platformio/toolchain-xtensa @ ~2.100300.220621

Tool Manager: Error: Please read https://bit.ly/package-manager-ioerror

Tool Manager: Warning! Package Mirror: HTTPSConnectionPool(host='usc1.contabostorage.com', port=443): Max retries exceeded with url: /250040e607e8431abaff8727621872f9:pioregmirrorus/tools/2e/c0/8ad5caaacf8cb92ae04e8bcebe697857766b729fd0f88ee5c4bb97c0c6a9/toolchain-xtensa-windows_amd64-2.100300.220621.tar.gz (Caused by SSLError(SSLError(1, '[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:1006)')))

Tool Manager: Looking for another mirror...

Configuration process has been terminated!

I tried:-

  • Restart the IDE
  • Build using CLI tools
  • Remove the ~/.platformio/pyenv dir
  • Override my DNS settings
  • Tried following the link directly but got into an endless loop of permissions/cookie popups

Eventually I gave up and installed VSCode + PlatformIO on Windows… and ran into exactly the same issue!

Is this a brand new issue? Can I somehow specify how to use an older library?

Any help appreciated!

According to https://api.registry.platformio.org/v3/packages/platformio/tool/toolchain-xtensa the link for Linux x64, 2.100300.x version should be

Can you download that manually in your browser?

Are you on a network with active TLS / SSL interception / sniffing / termination?

Do you use a VPN or a proxy to access the internet?

A lot of instances of that error that I’ve seen is that someone is on a corporate network that spies on all encrypted TLS connections by exchanging the certificates or an aggressive local antivirus.

Thanks for the response!

Interesting, I tried the direct download on both Ubuntu and Windows machines and both gave SSL-related browser errors.

But on a Mac, on the same wifi AP, I could download just fine… Now Windows I can believe has some stupid AV software interfering, but Ubuntu? I have never installed any. And the fact it works on the Mac on the same local network is really odd.

Anyway, I can presumably now manually copy the tarball to the appropriate ~./platformio/packages/… locations on the Ubuntu machine.

Thanks for your help, maybe getting somewhere now…

OK, I’m not sure if anything has changed or this is how it was since yesterday, but I’ve discovered ignoring the repeated errors in the VSCode UI console slowly seems to find and install all the components. There seems to be slightly less error noise than last night but it’s still full of errors, but if I ignore them and let it run the tools get slowly installed!