First boot - Not able to fetch data with HTTPS/443

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: First boot - Not able to fetch data with HTTPS/443

Post by Joulinar »

hmm you could try to reinstall wget as well as ca-certificates

Code: Select all

apt update
apt --reinstall install ca-certificates wget
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
gokhan
Posts: 15
Joined: Sun Jan 17, 2021 11:39 am

Re: First boot - Not able to fetch data with HTTPS/443

Post by gokhan »

Reinstalled wget and certificates. However unfortunately same state. Hanging.
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: First boot - Not able to fetch data with HTTPS/443

Post by Joulinar »

@MichaIng
Any ideas why wget could be hanging on Https request?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
gokhan
Posts: 15
Joined: Sun Jan 17, 2021 11:39 am

Re: First boot - Not able to fetch data with HTTPS/443

Post by gokhan »

Connected to my phone's hotspot (different network/cellular), incase of MTU or any other packet related issue however it did not work either.

Wget hangs at https requests.
gokhan
Posts: 15
Joined: Sun Jan 17, 2021 11:39 am

Re: First boot - Not able to fetch data with HTTPS/443

Post by gokhan »

wow!

I tried same in raspberry OS setup, it did not go through. Then installed OpenVPN and gave it a go; voila!

I do not know whether it is ISP blocking https wget or the routing table somehow conflicted.
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: First boot - Not able to fetch data with HTTPS/443

Post by Joulinar »

that would be bad if your ISP is blocking such thinks. And you have the same issue on your mobile phone.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
gokhan
Posts: 15
Joined: Sun Jan 17, 2021 11:39 am

Re: First boot - Not able to fetch data with HTTPS/443

Post by gokhan »

Apparently it is not ISP. I have tried it on another hotspot with VPN on, did not work again.

It is most likely a route configuration issue. But why do I have it in two different OS (dietpi 32 and 64bit, raspberry OS)?

So my to-do list:

- Have a look at wget spec and see if there are hints in there
- Join wget mailing group and raise a ticket/bug
- Install a fresh ubuntu release on raspberry and check wget on https
- Install OpenVPN during DietPi first-boot to bypass this issue
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: First boot - Not able to fetch data with HTTPS/443

Post by Joulinar »

Just to avoid any confusion. DietPi is not an onw OS. It's a set of scripts installed on a base image. If you are running a Raspberry Pi device, base image used is Raspberry OS. Means, DietPi is a Raspberry OS with reduced amount of packaged installed and some configuration script on top. Therefore it should not make a difference if you are using DietPi or Raspberry OS.

Most probably it's your geo location, because the SBC did not decide on the routing within the internet. That's done by the network devices inside the internet. AS well a VPN (which locate you somewhere else on the globe) is overcoming the situation.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3023
Joined: Sat Nov 18, 2017 6:21 pm

Re: First boot - Not able to fetch data with HTTPS/443

Post by MichaIng »

Strange case indeed. Would be interesting to try and compare verbose connections details between curl and wget:

Code: Select all

wget -v --spider https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt
curl -IL https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt
E.g. our images ship with IPv6 enabled, but IPv4 preferred via wgetrc config. For curl, such is not possible, so curl would connect via IPv6 while wget would do via IPv4 (which can be seen). So would be interesting if the following succeeds:

Code: Select all

wget -v --spider -6 https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt
Btw, if -I/--spider makes a difference (it's HEAD requests then), skip it, it just avoids that the whole file content is printed to console ;).
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: First boot - Not able to fetch data with HTTPS/443

Post by Joulinar »

good point regarding IPv6. did not consider it as DNS check passt, which usually indicate an issue on IPv6 if it would fail :)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply