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.92) (envelope-from ) id 1jDD8r-00074B-HC for psycopg@arkaria.postgresql.org; Sat, 14 Mar 2020 20:12:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jDD8p-0004sw-V6 for psycopg@arkaria.postgresql.org; Sat, 14 Mar 2020 20:12:15 +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 1jDD8o-0004sp-4s for psycopg@lists.postgresql.org; Sat, 14 Mar 2020 20:12:15 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jDD8j-0000Pm-EP for psycopg@lists.postgresql.org; Sat, 14 Mar 2020 20:12:13 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 6F32A62A; Sat, 14 Mar 2020 16:12:06 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 14 Mar 2020 16:12:06 -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=fm2; bh=I ZAvtxkMdpAF6njSJ/cTGsP10FNMmzfsoatEfaODnYQ=; b=Bd6ff2CxLYnn1RunE Ytfds3cu8SbrjLICy1ewlhYLecJdgqbhLW+kReLeYmbgWx73bX4N4Nud9RfHMPZ7 j5FZ4c85CFgbl4Iu84WHh9OeoiXm1NLfY57btSWKPFpKFAe4xJYRNpYXPLbSX9QT 6l2hp1Xtbj3qfm94Wsl24zFxL1zJjoprMpwI5ERP242MEq0yrsEF3N016PvU8OPz Y8pa3Rtgi1ZiLvutaCOQn9s4/l2b01WnsyD1/7i8t/80tFhTpJ45NCn/R2nPbaNn sxobRxJlfhJW/JTpNZV3FAkvMwDX+5RH9X6r+Sl0S7lSHz02Y6XbHV3i4aNEgOv0 StV2w== 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=fm2; bh=IZAvtxkMdpAF6njSJ/cTGsP10FNMmzfsoatEfaODn YQ=; b=pQkk5tmM3ov0xspvN4NaOJO1jSpD/FNifMcWSh0nwsOfSL5fJTUKikSvg UNI97RjPHkS3jgcgG9oFl9X3uXRkuD71lZBtl2uSNggUWpffS2ck+jse8k9wvy48 YIO5KJDwRsAH7zcJEv5WzdWZD6g5yrVpxo7KKGOyXKiloNItLSZmuqXibH4SR5Vp G8WuqlofEO99mV+UhhEqnN9ZFGIJEGl9nlLnn5QuZgDP0gQGPeIYlFesBZIoYkfq 4mX2FkZmHCEf9i24cTGPA23cxUHfOr3m6mBPu+KsQILjVAtFy6oKJaWEz2urj7Up 3LDFL/dIsS0TDC24wXYg35IZNrBww== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddvledgudefhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ejredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucffohhmrghinhepuggvsghirghnrd horhhgnecukfhppeejuddrvdduvddruddvledrudelfeenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkh hlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.10] (unknown [71.212.129.193]) by mail.messagingengine.com (Postfix) with ESMTPA id 2F0DB3280063; Sat, 14 Mar 2020 16:12:05 -0400 (EDT) Subject: Re: wire protocol errors on Debian (py3/psyco 2.8) To: psycopg@lists.postgresql.org, psycopg@postgresql.org References: <20200314153421.GC1104@hermes.hilbert.loc> <1e6ef8fb-1efd-ab1b-7dae-a880b5d53ee0@aklaver.com> <20200314161259.GD1104@hermes.hilbert.loc> From: Adrian Klaver Message-ID: <0379e0b8-291e-6c39-b1d6-f2d2f7bb9691@aklaver.com> Date: Sat, 14 Mar 2020 13:12:04 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200314161259.GD1104@hermes.hilbert.loc> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 3/14/20 9:12 AM, Karsten Hilbert wrote: > Dear Adrian, > > unfortunately, we don't have direct contact with the reporter > (only via our mailing list and they haven't answered so far). > >> How was psycopg2 installed? > > Given they are running a "standard" Debian/Unstable with a > Debian package of GNUmed installed and the matching psycopg2 > package version > > psycopg2 module version: 2.8.4 (dt dec pq3 ext lo64) > > I suspect they apt-get install'ed it. Which assumption seems > supported by the package file string in: > > PostgreSQL via DB-API module "": API level 2.0, thread safety 2, parameter style "pyformat" > > The one thing that's odd is that the Python version > > Python 3.7.6 (default, Jan 19 2020, 22:34:52) <\n>[GCC 9.2.1 20200117] on linux (posix) > > does not match what's available from Debian: > > python3: > Installiert: 3.7.3-1 > Installationskandidat: 3.7.3-1 > Versionstabelle: > 3.8.2-1 500 > 500 https://deb.debian.org/debian unstable/main i386 Packages > 3.7.5-3 500 > 500 https://deb.debian.org/debian bullseye/main i386 Packages > *** 3.7.3-1 990 > 990 https://deb.debian.org/debian buster/main i386 Packages > 100 /var/lib/dpkg/status > >> What is the code being run when the errors are thrown? > > It happens (two reports so far) at different stages during > the bringup phase of the GNUmed client. The code being run is > the same, but the time of occurrence is different. > > case 1: > > select vco.value from cfg.v_cfg_opts_numeric vco where vco.owner = CURRENT_USER and vco.workplace = %(wp)s and vco.option = %(opt)s and vco.cookie is null limit 1 > > case 2: > > select _(message) from cfg.db_logon_banner > > where _() translates "message". This is the Python code being > run (the place of error marked with xxxxx): > Went through the function and the attached logs from the OP. I do not pretend to understand all of what the logs are showing. Still I do not see anything that stands out to me. -- Adrian Klaver adrian.klaver@aklaver.com