coussej / node-opcua-logger

An OPCUA Client for logging data to InfluxDB! 🔌 🏭
https://www.factry.io
MIT License
180 stars 64 forks source link

Rasberry PI4 test : connection rejected by server #59

Closed stephb59 closed 3 years ago

stephb59 commented 3 years ago

Hi, Thanks for the job done on this. I would like to test this on an rpi4. I have these certificate error while running

pi@IOTstack:~/node-opcua-logger $ npm start

> influx-opcua-logger@2.0.0-alpha start /home/pi/node-opcua-logger
> node ./src/index.js

[2020-11-20T16:07:01.422] [INFO] main - Starting Influx OPCUA Logger v2.0.0-alpha, brought to you by FACTRY (www.factry.io)
[2020-11-20T16:07:01.427] [INFO] main - Initialising influxClient
[2020-11-20T16:07:01.462] [INFO] influx - localhost:8086 responded in 28ms running 1.8.3
[2020-11-20T16:07:01.463] [INFO] main - Initialising buffer
[2020-11-20T16:07:01.466] [INFO] main - Connecting OPCUA
[2020-11-20T16:07:02.477] [FATAL] main - Error: The connection has been rejected by server,
Please check that client certificate is trusted by server.
Err = (Internal Error)
    at Object.start (/home/pi/node-opcua-logger/src/opcua.js:60:11)
[2020-11-20T16:07:02.481] [INFO] buffer - Persisting membuffer.

I try to connect to this opc server available online opc.tcp://opcuaserver.com:48010. See config.toml attached I tried with release V2 and master compiled, i have the same error. Prebuilt binary not working on raspberry 32 bits. config.toml.log

I connected successfully uaexpert on that opc server, anonymous connection.

Can you give ideas about that problem ? Thanks in advance

coussej commented 3 years ago

Indeed, the pre built binaries don't work on ARM.

Which node version did you install on the PI?

stephb59 commented 3 years ago

It is v10.23.0

stephb59 commented 3 years ago

Update. There was a problem with openssl. I reinstalled nodejs and logger again. Working perfectly now. I am able to connect the online opc server above successfully.
FYI i used the IOTstack from https://sensorsiot.github.io/IOTstack/ which deploy influx and grafana within 10 minutes. Great job for this project. Thanks to the team.