-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
And another Library Manager and Board Manager issue with "package_index.json" #8474
Comments
It looks like a duplicate of #7948. Did you install the Arduino IDE via a command like:
|
Ah, I just noticed you're using Windows 7, so probably not. |
Correct - Windows 7, Although I have noticed that people have the same kind of issues whether Win or Linux etc. |
@dsiwi can you reach https://downloads.arduino.cc/libraries/library_index.json from a browser without any error? And which version of the IDE are you running? Since we bundle the Java jre we don't use system-wide certificate authorities; an old version of the IDE could fail to verify all SSL certificates released by authorities which were unknown at compialtion time (eg. Let's Encrypt) |
Yes, can reach all three json files mentioned via a browser (sorry, should have mentioned that in the original post). |
All software (Windows and Arduino) are up to date. That is the latest release v1.8.8 installed using the windows exe installer. |
Yes, I can reach all three json’s mentioned (sorry, should have included that before). |
I have got it working (kind-off) by copying all three areas (program files, libraries, and the Arduino15 folder) from the working laptop onto this computer. At least I can work with that, but the original error still occurs in that when I open the Board Manager or Library Manager, there is that error at the bottom of the window that comes in red saying that there was an error open the json file. But at east the libraries and boards I need are there. |
I'm literally having same issue. |
I never did get this working properly and reading the json files. So as an experiment I got an old drive, installed a fresh copy of Win7 on it, set up Arduino etc again and lo and behold - works fine. So either it is some obtuse setting etc in the Windows system or in one of the many other compilers and IDEs screwing everything else up. |
@dsiwi we provide a .exe that installs both the start menu integration + the .ino open on click, plus we also provide a Windows Store installer and a zip file for any other need, so I wouldn't say we are not Windows friendly 🙂 |
I solved the problem now, |
I found out that Arduino 1.8.9 installs it's own JRE with OUTDATED / MISSING CERTS I had to go to https://downloads.arduino.cc/packages/package_index.json and then download all the certificates. Arduino installs it's own jre in C:\Program Files (x86)\Arduino\java\ and that cacerts file needs to be updated! Kind of a shame that the currently shipping version has a jre with missing certs needed to download the board packages. |
You can also try directing the jvm to use the Windows Certificate Store instead of the ancient cacerts file that comes with java 1.8. This may also help people behind a Cisco Umbrella filter. |
Also having the same issue with Arduino 1.8.9 on a Mac |
plasma-vision's solution of editing arduino.l4j.ini solved the problem for me. |
|
The same issue with Arduino 1.8.9 on a Mac(with java version 1.12) , and have added three keystores in the MAC system cacerts, but still can not resolve this issue. I am not sure whether Arduino 1.8.9 is using Mac system java? Or it is a bug for Arduino? |
Same issue for me (win10 x64) over a corporate proxy, @plasma-vision 's work around gets it working for me too. |
I am having the same problem when trying to build a flatpak for arduino 1.8.10 flathub/cc.arduino.arduinoide#10, clearly a ca-cert issue. |
I want to add that I am experiencing the same errors as the original post, but I am using arduino ARM v1.8.11 on a Raspberry Pi 3 with the latest Rasbian. As noted in previous posts, the 'java/security/cacerts' file bundled is out of date, however it still contains the valid root certificate that is being presented from *.arduino.cc. I added debugging to the JAVA_OPTIONS (-Djavax.net.debug=ssl) and was able to trace that the actual error happening is that during the SSL handshake, the certificate chain is presented, but no match if found in the cacerts truststore. This is very unusual as a manual dump of the cacerts truststore shows an exact Root certificate match (COMODO ECC Certificatation Authority) down the the fingerprint, hashes, and digital signature. I also tested out the beta version of Arduino 1.9.0, which does not have this problem and works perfectly (as far as downloading the library or board manager package list). Additionally, arduino ARM v1.8.10 also works fine. Even copying the cacerts file from either 1.9.0 or 1.8.10 into 1.8.11 does not correct the problem. To me this indicates there is something else wrong in v1.8.11 with how the certificate signatures are being compared. For anyone else in the same situation of using Arduino IDE on Rasbian, my suggestion would be to skip v1.8.11 and either stay at v1.8.10 or try out the beta v1.9.0 |
Thanks @MattCosturos and @twling for your valuable input and to @plasma-vision for your elegant solution, as I also had exactly the same issue, which is now fixed. |
I totaly agree with >GeNextAppLabs< :-) |
I had this issue, due to connecting through Cisco Umbrella. @plasma-vision 's answer seemed spot on, but I'm on a mac. On a mac, the Arduino app stores the parameters equivalent to the Windows .ini file in a plist:
You'll see each parameter wrapped in
Afterward, I was able to use the library manager after restarting the Arduino app. |
@domenickp Thanks for answering this for the Mac users. I knew there had to be a way. |
After a year's absence on other things, I have come back to doing some embedded work again. Mainly because we are in Covid lockdown. |
Hi, i try version "install" and "zip" but, got the problem. If i try to go on board manager, i cant do nothing before crash with
I try many thing, remove my bitdefender first, next i try to remove arduino15 and lunch again (if i try to lunch before deleting arduino15, arduino not lunch...) I try to put :
nothing work. Anyone can help me? |
We had a problem on our package_index.json that caused the error and prevented the IDE to start. Windows:
Mac:
Linux:
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! |
On starting Library Manager and Board Manager, I immediately get the attached Error Log.
No libraries or boards are listed except the installed defaults.
I have tried all of the following links in Preferences/Additional Board URLs:
I have also:
Note: I have a variety of environments (VS, Eclipse, JetBrains etc for various projects includig some Java development.
Now at a loss for where to go next, especially since it works OK on my old laptop and not my main machine. Both are Windows 7 and similar install configurations. Any and all help appreciated.
The text was updated successfully, but these errors were encountered: