pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Marco Ippolito <ippolito.marco@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: "Failed to connect to Postgres database"
Date: Fri, 27 Sep 2019 12:52:39 -0700
Message-ID: <59045d2d-d014-12b4-10ec-1dd5aae8436a@aklaver.com> (raw)
In-Reply-To: <CAFegzBSTQ=xwpuryaSJ=XQs1XHKTAT7aypS2_efPGh9DiH_hGA@mail.gmail.com>
References: <CAFegzBRWs4TdvCz12Cw6ftEUbForA7mkAmZgw9s6-F6VJfieNw@mail.gmail.com>
	<5860c69b-8b16-43b0-ba90-0a0cc7598520@manitou-mail.org>
	<CAFegzBTtnGDhNWNF5J-bkJj9sbdxxxT0cxc0xjwQQZ03y3uusQ@mail.gmail.com>
	<d9ea0a7c-e9ad-e018-a78b-e25b982ed75d@aklaver.com>
	<CAFegzBRCFiVogrQfKXhejWVb6NBj99R4BGUg7nbH6V-VQz3zAg@mail.gmail.com>
	<CAFegzBR3quFrD=8xQE0SjWVpbgntpghwgQXt_WN6E2UNbt=Kpg@mail.gmail.com>
	<4841ddf2-4c93-5465-5cd3-82cd4389e2e8@aklaver.com>
	<CAFegzBThzypkG0tqzGybYF1_1N=CazMgnsnjftgdKveYTOMLTg@mail.gmail.com>
	<CAFegzBSTQ=xwpuryaSJ=XQs1XHKTAT7aypS2_efPGh9DiH_hGA@mail.gmail.com>

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 
> <http://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





view thread (19+ messages)  latest in thread

Message-ID: <59045d2d-d014-12b4-10ec-1dd5aae8436a@aklaver.com>
Permalink:  ../59045d2d-d014-12b4-10ec-1dd5aae8436a@aklaver.com/
Also on:    postgresql.org/message-id/59045d2d-d014-12b4-10ec-1dd5aae8436a@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, ippolito.marco@gmail.com
  Subject: Re: "Failed to connect to Postgres database"
  In-Reply-To: <59045d2d-d014-12b4-10ec-1dd5aae8436a@aklaver.com>
  References: <CAFegzBRWs4TdvCz12Cw6ftEUbForA7mkAmZgw9s6-F6VJfieNw@mail.gmail.com> <5860c69b-8b16-43b0-ba90-0a0cc7598520@manitou-mail.org> <CAFegzBTtnGDhNWNF5J-bkJj9sbdxxxT0cxc0xjwQQZ03y3uusQ@mail.gmail.com> <d9ea0a7c-e9ad-e018-a78b-e25b982ed75d@aklaver.com> <CAFegzBRCFiVogrQfKXhejWVb6NBj99R4BGUg7nbH6V-VQz3zAg@mail.gmail.com> <CAFegzBR3quFrD=8xQE0SjWVpbgntpghwgQXt_WN6E2UNbt=Kpg@mail.gmail.com> <4841ddf2-4c93-5465-5cd3-82cd4389e2e8@aklaver.com> <CAFegzBThzypkG0tqzGybYF1_1N=CazMgnsnjftgdKveYTOMLTg@mail.gmail.com> <CAFegzBSTQ=xwpuryaSJ=XQs1XHKTAT7aypS2_efPGh9DiH_hGA@mail.gmail.com> <59045d2d-d014-12b4-10ec-1dd5aae8436a@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox