Hello,
I’m having a problem with the ‘.d2’ archive replay mechanism in OpenHistorian. As I indicated in February 2022 (link) I had managed at the time to use OpenHistorian so that it ‘replays’ the data contained in ‘.d2’ files from the same version of OpenHistorian by specifying a time range (start - end).
I’ve tried to reproduce this behaviour with OpenHistorian 2.8.249.
My .d2 files are produced by a 2.8.249 OpenHistorian production server ; and I’ve exported a SQL dump of it’s MySQL database the same day of the .d2 file has been produced (18/04/2023) ; to ensure that the data in the database is consistent with that archived in the .d2 file.
On a second server used by the Research & Developpment Departement, I’ve installed the same version 2.8.249 of OH ; then imported the .sql dump in the local MySQL server DB to connect OpenHistorian on it ; and add the ‘.d2’ file I want to 'replay.
In OpenHistorian Manager, I’ve configured the PDC device connection string like this :
I’ve then configured the ‘PPA’ output historian instance like this :
MaximumArchiveDays=2; WorkingDirectory=D:\openHistorian\Archive_output; ArchiveDirectories={D:\openHistorian\Archive_output\Offload}; DesiredRemainingSpace=10; ArchiveCurtailmentInterval=43200; TargetFileSize=2
And finally create a ‘PPAREADER’ Custom Input like this :
With the following connection string :
InstanceName=PPA; ConnectOnDemand=false; ArchiveDirectories=D:\openHistorian\Datafiles_to_replay_Directory; PublicationInterval=1; ProcessingInterval=0; AutoRepeat=True; sourceIDs=PPA; StartTimeConstraint=04-18-2023 10:00:00; StopTimeConstraint=04-18-2023 10:30:00
The datafile I’m trying to use is named (by the OpenHistorian source on the production server) :
ppa-2023-04-18 07.37.47.000_to_2023-04-18 12.30.08.673-638174178139514799.d2
and is stored in the D:\openHistorian\Datafiles_to_replay_Directory
directory.
So it must contain data for the 04/18/2023 from 07:37 UTC to 12:30 UTC.
On the PPAREADER connection string, I’ve specified a StartTimeConstraint of 10:00 to take in account the UTC+2 time difference.
When I’m initializing the Custom input PPAREADER, the following message is shown in the OH Console :
When I remove the start and stop time constraint in the Connection String, then this warning message is not shown ; but the data are not read by the PPAREADER.
This config used to work on 2022/02 (with an older version of OH that I don’t remember).
Would you have an idea of what I’m doing wrong please ?
We do not use anymore Historian 1.0 version from OpenPDC because it’s deprecated in recent version of OpenPDC ; and anyway we very regularly encountered problems with ‘corruption’ of ‘.d’ archiving files: PPA archiving works well for a variable period of time (several days / weeks / months …); then inexplicably generates errors (in yellow in the OpenPDC console) indicating that the measurements can no longer be saved in the files; and are therefore lost.
This is why we now only use the Historian 2.0 archive format with OH; but the loss of this possibility of replaying data archived in this format in pseudo real time would be very problematic for our ex-post analysis.
Any help would be appreciate,
Thanks
Stephane.