Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iftLK-0004xE-Cy for pgadmin-hackers@arkaria.postgresql.org; Fri, 13 Dec 2019 22:23:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iftLJ-0005I6-0F for pgadmin-hackers@arkaria.postgresql.org; Fri, 13 Dec 2019 22:23:25 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1ifmJJ-0008An-19 for pgadmin-hackers@lists.postgresql.org; Fri, 13 Dec 2019 14:52:53 +0000 Received: from heimdall.insee.fr ([194.254.37.152]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ifmJF-0002RJ-Ih for pgadmin-hackers@postgresql.org; Fri, 13 Dec 2019 14:52:52 +0000 Received: from evariste.cei.insee.fr (evariste.cei.insee.fr [10.43.61.82]) by heimdall.insee.fr (Insee Mail server) with ESMTP id 62407213 for ; Fri, 13 Dec 2019 15:52:47 +0100 (CET) Authentication-Results: heimdall.insee.fr; dmarc=none header.from=insee.fr Received: from localhost (unknown [127.0.0.1]) by evariste.cei.insee.fr (Postfix) with ESMTP id 5C61F1211BD for ; Fri, 13 Dec 2019 15:52:47 +0100 (CET) X-Virus-Scanned: amavisd-new at insee.fr Received: from evariste.cei.insee.fr ([127.0.0.1]) by localhost (evariste.cei.insee.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LWF8w68cWV0Q for ; Fri, 13 Dec 2019 15:52:47 +0100 (CET) Received: from pdexchchwst03.ad.insee.intra (unknown [10.143.117.4]) by evariste.cei.insee.fr (Postfix) with ESMTP id 4502E1211BA for ; Fri, 13 Dec 2019 15:52:47 +0100 (CET) From: Levitt Olivier To: "pgadmin-hackers@postgresql.org" Subject: [Pgadmin] [Docker] servers.json import fails when running in desktop mode Thread-Topic: [Pgadmin] [Docker] servers.json import fails when running in desktop mode Thread-Index: AdWxw/5mh4Tw4ureSMOAZO6Y6Qg44g== Date: Fri, 13 Dec 2019 14:52:46 +0000 Message-ID: <74F4D0C2ACDFA04BA40C6475ADAE217529FA3FDA@pdexchbalwst03.ad.insee.intra> Accept-Language: fr-FR, en-US Content-Language: fr-FR X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.143.117.253] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, When running the docker image in desktop mode (PGADMIN_CONFIG_SERVER_MODE= =3DFalse), no user is created. That is expected behaviour. But then the code that imports the servers.json pre-configuration fails as = it ties the import to the default user. =20 I think line 40 of entrypoint.sh (https://git.postgresql.org/gitweb/?p=3Dpg= admin4.git;a=3Dblob;f=3Dpkg/docker/entrypoint.sh;h=3D47d14bf2d415777c64b221= fb1fc75d61c5e3cecc;hb=3DHEAD) should not specify a user when running in dek= stop mode.=20 I tested it without --user parameter and it successfully imported the serve= rs.json configuration. Should I submit a patch ? First time contributing to Pgadmin :) Regards, Olivier Levitt