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 1kPRvg-0008I8-Ph for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 14:57:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kPRve-0002A2-GK for pgsql-general@arkaria.postgresql.org; Mon, 05 Oct 2020 14:57:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPRve-00029u-8z for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 14:57:30 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kPRvb-0005Gd-1d for pgsql-general@lists.postgresql.org; Mon, 05 Oct 2020 14:57:29 +0000 Received: from [178.254.11.41] (helo=r314251-amd64) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kPRvY-0001QI-Kh; Mon, 05 Oct 2020 16:57:24 +0200 Date: Mon, 5 Oct 2020 16:57:22 +0200 From: Matthias Apitz To: Mario Emmenlauer Cc: pgsql-general@lists.postgresql.org Subject: Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0 Message-ID: <20201005145722.GA3698@r314251-amd64> Reply-To: Matthias Apitz References: <48bafc63-c30f-3962-2ded-f2e985d93e86@emmenlauer.de> <3ac84ee7-b4a0-aba5-ddb5-b7c0811fc754@emmenlauer.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3ac84ee7-b4a0-aba5-ddb5-b7c0811fc754@emmenlauer.de> X-Operating-System: FreeBSD 8.0-CURRENT (i386) User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 178.254.11.41 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk El día lunes, octubre 05, 2020 a las 04:49:27p. m. +0200, Mario Emmenlauer escribió: > On 05.10.20 13:22, Mario Emmenlauer wrote: > > I've used PostgreSQL since version 9.x successfully on Linux, macOS > > and Windows. Today I've upgraded from 12.3 to 13.0 and suddenly I can > > not start the server any more on Ubuntu 20.04 (inside Docker on Ubuntu > > 18.04) and on macOS 10.15. > > > > I get reproducibly the error: > > 2020-10-05 11:48:19.720 CEST [84731] WARNING: dup(0) failed after 0 successes: Bad file descriptor > > 2020-10-05 11:48:19.720 CEST [84731] FATAL: insufficient file descriptors available to start server process > > 2020-10-05 11:48:19.720 CEST [84731] DETAIL: System allows 0, we need at least 58. > > 2020-10-05 11:48:19.720 CEST [84731] LOG: database system is shut down > > > > ... Can you try to catch the situation starting the server under strace, perhaps with '-f' to follow childs. And look into the output ('-o outfile') for the failing syscall. matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub Без книги нет знания, без знания нет коммунизма (Влaдимир Ильич Ленин) Without books no knowledge - without knowledge no communism (Vladimir Ilyich Lenin) Sin libros no hay saber - sin saber no hay comunismo. (Vladimir Ilich Lenin)