error running pre-script-application aware script on linux

Discussions specific to VMware vSphere hypervisor

error running pre-script-application aware script on linux

Veeam Logoby davegold » Fri Feb 10, 2017 7:38 pm


Trying to configure a pre/post script on a Linux VM using the Application aware pre/post script options. We have things locked down pretty tightly, so sudo is pretty important.

Log shows and error running the script:
[10.02.2017 13:43:30] <18> Info Executing: sudo /tmp/;echo $?
[10.02.2017 13:43:30] <18> Info [ScriptInvoker] Exception thrown during script execution (SSH).
[10.02.2017 13:43:31] <18> Info Executing: sudo rm -f /tmp/
[10.02.2017 13:43:31] <18> Info [Ssh] Connection [host: '', port: 22, user: 'p-veeamrecover-svc', elevation to root: 'yes', autoSudo: no, auth type: 'Password', host name: t-rhel7-a, IPs: [].] is disposing.
[10.02.2017 13:43:31] <18> Error [ScriptInvoker] Failed to execute script in lin guest machine over SSH. Script path: D:\Veeamscripts\
[10.02.2017 13:43:31] <18> Error sudo: unable to execute /tmp/ No such file or directory

1. Does Veeam set the permissions on the script?
2. Anyone have simple example scripts that definitely work?
3. Any other ideas on how to troubleshoot this?

We'll plan to reach out to support after trying this for a bit longer.

Posts: 64
Liked: 2 times
Joined: Thu Dec 02, 2010 4:58 pm
Full Name: Dave Gold

Re: error running pre-script-application aware script on lin

Veeam Logoby Andreas Neufert » Sun Feb 12, 2017 7:38 pm

Many customer prevent script execution within the /tmp maybe this is the case here?
Andreas Neufert
Veeam Software
Posts: 2422
Liked: 397 times
Joined: Wed May 04, 2011 8:36 am
Location: Germany
Full Name: @AndyandtheVMs Veeam PM

Return to VMware vSphere

Who is online

Users browsing this forum: Google [Bot] and 1 guest