Comprehensive data protection for all workloads
Post Reply
mamosorre84
Veeam Legend
Posts: 336
Liked: 34 times
Joined: Oct 24, 2016 3:56 pm
Full Name: Marco Sorrentino
Location: Ancona - Italy
Contact:

PostgeSQL - PreFreeze script error

Post by mamosorre84 »

Hi,

we are trying to configure application aware with custom pre-post script on a SUSE12 with PostgreSQL.

The job returns the error "Running pre-freeze script in the guest OS Error: Script finished execution with unexpected exit code: 126"

Veeam logs:

Code: Select all

[08.06.2017 17:18:31] <16> Error    [ScriptInvoker] Failed to execute script in lin guest machine over SSH. Script path: C:\Veeam-Scripts\pre-freeze-script.sh.
[08.06.2017 17:18:31] <16> Error    bash: /tmp/bc8f9983-bfa7-456e-95e6-9c424bab8098_pre-freeze-script.sh: /bin/bash^M: bad interpreter: No such file or directory
[08.06.2017 17:18:31] <16> Error     (System.Exception)
[08.06.2017 17:18:31] <16> Error       at Veeam.Backup.SSH.CSshCommandResult.GetAnswer(Boolean trimAnswer, String failText)
[08.06.2017 17:18:31] <16> Error       at Veeam.Backup.SSH.CSshScriptFile.Execute(TimeSpan timeout, Boolean getExitCode, String[] args)
[08.06.2017 17:18:31] <16> Error       at Veeam.Backup.Core.CSshScriptInvoker.ExecScript(String localPath, TimeSpan timeout)
[08.06.2017 17:18:31] <16> Error    [ScriptInvoker] Failed to execute script over SSH, failing over to VIX.
We have tried to use VMTools quiescence using the same scripts under /usr/sbin in the guest OS and the job has ended successfully.

What could be the problem? Any ideas?

Thank you

Marco
mamosorre84
Veeam Legend
Posts: 336
Liked: 34 times
Joined: Oct 24, 2016 3:56 pm
Full Name: Marco Sorrentino
Location: Ancona - Italy
Contact:

Re: PostgeSQL - PreFreeze script error

Post by mamosorre84 »

Solved copying the script from guest OS to the backup server with WinSCP
Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 85 guests