Comments (5)
I have also tried this:
[input]
url = "opc.tcp://10.164.6.149:48010"
failoverTimeout = 5000 # time to wait before reconnection in case of failure
[output]
name = "influx_1"
type = "influxdb"
host = "172.18.0.2"
port = 8086
protocol = "http"
username = ""
password = ""
database = "rh_linie_test"
failoverTimeout = 10000
bufferMaxSize = 64
writeInterval = 3000
writeMaxPoints = 1000
# A polled node:
#[[measurements]]
#name = "Int16polled"
#tags = { tag1 = "test", tag2 = "AB43" }
#tags = { tag1 = "testtag" }
#nodeId = "ns=4;s=RH Montage 2. Config.RH Master.GlobalVars.00DB ZEITEN_ZAEHLER.SPS_ZYKLUS_AKT"
#collectionType = "polled"
#pollRate = 60 # samples / minute.
#deadbandAbsolute = 0 # Absolute max difference for a value not to be collected
#deadbandRelative = 0.0 # Relative max difference for a value not to be collected
# A monitored node
[[measurements]]
name = "Int32monitored"
dataType = "number"
tags = { tag1 = "test", tag2 = "AB43" }
nodeId = "ns=4;s=RH Montage 2. Config.RH Master.GlobalVars.00DB ZEITEN_ZAEHLER.SPS_ZYKLUS_AKT"
collectionType = "monitored"
monitorResolution = 1000 # ms
deadbandAbsolute = 0 # Absolute max difference for a value not to be collected
deadbandRelative = 0 # Relative max difference for a value not to be collected
and i get:
azuredev@x01133175:~/node-logger/node-opcua-logger$ node logger.js
influx_1 : starting writepump [ writeLimit: 1000 , writeInterval: 3000 ].
[ 'opc.tcp://m01009186:48010 NONE http://opcfoundation.org/UA/SecurityPolicy#None',
'opc.tcp://m01009186:48010 SIGN http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15',
'opc.tcp://m01009186:48010 SIGNANDENCRYPT http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15',
'opc.tcp://m01009186:48010 SIGN http://opcfoundation.org/UA/SecurityPolicy#Basic256',
'opc.tcp://m01009186:48010 SIGNANDENCRYPT http://opcfoundation.org/UA/SecurityPolicy#Basic256',
'opc.tcp://m01009186:48010 SIGN http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256',
'opc.tcp://m01009186:48010 SIGNANDENCRYPT http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256' ]
An error occured in the Readpump: Error: End point must exist opc.tcp://10.164.6.149:48010
at OPCUAClient._createSession (/home/azuredev/node-logger/node-opcua-logger/node_modules/node-opcua-client/src/opcua_client.js:163:25)
at OPCUAClient.createSession (/home/azuredev/node-logger/node-opcua-logger/node_modules/node-opcua-client/src/opcua_client.js:623:10)
at OPCUAClient.eval [as createSession] (eval at thenify.withCallback (/home/azuredev/node-logger/node-opcua-logger/node_modules/thenify/index.js:33:10), <anonymous>:6:48)
at /home/azuredev/node-logger/node-opcua-logger/readpump.js:25:23
at Timeout.delayer [as _onTimeout] (/home/azuredev/node-logger/node-opcua-logger/node_modules/delayed/delayed.js:27:10)
at ontimeout (timers.js:482:11)
at tryOnTimeout (timers.js:317:5)
at Timer.listOnTimeout (timers.js:277:5)
Restarting readpump in 5000 seconds.
from node-opcua-logger.
url = "opc.tcp://10.164.6.149:48010"
try this instead:
url = "opc.tcp://m01009186:48010"
from node-opcua-logger.
Hi @Hans85,
sorry for the late reply, I've been away on holiday..
In the second case, you have successfully connected to the OPCUA server socket, but the OPCUA client library only allows connection if the URI you specified is exactly the same as the endpoints exposed by the OPCUA server. That is why you get the error end point must exist
.
The solution should be like @erossignon already mentioned. Have you tried that?
If you cant connect using the server name (if you have no DNS resolution for example), you either add an endpoint on the server that binds on the IP, or you can add an entry to the clients /etc/hosts file that maps the server name to the IP.
Hope that helps!
from node-opcua-logger.
I also have the problem that i am not receiving any value. Using the UAExpert, the values are working fine, so something is left to my config that breaks it... is there any way to output some debug information?
from node-opcua-logger.
closing due inactivity.
@mahadi if you have an issue that is different from this one, feel free to open a seperate ticket.
from node-opcua-logger.
Related Issues (20)
- Server Rejects Client HOT 5
- bi-directional communication
- Error: The connection has rejected by server HOT 2
- Unable to parse HOT 4
- OPC UA Server Close HOT 4
- Unauthorized error HOT 4
- Connection reject by server HOT 6
- Polling multiple fields in one shot HOT 6
- Rasberry PI4 test : connection rejected by server HOT 3
- Metric monitoring HOT 1
- Installation without internet
- the certificate and the private key do not match ! HOT 2
- Future development #question HOT 21
- Error: cannot find version block HOT 1
- [Question] Adding OPCUA Tag while running HOT 3
- [Question] Clarification on the side of BatchSize, buffer.js HOT 2
- Different measurements created for different sensor fields with OPC-UA !
- Cannot accept config.json file as config file.
- Boolean writing error on Influx V2 HOT 2
- Failed to write points, error: "Self-signed certificates"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-opcua-logger.