Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSH7v-0004uG-Ca for pgadmin-hackers@arkaria.postgresql.org; Mon, 11 Jun 2018 07:20:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fSH7r-0002Hk-4f for pgadmin-hackers@arkaria.postgresql.org; Mon, 11 Jun 2018 07:20:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fSH7q-0002GW-Nn for pgadmin-hackers@lists.postgresql.org; Mon, 11 Jun 2018 07:20:27 +0000 Received: from mail-io0-x234.google.com ([2607:f8b0:4001:c06::234]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fSH7n-00014N-0A for pgadmin-hackers@postgresql.org; Mon, 11 Jun 2018 07:20:24 +0000 Received: by mail-io0-x234.google.com with SMTP id d185-v6so22762541ioe.0 for ; Mon, 11 Jun 2018 00:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeweavers-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=muxOlzZmWJHkEJknJbTXRKEp+glErRxHaXzahqKt+ks=; b=nLqjbUJWp8gEwujv4g1BShj8PJLJqOh1EzVwo4FJzHuojSOm8cNt7tTllDACRWloAn pf6ljpe5LhXlu8USS2PHglPZIkgUCMCQJ/OlHUToCLGhhl0AXpXyV1+B42cWC0nP2cLE ku3oDHHXfqXC9ERwrBxO2N0W6AJYeSjVV01W8SlQFb3sJ2lGnDthicjW1rvsnAjS1J1K qh2YDvXqV47Qtm/ymPBjfbsVBHLGIE46GVRQtjLugpuzl0aC6hYgF+zh+YkWGoxsfOYx MgtxOaSA+PlN6PqKjv+uIhwWsIkXPQ++zVJeLDvKsCDmx6IAF6Vcw4wOr5yo0BNBTN7Z Dt8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=muxOlzZmWJHkEJknJbTXRKEp+glErRxHaXzahqKt+ks=; b=U/Ih2lPUaODAtLgJU6v3JTaHbDdW/lqUwCu/i3fuWyxhRltRkgZ4zrMZLnzE5dz4nD N3H7bduF/dr7+BR1DSyzSwAyh8omGeXtCRI9KRTg1H4v06Xo1W9x0vHRjSWLSnlSDSL2 0ZwM7ENlvqFgcTxfS3jNs9vY2CR+NW3Q/4UNZhUZRSyc/8coAUThGnPkYvQXd2dlCeJa L8caaGS9SYny9osRw61cVCmi8c/Keav5m5P/oDFWsQcsQLFKF+U7ixsCoGrSv6I1HiRe ckbvpU3M3tLqH7ks28+/gai3GC6iLILj5dcO/FsJwtXWTjkW+FKaVTYJnx5ciXoC2sND AnTw== X-Gm-Message-State: APt69E0fB9tfS3tX/4lOBJA+LkQRWvt6sOgn21rgUiqBbfkVuj+ehmfb x03m0GDPVqJa4BFfGxvQCvAeVjFVTNnC7emBGxR1Tz3p40RSMWHhHlRZqDO+p4kV91fSqM76B0o JyAuk8sV9cuLI+fkEUbZjzFW+M8+eD2dVgkM= X-Google-Smtp-Source: ADUXVKK2ff0Cw1kZDHIWiGu5kMCuVLj+ElJcUkwmm6R0S3iRjKjTAx1fnbq6hlGiJMaRBQjAJ50GhX8OoNbBAvKEeMc= X-Received: by 2002:a6b:b513:: with SMTP id e19-v6mr13795667iof.250.1528701621542; Mon, 11 Jun 2018 00:20:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:9141:0:0:0:0:0 with HTTP; Mon, 11 Jun 2018 00:20:19 -0700 (PDT) In-Reply-To: References: From: Rob Emery Date: Mon, 11 Jun 2018 08:20:19 +0100 Message-ID: Subject: Re: PGAgent 4.0 error feedback To: Ashesh Vashi Cc: pgadmin-hackers Content-Type: multipart/mixed; boundary="0000000000001ef49e056e589552" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0000000000001ef49e056e589552 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ashesh, Log-level wise I was using the same command for both versions: ./pgagent -f -l 2 -t 1 -r 1 'hostaddr=3Dserver user=3Dusername password=3Dpassword dbname=3Dpostgres' and messing up the connection string in various ways (missing dbname, incorrect password, incorrect hostaddr) This was built and tested on Debian GNU/Linux 9.4 (stretch). I've attached an example of the differing output when the dbname is missing from the connectionstring; basically it's the same for all errors. Many Thanks, Rob On 11/06/2018, Ashesh Vashi wrote: > Hi Rob, > > On Sun, Jun 10, 2018 at 2:26 AM, Rob Emery > wrote: > >> Hi Guys, >> >> I've been testing out PGAgent 4 (build today from master at commit >> 86ca5c5ed1ad572075ba27e05e4680ebdf5b9feb) to check the connection >> handling on error is still fixed with the boost reimplementation >> (which it is!) >> and noticed a few issues compared to PGAgent 3 around feedback to the >> user if the connection string is incorrect. >> >> I've tested with incorrect username and password, user not in the hba, >> db doesn't exist, postgresql not running on the host (or incorrect >> hostaddr) and 4 seems to always returns the error : >> ` >> ERROR: Couldn't find the function 'pgagent_schema_version' - please >> run pgagent_upgrade.sql. >> ` >> >> whereas 3.4.1 tends to output from the pgconnection itself like: >> ` >> Sat Jun 9 21:32:13 2018 : WARNING: Couldn't create the primary >> connection (attempt 1): FATAL: no pg_hba.conf entry for host >> "172.30.0.16", user "pgagent_login_role", database >> "pgagent_login_role", SSL on >> FATAL: no pg_hba.conf entry for host "172.30.0.16", user >> "pgagent_login_role", database "pgagent_login_role", SSL off >> ` >> >> which at least points the user towards the actual error! >> >> Not sure if this is known already, but I thought I'd raise it prior to >> release. >> > Thanks for sharing the information. > > Is it possible for you to share the logs with log level set to debug? > Also - please share the operating system details? > > -- > > Thanks & Regards, > > Ashesh Vashi > EnterpriseDB INDIA: Enterprise PostgreSQL Company > > > > *http://www.linkedin.com/in/asheshvashi* > > > > >> >> Thanks, >> Rob >> -- >> >> -- >> >> >> >> Codeweavers May Newsletter >> l Codeweavers >> April >> Finance Trends >> >> >> >> April=E2=80=99s Dealer Highlights >> >> > > >> >> _ >> _ >> >> >> >> *Phone:* 0800 021 0888 Email: contactus@codeweavers.net >> >> Codeweavers Ltd | Barn 4 | Dunston >> Business Village | Dunston | ST18 9AB >> Registered in England and Wales No. >> 04092394 | VAT registration no. 974 9705 63 >> >> >> >> >> >> >> >> >> >> >> > --=20 Codeweavers May Newsletter=20 =C2=A0=C2=A0l=C2=A0 Co= deweavers April=20 Finance Trends=20 April=E2=80=99s Dealer Highlights=20 =20 _ _ *Phone:*=C2=A00800 021 0888=C2=A0=C2=A0=C2=A0Email:=C2=A0contactus@codeweav= ers.net=20 Codeweavers Ltd=C2=A0| Barn 4 | Dunston=20 Business Village | Dunston | ST18 9AB Registered in England and Wales No.=20 04092394 | VAT registration no. 974 9705 63=C2=A0 =20 =C2=A0=C2=A0=20 =C2=A0=C2=A0=20 =C2=A0=C2= =A0=20 --0000000000001ef49e056e589552 Content-Type: text/plain; charset="US-ASCII"; name="PGagent-BrokenConnectionString.txt" Content-Disposition: attachment; filename="PGagent-BrokenConnectionString.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: file0 cm9iQElTSVM6fi9wZ2FnZW50LWdpdC1idWlsZCQgLi9wZ2FnZW50IC1mICdob3N0YWRkcj0xNzIu MzAuMC4xNiB1c2VyPXBnYWdlbnRfbG9naW5fcm9sZSBwYXNzd29yZD1wYXNzd29yZCcNCk1vbiBK dW4gMTEgMDg6MTc6NDkgMjAxOCBFUlJPUjogQ291bGRuJ3QgZmluZCB0aGUgZnVuY3Rpb24gJ3Bn YWdlbnRfc2NoZW1hX3ZlcnNpb24nIC0gcGxlYXNlIHJ1biBwZ2FnZW50X3VwZ3JhZGUuc3FsLg0K DQpyb2JASVNJUzp+L3BnYWdlbnQtMy40LjEtYnVpbGQkIC4vcGdhZ2VudCAtZiAnaG9zdGFkZHI9 MTcyLjMwLjAuMTYgdXNlcj1wZ2FnZW50X2xvZ2luX3JvbGUgcGFzc3dvcmQ9cGFzc3dvcmQnDQpN b24gSnVuIDExIDA4OjE4OjAxIDIwMTggOiBXQVJOSU5HOiBDb3VsZG4ndCBjcmVhdGUgdGhlIHBy aW1hcnkgY29ubmVjdGlvbiAoYXR0ZW1wdCAxKTogY291bGQgbm90IGNvbm5lY3QgdG8gc2VydmVy OiBDb25uZWN0aW9uIHJlZnVzZWQNCiAgICAgICAgSXMgdGhlIHNlcnZlciBydW5uaW5nIG9uIGhv c3QgIjE3Mi4zMC4wLjE2IiBhbmQgYWNjZXB0aW5nDQogICAgICAgIFRDUC9JUCBjb25uZWN0aW9u cyBvbiBwb3J0IDU0MzI/DQo= --0000000000001ef49e056e589552--