Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1satQH-00Brjp-Qv for pgsql-general@arkaria.postgresql.org; Mon, 05 Aug 2024 08:50:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1satQG-00CIvD-A8 for pgsql-general@arkaria.postgresql.org; Mon, 05 Aug 2024 08:50:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1satQF-00CIv5-So for pgsql-general@lists.postgresql.org; Mon, 05 Aug 2024 08:50:31 +0000 Received: from mail-yb1-xb2a.google.com ([2607:f8b0:4864:20::b2a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1satQC-003GsV-Im for pgsql-general@lists.postgresql.org; Mon, 05 Aug 2024 08:50:30 +0000 Received: by mail-yb1-xb2a.google.com with SMTP id 3f1490d57ef6-e087641d2a2so8671149276.0 for ; Mon, 05 Aug 2024 01:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1722847826; x=1723452626; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=HOJJiFhifkm4/c3zj9mKCDjjE/Y5qMuK7Qt87TWAyVE=; b=BZaAaETO8fUpDFcACYCHlbS85lvSomcBqVOA2N8EC3iJpsYqXWhplqJnoiXN38XkwW c+77P7NbU3QQlSF0+5NWI6X5ZC1cBfGdLBgyvllCn6iZP3CfEPBpODlo4LpRUF6ixU7h 37I1GCOpH+XKwG80BMJtMi3JB/vt/JrAWZ0arV2wiMEXlkORsumOXci83ac7IiYrlBaP wWx9aDYGR6FYAzm8BtFtU6827Y5pPhfoznDs7Tq1yCG/E9avOvV9UEPw1aOeW/GHWUTh AGXwTNzbhOzYRRd9ajnSACDU7wb39Tv9hUCeoAeUm2rdJmMXC3n9Tw7TYT0nkuQLwx6Z CnCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722847826; x=1723452626; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HOJJiFhifkm4/c3zj9mKCDjjE/Y5qMuK7Qt87TWAyVE=; b=mhbdpIyqZn2iiUB51Rqjxj2dwtkpDZLIqgLDM2OPltGCD/9PYfFhOpA28vNLVo1DOb r9dkjzrndXDTDOXHCYE8WMI8rvYCEXJODdZw3EQHzL7kWVkDmtgFPLI4gLpKZji7qrEX o6AegARZvdPh0O38wUWSekLPXjbI9pKT83rXLj1l9mEf4KZq8Xd0bZYstzSxnLPVc2Rv F0t0i1oqpj3SNzXnfjZMPxNkUXfFo5gmROD6uSl32dO553+CDd/9/psS5G2RJ5nV2WjX vhLw8TU2tQYIOqugXsdqn8+GFUKfa5q/e2VoAfebNDCBMsFOfIBShWGGCoFCZfZ4A5zk m19g== X-Forwarded-Encrypted: i=1; AJvYcCWru5w2mE9r19hzE/Z3pExszPPf9pWLNYoB6PQxj+oaihy41QTPuYWZgvRu3iYjaklEdapwa+PGpE0Tw821Uxdu7r7qsXgZeE1ys1ikpwCxaN5s X-Gm-Message-State: AOJu0YyPrX07PLDgoJWiIqwcOVMl0WK8FGX/2/A+nhrWi7no5mrODUp/ zBDBI5ICn3Supe+v0aQKCVZplimVs/vy7WeoKmsrHDVP3rWxz0a+FmNv65N4CMTfUjpFuSTqUld DepyFa9l0D3Y1koIqCwz/Ze5RxORUcK7xm5t2 X-Google-Smtp-Source: AGHT+IHNpumfB5HldDQh1jXVajv8r4nNBYByfdewoqOBav6uZx75zU4pnkFL4PqhVP/SniGoJl8Wwkj61o9BfWlumLM= X-Received: by 2002:a5b:88e:0:b0:e08:5cda:5e66 with SMTP id 3f1490d57ef6-e0bde4cb9e4mr11645071276.44.1722847826219; Mon, 05 Aug 2024 01:50:26 -0700 (PDT) MIME-Version: 1.0 References: <80c9b0ea-c874-40ad-a006-fb1eb37464c2@aklaver.com> <44b44ece-dce6-4b4f-b751-8787a5a071e0@aklaver.com> In-Reply-To: From: Sandeep Thakkar Date: Mon, 5 Aug 2024 14:20:10 +0530 Message-ID: Subject: Re: Windows installation problem at post-install step To: =?UTF-8?B?RXJ0YW4gS8O8w6fDvGtvZ2x1?= Cc: Thomas Munro , Adrian Klaver , pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000af29c6061eebc49d" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000af29c6061eebc49d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Thomas, This issue is seen only on v16 and not the back branches (tested on 15 and 14) and also confirmed by @Ertan K=C3=BC=C3=A7=C3=BCkoglu at https://github.com/EnterpriseDB/edb-installers/issues/127#issuecomment-2268= 371442 On Fri, Aug 2, 2024 at 6:14=E2=80=AFPM Sandeep Thakkar < sandeep.thakkar@enterprisedb.com> wrote: > > > On Mon, Jul 22, 2024 at 6:10=E2=80=AFPM Sandeep Thakkar < > sandeep.thakkar@enterprisedb.com> wrote: > >> >> >> On Mon, Jul 22, 2024 at 5:52=E2=80=AFPM Ertan K=C3=BC=C3=A7=C3=BCkoglu < >> ertan.kucukoglu@gmail.com> wrote: >> >>> Sandeep Thakkar , 22 Tem 2024 Pzt, >>> 15:01 tarihinde =C5=9Funu yazd=C4=B1: >>> >>>> >>>> When I checked the installation log shared by Ertan, I do see that the >>>> locale passed to initcluster script is the same as returned by the >>>> getlocales executable. >>>> >>>> Executing C:\Windows\System32\cscript //NoLogo "C:\Program >>>> Files\PostgreSQL\16/installer/server/initcluster.vbs" "NT >>>> AUTHORITY\NetworkService" "postgres" "****" >>>> "C:\Users\User1\AppData\Local\Temp/postgresql_installer_cd79fad8b7" >>>> "C:\Program Files\PostgreSQL\16" "C:\DATA_PG16" 5432 "Turkish,T=C3=BCr= kiye" 0 >>>> >>> >>> That is log file line no 5544 and is cscript logging. There is no >>> problem here. >>> If you check log file line no 5606 you will see that the encoding is no= t >>> correct just before initdb >>> Maybe this is related to BAT file usage? I don't know. >>> >>> Ah, I see it now. Let me take a closer look >> > > That line gets printed from within the initdb and is not printed by the > script. > @Thomas Munro I may be wrong but I guess fixing > the code might fix this. > Can you please share your patch so that I apply it on top of the last > released > source version, generate the installer and confirm the behaviour? > > >> >>> Thanks & Regards, >>> Ertan >>> >> >> >> -- >> Sandeep Thakkar >> >> >> > > -- > Sandeep Thakkar > > > --=20 Sandeep Thakkar --000000000000af29c6061eebc49d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Thomas,

This issue is seen only on v16 and not the bac= k branches (tested on 15 and 14) and also confirmed by=C2=A0@Ertan K=C3=BC=C3=A7=C3=BCkoglu=C2=A0at=C2=A0https://github.com/EnterpriseDB/edb-installers/issues/127#issu= ecomment-2268371442



On Fri, Aug 2, 2024 at 6:14=E2=80= =AFPM Sandeep Thakkar <sandeep.thakkar@enterprisedb.com> wrote:


On Mon, Jul 22, 2024 at 6:10=E2=80=AFPM Sandeep Thakkar <sandeep.thakkar@= enterprisedb.com> wrote:


On Mon, Jul 22, 2024 at 5:52=E2=80=AFPM= Ertan K=C3=BC=C3=A7=C3=BCkoglu <ertan.kucukoglu@gmail.com> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">
Sandeep Thakkar <sandeep.thakkar@enterprisedb.com>, 22 Tem 20= 24 Pzt, 15:01 tarihinde =C5=9Funu yazd=C4=B1:
<= div dir=3D"ltr">

When I checked the installation log shar= ed by Ertan, I do see that the locale passed=C2=A0to initcluster script is = the same as returned by the getlocales executable.

Executing C:= \Windows\System32\cscript //NoLogo "C:\Program Files\PostgreSQL\16/ins= taller/server/initcluster.vbs" "NT AUTHORITY\NetworkService"= "postgres" "****" "C:\Users\User1\AppData\Local\T= emp/postgresql_installer_cd79fad8b7" "C:\Program Files\PostgreSQL= \16" "C:\DATA_PG16" 5432 "Turkish,T=C3=BCrkiye" 0<= /div>

That is log file line no = 5544 and is cscript logging. There is no problem here.
If you che= ck log file line no 5606 you will see that the encoding is not correct just= before initdb
Maybe this is related to BAT file usage? I don'= ;t know.

Ah, I see it no= w. Let me take a closer look

T= hat line gets printed from within the initdb and is not printed by the scri= pt.=C2=A0
@Thomas= Munro=C2=A0 I may be wrong but I guess fixing the code might fix this.= =C2=A0
Can you please share your patch so that I apply it on top of the = last released
source version, generate the installer and confirm the beh= aviour?=C2=A0

=C2=A0
Thanks &=C2=A0Regards,
Ertan=


--
Sandeep Thakkar




--
Sandeep Thakkar




--
Sandeep Thakkar


--000000000000af29c6061eebc49d--