VTScada OPC UA Server Troubleshooting
Configuring OPC UA Server and the server won't start.
You have configured an OPC UA Server tag and an OPC UA Publisher tag. The server should start. You can confirm that the server has started by navigating to the Server tab of the OPC UA Server tag to see
"Server State: Running". The value of the OPC UA Server tag will be 0 and the Diagnostic tab will be populated with new information.
If the server is not running, check the following:
- Is OPC Service licensed on this system? Check "License Management" in the VAM menu.
- Have you started the server? If you have not enabled auto-start in the server tab, you have to click "Start".
- Does your endpoint contain valid information? Double-check your hostname
The name of the hosting machine, domain, port and instance-id. - Do you have a valid certificate? Click "Manage Certificates". The Valid column will read "Yes" if certificate configuration needs are met. You can check the Subject Alternative Name (SAN) of your certificate on your Windows machine. Open "Manage User Certificates". Find the directory "Trihedral OPCUA Server > Certificates". Open your certificate, switch to the Details tab and scroll down to find Subject Alternative Name. The DNS has to match the hostname.domain as it appears in your endpoint. Double check that URL=urn:hostname:appname. Double check any included IP address.
- It is possible that the Backend Port number in the Server tab is in use by another application. Try an alternative port number.
Check the log file. Find the location of the Configuration folder from the Server tab of the OPC UA Server tag properties. Within the Configuration folder, find the log files in the TraceFiles folder.
If it is still not running, check your OPC UA Publisher tag:
- Is the correct server tag linked?
- Have you included a Namespace URI and an Application prefix?
The OPC UA Server is running, but the client won't connect.
- Copy and paste the endpoint URL to make sure it's exact.
- Is your client using a compatible security policy? (ex. If Basic256Sha256 is enabled in your OPC UA Server tag, the client should be using the matching policy.)
- If the client is anonymous, OPC UA Publisher tag allows anonymous reads.
- If you are using username/password authentication:
- That user account has privileges (OPC UA read/write/call)
- The username resembles either app-prefix:username or app-prefix:realmname:username
- Try discreetly copy and pasting the password to make sure it's not mistyped.
- If you are using a certificate, it is valid. Note that you do not need to manually fill the SAN for a VTScada OPC UA Client tag.
- When the client connects, it might ask you to trust the Server certificate. You have to trust the server certificate to connect.
- Check the OPC UA Server tag Client Certificate tab. The Client certificate might be listed in the "Untrusted" table. You have to trust the client, manually, to permit access.
While a colon is used as the delimiter by default, this is changeable in your application's security options. If more than one application shares the same OPC UA Server, both applications must be configured to use the same delimiter.
OPC UA Server Tag Error Codes
Check the OPC UA Server tag value in the tag browser.
| 0 | No Error |
| 256 | OPC UA is not licensed on this system |
OPC UA Publisher Tag Error Codes
Check the OPC UA Publisher tag value in the tag browser.
| 0 | Server connection OK |
| 256 | Server connection loss. May be temporary. |
| 257 | Attempting connection. May be temporary. |
| 258 | Unable to connect - Bad tag parameter. |
| 259 | Unable to connect - Server certificate is not valid. |
| 260 | Sever protocol error. |
About OPC UA dialogs
40903 OPC UA Publisher Error - Application prefix cannot be blank
The "Application Prefix" field in the Settings tab of the OPC UA Publisher tag must have a string value.
This is an identifier of your choosing. It will be included with the OPC UA Client username as a means of identifying the application from which the client is seeking authentication.
It could be the application's name, an initialism or any keyword of your choice.
40931 OPC UA Publisher Error - Cannot use a Reserved Namespace URI
The Namespace URI that you've entered in your OPC UA Publisher tag Setting tab is reserved.
Try another Namespace URI. To see your current Namespace URI listing, visit namespaces.xml, located in your log files at the address specified in your OPC UA Server tag Server tab.
40935 OPC UA Server Question - Removing a controlling system? Are you sure?
You have clicked [ - ] in the server tab of an OPC UA Server tag. This action will remove the currently selected Controlling Workstation and wipe all configured fields. Because of the potentially disruptive consequences of this action, VTScada is asking you to confirm.
If you wish to remove the selected Controlling Workstation and lose all configuration, click Yes.
If you want to go back, click No.