SpenceKonde / megaTinyCore

Arduino core for the tinyAVR 0/1/2-series - Ones's digit 2,4,5,7 (pincount, 8,14,20,24), tens digit 0, 1, or 2 (featureset), preceded by flash in kb. Library maintainers: porting help available!
Other
551 stars 142 forks source link

Unable to install MegaTinyCore on Ubuntu Linux, Arduino IDE 1.8.19 #905

Closed makeriot2020 closed 1 year ago

makeriot2020 commented 1 year ago

Hi Guys, Having issues installing this core on ArduinoIDE 1.8.19 via board Manager. Get the following errors: ( see below ) I have manually navigated to the github pages mentioned, and the files seem to be gone? Any idea what happened, or where to get them? or alternative options to install ?

Error downloading https://github.com/SpenceKonde/DxCore/raw/gh-pages/avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-pc-linux-gnu.tar.bz2 java.lang.RuntimeException: java.lang.Exception: Error downloading https://github.com/SpenceKonde/DxCore/raw/gh-pages/avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-pc-linux-gnu.tar.bz2 at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:179) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.Exception: Error downloading https://github.com/SpenceKonde/DxCore/raw/gh-pages/avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-pc-linux-gnu.tar.bz2 at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:145) at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:79) at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:56) at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:108) at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:172) ... 1 more Caused by: java.io.IOException: Received invalid http status code from server: 503 at cc.arduino.utils.network.FileDownloader.openConnectionAndFillTheFile(FileDownloader.java:222) at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:176) at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:125) at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:143) ... 5 more Error downloading https://github.com/SpenceKonde/DxCore/raw/gh-pages/avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-pc-linux-gnu.tar.bz2 java.lang.RuntimeException: java.lang.Exception: Error downloading https://github.com/SpenceKonde/DxCore/raw/gh-pages/avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-pc-linux-gnu.tar.bz2 at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:179) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.Exception: Error downloading https://github.com/SpenceKonde/DxCore/raw/gh-pages/avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-pc-linux-gnu.tar.bz2 at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:145) at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:79) at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:56) at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:108) at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:172) ... 1 more Caused by: java.io.IOException: Received invalid http status code from server: 503 at cc.arduino.utils.network.FileDownloader.openConnectionAndFillTheFile(FileDownloader.java:222) at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:176) at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:125) at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:143) ... 5 more Error downloading https://SpenceKonde.github.io/DxCore/DxCore-1.5.3.tar.bz2 java.lang.RuntimeException: java.lang.Exception: Error downloading https://SpenceKonde.github.io/DxCore/DxCore-1.5.3.tar.bz2

SpenceKonde commented 1 year ago

I cannot reproduce this issue. That error indicates that you are unable to download the file specified. This could be due to restricted or absent internet access, or because of a temporary server outage (as it's hosted on github this is beyond my control).

The file downloads fine for me now, so I've got to kick this one back to you. Are you able to download that file, (the URL in the last two lines, as well as https://github.com/SpenceKonde/DxCore/raw/gh-pages/avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-pc-linux-gnu.tar.bz2 which is required to support these part) on the computer that has this issue? I can downloaded it on my system, so if you still can't, there is a connectivity issue on the system in question. If you can but the IDE can't, it's suggestive of some sort of overzealous security configuration on your system. Either way, I think it's a problem that only you can solve, because it's a system level problem, unrelated to the core itself.

If it works when you try installing it now, it was a transient server issue at Github which they have resolved (this is supported by the fact that both files are hosted on github - in the case of the toolchain package, that is the only platform that I host on github, since 95+% of traffic to it is from within Github for the automated testing through github actions.

The rest of the platforms I host on AWS S3, because I don't want to push my luck with external traffic to github - the files are like 30-40mb each. But AWS charges me per GB of outbound traffic. Not very much, but not nothing. Enough that the CI testing, which downloads the file hundreds of times during the automated testing (don't blame me, this is the compile-examples action written by an Arduino person, I have too much trouble with the YAML format that I struggle to make simple changes to customize it for the core, I would need considerable knowledge that I don't have in order to have in order to reduce this from the number of times itcurrently downloads it, to the number of times it needs to (which is about 1/8th of that number - but STILL too many for me to be able to use AWS hosting for it). What's surprising to me is that when I go to my friends with formal CS training and jobs at big name tech companies, and say "do you know yaml and github actions?" and then they say "Oh yeah, I use them every day at work! I'm an expert! what's up?", then I ask my question, their facial expression turns from confidence to confusion and fear, and then they come up with an excuse and scurry away. And I haven't been able to find any resources that describe even the basic syntax of yaml, much less how to apply that to github actions.

makeriot2020 commented 1 year ago

Hi, Thank you for the prompt response. I have tried again just now. and no luck... The system does not have any funny security issues... Just tried other cores as a test, and that works...

From what I can tell, the files in the DXCore/Raw folder on your github, is not visible to me, for some reason....

I got similar:

Error downloading https://github.com/SpenceKonde/DxCore/raw/gh-pages/avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-pc-linux-gnu.tar.bz2 https://github.com/SpenceKonde/DxCore/raw/gh-pages/avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-pc-linux-gnu.tar.bz2java.lang.RuntimeException: java.lang.Exception: Error downloading https://github.com/SpenceKonde/DxCore/raw/gh-pages/avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-pc-linux-gnu.tar.bz2 https://github.com/SpenceKonde/DxCore/raw/gh-pages/avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-pc-linux-gnu.tar.bz2 at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:179) at java.lang.Thread.run(Thread.java:748)Caused by: java.lang.Exception: Error downloading https://github.com/SpenceKonde/DxCore/raw/gh-pages/avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-pc-linux-gnu.tar.bz2 https://github.com/SpenceKonde/DxCore/raw/gh-pages/avr-gcc-7.3.0-atmel3.6.1-azduino6-x86_64-pc-linux-gnu.tar.bz2 at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:145) at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:79) at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:56) at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:108) at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:172) ... 1 moreCaused by: java.io.IOException: Received invalid http status code from server: 503 at cc.arduino.utils.network.FileDownloader.openConnectionAndFillTheFile(FileDownloader.java:222) at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:176) at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:125) at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:143) ... 5 more

Trying with wget, i got this: [image: image.png] where it just hangs...

I understand that it is NOT your issue, was only hoping for a few pointers... It could be that it is because I am in Thailand, and they like to mess around with internet. ( like the big firewall in China, is a big role model to them...)

Let me try with a VPN and see what happens

Thank you :)

On Sun, Jan 29, 2023 at 2:15 PM Spence Konde (aka Dr. Azzy) < @.***> wrote:

I cannot reproduce this issue. That error indicates that you are unable to download the file specified. This could be due to restricted or absent internet access, or because of a temporary server outage (as it's hosted on github this is beyond my control).

The file downloads fine for me now, so I've got to kick this one back to you. Are you able to download that file, (the URL in the last two lines) on the computer that has this issue? I can downloaded it on my system, so if you still can't, there is a connectivity issue on the system in question. If you can but the IDE can't, it's suggestive of some sort of overzealous security configuration on your system. Either way, I think it's a problem that only you can solve, because it's a system level problem, unrelated to the core itself.

If it works when you try installing it now, it was a transient server issue at Github which they have resolved.

— Reply to this email directly, view it on GitHub https://github.com/SpenceKonde/megaTinyCore/issues/905#issuecomment-1407584015, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQLJU5CARRKDUE6C4K5GRATWUYKJTANCNFSM6AAAAAAUKCFSMA . You are receiving this because you were assigned.Message ID: @.***>

-- โจฮันเนส เฮอร์มานัส รีดลลิงไฮนสื / Jean Redelinghuys โทร (+66) (0) 0829130280 E-mail: @.***

SpenceKonde commented 1 year ago

Of all the weird things that could be getting blocked o_O Like, I can see why, oh, github issues/discussions, or github in general might be blocked. But large binaries hosted on github? bizzare!

makeriot2020 commented 1 year ago

Yeah, never been blocked before ... but then Thais are Thais :) someone might believe there is porn on Github of all places, and block it just in case :( anyway, at least I got your Core installed now, so now can start testing these new chips :)

Thanks again

Regards

On Sun, Jan 29, 2023 at 11:19 PM Spence Konde (aka Dr. Azzy) < @.***> wrote:

Of all the weird things that could be getting blocked o_O Like, I can see why, oh, github issues/discussions, or github in general might be blocked. But large binaries hosted on github? bizzare!

— Reply to this email directly, view it on GitHub https://github.com/SpenceKonde/megaTinyCore/issues/905#issuecomment-1407706769, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQLJU5EBEM7AAL6L3HCQWK3WU2KBJANCNFSM6AAAAAAUKCFSMA . You are receiving this because you were assigned.Message ID: @.***>

-- โจฮันเนส เฮอร์มานัส รีดลลิงไฮนสื / Jean Redelinghuys โทร (+66) (0) 0829130280 E-mail: @.***

SpenceKonde commented 1 year ago

Great, glad you got it installed, in spite of the poorly executed obstruction from on high. Since this issue is solved, closing issue.

makeriot2020 commented 1 year ago

Hi, Perfect :) Thanks for your efforts, greatly appreciated... :) Oh, by the way, what is the current status of your HV UPDI programmer? Saw that on the forums, looks interesting... would not mind getting one of those, please send a link to somewhere I can buy one, or a set of Gerber files and a BOM :)

Regards

On Mon, Jan 30, 2023 at 9:45 PM Spence Konde (aka Dr. Azzy) < @.***> wrote:

Great, glad you got it installed, in spite of the poorly executed obstruction from on high. Since this issue is solved, closing issue.

— Reply to this email directly, view it on GitHub https://github.com/SpenceKonde/megaTinyCore/issues/905#issuecomment-1408748818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQLJU5FJSZHIXCICG5OVABDWU7H2LANCNFSM6AAAAAAUKCFSMA . You are receiving this because you were assigned.Message ID: @.***>

-- โจฮันเนส เฮอร์มานัส รีดลลิงไฮนสื / Jean Redelinghuys โทร (+66) (0) 0829130280 E-mail: @.***