FlyingDrMike
Posts: 18
Joined: Thu Sep 07, 2017 5:21 pm

wget GnuTLS error - Unable to establish SSL connection

Wed Sep 13, 2017 3:27 pm

I am trying to set up autostart for Node Red and am following their advice from https://nodered.org/docs/hardware/raspberrypi

I am getting a GnuTLS error - Unable to establish SSL connection when I execute the wget command:

Code: Select all

pi@MyIoT:~ $ sudo wget https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/nodered.service -O /lib/systemd/system/nodered.service
--2017-09-13 13:56:28--  https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/nodered.service
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.
pi@MyIoT:~ $
I have tried with http - same outcome, and adding --no-check-certificate also same outcome. I can see the files when I use my PC, both using Chrome and Explorer. Have also waited an hour or two and retried. Date and time are correct.

Am running jessie with Node Red and npm updates. and mosquitto MQTT server.

Could I create blank files and paste the contents? Does not seem the right approach!

Ideas much appreciated.

Mike

FlyingDrMike
Posts: 18
Joined: Thu Sep 07, 2017 5:21 pm

Re: wget GnuTLS error - Unable to establish SSL connection

Thu Sep 14, 2017 9:14 am

I overcame this problem by copying the files via my PC.

I realised that at least one of the three files already existed and did not need changing. Hence I would check for the file by trying to edit it first, then create it if it does not exist, and then edit it and paste the contents from my PC.

So first I got the file contents on my PC by entering:

Code: Select all

https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/nodered.service
The contents were visible in my browser so I selected all and copied and pasted into Notepad (but could have been done direct).

I am of course logging into my pi via PuTTY.

The the sequence of instructions is:

Code: Select all

pi@MyIoT:~ $ sudo nano /lib/systemd/system/nodered.service
pi@MyIoT:~ $ sudo touch /lib/systemd/system/nodered.service
pi@MyIoT:~$ sudo nano /lib/systemd/system/nodered.service
I was then able to complete the autostart of Node Red.

This is a 'fix' and not a 'cure' but did enable me to carry on setting up my home automation framework.

Mike

Return to “Troubleshooting”