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 1rSZRE-00EYR2-1x for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Jan 2024 09:20:52 +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 1rSZRD-003fGt-74 for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Jan 2024 09:20:51 +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 1rSZRC-003fGl-VU for pgsql-bugs@lists.postgresql.org; Wed, 24 Jan 2024 09:20:50 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rSZRB-003Rbf-9r for pgsql-bugs@lists.postgresql.org; Wed, 24 Jan 2024 09:20:50 +0000 Received: from msg.df7cb.de (unknown [IPv6:2a02:908:1482:3660:b7d0:f584:a987:bc23]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 4TKdjX357Kz3G3B; Wed, 24 Jan 2024 10:20:48 +0100 (CET) Date: Wed, 24 Jan 2024 10:20:48 +0100 From: Christoph Berg To: c@osss.net Cc: pgsql-bugs@lists.postgresql.org Subject: Re: Misleading/inaccurate error message from pg_basebackup Message-ID: References: <8C23AFD9-4FCA-4FFD-8611-1B81BACCD25A@osss.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8C23AFD9-4FCA-4FFD-8611-1B81BACCD25A@osss.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Re: c@osss.net > pg_basebackup can throw an error which is inaccurate and misleading: > > $ mkdir /var/lib/postgresql/14 Hi Casey, what previous error/message lead you to create that directory? The data directory should be existing before. What does `pg_lsclusters` report? Where is the actual data directory of that cluster? Christoph