Fix Common Problems
Fix Common Problems
Solutions for connection, data, and device issues.
OPC-UA Troubleshooting
The following Q&A steps will help you troubleshoot any possible issue you may be facing with the Ayyeka OPC-UA Agent.
1. An error occurred while sending the request:
Wrong credentials (API Key/Secret)
Verify that the credentials are correct (regenerate them if needed).
2. System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: An error occurred while sending the request.
Wrong addresses specified in OPCUa.exe.config file
Link for the addresses to be specified.
3.
Port 4433 is not reachable
Check whether the port is reachable using the following commands:
curl -X POST https://[onprem]:4433/auth/token
or
telnet your-ip 4433
4. Ayyeka.Agents.OpcUa.DataAccess.AkDataAccess Error getting sites: One or more errors occurred., System.AggregateException: One or more errors occurred. ---> System.Exception: There was some error occurred: Response status code does not indicate success: 403 (Forbidden).
API Keys created by the admin user are being used
Verify that the API Keys used were not created by the admin user. Use API Keys from other users.
5. ERROR Ayyeka.Agents.OpcUa.DataAccess.AkDataAccess Error initializing Data Access module. Sleeping for 5 minutes and trying again System.IndexOutOfRangeException: Index was outside the bounds of the array.
Missing API URLs in OPCUa.exe.config file
Add the URLs:
Change this:
xml<br><applicationSettings><br> <Ayyeka.Agents.OpcUa.Properties.Settings><br> <setting name="Ayyeka_Agents_OpcUa_Rest_Authentication" serializeAs="String"><br> <value></value><br> </setting><br> <setting name="Ayyeka_Agents_OpcUa_Rest_API" serializeAs="String"><br> <value></value><br> </setting><br> </Ayyeka.Agents.OpcUa.Properties.Settings><br></applicationSettings>
6. Shutting down because of an error. Shutdown reason: The CertificateGenerator is not installed.
The Opc.Ua.CertificateGenerator.exe was not copied to the correct folder
Copy Opc.Ua.CertificateGenerator.exe to:
C:\Program Files (x86)\Common Files\OPC Foundation\UA\v1.0\Bin
7. Ayyeka.Agents.OpcUa.OpcUa.AkUaServerPlugin Shutting down because of an error. Shutdown reason: The requested key container was not found. System.Security.Cryptography.CryptographicException: The requested key container was not found.
TLS protocol is not enabled on the server
TLS v1.2 must be manually installed on Windows Server older than 2019. It is installed by default on Windows Server 2019 and newer. To check that TLS 1.2 is installed and configured for .NET Framework, verify your certificates as below.
Certificates Issues on Windows Computer
Stop the OPC-UA service.
Open the UA Configuration Tool and choose the location of the OPC-UA application (default:
C:\Ayyeka\Agents.OpcUa\Agents.OpcUa.exe).UA Configuration Tool → Manage Security → View Trusted Certificates
Choose the certificate
UA Configuration Tool → Manage Application → Assign Application Certificates
Choose the first OPC-UA certificate (if you have more than one).
UA Configuration Tool → Manage Application → View Application Certificates
Your certificate will be visible, press “OK”.
Start the OPC-UA service.
How to Verify:
The OPC-UA Agent runs as expected.
The log message
"Shutting down because of an error. Shutdown reason: The requested key container was not found"no longer appears in the log.
Last updated