An Operation can't find a .iostream file
A .iostream file got stored in /intersystems/HCENG01B12/mgr/Temp for a BatchFileOperation class while HC was on the secondary node. HealthConnect is now on the primay node and cannot find that .iostream file path. The operation starts throwing errors when the RolloverSchedule is reached
OnKeepalive() returned ERROR #5012: File '/intersystems/HCENG01B12/mgr/Temp/QWhoZAwFF3f9jQ.iostream'
does not exist
How can I resolve this issue?
Comments
Can you copy the file from Backup to Primary server?
Primary / Secondary ?? Is this a shadowing configuration ?
Shadowing applies to the databases IRIS.DAT, and Journal Files
It doesn't shadow external "foreign" files like .../Temp/QWhoZAwFF3f9jQ.iostream
There is no IntermediateFilePath designated for the operation, but it should probably be the work folder for the operation. So it's been using a Temp folder for these files all along. The file was created while HC was on the secondary node, but is now back on the primary and that path does not exist.
We resolved this by:
1) Create /intersystems/HCENG01B12/mgr/
2) copy the iostream file to that folder
3) run the rollover so the file gets processed and the operation "forgets" about that file
4) disable the operation
5) delete /intersystems/
6) update the operation's IntermediateFilePath to the work folder
7) return the RolloverSchedule back to T23:30:00
8) restart the operation