I’ve been having an issue where the OpenHistorian server seems to stop working after it has been running for an extended period. The OpenHistorian service is still running when this happens, but I cannot access the browser interface. When I leave it running overnight for instance, I usually have to restart the machine before I can use it successfully.
Today, it stopped working while I was using it. I had a console open when it happened, so I’m hoping I may have enough information to help determine what’s causing the problem.
This is what I saw when it stopped working:
Further up in the console feed, there were multiple instances of this message:
[RTAC-DNP3] Begining task: Application Poll (INFO) @ c:\projects\dnp3\cpp\libs\src\opendnp3\master\mastercontext.cpp(400) There were not enough free threads in the ThreadPool to complete the operation. There were not enough free threads in the ThreadPool to complete the operation. [RTAC-DNP3] Begining task: Application Poll (INFO) @ c:\projects\dnp3\cpp\libs\src\opendnp3\master\mastercontext.cpp(400)
There were also some entries in the ErrorLog.txt file. While there were several errors all generated within seconds of the others, they were all essentially identical to this one:
[6/4/2020 2:46:22 PM] Date and Time: 6/4/2020 2:46:22 PM Machine Name: SEL Machine IP: xxxx Machine OS: Microsoft Windows NT 6.2.9200.0 Application Domain: openHistorian.exe Assembly Codebase: C:/Program Files/openHistorian/openHistorian.exe Assembly Full Name: openHistorian, Version=126.96.36.199, Culture=neutral, PublicKeyToken=null Assembly Version: 188.8.131.52 Assembly Build Date: 5/5/2020 6:22:56 PM .Net Runtime Version: 4.0.30319.42000 Exception Source: GSF.SortedTreeStore Exception Type: System.Exception Exception Message: Out of free space Exception Target Site: GetPathWithEnoughSpace ---- Stack Trace ---- GSF.Snap.Services.Writer.SimplifiedArchiveInitializer`2.GetPathWithEnoughSpace(estimatedSize As Int64) openHistorian.exe: N 00282 GSF.Snap.Services.Writer.SimplifiedArchiveInitializer`2.CreateArchiveFile(startKey As TKey, endKey As TKey, estimatedSize As Int64, data As TreeStream`2, archiveIdCallback As Action`1) openHistorian.exe: N 00053 GSF.Snap.Services.Wri
When I attempted to restart the OpenHistorian service, the following error was generated:
Any insight into what may be causing this would be appreciated! One item that came to mind is that there is another server running on localhost (SEL SynchroWave Central). However, that is running on the default port rather than 8180. I’m not familiar enough with such things to know if that could cause a conflict with results like this or not.