fedex03
Topic Author
Posts: 2
Joined: 31 Jan 2023, 10:34

noderedrevpinodes-server ERROR Connection to server wss://localhost:8000

31 Jan 2023, 10:44

Hi there,

I just reveived my RevPi CoreS with RevPi DIO, and I would like to read and write the I/O.

The "noderedrevpinodes-server" is up and running.
I installed the "Pre-Release 1.0.5" since the 1.0.4 does not work.

Furtermore:
  • I updated Node-Red to the latest version 3.0.2.
    Installed "node-red-contrib-revpi-nodes 1.0.9"
How can I solve this issue in order to control DIO from Node-Red?

Thank you for the help!

Best regards,
Federico


When I add the node "rev-pi-single-input" no input pin are discovered and also node-red gets this error:
Lost connection to WS Server!
Connecting to WS Server wss://localhost:8000
ERROR Connection to server wss://localhost:8000 error: write EPROTO 3069520384:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:

Lost connection to WS Server!
 
dfilsinger-erminas
Official 3rd Party Support Erminas
Posts: 6
Joined: 16 Mar 2022, 18:54
Answers: 1

Re: noderedrevpinodes-server ERROR Connection to server wss://localhost:8000

02 Feb 2023, 15:17

Hi Federico,

The server versions only run with the corresponding client versions:
1.0.9 with 1.0.4
1.1.0 with 1.0.5

You can use the following steps to get it to work:

1. Download the latest version of the server and update it. This is version 1.0.5-1
wget https://github.com/erminas/noderedrevpinodes-server/releases/download/1.0.5-1/noderedrevpinodes-server_1.0.5-1_all.deb &&
sudo apt install ./noderedrevpinodes-server_1.0.5-1_all.deb
2. Update npm:
sudo npm install -g npm@latest
  
3. Download the latest version of the client and update it. This is version 1.1.0
wget https://github.com/erminas/node-red-contrib-revpi-nodes/archive/refs/tags/1.1.0.zip &&
unzip 1.1.0.zip &&
cd /home/pi/.node-red/ &&
sudo npm i [Path to the unzipped directory, probably: /home/pi ]/node-red-contrib-revpi-nodes-1.1.0/
3. Restart NodeRed:
sudo systemctl restart nodered
  

Regards,
Dennis
 
fedex03
Topic Author
Posts: 2
Joined: 31 Jan 2023, 10:34

Re: noderedrevpinodes-server ERROR Connection to server wss://localhost:8000

03 Feb 2023, 15:22

Hi Federico,

The server versions only run with the corresponding client versions:
1.0.9 with 1.0.4
1.1.0 with 1.0.5

You can use the following steps to get it to work:

1. Download the latest version of the server and update it. This is version 1.0.5-1
wget https://github.com/erminas/noderedrevpinodes-server/releases/download/1.0.5-1/noderedrevpinodes-server_1.0.5-1_all.deb &&
sudo apt install ./noderedrevpinodes-server_1.0.5-1_all.deb
2. Update npm:
sudo npm install -g npm@latest
  
3. Download the latest version of the client and update it. This is version 1.1.0
wget https://github.com/erminas/node-red-contrib-revpi-nodes/archive/refs/tags/1.1.0.zip &&
unzip 1.1.0.zip &&
cd /home/pi/.node-red/ &&
sudo npm i [Path to the unzipped directory, probably: /home/pi ]/node-red-contrib-revpi-nodes-1.1.0/
3. Restart NodeRed:
sudo systemctl restart nodered
  

Regards,
Dennis
Hi @Dennis,

thank you for the detailed instructions.

I followed them but the "revpi-single-input-node" does not show the input pin list.

This is the output of "sudo systemctl status nodered":
Feb 03 15:19:19 RevPi90254 Node-RED[5811]: 2023-02-03 14:19:19 Connecting to WS Server wss://localhost:8000
Feb 03 15:19:19 RevPi90254 Node-RED[5811]: 2023-02-03 14:19:19 Connection to WS Server wss://localhost:8000 established!
Feb 03 15:19:19 RevPi90254 Node-RED[5811]: 2023-02-03 14:19:19 error Unsupported server version!
My versions are still wrong?

Thank you very much,
Federico
 
dfilsinger-erminas
Official 3rd Party Support Erminas
Posts: 6
Joined: 16 Mar 2022, 18:54
Answers: 1

Re: noderedrevpinodes-server ERROR Connection to server wss://localhost:8000

06 Feb 2023, 13:15

Hi Federico,
check the versions again like this:

You can get the server version with this command. The Server should be in version 1.0.5-1 not 1.0.5.
apt-cache policy noderedrevpinodes-server

For the client, go to the palette manager in the NodeRed frontend. The nodes with version 1.1.0 should be there:
Screenshot_Node-RED.png
Screenshot_Node-RED.png (4.13 KiB) Viewed 2060 times
If one of the versions is different, despite the updates, remove this part and reinstall it.

The easiest way to remove the nodes is to use the palette manager in Node Red. The Remove button is only displayed when all RevPi nodes have been removed from the flows. Including the config nodes. You can find the config node by searching (ctrl-f) with the keyword "revpi-server".

Regards,
Dennis

Who is online

Users browsing this forum: No registered users and 0 guests