Wget SSL errors : Unable to update DietPi Topic is solved

Having issues with your DietPi installation, or, found a bug? Post it here.
stum100

Re: Unable to update DietPi

Post by stum100 »

That'll be great, I appreciate your help with this.

I've been scratching my head for a while. Just to add though - I've tried rebooting my router, I've also tried with both an Ethernet and Wireless connection to the Rpi2; both with exactly the same results.

From what I can remember, the problem began when I decided to start with a clean install of the DietPi v94 image. I started with Jessie, thought that might be it, so tried Wheezy but that was the same.

I had been previously been using DietPi and it had been working great and was also updating correctly. From memory, I think I started using it around mid to end of September, I'm wondering whether the image I used would have been v94, or perhaps something earlier?

Is it possiblity that current DietPi users started from an earlier image (before v94), and perhaps that's why it's updating fine (as it was originally for me),

I know I'm plucking at thin air now, just a thought though...

Many thanks again.
Huffpuffin
Posts: 15
Joined: Thu Nov 26, 2015 6:59 pm

Re: Unable to update DietPi

Post by Huffpuffin »

Hi All

Another newbie here!

I am experiencing the exact same problem:

RPi2, with both Wheezy and Jessie. Have tried new images and SD cards. Have the same error messages as stum100.

Would be really grateful for any help. I have tried minibian, but much prefer DietPi.

Thanks in advance.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Unable to update DietPi

Post by Fourdee »

Huffpuffin wrote:Hi All

Another newbie here!

I am experiencing the exact same problem:

RPi2, with both Wheezy and Jessie. Have tried new images and SD cards. Have the same error messages as stum100.

Would be really grateful for any help. I have tried minibian, but much prefer DietPi.

Thanks in advance.
Hi Huffpuffin,

Thanks for the info.

I'll convert wget to curl throughout DietPi. This will resolve the SSL issues both of you are experiencing.
Git Ticket: https://github.com/Fourdee/DietPi/issues/125
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Huffpuffin
Posts: 15
Joined: Thu Nov 26, 2015 6:59 pm

Re: Wget SSL errors : Unable to update DietPi

Post by Huffpuffin »

Hi Dan

Your help is much appreciated.

When you manage to implement the change, will I need to download a fresh image or will update work automatically?

Thanks
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Wget SSL errors : Unable to update DietPi

Post by Fourdee »

Huffpuffin wrote:Hi Dan

Your help is much appreciated.

When you manage to implement the change, will I need to download a fresh image or will update work automatically?

Thanks
Hi Huffpufin,

A new image will be required. I'am creating new images for the v102 release at the moment. I'll let you guys know when they are available.

I still have to do further research on a fix for this issue, you can track it here: https://github.com/Fourdee/DietPi/issue ... -160417710
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Huffpuffin
Posts: 15
Joined: Thu Nov 26, 2015 6:59 pm

Re: Wget SSL errors : Unable to update DietPi

Post by Huffpuffin »

Thanks for the update. Will look out for it.

Many thanks again for your excellent service!!
stum100

Re: Wget SSL errors : Unable to update DietPi

Post by stum100 »

Hi,

I'd also like to thank you for your help with this. Out of interest, I see from the bug tracker that the issue is probably network related, but I'm curious to know what potentially may cause this?

Is this something to do with the certificates used on GitHub? Or something to do with my own internal network causing the problem?

Many thanks.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Wget SSL errors : Unable to update DietPi

Post by Fourdee »

stum100 wrote:Hi,

I'd also like to thank you for your help with this. Out of interest, I see from the bug tracker that the issue is probably network related, but I'm curious to know what potentially may cause this?

Is this something to do with the certificates used on GitHub? Or something to do with my own internal network causing the problem?

Many thanks.
I'am unsure what's causing the issue, if i'm honest.

I was able to replicate the error at another address. Both of us use Virgin Media fibre but mine is fine. The only difference between the two locations is the router. I use a TP-link archer, the other address was a netgear (forgot to take model numbers :().

It could be a github/dns issue as it seems none of the wget command line options (eg: force TLS/SSL) makes a difference.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Wget SSL errors : Unable to update DietPi

Post by Fourdee »

Hi guys, can any of you with this issue please try the following and reply with results:

Code: Select all

wget --retry-connrefused --no-check-certificate https://raw.githubusercontent.com/Fourdee/DietPi/testing/dietpi/server_version
cat server_version
And:

Code: Select all

curl -L https://github.com/Fourdee/DietPi/archive/testing.zip > test.zip;echo -e "Exitcode = $?";
rm test.zip
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
stum100

Re: Wget SSL errors : Unable to update DietPi

Post by stum100 »

Hi,

Just tried both, this is what I get:

Code: Select all

 ───────────────────────────────────────
 DietPi | 14:04 | Tue 01/12/15                               ───────────────────────────────────────
 V94 | Raspberry Pi 2 (1GB)                                  ───────────────────────────────────────

 Created by: Dan Knight
 DietPi Website: http://dietpi.net                           Donate and support DietPi: http://goo.gl/DCY1vq

 Commands:
 dietpi-config    = Feature rich system configuration tool.
 dietpi-software  = Select / Install optimized software.
 dietpi-uninstall = Remove DietPi Installed Software.
 dietpi-bugreport = Found an issue or bug? Let us know!
 htop             = Resource monitor.
 cpu              = Shows CPU information and stats.

root@NETSERV:~# wget --retry-connrefused --no-check-certificate https://raw.githubusercontent.com/Fourdee/DietPi/testing
root@NETSERV:~# wget --retry-connrefused --no-check-certificate https://raw.githubusercontent.com/Fourdee/DietPi/testing/dietpi/server_version                                      --2015-12-01 14:06:03--  https://raw.githubusercontent.com/Fourdee/DietPi/testing/dietpi/server_version                 Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 62.252.172.241
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|62.252.172.241|:443... connected.
GnuTLS: A TLS fatal alert has been received.
GnuTLS: received alert [0]: Close notify
Unable to establish SSL connection.
root@NETSERV:~# cat server_version
cat: server_version: No such file or directory
root@NETSERV:~#
root@NETSERV:~#
root@NETSERV:~# curl -L https://github.com/Fourdee/DietPi/archive/testing.zip > test.zip;echo -e "Exitcode = $?";
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--100   120    0   120    0     0    234      0 --:--:-- --:--:-- --:--:--   238
  0     0    0     0    0     0      0      0 --:--:-- --:--100  218k  100  218k    0     0   145k      0  0:00:01  0:00:01 --:--:--  266k
Exitcode = 0
root@NETSERV:~# rm test.zip
Post Reply