Scripting dependency Failure
Quick question about scripts and dependencies. I'm trying to push a small batch file does some writing to the hosts file on the PC, and installs a reg file. If I remote into the box and run things it works great. I've added the required files as a dependency on the script and created my verify, success, and remidation steps. I'm launching the program like this
Launch “$(KACE_DEPENDENCY_DIR)\hosts.bat†with params “â€Â.
For some reason, on only some of the machines, the script fails with the error under "Run Failures" and says "Skipping Hosts Update because dependencies are not on the system"
It doesn't fail on Push, but under run. I can't figure out why the dependencies are not showing up. On a 6 machine test group 2 succeed and 4 fail. Running it multiple times yield the same 4 failing. Is there a reason why the dependencies wouldn't push to the box? Any suggestions? Did some searching and couldn't come up with any solutions that addressed this specific issue. Thanks for the advice.
Launch “$(KACE_DEPENDENCY_DIR)\hosts.bat†with params “â€Â.
For some reason, on only some of the machines, the script fails with the error under "Run Failures" and says "Skipping Hosts Update because dependencies are not on the system"
It doesn't fail on Push, but under run. I can't figure out why the dependencies are not showing up. On a 6 machine test group 2 succeed and 4 fail. Running it multiple times yield the same 4 failing. Is there a reason why the dependencies wouldn't push to the box? Any suggestions? Did some searching and couldn't come up with any solutions that addressed this specific issue. Thanks for the advice.
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
GillySpy
13 years ago
on the machines that fail run "c:\program files\kace\kbox\runkbot 3 0" from a command line. This will force it to update scripts on the client immediately and not wait for the update interval. Then run the script you want to test "c:\program files\kace\kbox\runkbot N V" where N is the script number and V is the version number. e.g. "runkbot 10 1282759758"
If that works then you likely need to wait for the scripts to get updated. If it fails then debug logging and a support ticket is my recommendation
If that works then you likely need to wait for the scripts to get updated. If it fails then debug logging and a support ticket is my recommendation
Posted by:
bcreasey
13 years ago
Here is what we've been able to find so far. The scripts are running on the machines just fine but the files are not being pushed correctly. As I stated up above the failure point is during the 'Run' process and it fails because dependencies are missing. This happens with any script, built in or custom, that requires files to be on the machine.
After further testing we've found that it fails on machines that are on a different IP range then our main system. Our kace, and main network is on a 10.100.X.X but our remote sites (connected by fiber) are on a 10.101.X.X. We also have a group of machines that have dual ip's because they are connecting to two different networks and it fails there too. I've opened a ticket with Kace and will report what we find. This network setup is not that uncommon so someone out there must have run into issues like this before. I'll try and share what we find in case anyone else needs the info.
After further testing we've found that it fails on machines that are on a different IP range then our main system. Our kace, and main network is on a 10.100.X.X but our remote sites (connected by fiber) are on a 10.101.X.X. We also have a group of machines that have dual ip's because they are connecting to two different networks and it fails there too. I've opened a ticket with Kace and will report what we find. This network setup is not that uncommon so someone out there must have run into issues like this before. I'll try and share what we find in case anyone else needs the info.
Posted by:
loren83
13 years ago
After spending two and a half hours on the phone with KACE today, dealing with a similar issue, I think I might know what is going on. I was experiencing the same failures when pushing scripts to my pc's. The issue was caused by the web server name that was set up in the Network Settings. I do not have an in house DNS server but I can browse across my stores, which are on different subnets, but I must do so by IP address. I had set up a web server name that was not resolving in the DNS and therefore causing Dependency Failures. I changed the web server name to the IP address of the KBOX1000 and was finally able to run my scripts and managed installs from location to location. If you do have a DNS server then you should probably refer to this document for help with your web server name settings.
[link]http://www.kace.com/support/kb/pdf.php?cat=1&id=628&lang=en[/link]
I hope this helps.
[link]http://www.kace.com/support/kb/pdf.php?cat=1&id=628&lang=en[/link]
I hope this helps.
Posted by:
GillySpy
13 years ago
Excellent, thank you. Here is the html version of the same doc : http://www.kace.com/support/kb/index.php?action=artikel&cat=1&id=628&artlang=en
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.