Thread: Problem with validateuser.exe in unattended mode

Problem with validateuser.exe in unattended mode

From
David Wolff
Date:
<p style="padding: 0; margin: 0;"><span style="font-family: tahoma; font-size: 10pt;">Hi,<br /></span><p
style="padding:0; margin: 0;"><span style="font-family: tahoma; font-size: 10pt;"><br /></span><p style="padding: 0;
margin:0;"><span style="font-family: tahoma; font-size: 10pt;">I have problems with the validateuser.exe during
installationin unattended mode.<br /></span><p style="padding: 0; margin: 0;"><span style="font-family: tahoma;
font-size:10pt;">I'm trying to update an 9.2.8.1 to 9.2.9.3 windows 7 x64 installation.<br /></span><p style="padding:
0;margin: 0;"><span style="font-family: tahoma; font-size: 10pt;">In GUI mode the validation works. But in unattended
modeit always fails with:<br /></span><p style="padding: 0; margin: 0;"><span style="font-family: tahoma; font-size:
10pt;">"Incorrectpassword for user..."<br /></span><p style="padding: 0; margin: 0;"><span style="font-family: tahoma;
font-size:10pt;"><br /></span><p style="padding: 0; margin: 0;"><span style="font-family: tahoma; font-size: 10pt;">I
alsoreproduced the error with 9.2.9.3 windows 7 x86 installer running the following command twice:<br /></span><p
style="padding:0; margin: 0;"><span style="font-family: tahoma; font-size: 10pt;"><br /></span><p style="padding: 0;
margin:0;"><span style="font-family: tahoma; font-size: 10pt;">postgresql-windows-x86.exe --mode unattended
--superaccountpostgres --serviceaccount postgres --servicepassword "postgres" --prefix "C:\Program Files
(x86)\PostgreSQL\ProgramData\PostgreSQL\9.2\Data"--superpassword "postgres" --serverport 5432<br /></span> 

Re: Problem with validateuser.exe in unattended mode

From
Sandeep Thakkar
Date:
Hi

Did you provide the same configure flags for GUI installation? May be your
service account was the default i.e "NT AUTHORITY\NetworkService" . You may
check the installation logs in the system temp as well to confirm that.

On Thu, Nov 13, 2014 at 3:12 PM, David Wolff <david.wolff@lios-tech.com>
wrote:

>  Hi,
>
>
> I have problems with the validateuser.exe during installation in
> unattended mode.
>
> I'm trying to update an 9.2.8.1 to 9.2.9.3 windows 7 x64 installation.
>
> In GUI mode the validation works. But in unattended mode it always fails
> with:
>
> "Incorrect password for user..."
>
>
> I also reproduced the error with 9.2.9.3 windows 7 x86 installer running
> the following command twice:
>
>
> postgresql-windows-x86.exe --mode unattended --superaccount postgres
> --serviceaccount postgres --servicepassword "postgres" --prefix "C:\Program
> Files (x86)\PostgreSQL\ProgramData\PostgreSQL\9.2\Data" --superpassword
> "postgres" --serverport 5432
>



--
Sandeep Thakkar

Re: Problem with validateuser.exe in unattended mode

From
David Wolff
Date:

Hi,


I didn't use GUI for the initial installation. I can only use unattended mode for my use case.

If you call the installer for initial installation and update with the exact same flags the problem occurs.

Initial installation in unattended mode seems to work. The postgres user definitly exists and is used for the pg service.

But running the installer again in unattended mode (e.g. update) raises an error in validateuser.exe.

If you update in GUI mode using the same password the validation works.



-----Ursprüngliche Nachricht-----
Von: Sandeep Thakkar <sandeep.thakkar@enterprisedb.com>
Gesendet: Don 13 November 2014 14:04
An: David Wolff <david.wolff@lios-tech.com>
CC: pgsql-bugs@postgresql.org
Betreff: Re: [BUGS] Problem with validateuser.exe in unattended mode

Hi

Did you provide the same configure flags for GUI installation? May be your service account was the default i.e "NT AUTHORITY\NetworkService" . You may check the installation logs in the system temp as well to confirm that.

On Thu, Nov 13, 2014 at 3:12 PM, David Wolff <david.wolff@lios-tech.com> wrote:

Hi,


I have problems with the validateuser.exe during installation in unattended mode.

I'm trying to update an 9.2.8.1 to 9.2.9.3 windows 7 x64 installation.

In GUI mode the validation works. But in unattended mode it always fails with:

"Incorrect password for user..."


I also reproduced the error with 9.2.9.3 windows 7 x86 installer running the following command twice:


postgresql-windows-x86.exe --mode unattended --superaccount postgres --serviceaccount postgres --servicepassword "postgres" --prefix "C:\Program Files (x86)\PostgreSQL\ProgramData\PostgreSQL\9.2\Data" --superpassword "postgres" --serverport 5432




--
Sandeep Thakkar