OPC UA sudden loss/ random Error

The system was working well but out of many restarts with one i got this

Probably if i Restart it can solve . but we need to have a conclusive solution

Hi Kumar,
We are more than happy to help you but we need more data:

  1. Which hw do you have?

  2. Which Automation Studio are you using?

  3. Automation Runtime Version

  4. OPC UA C/S release?

  5. mapp View version?

  6. Could you upload System Dump? We need more data from loggers, small screenshot doesn’t help

  7. Have you configured any certificate in your prj? if yes which is the size of public key RSA? 1024/2048/4096 bits

  8. Do you see any particular behavior on SDM > CPU Usage?

  9. How many clients are connected to your CPU? Check CPU usage when just 1 is connected and then see the difference with 2/3 clients

  10. Monitor Remote OPC UA connection status

———————————————————————–
In my case, for example, we found one issue with C80 where the customer has configured a certificate with public key RSA size = 4096 bits;
every 45 minutes we saw a peak on CPU usage and in that moment the HMI (mappView) was not updated in correct way:

When I changed the certificate with smaller key 1024 bits no more issue.
Again this was my issue not necessary yours that’s why we need more data.

Thanks
Ciao
Valerio

  1. Which hw do you have? X20CP3687X

  2. Which Automation Studio are you using? AS 4.9

  3. Automation Runtime Version

  4. OPC UA C/S release? not sure

  5. mapp View version?

  6. Could you upload System Dump? We need more data from loggers, small screenshot doesn’t help

  7. Have you configured any certificate in your prj? if yes which is the size of public key RSA? 1024/2048/4096 bits

  8. Do you see any particular behavior on SDM > CPU Usage? will update later

  9. How many clients are connected to your CPU? Check CPU usage when just 1 is connected and then see the difference with 2/3 clients’
    mostly one as of now but future 2

Thanks @kumars for the data,
key error:


Not sure at the moment the cause of your problem.
I see in the logger sometimes the connection to the OPC UA server is ok:

but not always:
Login issue on OPC UA Server:

Connection to the OPC UA Server issue:

Could you expand all nodes of OPC-UA System and make a screenshot?
Like this:

Note: Regarding the Certificate you have to check on the Configuration view:

It’s possible you didn’t configure that in your prj
—————————————————————————
Not related to your post BUT I see in your code you access to a wrong index in one array in a task “Ping“ and “MbMaster“:

You should fix that asap, wrong memory access is dangerous in general.

Ciao
Valerio

I think @valerio.manenti has done more than Community is intended for. He showed you how to work with the logger (the last error is not always the important one). From my perspective:

  • Update to the latest version of AR, mapView.
  • Fix the application bug with the array.
  • If the problem is not fixed and you are unable to figure out the cause using the logger and profiler, then you should get in touch with support, provide them with the project and the procedure on how to reproduce it. This is something we cannot do in the Community.