Direkt zum Inhalt

Error on running pre or post-backup commands

Thread needs solution

Hi,

I made an .bat file which will make an event on a different server with the eventcreate command. When i try to run the script it works.

I made a test backup plan to try out if it would work. In the backup options i configured it like this:

Command: C:\users\rbe\desktop\test.bat

Working directory: C:

Fail backup plan when pre- or -post backup commands fail

 

Now when i run a configured backup it stops immediatly with the following error:

Failed to execute the command.
Additional info:
--------------------
Error code: 41
Module: 307
LineInfo: e6792a5ee190ddc0
Fields:  $module : agent_protection_addon_glx_pic_43994
Message: Failed to execute the command.
--------------------
Error code: 2
Module: 329
LineInfo: 8edc81ea38faba0a
Fields:  TraceLevel : 1, $module : gtob_backup_command_addon_glx_pic_43994
Message: Step 'Pre-backup command execution' has failed.
--------------------
Error code: 22
Module: 309
LineInfo: 8d165e86fb8195ff
Fields:  TraceLevel : 1, $module : disk_bundle_tape_off_glx_pic_43994
Message: TOL: Failed to execute the command. The 'Executing command' command executes the specified command in the command-line interface.
--------------------
Error code: 1024
Module: 0
LineInfo: 858cc05f488a8e7a
Fields:  ExitCode : 127, $module : mms_bundle_glx_pic_43994
Message: Child process has exited with code '127'.
--------------------
Error code: 3
Module: 167
LineInfo: 6bf76712d83410c4
Fields:  $module : mms_bundle_glx_pic_43994
Message: Failed to execute command '/bin/sh: C:UsersrbeDesktoptest.bat: not found
'.
--------------------

 

Any ideas?

0 Users found this helpful

Hello Ramon,

The working directory in this case would be C:\users\rbe\desktop\ and the command would be just test.bat

Thank you.

Hello.

>Fields:  $module : mms_bundle_glx_pic_43994
Message: Failed to execute command '/bin/sh: C:UsersrbeDesktoptest.bat: not found

It looks like you are running backups using Virtual Appliance (from glx_pic in module name) . They don't support execution of pre-post commands in Windows environment in a VM being backed up, if it was your intention.

In reply to by truwrikodrorow…

I'm running into the 127 error as well but I'm trying to run a cmd file as a post-restore task when restoring an archive of a physical PC to a VM.

Are you saying that post-commands don't work at all on VMs or just during backup?

Thanks

Beginner
Beiträge: 0
Kommentare: 1

I had the same problem. When one of the commands in the Batch File fails, the script outputs an Errolevel code.
When exiting the script with the following command, it wil always exit with errorlevel 0.

exit /b 0