Exit code -1073741502 - VisualCron - Forum

Community forum

michaelhum
2018-03-09T20:54:13Z
Hi,
I'm running version 8.31.

I have a task defined as:
Execute
command: ftp.exe
Arguments: -s:getfiles.txt
execute.jpg

The task logons onto a ftp server, the getfiles.txt contains simple ftp commands to LS the contents of the directory to a file name fd.txt

The task's Execution context is : Background execution.

The task is used in a number of jobs.

These jobs run throughout day. This equates to several hundred runs of the task. it work without issue.

However if I do not reboot the PC (Windows 7 Professional / SP1) where these jobs run once a day, the task will begin to fail with the error message

Exception in Task: Non zero exit code
Exit code (-1073741502) description: The process failed to start due to some policy or permissions restriction. You can try to disable UAC in Server tab->Server settings and reboot or enable Extended debugging in Server settings->Log, then edit the Credential that you use and select option CreateProcessAsUserW - then try the Task again.

Rebooting the PC resolves the problem.
I also note, when the error occurs, and I change the execution context to Foreground execution, Execute on any desktop session, the task will run (no reboot required).
Why does the task work in background execution (which I prefer) but fails after a day or so of running, requiring a reboot?
michaelhum
2018-03-10T13:29:01Z
Hi,
I should also add, the reason I'm not using the built in ftp capability of VsualCron, and instead calling the ftp.exe in the windows system32 directory, is because my ftp scripts logon to over 50 different ftp accounts. Meaning each ftp script logs on with a different userid and password. Which raises another question/wish list ask, would be nice to be able to pass both the ftp userid and password as variables (i think the userid can be passed as a variable, but not the password?). I would be then able to define a single ftp connection (globally) But any way, this exit code error -1073741502 is quite troubling.
Support
2018-03-12T13:26:03Z
First you can try this;

1. enable Extended debugging in Server settings
2. Edit the Credential and change to option "CreateProcessAsUser".
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
michaelhum
2018-03-14T09:10:37Z
Hi,
I made the change
1. enable Extended debugging in Server settings
2. Edit the Credential and change to option "CreateProcessAsUser".

When I run the job, the task in question (the ftp task) fails with the exit code 267 (unable to start the process. directory name is invalid). When I revert the change the task works.

The ftp.exe resides in the Windows\system32 directory. The ftp.exe is provided by the Windows 7 operating system. The ftp script named getfiles.txt resides in the directory named \\xxxxx\xxxxx\{JOB(Active|Name)} i.e. referring to the subdirectory with the variable {JOB(Active|Name)}

Support
2018-03-14T12:40:25Z
I would disable UAC and reboot. It seems like some permission on User or Machine level is blocking our execution. You disable UAC from VisualCron->Server settings window.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
michaelhum
2018-03-14T16:01:51Z
Hi,
Yes I've disabled UAC (the UAC option within VisualCron). That's our default setting we use for our VisualCron deployment.
michaelhum
2018-03-15T17:28:40Z
Hi,
I should clarify our UAC setting. We have the UAC setting set to disabled. The problem still occurs when the UAC setting is set to disabled.
Support
2018-03-15T18:38:36Z
I see. I think the problem is that you do not use the full path to sftp.exe. Please try that.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
michaelhum
2018-03-15T20:44:13Z
Hi,
The ftp.exe is in the Windows\system32 directory. The directory is in the search path (set at the operating system).

I'll have a problem if I enter in the full path with the ftp.exe

example in VisualCron, Execute
Command: c:\windows\system32\ftp.exe
Arguments: -s:getfiles.txt

because I am calling the script file, getfiles.txt with the ftp.exe. The getfile.txt is in another directory (a different directory for each job that uses this task).

This error, its primarily related to permission correct? Meaning the task fails because it can't access a file sort of thing. But I guess the real question is, why does it work most of the time, and fails some times (and a reboot of the PC fixes the problem). Is there a memory leak?
michaelhum
2018-03-22T00:53:32Z
Beta 8.35 list this fix

[BUGFIX] Server: Execute Task->Fixed memory leak (access denied)

it it relevant to the Exit code -1073741502 error im experiencing?
Support
2018-03-22T13:15:51Z
Originally Posted by: michaelhum 

Beta 8.35 list this fix

[BUGFIX] Server: Execute Task->Fixed memory leak (access denied)

it it relevant to the Exit code -1073741502 error im experiencing?



If the problem is related to the memoryleak issue yes. It is a generic error so it is hard to say. Please test and get back to us.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
michaelhum
2018-04-04T00:02:05Z
Originally Posted by: Support 

Originally Posted by: michaelhum 

Beta 8.35 list this fix

[BUGFIX] Server: Execute Task->Fixed memory leak (access denied)

it it relevant to the Exit code -1073741502 error im experiencing?



If the problem is related to the memoryleak issue yes. It is a generic error so it is hard to say. Please test and get back to us.


What I have notice when comparing to VisualCron version 8.31 (we have this version in production), with beta version 8.35

I have been testing the beta version 8.35 since March 23 on one of our test Windows 7 PC. I have not been able to recreate the exit code -1073741502. The test Windows 7 PC is very "similar" to our production environment (note the "similar" in quotes).

1. Our ftp scripts run faster
2. I am able to run DOS batch programs in "background" now and not have to run in "foreground". Permissions denied error is fixed.
3. Some strange inconsistencies with a task I have to convert an Excel file to another Excel file version. Something, the file filter setting was not able to find the file to convert. This problem is resolved.


Support
2018-04-04T09:06:26Z
Originally Posted by: michaelhum 

Originally Posted by: Support 

Originally Posted by: michaelhum 

Beta 8.35 list this fix

[BUGFIX] Server: Execute Task->Fixed memory leak (access denied)

it it relevant to the Exit code -1073741502 error im experiencing?



If the problem is related to the memoryleak issue yes. It is a generic error so it is hard to say. Please test and get back to us.


What I have notice when comparing to VisualCron version 8.31 (we have this version in production), with beta version 8.35

I have been testing the beta version 8.35 since March 23 on one of our test Windows 7 PC. I have not been able to recreate the exit code -1073741502. The test Windows 7 PC is very "similar" to our production environment (note the "similar" in quotes).

1. Our ftp scripts run faster
2. I am able to run DOS batch programs in "background" now and not have to run in "foreground". Permissions denied error is fixed.
3. Some strange inconsistencies with a task I have to convert an Excel file to another Excel file version. Something, the file filter setting was not able to find the file to convert. This problem is resolved.




Great, thanks for the feedback!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Users browsing this topic
Scroll to Top