Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hP6SF-0003rI-9y for pgsql-general@arkaria.postgresql.org; Fri, 10 May 2019 14:24:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hP6SC-0006YP-8r for pgsql-general@arkaria.postgresql.org; Fri, 10 May 2019 14:24:52 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hP6SB-0006YI-VW for pgsql-general@lists.postgresql.org; Fri, 10 May 2019 14:24:52 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hP6S9-0002a4-17 for pgsql-general@lists.postgresql.org; Fri, 10 May 2019 14:24:51 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C761E225F5; Fri, 10 May 2019 10:24:47 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 10 May 2019 10:24:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=g TdDLG/OSNexSVGp5zeJBr1CNrCWOBazxRfaXxgF144=; b=JbVJHHgDBWwQPCClW Z/xce4MYi7FSdg4fx5NiTnrQ3k8y8/tgJVVXWib6E1sXSsOsvzZcwVvZpH75pTME fiJjQLiYrrIr3orvN5KHzg3nw1tfHispWAHI5AE1okj1C8CHGL2u840SwsaOiSPn Maz2tz/ictvWCPBy620j19HPNiEnkhakkbjMBaTlakdi9PKnmNSBG/gW9KqlT3Rx HB+vkE//r1bNE05t/TJ+RBRF5IrY/gZ7Uqx18Pncvw4zBbdN94ZF4p/droGKyj5M FGnjkwdKTU32J3/z3aKCarhvYdzSiiEsAyQqpfPAk+ZzeHHwWSQOs6SpfJRyrJ/y TOYKA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=gTdDLG/OSNexSVGp5zeJBr1CNrCWOBazxRfaXxgF1 44=; b=BZr5qgxZO/ZMg1bTfiF8HyD2kYh9sz1xskczkWlpnnnQXG9wlR8/W9bV9 ow7k/RLO3Qqy4X0vnsjbexDr1uCAMTdltGXX4QO7jSsGf9xDEv6NuOTp23gBtFFR Lsozm0mlRYIyjICY4sJaAC0u/cLgzexiAl1cub8EeH3pCqgfjNq3lZBfyyHalKWX Mct1IRTGuh98xE/shtL0Lxm4EW0QmejaXVdMUu6IAA7UvLUgeoNqd1GzsW9AMzBk daOCiMR7oWgrS+yGh+peWkDg3fOXTQSkh3S1m6OcoMyPX95prPDpdKCBd6ViqJoy FB0FszDh0JRM+xt3aQSLJITalcYqA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrkeekgdejkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuffhomhgrihhnpegvnhhtvghrphhrihhsvghnvghtrdhorhhgpdhpohhsthhgrhgv shhqlhdrohhrghdpudeltddrrghtpdhgihhthhhusgdrtghomhdpuddtrdgrthenucfkph epjedurddvuddvrdduhedtrddvtddvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughr ihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfuihiivg eptd X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 8D5D3103CC; Fri, 10 May 2019 10:24:46 -0400 (EDT) Subject: Re: perl path issue To: Prakash Ramakrishnan Cc: David Steele , "pgsql-generallists.postgresql.org" References: <1d7ca818-77ce-33e1-4f06-b522484372a4@aklaver.com> <5502a2bb-1ffa-a718-fae4-de6034821936@pgmasters.net> <8c8409bd-99bd-abbb-afb7-8c4f49ba3460@pgmasters.net> <946d2c1f-cbf1-ecfa-7ee1-925d1de6d7a5@aklaver.com> <4e53d478-71b4-3359-78c2-1676c0cabe4d@pgmasters.net> <45abfa02-2cfd-b05c-f54e-41a770bbc4ea@aklaver.com> From: Adrian Klaver Message-ID: <2ae6795e-cc9a-83c8-3e7f-a8ce6eba6a28@aklaver.com> Date: Fri, 10 May 2019 07:24:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 5/10/19 2:24 AM, Prakash Ramakrishnan wrote: > Hi Adrian, > > Some perl path is not working here please find the below details, How did you install/build pgbackrest? The basic issue as I see it is that pgBackRest and your EDB Postgres are living in separate worlds as far as each is concerned. To fix this you have two options as I see it: 1) To reconcile then you will need to either consult the pgBackRest or EDB folks for a solution, as I use neither and don't know how to make then play well together. 2) Convert your Postgres server from using the EDB installer to using the native packages. This is going to have to happen anyway going forward off version 10. I would probably stick to the community packages here: https://www.postgresql.org/download/linux/redhat/ > > ==> ldd /opt/app/PostgreSQL/10/lib/postgresql/plperl.so >         linux-vdso.so.1 =>  (0x00007ffccf4a3000) > *        libperl.so => > /opt/edb/languagepack-10/Perl-5.24/lib/CORE/libperl.so (0x00007f9dac941000)* >         libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f9dac725000) >         libc.so.6 => /lib64/libc.so.6 (0x00007f9dac358000) >         libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f9dac13e000) >         libdl.so.2 => /lib64/libdl.so.2 (0x00007f9dabf3a000) >         libm.so.6 => /lib64/libm.so.6 (0x00007f9dabc38000) >         libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f9daba01000) >         libutil.so.1 => /lib64/libutil.so.1 (0x00007f9dab7fe000) >         /lib64/ld-linux-x86-64.so.2 (0x00007f9dacf44000) >         libfreebl3.so => /lib64/libfreebl3.so (0x00007f9dab5fb000) > > but the pgbackrest need this perl path i thin -   libperl.so => > /usr/lib64/perl5/CORE/libperl.so (0x00007f955333b000) > > > still we getting the error, > > ==> pgbackrest --stanza=A4_sydcosafpp001 --log-level-console=info > --db-path=/Postgres/prakash_pgbackrest --delta  --process-max=2 > --db-include=A4_Copy restore > --repo1-path=/pgBACKUP/A4_sydcosafpp001/backup/A4_sydcosafpp001 > 2019-05-10 19:23:39.525 P00   INFO: restore command begin 2.13: > --db-include=A4_Copy --delta --log-level-console=info > --pg1-path=/Postgres/prakash_pgbackrest --process-max=2 > --repo1-host=sydcosafpp001.enterprisenet.org > > --repo1-host-config=/etc/pgbackrest.conf --repo1-host-user=postgres > --repo1-path=/pgBACKUP/A4_sydcosafpp001/backup/A4_sydcosafpp001 > --stanza=A4_sydcosafpp001 > Password: > ERROR [124]: : remote process on 'sydcosafpp001.enterprisenet.org > ' terminated unexpectedly [124]: > ERROR: [124]: process terminated due to an unhandled exception: > *Can't load '/usr/lib64/perl5/vendor_perl/auto/DBD/Pg/Pg.so' for module > DBD::Pg: libpq.so.5: cannot open shared object file: No such file or > directory at /usr/lib64/perl5/DynaLoader.pm line 190.* >         at /loader/0x103a528/pgBackRest/Db.pm line 10. >         at /loader/0x103a528/pgBackRest/Main.pm line 12. >         pgBackRest::Main::__ANON__('Can\'t load > \'/usr/lib64/perl5/vendor_perl/auto/DBD/Pg/Pg.so\...') called at > /usr/share/perl5/vendor_perl/Carp.pm line 100 >         Carp::croak('Can\'t load > \'/usr/lib64/perl5/vendor_perl/auto/DBD/Pg/Pg.so\...') called at > /usr/lib64/perl5/DynaLoader.pm line 98 >         DynaLoader::croak('Can\'t load > \'/usr/lib64/perl5/vendor_perl/auto/DBD/Pg/Pg.so\...') called at > /usr/lib64/perl5/DynaLoader.pm line 190 >         DynaLoader::bootstrap('DBD::Pg', 'version=HASH(0x19b1a68)') > called at /usr/lib64/perl5/vendor_perl/DBD/Pg.pm line 73 >         require DBD/Pg.pm called at /loader/0x103a528/pgBackRest/Db.pm > line 10 >         pgBackRest::Db::BEGIN() called at > /usr/lib64/perl5/vendor_perl/DBD/Pg.pm line 0 >         eval {...} called at /usr/lib64/perl5/vendor_perl/DBD/Pg.pm line 0 >         require pgBackRest/Db.pm called at > /loader/0x103a528/pgBackRest/Archive/Common.pm line 16 >         pgBackRest::Archive::Common::BEGIN() called at > /usr/lib64/perl5/vendor_perl/DBD/Pg.pm line 0 >         eval {...} called at /usr/lib64/perl5/vendor_perl/DBD/Pg.pm line 0 >         require pgBackRest/Archive/Common.pm called at > /loader/0x103a528/pgBackRest/Archive/Get/File.pm line 15 >         pgBackRest::Archive::Get::File::BEGIN() called at > /usr/lib64/perl5/vendor_perl/DBD/Pg.pm line 0 >         eval {...} called at /usr/lib64/perl5/vendor_perl/DBD/Pg.pm line 0 >         require pgBackRest/Archive/Get/File.pm called at > /loader/0x103a528/pgBackRest/Protocol/Remote/Minion.pm line 17 >         pgBackRest::Protocol::Remote::Minion::BEGIN() called at > /usr/lib64/perl5/vendor_perl/DBD/Pg.pm line 0 >         eval {...} called at /usr/lib64/perl5/vendor_perl/DBD/Pg.pm line 0 >         require pgBackRest/Protocol/Remote/Minion.pm called at > /loader/0x103a528/pgBackRest/Main.pm line 118 >         eval {...} called at /loader/0x103a528/pgBackRest/Main.pm line 286 >         pgBackRest::Main::main('remote') called at (eval 269) line 1 >         eval '($iResult, $bErrorC, $strMessage) = > pgBackRest::Main::main(\'remote\') >        ;' called at /usr/lib64/perl5/vendor_perl/DBD/Pg.pm line 0 > > > can you please help this we are struggling to solve the issue, > > Regards, > Prakash.R > > > > > > On Thu, May 9, 2019 at 10:58 PM Adrian Klaver > wrote: > > On 5/9/19 9:58 AM, Prakash Ramakrishnan wrote: > > Hi David, > > > > I did the installation for using postgresql 10.4 version edb > standard > > edition.so again need to run the yum command or please advise me . > > I don't have time to go through the below, but some issues filed at > pgbackrest about using EDB installed database: > > https://github.com/pgbackrest/pgbackrest/issues?q=is%3Aissue+edb+is%3Aclosed > > > > > > > Regards, > > Prakash.R > > > > On Thu, May 9, 2019, 22:24 David Steele > > >> wrote: > > > >     On 5/9/19 12:51 PM, Prakash Ramakrishnan wrote: > >      > Hi Adrian, > >      > > >      > I don't know about that client libraries can you please > explain > >     or share > >      > me the command I will show you the output and we need the > >     solution for > >      > this pgbackrest issue . > > > >     yum install postgresql10 > > > >     should do it, but I thought pqlib was installed with the > server as well. > >       Perhaps not. > > > >     -- > >     -David > > david@pgmasters.net > > > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > > > > -- > > > > Thanks, > Prakash.R > PostgreSQL - Offshore DBA support TCS / Nielsen Infrastructure Team On > call : +91-8939599426 -- Adrian Klaver adrian.klaver@aklaver.com