tigattack / VeeamNotify

Send Veeam B&R session summary notifications to Discord, Slack, and Teams.
GNU General Public License v3.0
42 stars 7 forks source link

Script error #53

Open tunavis opened 2 years ago

tunavis commented 2 years ago

What happened?

image

Receiving the follow error in veeam. Nothing in the logs file.

Steps To Reproduce

No response

VeeamNotify version

v1.0

PowerShell version

5.1

Veeam Backup & Replication build number

11.0.1.1261

Relevant log output

Log folder empty
tigattack commented 2 years ago

Could you please share your job log? This can be found at %ProgramData%\Veeam\Backup\<JOBNAME>\Job.<JOBNAME>.Backup.log.

Please remember to scrub any sensitive information.

I'm interested in the log output from the line stating Running post-job script onwards.

sopleb commented 1 year ago

I'm running into this same issue...

Running post-job script
[14.11.2022 10:17:27] <01> Info         Executing custom command [C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe], arguments [-NoProfile -ExecutionPolicy Bypass -File 'C:\VeeamScripts\VeeamNotify\Bootstrap.ps1']
[14.11.2022 10:17:27] <01> Warning      Post-job script terminated with exit code -196608
sopleb commented 1 year ago

Interesting... I removed the single quotes from the command and it worked fine...

[17.11.2022 00:04:47] <01> Info         Executing custom command [Powershell.exe], arguments [-File C:\VeeamScripts\VeeamNotify\Bootstrap.ps1]
[17.11.2022 00:04:57] <01> Info         Post-job script completed successfully
tigattack commented 1 year ago

Good catch @sopleb, thanks! That's interesting, I've not seen anything like that before.

Since I'm unable to reproduce the original issue, would you mind trying it again with the -NoProfile -ExecutionPolicy Bypass parameters and the full path to powershell.exe, but with no quotes on the Bootstrap.ps1 path?

It would also be useful to know what version of Veeam B&R you're running.

sopleb commented 1 year ago

Good catch @sopleb, thanks! That's interesting, I've not seen anything like that before.

Since I'm unable to reproduce the original issue, would you mind trying it again with the -NoProfile -ExecutionPolicy Bypass parameters and the full path to powershell.exe, but with no quotes on the Bootstrap.ps1 path?

It would also be useful to know what version of Veeam B&R you're running.

https://i.imgur.com/4ubYIHT.png

[18.11.2022 11:00:36] <01> Info         Running post-job script
[18.11.2022 11:00:36] <01> Info         Executing custom command [C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe], arguments [-NoProfile -ExecutionPolicy Bypass -File C:\VeeamScripts\VeeamNotify\Bootstrap.ps1]
[18.11.2022 11:01:08] <01> Info         Post-job script completed successfully