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.


vcdkk
  •  vcdkk
  • No customer Topic Starter
2011-11-18T14:26:07Z
I have found a critical error in 6.0.4 which sometimes starts my process with the wrong credentials. It seems to only happen after a server restart and when my job is triggered via the System Restart trigger.

This is my setup

Job (Run tasks in order)
Task1 : Run a.cmd with credentials X
Task2 : Run b.cmd with credentials Y
Task3 : Run c.cmd with credentials Y

Task3 is a .cmd file starting a .net console which logs the current credentials to a file.

Sometimes the .net console logs the X credentials, which is absolutely wrong.

Also, why is it i can choose a .bat file in the Task Execute but not a .cmd file?
Sponsor
Forum information
Support
2011-11-18T14:27:31Z
Sounds strange. What is the code you use for logging the credential?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
vcdkk
  •  vcdkk
  • No customer Topic Starter
2011-11-18T14:45:54Z
String name = WindowsIdentity.GetCurrent().Name;
Support
2011-11-18T14:46:55Z
And you use the "With profile" option and "API" mode?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
vcdkk
  •  vcdkk
  • No customer Topic Starter
2011-11-18T14:51:28Z
Yes. Logon type: With profile
vcdkk
  •  vcdkk
  • No customer Topic Starter
2011-11-18T14:52:30Z
Support
2011-11-18T14:53:02Z
And you run the service as SYSTEM?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
vcdkk
  •  vcdkk
  • No customer Topic Starter
2011-11-18T14:57:33Z
VisualCron "Log On As" = "Local System"
vcdkk
  •  vcdkk
  • No customer Topic Starter
2011-11-18T15:03:26Z
X and Y are both domain users and the server is Windows Server 2008 R2
Support
2011-11-18T15:04:22Z
1. And this is a background Job?
2. it happens every time you use the Server startup Trigger?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
vcdkk
  •  vcdkk
  • No customer Topic Starter
2011-11-18T15:06:37Z
Changed Task1 and still see the wrong credentials!

Job (Run tasks in order)
Task1 : Run a.cmd with no credentials
Task2 : Run b.cmd with credentials Y
Task3 : Run c.cmd with credentials Y

1) Yes
2) I'm not sure yet.
Support
2011-11-18T15:11:51Z
Hmm..I would say that the probability that the wrong Credential is actually picked up is zero. This sounds more like the Credential that was initially used won't go away.

I presume restarting the service resets the state. We will do some tests.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
vcdkk
  •  vcdkk
  • No customer Topic Starter
2011-11-21T08:37:50Z
Wait a minute. I see a problem in my setup. I'll write back today.

Stig
vcdkk
  •  vcdkk
  • No customer Topic Starter
2011-11-21T09:43:48Z
I'm very sorry, but I forgot to disable an old Task Scheduler job which was the reason to the odd behaviour.

Thanks

Stig
vcdkk
  •  vcdkk
  • No customer Topic Starter
2011-11-21T09:44:49Z
You are welcome to delete this post.

Stig
Support
2011-11-21T19:34:35Z
Ok, great that it was a natural reason 😁
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top