#1 Global Leader in Data Resilience

Upgrade to Veeam Backup & Replication 12.3 Fails During "Step 1 of 7: Installing PostgreSQL server 15.10-1..."

KB ID: 4698
Product: Veeam Backup & Replication | 12.3
Published: 2024-12-10
Last Modified: 2024-12-16
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please, try again later.

Article Applicability

The issue described in this article only occurred when using the initial Veeam Backup & Replication 12.3 ISO named VeeamBackup&Replication_12.3.0.310_20241201.iso.

On 2024-12-16, a new ISO (VeeamBackup&Replication_12.3.0.310_20241211.iso) was made available, which contains a check that stops the installer from proceeding if the Windows Script Host is disabled (documented in KB4699).

Please note that if the initial upgrade fails as described in this article, simply downloading the latest ISO and reattempting the upgrade will not resolve the issue. If the initial upgrade fails as described in this article, you must still remove the partial PostgreSQL install that was created and enable Windows Script Host before attempting the upgrade again.

Challenge

While upgrading Veeam Backup & Replication to version 12.3, the installer fails during "Step 1 of 7: Installing PostgreSQL server 15.10-1".
  • Reviewing the latest VbrSuite installer log file found in C:\ProgramData\Veeam\Setup\Temp\, the following error is found:
    [ERROR] Failed to install PostgreSQL server 15.10-1.
    
  • Checking the System event logs with Event Viewer, the following information message is observed:
    Event ID 1000
    Attempt to execute Windows Script Host while it is disabled.
    
Event ID 1000

Cause

In the scenario described, the Veeam Backup & Replication 12.3 upgrade fails to install PostgreSQL 15.10-1 because the Windows Script Host has been disabled.

The disabling of the Windows Script Host is recommended as part of the Security & Compliance Analyzer and is disabled when using the script to automate the implementation of Security & Compliance Analyzer Recommendations from KB4525.

However, as documented in the Security & Compliance Analyzer documentation:

Before disabling Windows Script Host, make sure that this service is not used by the backup infrastructure components you plan to install on the backup server. If there are any (for example, PostgreSQL database), install these components first, then disable the service. To update these components [PostgreSQL], you need to enable the [Windows Script Host] service temporarily.
FAQ: Why is the Veeam Backup & Replication 12.3 upgrade attempting to install PostgreSQL?

With the introduction of Microsoft Entra ID backup in Veeam Backup & Replication 12.3, the installer will automatically deploy a local PostgreSQL instance if one does not already exist. This ensures that an initial default Microsoft Entra ID backup repository can be configured.

For more information about the logic the installer uses to determine whether to attempt to install PostgreSQL and configure the Microsoft Entra ID backup repository, review the More Information section of KB4653.

Solution

If the upgrade fails as described, do not attempt to upgrade Veeam Backup & Replication a second time without first completing the relevant solution steps in this article.

However, if you have already run the upgrade a second time, and the upgrade appears to have succeeded, please review the second solution section of this article.

For Customers Who Stopped When the Upgrade Failed The First Time

If the Veeam Backup & Replication upgrade has failed while attempting to install PostgreSQL, and you have not attempted to run the upgrade a second time, follow the steps below to complete the upgrade:

  1. If the Installation Failed screen is still open, click Finish to close it.
Click Finish
  1. Enable the Windows Script Host.
    This can be done manually or by using the provided PowerShell command:
    • Delete the Registry Value named 'Enabled' within the following registry keys:
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Script Host\Settings\
      HKEY_CURRENT_USER\Software\Microsoft\Windows Script Host\Settings\
    • PowerShell script to delete the registry value from the two possible registry keys:
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows Script Host\Settings" -Name "Enabled"
Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows Script Host\Settings" -Name "Enabled"
  1. Uninstall the partial PostgreSQL 15 installation. (appwiz.cpl)

    Note: During the uninstall, the error "Error deleting service postgresql-x64-15" will appear multiple times. Click OK on each error and allow the uninstall to complete.
Uninstall Error
Click OK on the errors that appear, and allow PostgreSQL to uninstall.
  1. With Windows Script Host enabled and the partial PostgreSQL 15 install removed, perform the Veeam Backup & Replication 12.3 upgrade again. The upgrade should now successfully deploy PostgreSQL 15.10-1 and complete the upgrade.
  2. After the upgrade completes, you are welcome to disable Windows Script Host once more.
# (Optional) Re-disable Windows Script Host after install/upgrade completes.
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows Script Host\Settings' -Name 'Enabled' -Value "0" -PropertyType DWORD -Force
New-ItemProperty -Path 'HKCU:\SOFTWARE\Microsoft\Windows Script Host\Settings' -Name 'Enabled' -Value "0" -PropertyType DWORD -Force

For Customers Who Ran the Upgrade a Second Time and It Succeeded

If the Veeam Backup & Replication upgrade failed the first time, and you reran the upgrade without following the steps above to correct the cause of the initial failure, please review the following information:

  • If the Veeam Backup & Replication upgrade succeeded on the second attempt, the upgrade to 12.3 can be considered complete. However, because the initial upgrade attempt failed and left behind a partial PostgreSQL deployment, during the second upgrade attempt, the installer will have detected that PostgreSQL deployment and skipped installing PostgreSQL. This failure to install PostgreSQL leads to the issue described in KB4653, wherein the Microsoft Entra ID backup repository is left unconfigured. 
  • We recommend that you uninstall the partial PostgreSQL 15 deployment.
    You can verify it's a partial deployment of PostgreSQL 15 because the service postgresql-x64-15 will not be present.
  • If you plan to use Microsoft Entra ID backup, you'll need to create a PostgreSQL 15 instance and configure the Microsoft Entra ID backup repository yourself. Keep in mind that you'll need to enable Windows Script Host to install PostgreSQL. Also, you can use the PostgreSQL installer included on the Veeam Backup & Replication ISO (D:\Redistr\x64\PostgreSQL\15.10-1). 
    After you deploy a PostgreSQL 15 instance to act as the Microsoft Entra  ID backup repository, remember to review the Adjusting PostgreSQL Instance Configuration for advice on ensuring the PostgreSQL instance is configured for optimal performance to handle the backup load.

 

To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please, try again later.