Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 269AC22381B for <~alpine/users@lists.alpinelinux.org>; Mon, 5 Jun 2023 19:43:42 +0000 (UTC) Received: by mail-yb1-xb2b.google.com with SMTP id 3f1490d57ef6-b9a6eec8611so9480105276.0 for <~alpine/users@lists.alpinelinux.org>; Mon, 05 Jun 2023 12:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685994220; x=1688586220; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=LdzQnfFyy2axSUw+WHM+HUkwaIWG1sJB6e1LjphOgQQ=; b=oQBvBAlsGLCFyei7tqdwLTkh58AMVaOwsgW1utCbU97SoMXk1RT3UYFSihIWrj4MKH xxLK72KdlJx5OgA2vAF106u00QGujUQhwCGYsxfIk/wMRC93tN4YNzUiRlnpVqa4GPw2 rdw57Pln5ZK3Y++tKdgGAqgsNEcGfYLbuJxhxaw2HFcHqF6lQh9O3ZrBB5UlrE2K2uE8 6HkxLw1BIb0yQg/VRicY6pAXquzgp9C9mTICYptGoaTSKnnMHEzwyibPhL2V1LnJV6hx PjqzCmgGR8cDzgn6U3Vc22zY6Z5ezqWInB2GL23Arqma2CX2JVqDBK6+hr7Ha97RE0Aq kMTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685994220; x=1688586220; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LdzQnfFyy2axSUw+WHM+HUkwaIWG1sJB6e1LjphOgQQ=; b=TTbTETtLRMSxJSQxbtWVylULT2sa9FPqJFA1ORuiTF+lEdyokDK5twV+H8h+uu/8ty h8WNxJuGIHXoyXpNqYBFZIVh0x0/TtNnENGPAxQB9WZ2CyqP5Nq0LiVCx1nvSf31/nIU DEg3NPSmEPhyESCELozDDLvOrXS32GZE/FDOkdFxSnpB1Mrpe0NDqcKLZitxHExrjOiK p8QWJEdy1E3um1eHZ0Z0RiUtynq2YLOjRdT2Y4OYyASUySb/LPkM5bST+Byf5YgDlKPk QG6qIX1kWaWRphKfQzii20fLWoDpRRC1FJ111kUltprZITXaZhsOsbkPCisEbKNL/7Ro Y6Bw== X-Gm-Message-State: AC+VfDw1w5gHjtTl878x+lsB6povoZ0PMSjE0tzHiSx8ak/wDICYm+a/ 4SURSJMdqYL+jWXdNJT4XV7MS7GJnDlUuOf9exUJTJdxW4BFPhLJ X-Google-Smtp-Source: ACHHUZ4Nnw47imox5OLDJ9QyKtSrAVDng7+Vva+hVk8pBcnTXQ9Rod5a1MnjEd46Z7GGTmOIkfa8hs1+xn9l6bcKHwo= X-Received: by 2002:a25:40c6:0:b0:b9f:fcc6:b491 with SMTP id n189-20020a2540c6000000b00b9ffcc6b491mr67316yba.11.1685994220140; Mon, 05 Jun 2023 12:43:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Thomas Leplus Date: Mon, 5 Jun 2023 12:43:28 -0700 Message-ID: Subject: Re: Fwd: waiting for the keyboxd to come up To: ~alpine/users@lists.alpinelinux.org, alice Content-Type: multipart/alternative; boundary="00000000000095bce805fd671e1e" --00000000000095bce805fd671e1e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I am still not 100% clear on what the issue was but I found a fix[1]. If I remove the call to `gpg --list-keys` during the docker build, the gpg-agent later used by my script is '/usr/bin/gpg-agent' instead of '/usr/libexec/keyboxd'. After that everything works. Note that this was not necessary in 3.17. [1] https://github.com/leplusorg/docker-pgp-verify-jar/commit/0e38af4a86d05b8df= cbacba804b2cb8086ad6499 On Mon, Jun 5, 2023 at 11:33=E2=80=AFAM Thomas Leplus wrote: > Hi Alice, > > I did not use my full script, just the command that I pasted, but I did > run it inside from inside my base image. Now I run it from a vanilla > alpine:3.18.0 image and it works. So something in my Dockerfile is breaki= ng > gnupg. I just need to figure out what but you've narrowed it down quite a > bit. Thanks! > > On Mon, Jun 5, 2023 at 11:23=E2=80=AFAM alice wrote: > >> On Mon Jun 5, 2023 at 8:20 PM CEST, Thomas Leplus wrote: >> > Hi, >> > >> > When I run the following command in an alpine:3.18.0 docker >> container[1] it >> > hangs: >> > >> > $ gpg --batch --verbose --keyserver keyserver.ubuntu.com --recv-keys >> > 6B1B9BE54C155617 >> >> this exact thing verbatim works fine for me in 3.18 with just `gpg` adde= d. >> perhaps the issue is somewhere else in that entire script you run.. >> but if you reproduce it with just this, then not sure what it could be. >> >> > gpg: enabled compatibility flags: >> > gpg: no running dirmngr - starting '/usr/bin/dirmngr' >> > gpg: waiting for the dirmngr to come up ... (5s) >> > gpg: connection to the dirmngr established >> > gpg: data source: http://162.213.33.9:11371 >> > gpg: armor header: Comment: Hostname: >> > gpg: armor header: Version: Hockeypuck 2.1.0-222-g25248d4 >> > gpg: key 6B1B9BE54C155617: number of dropped non-self-signatures: 2 >> > gpg: pub rsa3072/6B1B9BE54C155617 2021-01-22 Thomas Leplus < >> > thomas@leplus.org> >> > gpg: no running keyboxd - starting '/usr/libexec/keyboxd' >> > gpg: waiting for the keyboxd to come up ... (5s) >> > >> > Any suggestion would be appreciated. >> > >> > Tom >> > >> > [1] >> > >> https://github.com/leplusorg/docker-pgp-verify-jar/blob/main/pgp-verify-= jar/Dockerfile >> >> --00000000000095bce805fd671e1e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am still not 100% clear on what the issue was but I foun= d a fix[1]. If I remove the call to `gpg --list-keys` during the docker bui= ld, the gpg-agent later used by my script is '/usr/bin/gpg-agent' i= nstead of '/usr/libexec/keyboxd'. After that everything works. Note= that this was not necessary in 3.17.

[1] https://github.com/leplusorg/docker-pgp-verify-jar/commit/0e38af4= a86d05b8dfcbacba804b2cb8086ad6499

<= div dir=3D"ltr" class=3D"gmail_attr">On Mon, Jun 5, 2023 at 11:33=E2=80=AFA= M Thomas Leplus <thomas.leplu= s@gmail.com> wrote:
Hi Alice,

I did n= ot use my full script,=20 just the command that I pasted, but I did run it inside from inside my=20 base image. Now I run it from a vanilla alpine:3.18.0 image and it=20 works. So something in my Dockerfile is breaking gnupg. I just need to=20 figure out what but you've narrowed it down quite a bit. Thanks!
<= /div>
O= n Mon, Jun 5, 2023 at 11:23=E2=80=AFAM alice <alice@ayaya.dev> wrote:
On Mon Jun 5, 2023 at 8:20 PM CES= T, Thomas Leplus wrote:
> Hi,
>
> When I run the following command in an alpine:3.18.0 docker container[= 1] it
> hangs:
>
> $ gpg --batch --verbose --keyserver keyserver.ubuntu.com --recv-= keys
> 6B1B9BE54C155617

this exact thing verbatim works fine for me in 3.18 with just `gpg` added.<= br> perhaps the issue is somewhere else in that entire script you run..
but if you reproduce it with just this, then not sure what it could be.

> gpg: enabled compatibility flags:
> gpg: no running dirmngr - starting '/usr/bin/dirmngr'
> gpg: waiting for the dirmngr to come up ... (5s)
> gpg: connection to the dirmngr established
> gpg: data source: http://162.213.33.9:11371
> gpg: armor header: Comment: Hostname:
> gpg: armor header: Version: Hockeypuck 2.1.0-222-g25248d4
> gpg: key 6B1B9BE54C155617: number of dropped non-self-signatures: 2 > gpg: pub=C2=A0 rsa3072/6B1B9BE54C155617 2021-01-22=C2=A0 Thomas Leplus= <
> thomas@leplus.o= rg>
> gpg: no running keyboxd - starting '/usr/libexec/keyboxd'
> gpg: waiting for the keyboxd to come up ... (5s)
>
> Any suggestion would be appreciated.
>
> Tom
>
> [1]
> https://g= ithub.com/leplusorg/docker-pgp-verify-jar/blob/main/pgp-verify-jar/Dockerfi= le

--00000000000095bce805fd671e1e--