Community forum

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


keithdavis
2012-12-10T15:46:25Z
I have a job that has run just fine for years and suddenly, today, when I start it, I get:

"The Job could not be started because the file could not be found. Please check the path."

The .exe it is looking for is here:

C:\Users\keithdavis\Documents\Scripts\ServerVersions\BackupRobocopy.exe

I can run that .exe manually with or without the arguments and it runs fine. If I take out the arguments, the job still fails. Checked credentials. Ran other jobs that start .exe files and those work fine.

What happened? What changed?
Sponsor
Forum information
Support
2012-12-10T15:47:47Z
Where is the Job located (the robocopy job). It seems like the path to that is not found - not the actual path to robocopy.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
keithdavis
2012-12-10T15:49:17Z
keithdavis
2012-12-10T15:50:11Z
Tried creating a brand new job, and it still failed.
Support
2012-12-10T15:53:02Z
Ah, the problem might be a Condition you use in that Job? A File Condition. Did not read the error text properly - I thought it was something with the Task but this is before the Task is being run.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2012-12-10T15:55:23Z
Hmm..the error text was misleading. It is actually the Task.

So, read/write permissions could have been changed in the program files folder. Try copying robocopy to c:\ for example to see if that works.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2012-12-10T15:56:43Z
I see know that the path is to your profile. That one might be locked as well from the SYSTEM account. To access it you need to use a Credential (same user as you are logged in as) and you need to have "Local login" and "Load profile" checked.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
keithdavis
2012-12-10T15:57:32Z
I've tried it it muliple locations and other .exe files in that folder work fine, but let me run some more tests.
keithdavis
2012-12-10T15:58:30Z
Originally Posted by: Support 

I see know that the path is to your profile. That one might be locked as well from the SYSTEM account. To access it you need to use a Credential (same user as you are logged in as) and you need to have "Local login" and "Load profile" checked.



It's not running as System. It's running with special user that is in the Domain Admins group.
Support
2012-12-10T16:02:43Z
Originally Posted by: keithdavis 

Originally Posted by: Support 

I see know that the path is to your profile. That one might be locked as well from the SYSTEM account. To access it you need to use a Credential (same user as you are logged in as) and you need to have "Local login" and "Load profile" checked.



It's not running as System. It's running with special user that is in the Domain Admins group.



Ok, could be some limitations here - but I am just guessing. You should see this if you are able to launch the same file from c:\ for example.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
keithdavis
2012-12-10T16:10:12Z
Ok, weird. This .exe is a compiled AutoIt script. It does appear to be something that we changed in the script. The VisualCron result was what was confusing me.
Support
2012-12-10T16:11:23Z
Originally Posted by: keithdavis 

Ok, weird. This .exe is a compiled AutoIt script. It does appear to be something that we changed in the script. The VisualCron result was what was confusing me.



I agree, we will update this a bit.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
keithdavis
2012-12-10T16:12:11Z
Ok, that was incorrect. I just removed the file and replaced it with the same exact version and now the the new version works as well. Maybe the file system was locking it? If so, I restarted this machine and that did not fix it.
Support
2012-12-10T16:14:26Z
Originally Posted by: keithdavis 

Ok, that was incorrect. I just removed the file and replaced it with the same exact version and now the the new version works as well. Maybe the file system was locking it? If so, I restarted this machine and that did not fix it.



Yes, maybe. I have never seen this error before (with this specific scenario). The error itself is returned from Windows but we try to be more verbose (still it was a little bit confusing this time).


Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
keithdavis
2012-12-11T14:31:21Z
Weird. We didn't change anything and it's happening again this morning:

From: KDAVIS [mailto:KDAVIS@pridedallas.com]
Sent: Tuesday, December 11, 2012 4:01 AM
To: # IT
Subject: VisualCron - KDAVIS - Error - BackupRobocopy.exe



Computer: KDAVIS

Date/Time: 2012-12-11T04:00:42

Task: BackupRobocopy.exe

Executed at: 12/11/2012 4:00 AM

Task Error: The Job could not be started because the file could not be found. Please check the path.
keithdavis
2012-12-11T14:42:55Z
Wow. Actually, ANY .exe run with these credentials fail. If I run with my own credentials, it works fine. These same credentials are used on a dozen machines and this is the only one having a problem.

AND these credentials worked fine that one time yesterday. I've re-entered the password, to verify it, but no effect.
bbusse
2012-12-11T15:07:37Z
I'm curious if you're having an issue with executables that were created on another system, and then placed on the server. If you're logged into your VC server, as the credentials you're running it as, what happens when you right-click the EXE file and select properties? On the General tab, do you have an 'Unblock' button, similar to an example that I have attached?

bbusse attached the following image(s):
keithdavis
2012-12-11T17:26:32Z
I don't think that is the problem, but I believe it has lead me to it. When I try to login to Windows with those credentials, I get all kinds of errors (explorer, resource, TortoiseSVN crashes.) I can't even view the properties of a file.

I'm going to clear the profile for that account from this system and see what happens.
keithdavis
2012-12-11T17:48:20Z
That fixed it!

So, a corrupt Windows user profile was the cause.
bbusse
2012-12-11T20:08:43Z
Excellent!. Glad I could nudge you into the solution. haha. Love it when it works out like that.

Brian
Support
2012-12-12T07:59:25Z
Thanks for all the updates 😁. Interesting issue!
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
keithdavis
2012-12-12T11:17:29Z
Well, darn, it's happening again this morning:


Computer: KDAVIS
Date/Time: 2012-12-12T04:00:43
Task: BackupRobocopy.exe
Executed at: 12/12/2012 4:00 AM
Task Error: The Job could not be started because the file could not be found. Please check the path.
Execute: C:\Users\keithdavis\Documents\Scripts\ServerVersions\BackupRobocopy.exe "Full Daily To File"
Support
2012-12-12T11:19:26Z
Can't you place the file anywhere else than in your profile? Does not seem like the best option if anyone wants to make changes etc.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
keithdavis
2012-12-12T11:31:55Z
I've tried running the file (or other .exe files) elsewhere and the problem still exists.

This is my machine, and these files are checked out of CVS, changes are made elsewhere and checked out or made locally and checked in.

We've used this configuration for 5+ years and had no issues until last week.
Support
2012-12-12T11:34:19Z
Have you tried it somewhere else and run it without a Credential?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top