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 1iDwLT-0008HV-3j for pgsql-general@arkaria.postgresql.org; Fri, 27 Sep 2019 19:56:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iDwLR-0007fx-LY for pgsql-general@arkaria.postgresql.org; Fri, 27 Sep 2019 19:56:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDwIG-0002n6-2B for pgsql-general@lists.postgresql.org; Fri, 27 Sep 2019 19:52:44 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iDwID-0001NA-KV for pgsql-general@lists.postgresql.org; Fri, 27 Sep 2019 19:52:42 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E147122050; Fri, 27 Sep 2019 15:52:40 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 27 Sep 2019 15:52:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=8 UhxwrFwypmPCxKbCd1C+Exygir/DW4ErnPD+kVO3IE=; b=XeEpVl0hJ2oucK9Gn fmsRQKTeOARI8JCyUc9EDJnpiTDVRil2WvWKcXAxaUZDYgHgJ6G0BuOGXHH875wB 7fNFQin4eZ6Hr+u6xHhzcYvUs335fclgcwKHGXfwyMqQUMrJovn53b+5yaqGJ4GM aF1VKXjqD61gIxGKXZrqaieKU5IWMggoKb2+9P/wV3uMJOR0XzhlzGeVhXHHHLjA jlnAjg04T1GBQ5LyuiQnFfiycmPdq7RLD5guOXBVnrl7uS9kvexrOLA2QtI2kQIU PGLuY9CP1Zl7il+MDqPmzwitAnn3tP3+4+vPp7i1wDFarIbYwbLUlY7RyENNjoKV 1iQ/Q== 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=8UhxwrFwypmPCxKbCd1C+Exygir/DW4ErnPD+kVO3 IE=; b=pe3HE+IDLu+SxF9Vh+3Y3pvtv6g/k42J+wfo81T+XcDaE4n9rB7Uh8zUq Rv+qZT1esTHB/BHcJNq0nR+PrzHf7gqFt/YU+tUN45RBgsCK9rEMniK/eKdO1Zb8 z1gx4jCHNWyDnyqCU/3oZu5T7wCHw55+vVfPAhVnTTl2Z1KTiu8WOer+rpg72Yeg fB+kCH1orQfabBWOgzQgy4NBnCe8rKq8oj1CNJqTvGpZMv0Z5RFRpkB3BTzKuk3i vBRdx9KeVrwe1QaxVXeCXvkGffuoT9FAbaOXArhgfdVCy/9tjjf3PG12dyi4deF+ uS1RiogeAoEP0LdsuACqn+HzuIy+Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrfeeigddugedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinheptddrtddrtddrtddphhihphgvrhhlvggughgvrhdrohhrghdp uddvjedrtddrtddrudenucfkphepudejgedrvddurdekhedrudegtdenucfrrghrrghmpe hmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhen ucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.3] (174-21-85-140.tukw.qwest.net [174.21.85.140]) by mail.messagingengine.com (Postfix) with ESMTPA id 19DECD6005E; Fri, 27 Sep 2019 15:52:40 -0400 (EDT) Subject: Re: "Failed to connect to Postgres database" To: Marco Ippolito , pgsql-general@lists.postgresql.org References: <5860c69b-8b16-43b0-ba90-0a0cc7598520@manitou-mail.org> <4841ddf2-4c93-5465-5cd3-82cd4389e2e8@aklaver.com> From: Adrian Klaver Message-ID: <59045d2d-d014-12b4-10ec-1dd5aae8436a@aklaver.com> Date: Fri, 27 Sep 2019 12:52:39 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: 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 9/27/19 11:19 AM, Marco Ippolito wrote: > Sorry again, > I was cheering up too quickly. > With this configuration in fabric-ca-server-config.yaml : >    db: >       type: postgres >       datasource: host=localhost port=5433 user=postgres password=1234 > dbname=fabmnet_ca sslmode=disable >       tls: >         enabled: false >         certfiles: >         client: >           certfile: >           keyfile: > > the output of  starting fabric-ca-server at first glance seems ok: > > 2019/09/27 20:11:44 [INFO] Operation Server Listening on 127.0.0.1:9443 > > 2019/09/27 20:11:44 [INFO] Listening on http://0.0.0.0:7054 So the server is up and running. > > but the /var/log/postgresql/postgresql-11-fabmnet.log gives us a > different, not so bright, perspective: > > What do these continuous attempts to duplicate key value mean? It > doesn't look so good this fabric-ca-server connection with postgresql-11 > 's db ... Looks to me like the fabric server is trying reinitialize the database again with values that already exist. I do not pretend to know what the fabric-ca server is up to. You might have better luck with that part of it here: https://lists.hyperledger.org/g/main > > Marco > -- Adrian Klaver adrian.klaver@aklaver.com