Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0

From: Matthias Apitz <guru(at)unixarea(dot)de>
To: Mario Emmenlauer <mario(at)emmenlauer(dot)de>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0
Date: 2020-10-05 14:57:22
Message-ID: 20201005145722.GA3698@r314251-amd64
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

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(at)unixarea(dot)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)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2020-10-05 15:15:25 Re: UUID generation problem
Previous Message Mark 2020-10-05 14:55:00 How to execute the sql file in PSQL

Browse pgsql-hackers by date

  From Date Subject
Next Message James Coleman 2020-10-05 15:33:10 Re: enable_incremental_sort changes query behavior
Previous Message Mario Emmenlauer 2020-10-05 14:49:27 Re: dup(0) fails on Ubuntu 20.04 and macOS 10.15 with 13.0