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.


gencap
2011-08-05T17:18:18Z
Hello,

Second issue we noticed after going to 5.7.8 is that some Execute Tasks that worked previously no longer work.

Specifically the following cvs task:
Command: C:\Program Files (x86)\CVSNT\cvs.exe
Arguments: -q update -P -d

Executes with Results: Incorrect function
No stdout. stderr: Exception in Task: Non zero exit code.


If I create a wrapper batch file that executes cvs with those arguments and schedule the batchfile, it seems to work.

If I manually execute the Task (no conditions) it works sporadically. (worked once).

The command line itself is definitely correct.

What's the best way to debug this?
I tried passing in different arguments, and only simplest, one word ones (like info) come back with a success.

Also, I can't ever get stdout when executing directly. I can only get stdout when I use the wrapper batchfile.

Sponsor
Forum information
Support
2011-08-05T21:49:30Z
This is usually due to permissions.

What happens when installing is that if you have another user than the default SYSTEM account that runs the Windows service "VisualCron" it will be reverted back to SYSTEM so try changing the user that runs the service to an administrator user or other user that you had before.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
gencap
2011-08-10T23:46:12Z
I seem to be getting this error regardless of what user is associated with the VisualCron service.

Are there specific permissions that are necessary?
Support
2011-08-11T06:03:19Z
It depends.

Is this a generic application that we can test here without any specific configuration? If so, upload all required files to run this application and we will test it here.

Please also tell us what operating system and service pack you are running on - also if it is 32 or 64 bit OS.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
gencap
2011-08-11T20:01:15Z
It's the open source cvs command line client running with this command line:

"C:\Program Files (x86)\CVSNT\"cvs.exe -q update -P -d

It's on Win7 Pro 64 no SP1

And this was running without issues on the previous version of VC that we had (5.6.9)

It looks like for some reason running through batchfiles works correctly but launching through Execute of command plus arguments directly has issues, including not storing the stdout.
Support
2011-08-11T20:52:00Z
Can we run this command from there to test it? Does it require any special setup etc?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
gencap
2011-08-16T18:54:44Z
If you have CVS installed you'd need to run that command line in your repository directory. But even if you don't have a repository set up, cvs should still start up and give you some text message, so you should be able to debug the issue.

Also, I don't seem to be getting notifications on posts in this topic even though I do check "Watch this topic.." so I apologize for the delay in response.

thanks,
Support
2011-08-16T19:21:21Z
I get the same error but also another useful information which you probably also have received. Have you check the standard error column of the Task? In my case, when I double click on it I get this error in the window:

cvs.exe update: No CVSROOT specified! Please use the `-d' option
cvs.exe [update aborted]: or set the CVSROOT environment variable.

So, in my case I need to specify a CVSROOT and I think you do need to do that as well. Remember that it is running in a different environment than normally which may cause that some environment variables are not there from the beginning.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
gencap
2011-08-17T15:16:48Z
Interesting because that is very different than what I get.
You're getting a correct launch of cvs.exe with command line parameters which then comes back with an error in stderror.

I get a failed launch, with no standard output. The parameters don't seem to get passed to cvs. Both stdout and stderr have no data.

Is there anything else that I can try? What account do you have set up for your service run? Were you running foreground or background? Anything else to try?

This is particularly frustrating because it did work just fine before I upgraded.

Thanks!
gencap
2011-08-22T16:54:19Z
I've rolled back my version to 5.7.5 (last good install I had) and this particular problem seems to have gone away.

I can now run the complex command lines without issues.

I really don't know what changed between 5.7.5 and 5.7.9, but they don't seem to launch command line tasks the same way.

Support
2011-08-23T07:13:43Z
Originally Posted by: gencap 

Interesting because that is very different than what I get.
You're getting a correct launch of cvs.exe with command line parameters which then comes back with an error in stderror.

I get a failed launch, with no standard output. The parameters don't seem to get passed to cvs. Both stdout and stderr have no data.

Is there anything else that I can try? What account do you have set up for your service run? Were you running foreground or background? Anything else to try?

This is particularly frustrating because it did work just fine before I upgraded.

Thanks!



We use Background always unless it is not possible. Which exact error do you get?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
gencap
2011-08-24T15:26:00Z
I default to using background execution as well. In this case I also tried foreground execution, but it didn't make a difference.

The exact error I got was as reported:
Results: Incorrect function
No stdout.
stderr: Exception in Task: Non zero exit code.

I could not find any other information or error in the logs (including logging to file).

I tried running this on Windows 7 Pro SP1. Not sure if that makes a difference.

Support
2011-08-24T16:27:23Z
Perhaps we can schedule a screen share later today. Please email support@visualcron.com
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top