Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report show's failed on form header even though the session is successful #10

Closed
gveater opened this issue Oct 24, 2016 · 6 comments
Closed

Comments

@gveater
Copy link

gveater commented Oct 24, 2016

veeamcapture
The picture shows that the top of the form is the color red and reads error, even though all of the backups in this job are successful. I looked through and it seems to be the same on every job that had a recent failure. I have the max variable set to 1 so that I only get the results of the last session, but it looks like it is pulling the info for the top of the form from all of the job session history.

@poulpreben
Copy link
Contributor

Hi @gveater. Can you please double check whether the job failed on a synthetic operation, such as incremental backup file merge or synthetic full creation? This is typically the reason for such reports.

@poulpreben
Copy link
Contributor

Adding author @tdewin as well.

@gveater
Copy link
Author

gveater commented Oct 24, 2016

We are currently testing on how to move our copy to external media jobs so I have had multiple failures for various reasons on this job. The last two failure were unexpected failures, from me stopping the job. Before that there were a lot of media not found. This itself is a Backup Copy job. From my understanding it does a synthetic full with whatever backup is currently on that HDD.

@tdewin
Copy link
Contributor

tdewin commented Oct 24, 2016

Confirmed, this can be checked by running limited code below. Backup Copy Job (or backupsync) return status None

$jobtype = "BackupSync"
#$jobtype = "Backup"
$Jobs = @(Get-VBRJob | ? { $_.JobType -ieq $jobtype }) | Sort-Object -Property Name

$allsessions = Get-VBRBackupSession | ? { $_.jobtype -ieq $jobtype } 
$allorderdedsess = $allsessions | Sort-Object -Property CreationTimeUTC -Descending  

foreach ($Job in $Jobs) {
     $lastsession = $allorderdedsess | ? { $_.jobname -eq $Job.Name } | select -First 1
     if ($lastsession -ne $null) {
            write-host ("Name : {0} Last Result : {1}  Date : {2}" -f $Job.Name,$lastsession.Result,$lastsession.CreationTime)
     } else {
           write-host ("Could not find Session for {0}" -f $Job.Name)
     }
} 

@tdewin
Copy link
Contributor

tdewin commented Oct 24, 2016

Update is in pull request now. Code manually evaluates "Success". Case can be closed when PR is committed.

@poulpreben
Copy link
Contributor

Closing. Fixed in PR #11. Thanks @tdewin and @gveater.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants