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

Having issues with your DietPi installation or found a bug? Post it here.
gokhan
Posts: 15
Joined: Sun Jan 17, 2021 11:39 am

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

Post by gokhan »

It started with first "apt-get update" where the https sources (i.e. http://archive.raspberrypi.org/) did not respond. I tried to send bug report, did not work as the request was on 443.

I passed the 'update' part by changing the https://' in 'source.list' to http://

Now I am stuck at "Downloading current dietpi.txt" step, which is hosted in github (https://). No errors, whatsoever.

I have updated system time, tried to update certificates i.e but no luck.

Can anyone provide permanent solution, rather than a work around?

- DietPi version | v6.32.2 (MichaIng/master)
- Image creator | DietPi Core Team
- Pre-image | Raspbian Lite
- Hardware | RPi 4 Model B (armv7l) (ID=4)
- Kernel version | Linux DietPi 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l GNU/Linux
- Distro | buster (ID=5,RASPBIAN=1)

Image
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 »

Hi,

many thanks for your message. Do you have anything on your network that could block https access to the internet? Like a firewall, a proxy or a router?
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 »

No, nothing on router. Pure connection without proxy, vpn or even additional firewall. I am able reach those links from other devices in network.

I have tried both ethernet and wifi on Pi however same result.
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 »

Further, I can successfully curl and wget to https://www.google.com from the same device
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 »

what if you try to curl the file that is hanging?

BTW: try to copy/post the output from your terminal/ssh session instead of doing screen prints. thx
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 »

curl gets it.

Code: Select all

root@DietPi:~# curl https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt
# IMPORTANT:
# - This is intended for advanced users, unless you know what you are doing, do not edit this file. Please use the DietPi programs instead.
# - Do not remove uncommented lines, as the items are scraped by DietPi programs, on demand.

Thanks for the tip and prompt responses. Really appreciated.
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 »

and if you use wget. Does this work to download the file? Because that's what is done on the step your system stuck.
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 »

There it is! It hangs at wget

Code: Select all

root@DietPi:~# wget https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt
--2021-01-17 12:00:18--  https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.140.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.140.133|:443... connected.
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 »

I guess one of the following is working?

Code: Select all

wget http://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt
wget --no-check-certificate https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt
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 »

http request redirects to https and hangs in there

Code: Select all

root@DietPi:~# wget http://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt
--2021-01-17 12:20:12--  http://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.140.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.140.133|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt [following]
--2021-01-17 12:20:12--  https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.140.133|:443... connected.
no-check-certificate has no use either

Code: Select all

root@DietPi:~# wget --no-check-certificate https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt
--2021-01-17 12:20:33--  https://raw.githubusercontent.com/MichaIng/DietPi/master/dietpi.txt
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.140.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.140.133|:443... connected.
Post Reply