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

Post Reply
fedex03
Posts: 2
Joined: 31 Jan 2023, 10:34
Answers: 0

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

Post by fedex03 »

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:

Code: Select all

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

Post by dfilsinger-erminas »

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

Code: Select all

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:

Code: Select all

sudo npm install -g npm@latest
  
3. Download the latest version of the client and update it. This is version 1.1.0

Code: Select all

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:

Code: Select all

sudo systemctl restart nodered
  

Regards,
Dennis
fedex03
Posts: 2
Joined: 31 Jan 2023, 10:34
Answers: 0

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

Post by fedex03 »

dfilsinger-erminas wrote: 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

Code: Select all

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:

Code: Select all

sudo npm install -g npm@latest
  
3. Download the latest version of the client and update it. This is version 1.1.0

Code: Select all

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:

Code: Select all

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":

Code: Select all

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

Post by dfilsinger-erminas »

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.

Code: Select all

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 10966 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
Cloud
Posts: 11
Joined: 25 Apr 2018, 03:18
Answers: 0

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

Post by Cloud »

dfilsinger-erminas wrote: 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.

Code: Select all

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

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
Hello @Dennis,

I have the same problem as Federico. I have both upgraded the server to 1.0.5-1:
server_version.png
server_version.png (17.94 KiB) Viewed 8818 times
and client version to 1.1.0.
client_version.png
client_version.png (6.85 KiB) Viewed 8818 times
But still cannot get IO pin of RevPi Connect+ with the following npm status:
3月 27 11:14:27 RevPi39484 Node-RED[4023]: 27 Mar 11:14:27 - [info] Started flows
3月 27 11:15:53 RevPi39484 Node-RED[4023]: 2023-03-27 03:15:53 Connecting to WS Server wss://localhost:8000
3月 27 11:15:53 RevPi39484 Node-RED[4023]: 2023-03-27 03:15:53 ERROR Connection to server wss://localhost:8000 error: connect ECONNREFUSED 127.0.0.1:8000
3月 27 11:16:20 RevPi39484 Node-RED[4023]: 27 Mar 11:16:20 - [info] Stopping flows
3月 27 11:16:20 RevPi39484 Node-RED[4023]: 27 Mar 11:16:20 - [info] Stopped flows
3月 27 11:16:20 RevPi39484 Node-RED[4023]: 27 Mar 11:16:20 - [info] Starting flows
3月 27 11:16:20 RevPi39484 Node-RED[4023]: 2023-03-27 03:16:20 Connecting to WS Server wss://localhost:8000
3月 27 11:16:20 RevPi39484 Node-RED[4023]: 27 Mar 11:16:20 - [info] Started flows
3月 27 11:16:20 RevPi39484 Node-RED[4023]: 2023-03-27 03:16:20 ERROR Connection to server wss://localhost:8000 error: connect ECONNREFUSED 127.0.0.1:8000
3月 27 11:16:20 RevPi39484 Node-RED[4023]: 2023-03-27 03:16:20 Lost connection to WS Server!

How to solve it?

Best regards,
Cloud
jgerlach-erminas
Official 3rd Party Support Erminas
Posts: 38
Joined: 22 Jan 2020, 14:31
Answers: 0

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

Post by jgerlach-erminas »

Hello Cloud,

this seems to be a different problem. Could you post the output from the server log?

cat /var/log/revpi-server.log

Thanks,
Jonas
Cloud
Posts: 11
Joined: 25 Apr 2018, 03:18
Answers: 0

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

Post by Cloud »

jgerlach-erminas wrote: 06 Apr 2023, 08:33 Hello Cloud,

this seems to be a different problem. Could you post the output from the server log?

cat /var/log/revpi-server.log

Thanks,
Jonas
Hello Jonas,

I did not find this log in the directory. Does the server need to be started manually?
2023-04-21_16-46-58.png
2023-04-21_16-46-58.png (49.76 KiB) Viewed 7884 times
jgerlach-erminas
Official 3rd Party Support Erminas
Posts: 38
Joined: 22 Jan 2020, 14:31
Answers: 0

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

Post by jgerlach-erminas »

Hello Cloud,

try restarting the server:
sudo systemctl restart noderedrevpinodes-server.service

If the problem still occurs, please post the output of:
sudo systemctl status noderedrevpinodes-server.service
and
sudo journalctl -fu noderedrevpinodes-server

Regards,
Jonas
Cloud
Posts: 11
Joined: 25 Apr 2018, 03:18
Answers: 0

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

Post by Cloud »

jgerlach-erminas wrote: 27 Apr 2023, 09:58 Hello Cloud,

try restarting the server:
sudo systemctl restart noderedrevpinodes-server.service

If the problem still occurs, please post the output of:
sudo systemctl status noderedrevpinodes-server.service
and
sudo journalctl -fu noderedrevpinodes-server

Regards,
Jonas
Hi Jonas,

after restarting the server via the above command the node runs well now. Many Thanks! Just wonder why it cannot be restarted by rebooting the device?

Cloud
Post Reply