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 1ggxs9-0001M3-2R for pgsql-admin@arkaria.postgresql.org; Tue, 08 Jan 2019 20:21:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ggxs7-00014l-H8 for pgsql-admin@arkaria.postgresql.org; Tue, 08 Jan 2019 20:21:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ggxs6-00014d-SR for pgsql-admin@lists.postgresql.org; Tue, 08 Jan 2019 20:21:11 +0000 Received: from sonic305-4.consmr.mail.bf2.yahoo.com ([74.6.133.43]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ggxs2-0002y5-Qz for pgsql-admin@lists.postgresql.org; Tue, 08 Jan 2019 20:21:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1546978865; bh=40P2fmBoXpbvWTPNaPtcCKbWhOlvjqyGJu2Rxb1i8yc=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=gkymlT3LIbpRbzaOm/lyum+m40rPN0dRl2tyigk3qbUTsOe0DoTszZlqhpfwQMUGNMaTYlCeDGEa3ziayVlSMQLdaARqa24gjDTjo2hbs90bIzfjTpp46/Lm1iKWKbdwu1xgLWoUdIMqdKGyhG7vQBmwWqqUCIHHiDILQhsEu/1XK/shgC+qYCuu5BJy5RAxs4WfJt/48q3cqQxnaPyvpGYOTrTnai/j+87m5aYxtMSuorAuyCyVmWqr5PdbMPsEVidc2ngvsYkC1TWjLLAk2rI0/fMqrqxfZ73VpJ9QepbQPXryMuQkzFGad71/jJvftKTby5L7xjDBgjDez+sDMg== X-YMail-OSG: cI5mpCYVM1luKSAzqYrch3ASKnIm0hHvIgj16C67GMWZ_Hut2lAwAh13mZkMHvA .m0msPlxJ5OonDSTK5dgKGhrsPracJjgoSDgNiaRDxPA6iVOQjEqDmKqbHXjrjRgAghDY8LPKksB u61dhOhRcKmcJoOFZH6NP8uQZRCrKH8ueqYbHr7uGPQUnBlEFW7rG5uoHyyJkSjjAaf4FQNnCrN2 qMLHURS4eWKIOygZbbVEucNXghcqbTWxgaFI9gK255xkseldk01.QISRjhCXlVD3VpAHKgO9x94l x7BSIsgWDN1JXzdDJooxFKZhnEIaRvw3lr5gpeV9tsTtgPQQCbSGHI1SPyMg60WcynrTEz4lI7f2 oxkw7cy9vh_A0To4WV9H6aBTA_58nenH6xUKRqUpU7HrGSnN0SH.43.87G6qYvi0z48ISGri60sY obd5AjtooAYc8R70o_V_anEo_aaFi3T65uWeX74NWT._OA0avIoqVUMlUmFVx9aUtffmhHGuF..Z sF6zAbVVNNzhGlfQHQfGjm_3cCx0TpNf2PtfHopGSFZ7sy7DDHrNJs7YN.IlqqOvkw2F4CLYocR_ KRI1fiCpCqfr6hrCdsjYG7sgvVnYpaWcanwt.prb4iadf3Gm.38BRBn804p1geuR2ul3mWJTbgZ6 yPC7f9bGKaTngv5bDnAQqSReDgd27He_N7MLGt3KMKf9_otZdieD52oC.1qr7N1_J8OOOWcjEHqJ tSbN5exnnOVlHDNezZGyDgh4GzO7uVoTiHkC8x9S2.M34rSwPq5i3uxBSJ4O4J9e8d0TTIX77HG7 8AL2TXxgFKoBmVrpsiVjhTZQdqK_MdZ8Y4ADiqnWdOdVP5E..X7qjb8xjpaVN2c5iL4b9MEMvTG1 yNGSm1ZUp1XGZN4Ro4L.1EkC4BShbA5NrKFOWbCuKb0BSsmjK9gJBdJc66FMJ0vzqVRaU1PNu0zw Ceps1X3xo_xKMBDJI9GghRyECZMq0nX9K8XKFnnX0IpVb_yLmdZLjIMl4CowcKTs.InEIsR_11qe R.NP4Av.5KAzfGAUynwH7xG5.kyKh4wDiDN1q7GdAiR9kZAWr93C3yG71q0P7TM9TDaZyD0.o0Hr t8hw- Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.bf2.yahoo.com with HTTP; Tue, 8 Jan 2019 20:21:05 +0000 Date: Tue, 8 Jan 2019 20:21:01 +0000 (UTC) From: Pepe TD Vo Reply-To: Pepe TD Vo To: Ricardo Martin Gomez , Kris Deugau , "pgsql-admin@lists.postgresql.org" Message-ID: <1512268703.15157573.1546978861810@mail.yahoo.com> In-Reply-To: <646999185.15108632.1546978105400@mail.yahoo.com> References: <1631501735.1420767.1545138861194.ref@mail.yahoo.com> <1631501735.1420767.1545138861194@mail.yahoo.com> <413070647.1500395.1545146432141@mail.yahoo.com> <655950091.6682015.1545227950414@mail.yahoo.com> <1647331387.6706670.1545231013241@mail.yahoo.com> <1026281491.6868813.1545244876819@mail.yahoo.com> <16116df4-3ae8-688b-5794-440e47d61ba1@vianet.ca> <404624400.7401294.1545328383827@mail.yahoo.com> <1417769599.15062732.1546970845229@mail.yahoo.com> <663674680.15076651.1546972379997@mail.yahoo.com> <646999185.15108632.1546978105400@mail.yahoo.com> Subject: Re: install Postgres on RHED 7 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_15157572_1350268996.1546978861803" X-Mailer: WebService/1.1.12857 YahooMailNeo Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 Content-Length: 50984 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_15157572_1350268996.1546978861803 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable #ps -aux|grep postgres postgres 4840 0.0 0.1=C2=A0 396576 16772 ? Ss 12:02 0:00 /usr/pgsql-11/bin/= postmaster -D /var/lib/pgsql/11/data/ postgre 4842 0.9 9.9 251496 1928 ? Ss 12:02 0:00 posgres:loggerpostgre 4844= 0.9 9.9 396692 3456 ? Ss 12:02 0:00 posgres:checkpointer postgre 4845 0.9 9.9 396576 3344 ? Ss 12:02 0:00 posgres:background writer postgre 4846 0.9 9.9 396576 6248 ? Ss 12:02 0:00 posgres:walwriter postgre 4847 0.9 9.9 396992 3088 ? Ss 12:02 0:00 posgres:autovacuum launche= r postgre 4848 0.9 9.9 251492 2044 ? Ss 12:02 0:00 posgres:stats collectorpos= tgre 4849 0.9 9.9 396992 2796 ? Ss 12:02 0:00 posgres:logical replication l= auncher root 14091 0.0 0.0=C2=A0 112704 980 pts/1 S+ 14:53 0:00 grep --color=3Dauto= postgres Even I stop and restart the service still error #service postgresql stopredirecting to /bin/systemctl stop posgresql.servic= e #service postgresql startredirecting to /bin/systemctl start postgresql.ser= vicejob for posgresql.service failed because the control process existed wi= th error code. See "systemctl status posgresql.service" and "journalctl -xe= " for details. for systemctl status posgresql.service, as same as I posted from previous. #journalctl -xe -- Unit user-995.slice has begun shutting down.Jan 08 14:55:26 hostname pol= kidtd[1000]: Registered Authentication Agent for unix-procesJan 08 14:55:26= hostname polkidtd[1000]: Unregistered Authentication Agent for unix-proc Jan 08 14:55:26 hostname polkidtd[1000]: Registered Authentication Agent fo= r unix-proces Jan 08 14:55:26 hostname systemd[1]: Starting PostgreSQL database server ..= . -- Subject: Unit posgresql.service has begun start-up-- Defined-By:systemd-= - Support: http://lists.freedesktop.org/mailman/listinfor/systemd-devel----= Unit postgresql.service has begun starting uo.Jan 08 14:44:31 hostname [g_= c tl[14265]: LOG: could not bind IPv4 socket: Address alreaJan 08 14:44:31 = hostname [g_c tl[14265]: Jan 08 14:44:31 hostname [g_c tl[14265]: Jan 08 14:44:31 hostname [g_c tl[14265]: Jan 08 14:44:31 hostname [g_c tl[14265]: Bach-Nga No one in this world is pure and perfect.=C2=A0 If you avoid people for the= ir mistakes you will be alone. So judge less, love and forgive more.To call= him a dog hardly seems to do him justice though in as much as he had four = legs, a tail, and barked, I admit he was, to all outward appearances. But t= o those who knew him well, he was a perfect gentleman (Hermione Gingold) **Live simply **Love generously **Care deeply **Speak kindly.*** Genuinely = rich *** Faithful talent *** Sharing success=20 On Tuesday, January 8, 2019 3:08 PM, Pepe TD Vo wrot= e: =20 #ps -aux|grep postgres postgres 4840 0.0 0.1396576 16772 ? Ss 12:02 0:00 /usr/pgsql-11/bin/postmas= ter -D /var/lib/pgsql/11/data/ postgre 4/842 0.9 9.9 352496 1928 ? Ss 12:02 0:00 posgres:loggerpostgre 4/8= 42 0.9 9.9 352496 1928 ? Ss 12:02 0:00 posgres:logger postgre 4/842 0.9 9.9 352496 1928 ? Ss 12:02 0:00 posgres:logger postgre 4/842 0.9 9.9 352496 1928 ? Ss 12:02 0:00 posgres:logger postgre 4/842 0.9 9.9 352496 1928 ? Ss 12:02 0:00 posgres:logger postgre 4/842 0.9 9.9 352496 1928 ? Ss 12:02 0:00 posgres:logger =C2=A0Bach-Nga No one in this world is pure and perfect.=C2=A0 If you avoid people for the= ir mistakes you will be alone. So judge less, love and forgive more.To call= him a dog hardly seems to do him justice though in as much as he had four = legs, a tail, and barked, I admit he was, to all outward appearances. But t= o those who knew him well, he was a perfect gentleman (Hermione Gingold) **Live simply **Love generously **Care deeply **Speak kindly.*** Genuinely = rich *** Faithful talent *** Sharing success=20 On Tuesday, January 8, 2019 1:41 PM, Ricardo Martin Gomez wrote: =20 #yiv5867325590 P {margin-top:0;margin-bottom:0;}Hi, but the ERROR is: "pg_= ctl[6896]:HINT: Is another postmaster alreadying runnin ...y" Please, Can you check this?# ps -aux |grep postgres Regards. ______________________Saludos=C2=A0Ing. Ricardo Mart=C3=ADn GomezDBA - SysA= dminDe: Pepe TD Vo Enviado: martes, 8 de enero de 2019 15:32 Para: Kris Deugau; pgsql-admin@lists.postgresql.org Asunto: Re: install Postgres on RHED 7=C2=A0sorry, my fingers split before = I can finish all typing: finally the SA installed the OS libraries and I installed the server packag= es successful but not postgres11-contrib.#yum install postgresql11-server p= ostgresql11-contrib=C2=A0 --> I see no package postgresql11-contrib availab= eDependencies resolvedTransaction test succeededrunning transaction=C2=A0in= stalling: libicu-50.1.2.17.el7.x86_64=C2=A0 =C2=A01/2Installing: postgresql= 11-11.1-1PGDG.rhel7.x86_64=C2=A0 =C2=A02/3failed to link /usr/bin/psql -> /= etc/alternative/pgsql-psql: /usr/bin/pgql exists and it's not a a symlinkfa= iled to link /usr/bin/clusterdb -> /etc/alternatives/pgsql-clusterdb: /usr/= bin/clusterdb exist and itis not a symlink failed to link /usr/bin/createdb -> /etc/alternatives/pgsql-createdb: /usr/= bin/createdb=C2=A0exist and it is not a symlinkfailed to link /usr/bin/crea= teuser -> /etc/alternatives/pgsql-createuser: /usr/bin/createuse=C2=A0exist= and it is not a symlink failed to link /usr/bin/dropdb -> /etc/alternatives/pgsql-dropdb: /usr/bin/= dropdb exist and it is not a symlinkfailed to link /usr/bin/dropuser -> /et= c/alternatives/pgsql-dropuser: /usr/bin/dropuser exist and it is not a syml= inkfailed to link /usr/bin/pg_basebackup -> /etc/alternatives/pgsql-pg_base= backup: /usr/bin/pg_basebackup exist and itis not a symlinkfailed to link /= usr/bin/pg_dump -> /etc/alternatives/pgsql-pg_dump: /usr/bin/pg_dump exist = and it is not a symlinkfailed to link /usr/bin/pg_dumpall -> /etc/alternati= ves/pgsql-pg_dumpall: /usr/bin/pg_dumpall exist and it is not a symlinkfail= ed to link /usr/bin/pg_restore -> /etc/alternatives/pgsql-pg_restore: /usr/= bin/pg_restore exist and it is not a symlink failed to link /usr/bin/reindexdbl -> /etc/alternatives/pgsq-reindexdb: /us= r/bin/reindexdb exist and it is not a symlink failed to link /usr/bin/vacuumdb -> /etc/alternatives/pgsql-vacuumdb: /usr/= bin/vacuumdbexist and it is not a symlink installing:=C2=A0=C2=A0postgresql11-server-11.1-1PGDB.rhel7.x86_64=C2=A0=C2= =A0 1/3 Verifying:=C2=A0 postgresql11-11.1-1PGDB.rhel7.x86_64=C2=A0 =C2=A01/3Verify= ing: libicu-50.1.2-17.el7.x86_64=C2=A0 =C2=A02/3Verirying:=C2=A0 postgresql= 11-server-11.1-1PGDB.rhel7.x86_64=C2=A0 =C2=A03/3 Installed:postgresql11-server.x86_64 0:11.1-1PGDG.rhel7Dependency Installed= :libicu.x86_64 0:50.1.2-17.el7=C2=A0 =C2=A0postgres11.x86_64 0:11.1-1PGDG.r= hel 7 Completed! After the server successful install, I initialize the database an # /usr/pgsql-11/bin/postgresql-11-setup initdbInitializing database .....OK # systemctl enable postgres-11created symlink from /etc/systemd/system/mult= i-user.target.wants/postgresql-11.service to /usr/lib/systemd/system/postge= resql-11.service. # systemctl start postgresql-11# systemctl status postgresql-11postgresql-1= 1.service - PostgreSQL 11 database serverLoaded:loaded (/usr/lib/systemd/sy= stem/postgresql-11.service; enabled; vendor preset: disabled)Active: active= (running) since Tues 2019-01-08 12:02:05 EST; 12s agoand so on .... # service postgresql initdbhint: the perferred way to do this is now "postg= resql-set initdb"Initializing database ... OK but when I tried to correct the postgres.conf with the listen_addresses =3D= '*' and port=3D5432.=C2=A0 Restart the postgresql server I get an error. redirecting to /bin/systemctl start postgresql.service job for postgresql.service failed because the control proces exited with er= ror code.=C2=A0 See "systemctl status postgresql.service" and "jouralctl -x= e" for details. I run:=C2=A0#systemctl status postgresql.service -lpostgresql.service - Pos= tgreSQL database serverLoaded:loaded (/usr/lib/systemd/system/postgresql.se= rvice; diabled; vendor preset: disabled)Active: failed (result: exit-code) = since Tues 2019-01-08 12:34:43 EST; 2min 22s agoProcess: 6896 ExecStart=3D/= usr/bin/pg_ctl start -D ${PGDATA} -s -o -p ${PGPORT} -w -t 300 (code=3Dexis= ted, status=3D1/FAILUREProcess: 688 ExecStartPre=3D/usr/bin/postgresql-chec= k-db-dir ${PGDATA} (code=3Dexisted, status=3D0/SUCCESS)=C2=A0=C2=A0Jan 08 1= 2:34:42 hostname pg_ctl[6896]:HINT: Is another postmaster alreadying runnin= ...yJan 08 12:34:42 hostname pg_ctl[6896]:LOG: could not bing IPV6 socket:= Addressa ...seJan 08 12:34:42 hostname pg_ctl[6896]:HINT: Is another postm= aster alreadying runnin ...yJan 08 12:34:42 hostname pg_ctl[6896]:WARNING: = could not create any TCP/IP socketsJan 08 12:34:43 hostname pg_ctl[6896]:pg= _ctl: could nto start serverJan 08 12:34:43 hostname pg_ctl[1]: postgresql.= service: control process existed, c...=3D1 Jan 08 12:34:43 hostname pg_ctl[1]: Failed to start PostgreSQL database ser= ver. Jan 08 12:34:43 hostname pg_ctl[1]: Unit postgresql.service entered failed = state. Jan 08 12:34:43 hostname pg_ctl[1]: postgresql.service failed Hint: Some lines were ellipsized, use -l to show in full what I did wrong here?=C2=A0 Do I need to add listen_addresses =3D '*' and = port =3D 5432 on both /var/lib/pgsql/data/postgres.conf and /var/lib/pgsql/= 11/data/postgres.conf ? thank you for all your help. v/r, Bach-Nga No one in this world is pure and perfect.=C2=A0 If you avoid people for the= ir mistakes you will be alone. So judge less, love and forgive more.To call= him a dog hardly seems to do him justice though in as much as he had four = legs, a tail, and barked, I admit he was, to all outward appearances. But t= o those who knew him well, he was a perfect gentleman (Hermione Gingold) **Live simply **Love generously **Care deeply **Speak kindly.*** Genuinely = rich *** Faithful talent *** Sharing success On Thursday, December 20, 2018 4:17 PM, Kris Deugau wro= te: Pepe TD Vo wrote: > May you suggest me exactly repositories packages needed for install=20 > PostgreSQL?=C2=A0 Seem to me this link,=20 > https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/=20 > all rpm files needed another dependencies.=C2=A0 Total more than 300 file= s=20 > and only a few allow me to install the rest of them needed another=20 > dependencies and didn't give me exactly what they are. Some of them will be from the stock Red Hat repositories, and some will=20 be from the PGDG repository.=C2=A0 I haven't used that repository, and I=20 haven't done much on an RPM-based system for a while so I can't give you=20 any more specific information. It's possible - but very tedious and difficult - to install a package=20 with a large dependency tree entirely by hand.=C2=A0 I *have* done this=20 myself in the past, and I recall a few cases where it literally took two=20 or three hours to get everything installed to support the specific=20 package I started out trying to install.=C2=A0 This is why tools like yum= =20 were developed;=C2=A0 they do the work of checking through the list to see= =20 what's required, and where it can be installed from. This isn't specific to Postgres;=C2=A0 it's how the underlying OS package= =20 system works.=C2=A0 You may want to see if someone in your office has more= =20 experience installing packages on RHEL with yum and ask them to give you=20 a hand.=C2=A0 You've got several issues around yum's basic operation that y= ou=20 need to fix, and local network/systems admins should know enough about=20 your setup to help a lot faster. -kgd =20 =20 ------=_Part_15157572_1350268996.1546978861803 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
#ps -aux|grep postgres

postgres 4840 0.0 0.1  396576 16772 ? Ss 12:02 0:00 /usr/pgsql-11/bin= /postmaster -D /var/lib/pgsql/11/data/

post= gre 4842 0.9 9.9 251496 1928 ? Ss 12:02 0:00 posgres:logger
postgre 4844 0.9= 9.9 396692 3456 ? Ss 12:02 0:00 posgres:checkpointer
postgre 4845 0.9 9.9 396576 3344 ? Ss 1= 2:02 0:00 posgres:background writer
postgre 4846 0.9 9.9 396576 6248 ? Ss 12:02 0:00 posgres:w= alwriter
postgre 48= 47 0.9 9.9 396992 3088 ? Ss 12:02 0:00 posgres:autovacuum launcher
postgre 4848 0.9 9.9 251492= 2044 ? Ss 12:02 0:00 posgres:stats collector
postgre 4849 0.9 9.9 396992 2796 ? Ss 12:02 0:00 posgres:logic= al replication launcher
root 14091 0.0 0.0  112704 980 pts/1 S+ 14:53 0:00 grep --color= =3Dauto postgres

<= /div>
Even I stop an= d restart the service still error

#service postgresql stop
redirecting to /bin/systemctl stop posgresql.se= rvice
#serv= ice postgresql start
redirecting to /bin/systemctl start postgresql.service
job for posgres= ql.service failed because the control process existed with error code. See = "systemctl status posgresql.service" and "journalctl -xe" for details.

for systemctl s= tatus posgresql.service, as same as I posted from previous.

#journalctl -xe

-- Unit user-995.sli= ce has begun shutting down.
Jan 08 14:55:26 hostname polkidtd[1000]: Registered Aut= hentication Agent for unix-proces
Jan 08 14:55:26 hostname polkidtd[1000]: Unregist= ered Authentication Agent for unix-proc
Jan 08 14:55:26 hostname polkidtd[1000]= : Registered Authentication Agent for unix-proces
Jan 08 14:55:26 hostname syst= emd[1]: Starting PostgreSQL database server ...

-- Subject: Unit posgresql.service has= begun start-up
-- Defined-By:systemd
--
-- Unit postgresql.s= ervice has begun starting uo.
Jan 08 14:44:31 hostname [g_c tl[14265]: LOG: could n= ot bind IPv4 socket: Address alrea
Jan 08 14:44:31 hostname [g_c tl[14265]:
Jan 08 14:4= 4:31 hostname [g_c tl[14265]:
Jan 08 14:44:31 hostname [g_c tl[14265]:
Jan 08 14:44= :31 hostname [g_c tl[14265]:






Bach-Nga

No one in this world is pure and perfect.&= nbsp; If you avoid people for their mistakes you will be alone. So judge le= ss, love and forgive more.
To call him a dog har= dly seems to do him justice though in as much as he had four legs, a tail, = and barked, I admit he was, to all outward appearances. But to those who kn= ew him well, he was a perfect gentleman (Hermione Gingold)

**Live simply **Love generously **Car= e deeply **Speak kindly.
*** Genuinely rich *** Faithful tal= ent *** Sharing success


=
On Tuesday, January 8, 2019 3:08 PM, Pepe TD Vo <= pepevo@yahoo.com> wrote:


<= div dir=3D"ltr">#ps -aux|grep postgres
<= span>
postgres 4840 0= .0 0.1396576 16772 ? Ss 12:02 0:00 /usr/pgsql-11/bin/postmaster -D /var/lib= /pgsql/11/data/

postgre 4/842 0.9 9= .9 352496 1928 ? Ss 12:02 0:00 posgres:logger
postgre 4/842 0.9= 9.9 352496 1928 ? Ss 12:02 0:00 posgres:logger
postgre 4/842 0.9 9.9 352496 1928 ? Ss 12:02 0:00 posgres:logger<= br clear=3D"none">
postgre 4/842 0.9 9.9 352496 1928 ? Ss 12:02 0:00 p= osgres:logger
postgre 4/842 0.9 9.9 352496 1928 ? S= s 12:02 0:00 posgres:logger
postgre 4/842 0.9 9.9 3= 52496 1928 ? Ss 12:02 0:00 posgres:logger
 
Bach-Ng= a

No one in this world is pure and= perfect.  If you avoid people for their mistakes you will be alone. S= o judge less, love and forgive more.
To call him a dog hardly seems to do him justice though in= as much as he had four legs, a tail, and barked, I admit he was, to all ou= tward appearances. But to those who knew him well, he was a perfect gentlem= an (Hermione Gingold)

**Live simply **Love generously **Care deeply **Speak kindly.=
*** Genuinely rich *= ** Faithful talent *** Sharing success


On Tuesday, January 8, 2019 1:41 PM, Ricardo Martin Gomez <rima= rtingomez@hotmail.com> wrote:


<= div id=3D"yiv5867325590">
Hi, but the ERROR is: "pg_ctl[6896]:HINT: Is another postmaster alreadying runnin ...= y"

Please, Can you check this?
# ps -aux |grep postgres

Regards.

_______________= _______
Saludos 
Ing. Ricardo Mart=C3=ADn Gomez
DBA - SysAdmin

De: Pepe TD Vo &l= t;pepevo@yahoo.com>
Enviado: martes, 8 de enero de 2019 15:32
Para: Kris Deugau; pgsql-admin@lists.postgresql.org
Asunto: Re: install Postgres on RHED 7
 
sorry, my fingers split before I can finish all typing:




finally the SA installed the OS libraries and I instal= led the server packages successful but not postgres11-contrib.
#yum install postgresql11-server postgresql11-contrib&= nbsp; --> I see no package postgresql11-contrib availabe
Dependencies resolved
Transaction test succeeded
running transaction 
installing: libicu-50.1.2.17.el7.x86_64   1/2
Installing: postgresql11-11.1-1PGDG.rhel7.x86_64  &nbs= p;2/3
failed to link /usr/bin/psql -> /etc/alternative/pgsql-p= sql: /usr/bin/pgql exists and it's not a a symlink
failed to link /usr/bin/clusterdb -> /etc/alternatives/p= gsql-clusterdb: /usr/bin/clusterdb exist and itis not a symlink

failed to link /usr/bin/createdb -> /etc/alternatives/pg= sql-createdb: /usr/bin/createdb exist and it is not a symlink
failed to link /usr/bin/createuser -> /etc/alternatives/= pgsql-createuser: /usr/bin/createuse exist and it is not a symlink
failed to link /usr/bin/dropdb -> /etc/alternatives/pgsql-dropdb: /usr/b= in/dropdb exist and it is not a symlink
failed to link /usr/bin/dropuser -> /etc/alternatives/pgsql-dropuser: /u= sr/bin/dropuser exist and it is not a symlink
failed to link /usr/bin/pg_basebackup -> /etc/alternatives/pgsql-pg_base= backup: /usr/bin/pg_basebackup exist and itis not a symlink
failed to link /usr/bin/pg_dump -> /etc/alternatives/pgsql-pg_dump: /usr= /bin/pg_dump exist and it is not a symlink
failed to link /usr/bin/pg_dumpall -> /etc/alternatives/pgsql-pg_dumpall= : /usr/bin/pg_dumpall exist and it is not a symlink
failed to link /usr/bin/pg_restore -> /etc/alternatives/pgsql-pg_restore= : /usr/bin/pg_restore exist and it is not a symlink
failed to link /usr/bin/reindexdbl -> /etc/alternatives/= pgsq-reindexdb: /usr/bin/reindexdb exist and it is not a symlink
failed to link /usr/bin/vacuumdb -> /etc/alternatives/pg= sql-vacuumdb: /usr/bin/vacuumdbexist and it is not a symlink

installing:  postgresql11-server-11.1-1PGDB.rhel7= .x86_64   1/3

Verifying:  postgresql11-11.1-1PGDB.rhel7.x86_64 =  1/3
Verifying: libicu-50.1.2-17.el7.x86_64   2/3
Verirying:  postgresql11-server-11.1-1PGDB.rhel7.x86_6= 4   3/3

Installed:
postgresql11-server.x86_64 0:11.1-1PGDG.rhel7<= /div>
Dependency Installed:
libicu.x86_64 0:50.1.2-17.el7   postgres11.x86_64= 0:11.1-1PGDG.rhel 7

Completed!

After the server successful install, I initialize the datab= ase an

# /usr/pgsql-11/bin/postgresql-11-setup initdb
Initializing database .....OK

# systemctl enable postgres-11
created symlink from /etc/systemd/system/multi-user.target.= wants/postgresql-11.service to /usr/lib/systemd/system/postgeresql-11.servi= ce.

# systemctl start postgresql-11
# systemctl status postgresql-11
postgresql-11.service - PostgreSQL 11 database server
Loaded:loaded (/usr/lib/systemd/system/postgresql-11.servic= e; enabled; vendor preset: disabled)
Active: active (running) since Tues 2019-01-08 12:02:05 EST= ; 12s ago
and so on ....

# service postgresql initdb
hint: the perferred way to do this is now "postgresql-set i= nitdb"
Initializing database ... OK

but when I tried to correct the postgres.conf with the list= en_addresses =3D '*' and port=3D5432.  Restart the postgresql server I= get an error.

redirecting to /bin/systemctl start postgresql.service

job for postgresql.service failed because the control proce= s exited with error code.  See "systemctl status postgresql.service" a= nd "jouralctl -xe" for details.

I run: 
#systemctl status postgresql.service -l
postgresql.service - PostgreSQL database server
Loaded:loaded (/usr/lib/systemd/system/postgresql.service; = diabled; vendor preset: disabled)
Active: failed (result: exit-code) since Tues 2019-01-08 12= :34:43 EST; 2min 22s ago
Process: 6896 ExecStart=3D/usr/bin/pg_ctl start -D ${PGDATA= } -s -o -p ${PGPORT} -w -t 300 (code=3Dexisted, status=3D1/FAILURE
Process: 688 ExecStartPre=3D/usr/bin/postgresql-check-db-di= r ${PGDATA} (code=3Dexisted, status=3D0/SUCCESS) 
 
Jan 08 12:34:42 hostname pg_ctl[6896]:HINT: Is another postmaster alrea= dying runnin ...y
Jan 08 12:34:42 hostname pg_ctl[6896]:LOG: could not bing I= PV6 socket: Addressa ...se
Jan 08 12:34:42 hostname pg_ctl[6896]:HINT: Is another post= master alreadying runnin ...y
Jan 08 12:34:42 hostname pg_ctl[6896]:WARNING: could not cr= eate any TCP/IP sockets
Jan 08 12:34:43 hostname pg_ctl[6896]:pg_ctl: could nto sta= rt server
Jan 08 12:34:43 hostname pg_ctl[1]: postgresql.service: con= trol process existed, c...=3D1
Jan 08 12:34:43 hostname pg_ctl[1]: Failed to start Postgre= SQL database server.
Jan 08 12:34:43 hostname pg_ctl[1]: Unit postgresql.service= entered failed state.
Jan 08 12:34:43 hostname pg_ctl[1]: postgresql.service fail= ed

Hint: Some lines were ellipsized, use -l to show in full

what I did wrong here?  Do I need to add listen_addres= ses =3D '*' and port =3D 5432 on both /var/lib/pgsql/data/postgres.conf and= /var/lib/pgsql/11/data/postgres.conf ?

thank you for all your help.

v/r,

<= font color=3D"#8000ff">
Bach-Nga

No one in this world is pure and perfect.  If you avoid people for= their mistakes you will be alone. So judge less, love and forgive more.
To call him a dog hardly seems to do him justice though in as much as he had four = legs, a tail, and barked, I admit he was, to all outward appearances. But t= o those who knew him well, he was a perfect gentleman (Hermione Gingold)

**Live simply **Love generously **Care d= eeply **Speak kindly.
*** Genuin= ely rich *** Faithful talent *** Sharing success


On Thursday, December 20, 2018 4:17 PM, = Kris Deugau <kdeugau@vianet.ca> wrote:


Pepe TD Vo wrote:
> May you suggest me exactly repositories packages needed for install > PostgreSQL?  Seem to me this link,
> https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/ =
> all rpm files needed another dependencies.  Total more than 300 f= iles
> and only a few allow me to install the rest of them needed another > dependencies and didn't give me exactly what they are.

Some of them will be from the stock Red Hat repositories, and some will be from the PGDG repository.  I haven't used that repository, and I haven't done much on an RPM-based system for a while so I can't give you any more specific information.

It's possible - but very tedious and difficult - to install a package
with a large dependency tree entirely by hand.  I *have* done this myself in the past, and I recall a few cases where it literally took two or three hours to get everything installed to support the specific
package I started out trying to install.  This is why tools like yum <= br clear=3D"none"> were developed;  they do the work of checking through the list to see =
what's required, and where it can be installed from.

This isn't specific to Postgres;  it's how the underlying OS package <= br clear=3D"none"> system works.  You may want to see if someone in your office has more =
experience installing packages on RHEL with yum and ask them to give you a hand.  You've got several issues around yum's basic operation that y= ou
need to fix, and local network/systems admins should know enough about
your setup to help a lot faster.


-kgd









------=_Part_15157572_1350268996.1546978861803--