-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Potential Bug: StatusBadTimeout Error when attempting connection using numeric id #478
Comments
Bumping this issue to see if anyone is interested in looking at it. |
Hi @jnangle since I don't have access to your type of OPC-UA server, you would need to provide either debug log output or even better, a wireshark capture (assuming an unencrypted connection). |
Hi @kung-foo, Thanks for the message. I am including a debug output for both the regread example (which fails) and the read example (which works). Hopefully there is enough information to help you get started. If not, I can work on getting a wireshark capture.
|
Looks like the server doesn't like the Error handling looks a bit off. I'm curious what is in the |
Hello @magiconair , I am attaching a Wireshark capture of a successful connection to my Red Lion OPC UA server. The client is an Influx logger for OPCUA from a company called Factry.io. I'm able to successfully connect to the Red Lion and get data from a node using numeric ids. I hope this is helpful to you. Please let me know if there is anything else I can do to help. My apologies for taking so long to get this to you |
Hi @jnangle , no worries and thank you for the tcpdump. I'll have a quick look. |
@jnangle can you also capture the failed attempt from the gopcua library? |
Hmm, @jnangle this dump does not contain any registered reads or any reads. This is only using subscriptions. Can you try to perform a registered read with another client and confirm that this works? |
Hello again, @magiconair, After I received your last message yesterday, I downloaded the gopcua library and ran the Using numeric ids with the Red Lion server, the The file I am attaching includes screenshots from running both commands against the two servers so you can see the results. I am also including Wireshark traces for both servers so you can see the details. I will be off until Monday for the Thanksgiving holiday, but I hope I have provided enough information for you in this attachment. I'm happy to provided additional information if needed. |
Maybe it doesn’t make sense to register numeric ids fir that server. It would be unhelpful since you have to parse and group ids before you register them but possible.
—
Frank Schröder
… On 24. Nov 2021, at 18:29, John Nangle ***@***.***> wrote:
Hello again, @magiconair,
After I received your last message yesterday, I downloaded the gopcua library and ran the read and regread example code against a Kepware server and the Red Lion server. Using string ids with Kepware, both commands completed successfully.
Using numeric ids with the Red Lion server, the read command ran successfully, while the regread command failed. From line 82-83 in the Red Lion Wireshark trace, it looks like the Red Lion server returns a BadServiceUnsupported error to the RegisterNodesRequest. So, that may be the problem.
The file I am attaching includes screenshots from running both commands against the two servers so you can see the results. I am also including Wireshark traces for both servers so you can see the details.
I will be off until Monday for the Thanksgiving holiday, but I hope I have provided enough information for you in this attachment. I'm happy to provided additional information if needed.
OPCUA-RedLion-Diags.zip
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
It's possible that they deploy a "minimum requirements" OPC UA server. I did call Red Lion support to ask about using string ids, and I was told, "No. You get what you get." So, I think we're stuck with numeric ids. From the Telegraf perspective, it's necessary to create an entry in the Telegraf config file for each OPC UA tag. So I'm not sure how much tag registration adds to the capability. I'm not familiar with the OPC UA spec. |
Tag registration is an optimization for frequent reads of nodes. These could be nodes actually living on another OPC/UA server which the local server proxies or you get a numeric id back for a string id so that the server doesn't have to compute the hash every time. In any case, they are not required for normal operation. In addition, we also just discovered that the auto-reconnect of gocpua v0.2 creates an issue with registered reads since the node ids are no longer valid after a reconnect. We handle subscriptions gracefully by re-registering the monitored items but not the registered reads. I'll create a ticket for this so that we can add support to the client if possible. I am closing this ticket since this looks like registered reads are not supported in the RedLion server and for now it might be better to not use them unless you also handle the reconnect case. |
Created #557 |
Team,
I'm experiencing an error when I attempt to connect to an OPC UA server (Red Lion, Crimson 3.1) when using numeric tag ids. The error shows up when running the regread example. I am including output here from read, regread, and monitor examples to illustrate where the error occurs:
However regread seems to work find when connecting to a Kepware server using string ids.
I have been using Telegraf to set up connections to OPC UA servers. Since Telegraf uses the gopcua library, I wanted to open a ticket here.
Thank you in advance for taking a look at this.
The text was updated successfully, but these errors were encountered: