Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ej72v-00087B-SZ for pgsql-general@arkaria.postgresql.org; Tue, 06 Feb 2018 17:28:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ej72u-0004yC-Gu for pgsql-general@arkaria.postgresql.org; Tue, 06 Feb 2018 17:28:40 +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.84_2) (envelope-from ) id 1ej72u-0004y2-8n for pgsql-general@lists.postgresql.org; Tue, 06 Feb 2018 17:28:40 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ej72q-0007pF-Dh for pgsql-general@postgresql.org; Tue, 06 Feb 2018 17:28:39 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5D5B420AB3; Tue, 6 Feb 2018 12:28:33 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Tue, 06 Feb 2018 12:28:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=jCfuQaaX2bDuRE1FbwvrcX6SPR/gq eFJSP0r1//zLYQ=; b=Vctq/PwSKSyT6emRr4htnBI4TDx4rpF09/7vBbcIZBkiU tay1AO+IJiNMtBMLbOdqUyPkQQzMOckzjAid/GaO8FTXjXmwiCp0f4ST/vgDqUXV YM/ut277aAi4IGHLfP3bk0ilrobNoOeF6nrhVwQqYblR15o5iZulo+sGtpAX/RRz e1QbABdOjFRjGZ+YA1Yt5AxDcDvnhKXzyBfxYGEZY3yrvGX9olJd+zxIeHIzvORr P65uixH/ZsWKdLGyZ0qWHm+OoKCL/LvZEda8rtCwnlQLzIevDJBVG7iaLSVN7cqa 51rQhhHUwMPmyLc9vnZZI3tbKgts9dIscV4YYD2dw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=jCfuQa aX2bDuRE1FbwvrcX6SPR/gqeFJSP0r1//zLYQ=; b=UtTfgiM+YcIiiyna/FlZJ9 Y+xJD5bJCvCZZAN49JQZXtL40fqyJjljuBltWv96TOsBC4HFv5bCwuokqm87cy2d FmoljQFgtiYWUypEakxL50DVK7VjDQvv17rb4dMwBrsABsM05FkhhUFpadKlP9CA D5Uqwod7cTizIOOpb7h/Fk87L2SXMB0B8WYMP24N8GgSQ0glmts8gbFSjPmG3ChL GLfZ5YTI+JUikmOWPfX8DF/9G9jJD/b5anqI7GGLc/RSDMPnVPOfL+aqcw7oVurA Let5q0VnkpTsvomcxOph15UEXspcRwLruBSBkiWIGkUPB3ncCvmS4bbuCOM2VRjg == X-ME-Sender: Received: from ranger.suse (71-212-36-41.tukw.qwest.net [71.212.36.41]) by mail.messagingengine.com (Postfix) with ESMTPA id C756B24404; Tue, 6 Feb 2018 12:28:32 -0500 (EST) Subject: Re: pgadmin4: not possible to create server To: robert@redo2oo.ch, "pgsql-general@postgresql.org" References: <75bd1546-6822-e366-d7da-1488074b474f@redcor.ch> From: Adrian Klaver Message-ID: <35c2c035-9911-2a5f-e54a-0b8e49dd256e@aklaver.com> Date: Tue, 6 Feb 2018 09:28:31 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <75bd1546-6822-e366-d7da-1488074b474f@redcor.ch> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 02/06/2018 09:24 AM, robert rottermann wrote: > Hi there, > > I have installed pgadmin4 locally using its docker image. > > this i did running the following command: > > docker run -p 80:80 -e "PGADMIN_DEFAULT_EMAIL=admin" -e > "PGADMIN_DEFAULT_PASSWORD=admin" -d dpage/pgadmin4 > > I then could access it and log into it. > > However all my attempts end in: > > Unable to connect to server: > > could not connect to server: Connection refused > Is the server running on host "localhost" (::1) and accepting > TCP/IP connections on port 5432? > could not connect to server: Connection refused > Is the server running on host "localhost" (127.0.0.1) and accepting > TCP/IP connections on port 5432? So where is the Postgres server located? > > > can anybody give me a hint, what to do? > > thanks > > robert > > > in /etc/postgresql/10/main/postgresql.conf > > i have: > > #------------------------------------------------------------------------------ > > # CONNECTIONS AND AUTHENTICATION > #------------------------------------------------------------------------------ > > > # - Connection Settings - > > listen_addresses = '*'          # what IP address(es) to listen on; >                                         # comma-separated list of > addresses; > > > and this is my /etc/postgresql/10/main/pg_hba.conf > > # DO NOT DISABLE! > # If you change this first entry you will need to make sure that the > # database superuser can access the database using some other method. > # Noninteractive access to all databases is required during automatic > # maintenance (custom daily cronjobs, replication, and similar tasks). > # > # Database administrative login by Unix domain socket > local   all             postgres peer > > # TYPE  DATABASE        USER            ADDRESS METHOD > > # "local" is for Unix domain socket connections only > local   all             all trust > # IPv4 local connections: > host    all             all             127.0.0.1/32 trust > # IPv6 local connections: > host    all             all             ::1/128 trust > # Allow replication connections from localhost, by a user with the > # replication privilege. > local   replication     all peer > host    replication     all             127.0.0.1/32 md5 > host    replication     all             ::1/128 md5 > > > > -- Adrian Klaver adrian.klaver@aklaver.com