Appendix A: Troubleshooting

Appendix A: Troubleshooting

The OPC UA service's log messages can be found in the main ACM Log Viewer window. Filter on the source asiOPC_UA.

Issue

Possible Reason or Solution

Issue

Possible Reason or Solution

The Server’s application certificate is not in the certificate store

The asiOpcUa service must be started at least once to create the self-signed certificate

Could not connect to Server: BadCommunicationError

ACM asiOpcUa service is not running

Could not connect to Server: BadServerHalted

ACM asiData service is not running

Browse on node ‘ns=2;s=MyNodeId’ failed with error “BadNodeIdUnknown”.

Items in a browse list may not exist in the namespace at the time of browsing. Data Variable nodes are only created in the address space when a client creates a monitored item for it. However, monitored items can be created from any item in the browse list.

The server does not support the configured security policy ‘http://opcfoundation.org/UA/SecurityPolicy#None’.

A client cannot connect a session using security policy ‘None’ unless the configuration option “Accept Non-Secure Sessions” is enabled.

Clients cannot write to items in the DataAccess namespace.

Writes to items by Anonymous users are not allowed unless the configuration option “Allow Writes to Items by Anonymous Users” is enabled.

Error "BadSecurityChecksFailed" was returned during OpenSecureChannel.

The client is not a trusted application. Import the client's public key certificate file into the OPC UA server's trusted peer store.

RegisterServer2 failed for at: opc.tcp://localhost:4840/. Exception=Error establishing a connection: BadNotConnected

The OPC UA Server is trying to connect to the local OPC UA Discovery Service, which is not running. Start the Discovery Service if there is one installed. If not, edit the OPC UA Server settings and un-check the property option "Register with Local Discovery Service", then restart the OPC UA Server service.

Ignition gets stuck in a loop of dis-connecting and re-connecting to the UA Server.

In the Ignition log there may be timeout errors similar to the following:

CompletionException: UaException: status=Bad_Timeout, message=requestId=24 timed out after 60000ms

In the ACM log there may be errors similar to the following:

SERVER - Service Fault Occurred. Reason=BadSecureChannelIdInvalid

SERVER - Service Fault Occurred. Reason=BadSessionIdInvalid

SERVER - Service Fault Occurred. Reason=BadNoSubscription

This is usually caused by a Subscription timeout which causes the Server to delete the subscription and all related Monitored items. The Subscription timeout is set by the client, Ignition, when it creates the subscription. If the UA server becomes very busy, it may not be able to keep up with all the publish requests from the client in a timely manner causing the subscription to timeout before processing a publish request from the client to reset the subscription’s keep alive timer

A subscription’s timeout is calculated by multiplying the subscription’s publish rate by it’s lifetime count value. In Ignition, the default publish rate of a subscription is 500ms and the lifetime count has a default of 100. This results in a default subscription timeout of 50000ms, or 50 seconds.

AUTOSOL recommends a minimum of 3000ms for a subscription’s publish rate. This will increase the calculated subscription timeout value.

In Ignition, the subscription publish rate is configured with the property OPC UA/Publishing Interval (ms) when editing a Tag Group.

Client cannot connect using HTTPS

The Security Mode endpoint selected when connecting using HTTPS must be of type Sign & Encrypt (https-uabinary).

Log Messages

This partial list will document some of the OPC UA server's log messages that may occur in the ACM log viewer. A brief description of the message meaning is given. This may not be a complete list.

Log Message

Log Type

Detail

Log Message

Log Type

Detail

Failed to connect to asiData. Reason:

Error

The OPC UA server must connect to the ACM asiData service in order to create items and receive data updates. Verify the asiData service is running.

Disconnected from asiData

Error

The asiData service has stopped or the OPC UA server failed to connect to it.

Writes to items not allowed by anonymous users.

Error

Anonymous users cannot perform writes to nodes in the DataAccess namespace unless the configuration option “Allow Writes to Items by Anonymous Users” is enabled.

Attempting to start asiData.

Info

The configuration option "Only connect to asiData when there are active client sessions" is enabled and the server is attempting to start the asiData service.

Request to create X monitored items in session Y

Trace

A client has requested to create X number of monitored items in session with id Y

Incorrect namespace index. Item skipped:

Trace

A monitored item with a namespace index other than '2', the DataAccess namespace, is being requested by the client. This item is ignored by the DataAccess namespace and will be passed to the Server namespace for possible validation.

Adding item X to validation list

Trace

The first time a monitored item for a particular node is requested by the client, the server will validate the item name with the asiData service.

Expecting string type node ID for DataAccess namespace. Item skipped:

Trace

Monitored items in the DataAccess namespace must use a string type Node Id. Any other type is ignored and will be passed to the Server namespace for possible validation.

Requested item X exists in DataAccess address space

Trace

A monitored item is being requested by a client to a node that already exists in the DataAccess namespace. This is normal behavior if the client, or another client, had previously created a monitored item for the same node.

Item X is invalid, node not created

Trace

A monitored item with an invalid item name was requested by the client. The node for the item will not be created.

Creating object node:

Trace

A namespace node is being created that represents an ACM object

Creating variable node: X on parent Y

Trace

A namespace node is being created that represents an ACM item

Monitored item X created with Y monitoring mode.

Trace

Monitored item X is being created with a monitoring mode of Y as requested by the client

Monitored item X created with Disabled monitoring mode.

Trace

The client has requested to create monitored item X with a disabled monitoring mode

Node X monitoring mode changed to Y

Trace

The client has requested to change the monitoring mode on a monitored item

Monitored item removed from Node X, Session Y

Trace

The client has removed a monitored item from Node X

Request to Write to item X in session Y, Value: Z

Trace

The client has written a new value to a monitored item

Write result for item:

Trace

The write result to the ACM item as returned by the asiData service

Update for item A, Value: B, Quality: C, CH: D

Trace

The server has receive an item update from asiData for the item with Client Handle 'D'

Validating X items with ACM

Trace

The server is attempting to validate a list of item names with asiData

Adding X items to ACM

Trace

The server is attempting to create a list of new items with asiData

Added item A to Group B, CH: C, SH: D

Trace

The server successfully added an item to ACM with Client Handle 'C' and Server Handle 'D'

Removing item A from Group B, CH: C, SH: D

Trace

The server is attempting to remove item 'A', with Client Handle 'C' and Server Handle 'D', from ACM

Activate/Deactivate item A in Group B

Trace

The server is attempting to change the active state of an item in ACM