cancel
Showing results for 
Search instead for 
Did you mean: 

EDB 11.4 installation fails if --prefix is used on unattended install

CBI
Level 3 Traveller

EDB 11.4 installation fails if --prefix is used on unattended install

I am unable to install 11.4 if I include the --prefix command line option. The installation works if I click through the installer GUI. Until 11.6 is released I must script the installation of EDB 11.4. I am required to install database binaries on a non-OS drive.

 

The installer is invoked using:

 

edb-as11-server-11.4.11-2-windows-x64.exe --optionfile db_install.config

 

db_install.config contains:

 

mode=unattended
servicename=edb11_4
serverport=5432
debuglevel=4
debugtrace=edb_install.log
datadir=D:\Data\PostgreSQL\data
prefix=E:\Program Files\PostgreSQL\11.4

 

edb_install.log contains:

 

<errorDump>
<context>MwSUdmn65MlTrMe4IqeppqkNNDqj9jeG5FbNLDrFyE3uazTecgX4crJDHNdA
fmN0wfxMfdVTxHEjK4xdTV9OtoBvTphbqHkdQ5NtEI6Dg29OY/t4VHvEq5gf
G361iFHZJzLEowbPNXLbcFgDn1bFEiR4kYPEPIU98+U9APvMRZkGTf1zYtYW
eSafc3EWWLZuUGu8Sk15zQDIGx8SpuZOnMsfvp+vzF19elRSIEuFs+P3aaug

....

zPFKARVYypTNcLzG0Wctj5cSJJ7MrFn8bwBFAsIPNJH9UIPJrazIz4BEWixX
EGxV5+coqvXVuIE9gQRtgAIBmBvSf2lYBlZawLd9DAsFDl6+DApPzsD31Krq
b4Mv2l8FqKKBIpOCE/gw8BqeLIAAIfErBqsCKdZMteNhr6lNZne5</dump>
<installerVersion>18.4.0</installerVersion>
<platformInfo>{Windows NT} 6.3 intel</platformInfo>
</errorDump>

 

bitrock_installer.log contains:

 

Log started 10/23/2019 at 06:27:55
Preferred installation mode : unattended
Trying to init installer in mode qt
Mode qt successfully initialized
[06:27:59] Determine system locale...
[06:27:59] Locale: ***unknown variable systemlocale***
Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\pgplusas-11 SBP_Version. Setting variable sbp_version to empty value
...

Could not find registry key HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\Installations\pgplusas-11 Shortcuts. Setting variable iShortcut to empty value
Executing icacls . /save "C:\Users\Administrator\AppData\Local\Temp/postgresql_installer_534479e444/aclfile"
Script exit code: 0

Script output:
processed file: .
Successfully processed 1 files; Failed processing 0 files

Script stderr:

Executing icacls . /restore "C:\Users\Administrator\AppData\Local\Temp/postgresql_installer_534479e444/aclfile"
Script exit code: 0

Script output:
processed file: .\.
Successfully processed 1 files; Failed processing 0 files

Script stderr:

[06:28:01] Existing base directory:
[06:28:01] Existing data directory: D:\Data\PostgreSQL\data
[06:28:01] Using branding: Advanced Server 11
[06:28:01] Using Super User: enterprisedb and Service Account: NT AUTHORITY\NetworkService
[06:28:01] Using Service Name: edb11_4

 

This is the output of the installer:

dir does not exist.png

This folder does not exist. The folder closest to this name is pgplusas_installer_e672f75a29.

1 REPLY 1
Level 3 Adventurer

Re: EDB 11.4 installation fails if --prefix is used on unattended install

Hi,

 

We are able to reproduce the issue as you mentioned.

 

The issue with using --prefix in an unattended mode of install is fixed in 11.5.

We have tested and it working fine.

 

So, Until 11.6 is released, you can use EDB Postgres Advanced Server 11.5.12. to install database binaries on a non-OS drive.