Troubleshooting
Managing Historian Log Files
Use the Historian LogTool to view, generate, or compress log files to use for troubleshooting. Logtool.exe is located in the historian installation directory, for example: C:\Program Files\Proficy\Proficy Historian\X64
.
Troubleshooting Historian
Before troubleshooting any performance-related issue, make sure the computer meets the recommended hardware requirements.
Troubleshooting Strict Authentication Issues
If the Historian Server rejects valid collector or client user credentials while connecting, consider the following condition:
Time Sync between the Server Time and Domain Controller Time
If a client or collector is attempting to connect to the Historian server with Strict Authentication enabled on a Kerberos configuration, ensure that the Server time and Domain Controller time match with each other. Otherwise, the server rejects valid credentials and does not allow the connection.
Troubleshooting Historian Server Components
Changing Service Port Numbers
Connecting a Historian Server to a Historian Client through a Firewall
Receiving a Collector Configuration Error
If you receive a single ihConfigurationGetProperties[-2]
error in the collector.LOG file, the error most likely occurred as a result of the collector connecting and querying for changes in the tag database immediately, getting a timeout, and then immediately querying again and succeeding.
User API Programs Not Freeing Up Memory
User API Programs built with anything other than Visual Studio .NET should be modified to call ihuFreePtr()
to free any memory pointers returned by the User API. Do not free these pointers using free()
in your application or you can risk memory corruption. User API does not support Unicode programming.
Maximum Buffer Memory Size
You can specify the maximum memory buffer size that an archiver queue can take. By default, memory buffer size is 100MB.
Troubleshooting a Historian Cluster
- If a Historian resource does not go online initially, make sure you have cluster feature included in your license.
- If a Historian resource runs for a long period of time and then has an unexpected failover, debug the log messages of the Data Archiver and the Clusters before taking appropriate actions.
Troubleshooting iFIX and Historian
Running iFIX as a Service with iFIX Workspace Listed in the SCU Task List
Prior to iFIX 5.1, if you have configured iFIX to run as a service, you should not have WORKSPACE.EXE listed as a configured task in the Task Configuration dialog box of the SCU. If WORKSPACE.EXE is listed as a configured task, it may lead to unpredictable results. For example, if you are also running Historian, no servers will appear in the Server Name field of the Configure the Historian Server dialog box and you will not be able to browse Historian tags in the iFIX Expression Editor.
To rectify this, remove WORKSPACE.EXE from the list of configured tasks in the SCU.
iFIX WorkSpace delay when remote session is lost
If the connection between iFIX and a remote Historian session is lost, you may experience a 90 second delay in the iFIX Workspace Configuration environment, chart, or Expression Builder when accessing a pen associated with that Historian session.
In the Run Time Environment, all pens in a chart disappear for 90 seconds when the session to a remote Historian session is lost, even if they are associated with a local Historian server.
Starting iFIX when a remote Historian session is unavailable
If you are using Historian with iFIX, the iFIX Workspace attempts to connect to the Historian Server when it starts up. If a remote Historian server is unavailable, it may take one minute or longer for iFIX Workspace to display for each unavailable server.
Accessing Mission Control when a remote Historian session is lost
If a remote Historian session is lost while you are accessing `the HTC tab of Mission Control in the iFIX Workspace, the H tab may blank out for a minute or longer.
Accessing tags in the iFIX chart after setting OPC "Collector to Made After Restart"
If you add tags in the Historian Administrator to a Server from an OPC Collector that has Configuration Changes set to Made After Collector Restart, you will be able to see those tags in the iFIX Expression Builder. You can add them to a chart, for example, but they have no collected data until you manually stop and restart the OPC Collector.
Collecting data in an iFIX chart with Time Assigned By Source
Synchronizing the time on iFIX SCADA Servers and View Clients
To ensure that acknowledgements are not lost or attributed to the wrong alarm, synchronize the clocks on SCADA servers and iFIX View Client machines. If the clocks are not synchronized, alarms generated on the SCADA nodes and acknowledged on the iFIX View Client nodes could have significantly different timestamps. You can synchronize the clocks using the NET TIME command. Refer to the Windows Help system for more information.
The REST API Reference Manual e-book uses port 8443 in examples and sample code throughout the e-book. If you copy and paste the sample code from this document, you must change this port number to your installed port.
If you have a previous install of Historian, and you have installed PHA/PKC 6.0/6.1, you will need to uninstall and then reinstall Historian.
Troubleshooting OPC Data Collectors
Troubleshooting the OPC UA Data Access (DA) Collector
Troubleshooting the OPC HDA Collector
Troubleshooting Historian 7.0 with PHA/PKC 6.0
Installing PHA/PKC on a machine that has Historian 7.0 or greater will fail due to a port conflict issue. Both applications use the same default port 8443. You must follow the recommended order of install below to avoid this error. Installing Historian after PHA/PKC on the same machine will not fail as Historian has the ability to detect used port and will configure an unused port.
- Install PHA/PKC 6.0/6.1.
- Install Historian 7.0.