Intermittent File Read Failures - VisualCron - Forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


MattMcNabb
8 years ago
I have several PowerShell tasks that run on a regular basis, and for an unknown reason they intermittently fail. The error output is:

ExecuteProcess("C:\Program Files (x86)\VisualCron\\PowerShell\TaskPowerShell.exe" 5332)->System.IO.IOException: Invalid Signature.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
   at TaskPowerShell.PowerShellTaskClass.Run(ProcessPowerShellTaskInfoClass ti, StringBuilder& sbStandardOut, StringBuilder& sbStandardError, Boolean& bolResult)
ExecuteProcess("C:\Program Files (x86)\VisualCron\\PowerShell\TaskPowerShell.exe" 5332)->Unhandled execution error: System.IO.IOException: Invalid Signature.

   at TaskPowerShell.PowerShellTaskClass.Run(ProcessPowerShellTaskInfoClass ti, StringBuilder& sbStandardOut, StringBuilder& sbStandardError, Boolean& bolResult)
   at mXbZHCH5JIJcqO7o9Q.G35HLSVlxIRLOuifM1.wAF1PkkG4(String[]  )


I'm not able to tell why VisualCron was not able to read the file. The task in question is triggered every hour on the hour and works most of the time. The script files reside on an SMB share, and I leverage a VisualCron mapped drive to access the folder. Could this be the cause of the errors and if so, why are they intermittent?
Sponsor
Forum information
Support
8 years ago
I did a quick search and other have seen this intermittent result: https://social.microsoft...ss-a-file?forum=Offtopic 

But I have never seen that error before in VC.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
MattMcNabb
8 years ago
Henrik,

Thanks, I have seen that post but it doesn't seem applicable - more geared towards a developer writing an application that accesses files on an SMB/DFS share.

to test further I've done three things:

1. Point the PowerShell task to the actual UNC path rather than using the mapped drive. This had no effect and we still got the error intermittently.
2. Entered the script in the PowerShell Script text box rather than pointing to a script file. This seems to have resolved the issue for us, but this isn't ideal as our workflow requires source control on our script repository.
3. disabled SMB secure signing on the computer where VisualCron is installed, per the instructions here . This also did not change the behavior at all.

I also found this article that seems a bit related:
https://support.microsoft.com/en-us/kb/2756452 

It's referring to windows 8, but we're running VisualCron on Server 2012R2. It seems to say that an occasional reboot or a re-mapping of the drive can fix this. Any further thoughts? Thanks!
Support
8 years ago
You could test the following:

1. enable Extended debugging in Server settings
2. edit the Credential that you use and select "CreateProcessAsUserW" option
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
MattMcNabb
8 years ago
Henrik,

I've found where to enable extended debugging, but I'm not familiar with the credential procedure you're referring to. does this need to be done to test with extended debugging, or are these two separate items?

Thanks!
Support
8 years ago
Yes, you need to enable it to see the new Credential options.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top