Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkaVc-0002Pe-Gd for pgsql-bugs@arkaria.postgresql.org; Tue, 31 Jul 2018 19:40:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fkaVa-0008IO-Nd for pgsql-bugs@arkaria.postgresql.org; Tue, 31 Jul 2018 19:40:38 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1fkaVa-0008IG-HY for pgsql-bugs@lists.postgresql.org; Tue, 31 Jul 2018 19:40:38 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fkaVS-0006iq-QM for pgsql-bugs@postgresql.org; Tue, 31 Jul 2018 19:40:37 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1fkaVR-00030Q-8N; Tue, 31 Jul 2018 15:40:29 -0400 Date: Tue, 31 Jul 2018 15:40:29 -0400 From: Bruce Momjian To: Pash Ebash Cc: pgsql-bugs@postgresql.org Subject: Re: Found incorrect output in pg_lsclusters Message-ID: <20180731194029.GB2791@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Jun 26, 2018 at 02:07:42PM +0300, Pash Ebash wrote: > postgres@PC:/root$ uname -a > Linux PC 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2+deb9u5 (2017-09-19) x86_64 GNU/ > Linux > > postgres@PC:/root$ >  PostgreSQL 9.6.8 on x86_64-pc-linux-gnu, compiled by gcc (Debian 6.3.0-18) > 6.3.0 20170516, 64-bit > (1 row) > > > postgres@PC:/root$ pg_lsclusters > Ver Cluster  Port Status Owner    Data directory            Log file > 9.6 asterisk 5433 down   postgres /postgresql/data/asterisk /var/log/postgresql > /postgresql-9.6-asterisk.log > 9.6 db1    5432 online postgres /postgresql/data/db1    /var/log/postgresql/ > postgresql-9.6-db1.log > > postgres@PC:/root$ pg_ctlcluster 9.6 asterisk status > could not change directory to "/root": Отказано в доступе > pg_ctl: server is running (PID: 32275) > /usr/lib/postgresql/9.6/bin/postgres "-D" "/postgresql/data/asterisk" "-c" > "config_file=/etc/postgresql/9.6/asterisk/postgresql.conf" > > > But...Client program works well with current DB, but pg_lsclusters outputs that > cluster is down. > Another cluster works well :) > Thanks for your work! 'pg_lsclusters' is not a program the Postgres community maintains. I think it is from Debian and/or Ubuntu --- I would report it to them. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +