Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jn2TS-00072Z-NY for pgsql-general@arkaria.postgresql.org; Sun, 21 Jun 2020 16:05:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jn2TR-0005St-Kn for pgsql-general@arkaria.postgresql.org; Sun, 21 Jun 2020 16:05:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jn2TQ-0005Sh-Nd for pgsql-general@lists.postgresql.org; Sun, 21 Jun 2020 16:05:37 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jn2TJ-0005OP-Kq for pgsql-general@lists.postgresql.org; Sun, 21 Jun 2020 16:05:35 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 7F79926D8; Sun, 21 Jun 2020 12:05:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 21 Jun 2020 12:05:27 -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=fm3; bh=O zaGOfdPszQRCzSLoCBYQtf008+EfU4+dnVN9/38ZqY=; b=qoi7L5bkuJTwsN4o+ NSrOHm8tPObOW6zGPBPJY1IkvN4uWPjejusUAJ+9Y+BEIdyarmk56fVCKKxoIeXo QancA36fTY6lAXF3fN193q6sGIPtUrOD0bB/R+UUyVcNpm5CtLqOCNhW8ZCL5yQ0 yUT9epxTV5mf4xABVM6Y6s+IiWbNXNdHVRj/qMLL9QI95D/0yaptVqxq13GrVb9c 1MCRryt6ysX+0f7ZJDrHp6oJj2MKl0zVXtqfhxoomaLywHYX5dg2yWX48MZrFur0 SBSazvYcKa5fD141L1HlqiGd2hljETymMdwc41tj9OR5BarzfbZ7gg4vZ6prJgsO R92HQ== 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=fm3; bh=OzaGOfdPszQRCzSLoCBYQtf008+EfU4+dnVN9/38Z qY=; b=O2gMZvcoxlw72Eg6kfFlvLZAOstK2pz9EFxymhCs6z++Zi52YSbm/Nivk iknpi4tqogEbzOj3YW/TF7CVKrSvqjm8eN4KvhXZ0KAUp+Z0B7O1BD6a9RRPS66+ pdjr9Gu/3C4o6vqbn3uV3oWRWMpZAO0z+HYLPaeO8EgoNcL5gjIRecZ2Mu3DDPcw QhyNJhAqOvgPmjW+tbqgovnMA+14+kIqWB0q1Bx7gsHHf6EvCVz+C/xXhaMPmCUY pqH1y0JjS7ktVyOKacHodDZBphVLFlSgaNajvExpZvOtVJ88xU6ufDml7tgBBLry yBILxKOstXEM60verMzFyggSxwl8A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudektddgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevueejieelvdeuteevhfevveeftdejlefhheehjeet heelgeeifedujeekudffheenucffohhmrghinheptggvnhhtohhsrdhorhhgpdhpohhsth hgrhgvshhqlhdrohhrghenucfkphepjeehrddujedvrdehrddvfedunecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvh gvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 57C2E328006B; Sun, 21 Jun 2020 12:05:26 -0400 (EDT) Subject: Re: Unable to init and run postgresql-12 on centos 8.2.2004 To: Vishal Agrawal , Srinivasa T N Cc: PostgreSQL General References: From: Adrian Klaver Message-ID: <338cb691-d5d6-7931-724e-3ca9bc40c840@aklaver.com> Date: Sun, 21 Jun 2020 09:05:25 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 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 6/21/20 7:53 AM, Vishal Agrawal wrote: > Seenu, I don't see any journalctl entry other than the log that > postmaster has been killed. (Jun 21 14:52:30 f9cbc3b08e20 systemd[1]: > postgresql-12.service: Killing process 1096 (postmaster) with signal > SIGKILL.) > Any further suggestions on where to look ? > > It does seem to work with systemd-239-18 (8.1.1911) but fails > with systemd-239-30 (In 8.2.2004 repo). You might want to add report to this issue: https://bugs.centos.org/view.php?id=17461 0017461: systemd-239-30 package prevents some units from stopping "The postgresql unit installed in the postgresql:9.6 package on centos 8.2 fails to stop when using systemd-239-30 and running in an LXD container. ..." > > On Sun, Jun 21, 2020 at 6:05 AM Srinivasa T N > wrote: > > > > On Sun, Jun 21, 2020, 8:57 AM Vishal Agrawal > > wrote: > > Hello, > > I'm trying to install postgresql 12 on CentOS 8.2 as following - > > First I run docker container on the host  - > # docker run --privileged -dit --name pgdg centos:8.2.2004 > /sbin/init > > Then inside the container, I run the commands given below - > > # yum -y install glibc-langpack-en glibc-locale-source > # localedef -i en_US -f UTF-8 en_US.UTF-8 > > # dnf install > https://download.postgresql.org/pub/repos/yum/reporpms/EL-8-x86_64/pgdg-redhat-repo-latest.noarch.rpm > > > # dnf -qy module disable postgresql > > # dnf install postgresql12-server > > # /usr/pgsql-12/bin/postgresql-12-setup initdb > > # systemctl enable postgresql-12 > > # systemctl start postgresql-12 > > Postgresql starts at this point... > > However, when I try to stop it, it just hangs - > > # systemctl stop postgresql-12 (hangs) > > Can someone help how to resolve this? > > Thanks, > Vishal > > > Looking at logs might help. > > Regards, > Seenu. > -- Adrian Klaver adrian.klaver@aklaver.com