Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id D63D2782CD0 for <~alpine/users@lists.alpinelinux.org>; Fri, 30 Apr 2021 23:06:19 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 5C8441BEF; Fri, 30 Apr 2021 19:06:17 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 30 Apr 2021 19:06:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrewcz.com; h= date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-type; s=fm1; bh=ln8qIVK6HL+qbPs2SOI+0omCmX /tYrVu9lb8yaK3ALQ=; b=uvlZMNFdEZZgbJY4sGdPdAuoTp+88VdMt2KBfzrJMx yrvCG6oj+s4DdtEGsSLEhu/NrvPWGImjBbHQjC8faXQ7qJdpT+KI9b7rNwjO4weV bo1e0Xbp5ah/ksAW9ZryO/WXKrSWW47Oi7wFE+mPBAEHafEbahKdIb/TCPWhjjB/ nVxAk2M4HVBU7z67ZKYAeBKjalwTSOnmowMQQT8qTuTa15Ud1ixHskw4vur7Xdyv 4oqZIUeb9Mn9sJtFTSNGAfOcINg2HLjakGAnfSDGabH5GI+dOvtbR67WelyABEWO TknWyd2unEtOUOk3J3knhXkLPjpM1UnQGb2qB3ICaTWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=ln8qIV K6HL+qbPs2SOI+0omCmX/tYrVu9lb8yaK3ALQ=; b=dTVQRIyz0tLvujJzuivpty wtidWiWCbcCKEk41xKdX6tXn9iFm4MKhUo0BiMjUar+hsge3pInUtuU+8hIpMNk1 3rVaJDFK2/WG2C8pVlE0HIVRnjZxI7frkO+6d68YtfKRzhMjp5xglxsE1zD+z73J KBhpVOek8qSl1W5f5SqEasq9g68v1+B2pR3jNpt1MDwX3H2H3GYRh+lRtY7hGai5 NoEbILtIYgAjLuPgsRbS2NFGvES8B/xr380SHgtdAC3NVGCtoT96/NZ3crC0WtTE W06Xquog2T8dnaIxY/mcPZXttrA/TVWiWhwF2BIIP9reFIWG8SgFP8awPLzJQZuw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddvjedgudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvkfgjfhfuofggtgesrgdtmh erredtjeenucfhrhhomheptehnughrvgifuceorghnughrvgiftgiisegrnhgurhgvfigt iidrtghomheqnecuggftrfgrthhtvghrnhepjeevheehkedvjedtkefhieffudduteetje ehteefgeethefgveelfeegkefhhfefnecuffhomhgrihhnpegrlhhpihhnvghlihhnuhig rdhorhhgpdhgohhoghhlvgdrtghomhdpughotghkvghrrdhiohenucfkphepieehrdeitd drvdeguddrgedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomheprghnughrvgiftgiisegrnhgurhgvfigtiidrtghomh X-ME-Proxy: Received: from element (d60-65-40-241.col.wideopenwest.com [65.60.241.40]) by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 30 Apr 2021 19:06:15 -0400 (EDT) Date: Fri, 30 Apr 2021 19:06:14 -0400 From: Andrew To: Wolf Cc: "=?utf-8?Q?=7Ealpine/users=40lists.alpinelinux.org?=" <~alpine/users@lists.alpinelinux.org> Message-ID: <8C2D9F89-0E2A-40A5-8206-2F6B29030425@getmailspring.com> In-Reply-To: <20210430225126.kqvxgm2bdj5sa3ap@wolfsden.cz> References: <20210430225126.kqvxgm2bdj5sa3ap@wolfsden.cz> Subject: Re: SSH not working in container X-Mailer: Mailspring MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="608c8d66_7624582d_bd6" --608c8d66_7624582d_bd6 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Of course. Thanks for the response. I believe the following will reproduc= e the error. I am able to reproduce it on two machines so far: Here is the Dockerfile which recreates this issue for me: =46ROM ruby:2.7.0-alpine3.11 RUN apk add --update --no-cache =5C --repository=3Dhttp://dl-cdn.alpinelinux.org/alpine/edge/main =5C openssl openssh-client git tzdata mysql-dev mysql-client nodejs And here are the results of building and running the resulting container:= =E2=9E=9C tmp docker build . Sending build context to Docker daemon 2.048kB Step 1/2 : =46ROM ruby:2.7.0-alpine3.11 ---> 77bdcf1a09b8 Step 2/2 : RUN apk add --update --no-cache --repository=3Dhttp://dl-cdn.a= lpinelinux.org/alpine/edge/main openssl openssh-client git tzdata mysql-d= ev mysql-client nodejs ---> Running in d56e69b0af83 fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86=5F64/APKINDEX.ta= r.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86=5F64/APKINDEX.t= ar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86=5F64/APKIN= DEX.tar.gz (1/25) Upgrading libcrypto1.1 (1.1.1d-r3 -> 1.1.1k-r0) (2/25) Upgrading libssl1.1 (1.1.1d-r3 -> 1.1.1k-r0) (3/25) Installing brotli-libs (1.0.9-r4) (4/25) Installing nghttp2-libs (1.43.0-r0) (5/25) Installing libcurl (7.76.1-r0) (6/25) Installing expat (2.3.0-r0) (7/25) Installing pcre2 (10.36-r0) (8/25) Installing git (2.31.1-r1) (9/25) Installing mariadb-common (10.5.9-r0) (10/25) Installing mariadb-client (10.5.9-r0) (11/25) Installing mysql-client (10.5.9-r0) (12/25) Installing openssl-dev (1.1.1k-r0) (13/25) Installing mariadb-connector-c (3.1.12-r0) (14/25) Installing mariadb-connector-c-dev (3.1.12-r0) (15/25) Installing libaio (0.3.112-r1) (16/25) Installing xz-libs (5.2.5-r0) (17/25) Installing mariadb-embedded (10.5.9-r0) (18/25) Installing mariadb-dev (10.5.9-r0) (19/25) Installing c-ares (1.17.1-r1) (20/25) Installing nodejs (14.16.1-r2) (21/25) Installing openssh-keygen (8.6=5Fp1-r0) (22/25) Installing libedit (20210216.3.1-r0) (23/25) Installing openssh-client (8.6=5Fp1-r0) (24/25) Installing openssl (1.1.1k-r0) (25/25) Installing tzdata (2021a-r0) Executing busybox-1.31.1-r9.trigger Executing ca-certificates-20191127-r1.trigger OK: 133 MiB in 59 packages Removing intermediate container d56e69b0af83 ---> a31661c2eff1 Successfully built a31661c2eff1 =E2=9E=9C tmp docker run -it --rm a31661c2eff1 sh / =23 ssh git=40gitlab.com Error relocating /usr/bin/ssh: reallocarray: symbol not found Hope that helps=21 Regards, Andrew Cziryak Sent from Mailspring, the best free email app for work andrewcz=40andrewcz.com (mailto:andrewcz=40andrewcz.com) (614) 680-8599 (tel:(614)%20680-8599) PO Box 10065 Columbus, OH 43201 (https://maps.google.com/=3Fq=3DPO%20Box%= 2010065%20Columbus%2C%20OH%2043201) On Apr 30 2021, at 6:51 pm, Wolf wrote: > On 2021-04-30 15:46:33 -0400, Andrew wrote: > > > > I have been setting up a container and installed openssh-client , and= > > went to use ssh git=40gitlab.com , but got the following error in > > response: > > /app =23 which ssh > > /usr/bin/ssh > > /app =23 ssh git=40gitlab.com > > Error relocating /usr/bin/ssh: reallocarray: symbol not found > > > Seems to work for me: > +:( =24 podman run -it --rm docker.io/library/alpine:3.11 > Trying to pull docker.io/library/alpine:3.11... > Getting image source signatures > Copying blob ddad3d7c1e96 done > Copying config e389ae5892 done > Writing manifest to image destination > Storing signatures > / =23 apk add openssh-client > fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/main/x86=5F64/APKINDEX= .tar.gz > fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86=5F64/APK= INDEX.tar.gz > (1/5) Installing openssh-keygen (8.1=5Fp1-r0) > (2/5) Installing ncurses-terminfo-base (6.1=5Fp20200118-r4) > (3/5) Installing ncurses-libs (6.1=5Fp20200118-r4) > (4/5) Installing libedit (20191211.3.1-r0) > (5/5) Installing openssh-client (8.1=5Fp1-r0) > Executing busybox-1.31.1-r10.trigger > OK: 10 MiB in 19 packages > / =23 ssh git=40gitlab.com > The authenticity of host 'gitlab.com (172.65.251.78)' can't be establis= hed. > ECDSA key fingerprint is SHA256:HbW3g8zUjNSks=46bqTiUWPWg2Bq1x8xdGUrliX= =46zSnUw. > Are you sure you want to continue connecting (yes/no/=5Bfingerprint=5D)= =3F yes > Warning: Permanently added 'gitlab.com,172.65.251.78' (ECDSA) to the li= st of known hosts. > git=40gitlab.com: Permission denied (publickey,keyboard-interactive). > / =23 > > > /app =23 alpine > > sh: alpine: not found > > > What was this supposed to do=3F > > Is there something that I'm missing here=3F I have to say, this kind = of > > blindsided me, so I don't know what other info would be helpful. > > > I think steps to reproduce this would help with giving more useful > advice then =22works for me=22. > > W. > -- > There are only two hard things in Computer Science: > cache invalidation, naming things and off-by-one errors. > --608c8d66_7624582d_bd6 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Of course. Thanks for the response. I believe the following will rep= roduce the error. I am able to reproduce it on two machines so far:
=
Here is the Dockerfile which recreates this issue for me:
<= br>
=46ROM ruby:2.7.0-alpine3.11
RUN apk add --update =
--no-cache =5C
    --repository=3Dhttp://d=
l-cdn.alpinelinux.org/alpine/edge/main =5C
  &nb=
sp; openssl openssh-client git tzdata mysql-dev mysql-client nodejs
=

And here are the results of building and running the resu= lting container:

=E2=9E=9C  tmp docker build .
Sending build context to Docker daemon  2.048kB
=
Step 1/2 : =46ROM ruby:2.7.0-alpine3.11
 ---> 77bdcf=
1a09b8
Step 2/2 : RUN apk add --update --no-cache &n=
bsp;   --repository=3Dhttp://dl-cdn.alpinelinux.org/alpine/edge=
/main     openssl openssh-client git tzdata mysql-dev=
 mysql-client nodejs
 ---> Running in d56e69b0af83
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86=5F6=
4/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alp=
ine/v3.11/main/x86=5F64/APKINDEX.tar.gz
fetch http://dl-cd=
n.alpinelinux.org/alpine/v3.11/community/x86=5F64/APKINDEX.tar.gz
(1/25) Upgrading libcrypto1.1 (1.1.1d-r3 -> 1.1.1k-r0)
<= /code>
(2/25) Upgrading libssl1.1 (1.1.1d-r3 -> 1.1.1k-r0)
(3/25) Installing brotli-libs (1.0.9-r4)
(4/25) I=
nstalling nghttp2-libs (1.43.0-r0)
(5/25) Installing libc=
url (7.76.1-r0)
(6/25) Installing expat (2.3.0-r0)
<= /code>
(7/25) Installing pcre2 (10.36-r0)
(8/25) Insta=
lling git (2.31.1-r1)
(9/25) Installing mariadb-common (1=
0.5.9-r0)
(10/25) Installing mariadb-client (10.5.9-r0)
(11/25) Installing mysql-client (10.5.9-r0)
(12/25) Installing openssl-dev (1.1.1k-r0)
(13/25) Install=
ing mariadb-connector-c (3.1.12-r0)
(14/25) Installing ma=
riadb-connector-c-dev (3.1.12-r0)
(15/25) Installing liba=
io (0.3.112-r1)
(16/25) Installing xz-libs (5.2.5-r0)
(17/25) Installing mariadb-embedded (10.5.9-r0)
=
(18/25) Installing mariadb-dev (10.5.9-r0)
(19/25) In=
stalling c-ares (1.17.1-r1)
(20/25) Installing nodejs (14=
.16.1-r2)
(21/25) Installing openssh-keygen (8.6=5Fp1-r0)=
(22/25) Installing libedit (20210216.3.1-r0)
(23/25) Installing openssh-client (8.6=5Fp1-r0)
(24/= 25) Installing openssl (1.1.1k-r0)
(25/25) Installing tzd=
ata (2021a-r0)
Executing busybox-1.31.1-r9.trigger
<= /code>
Executing ca-certificates-20191127-r1.trigger
O=
K: 133 MiB in 59 packages
Removing intermediate container=
 d56e69b0af83
 ---> a31661c2eff1
Succe= ssfully built a31661c2eff1
=E2=9E=9C  tmp docker run=
 -it --rm a31661c2eff1 sh
/ =23 ssh git=40gitlab.com
Error relocating /usr/bin/ssh: reallocarray: symbol not found=

Hope that helps=21

Regards,
Andrew Cziryak
Sent from Mailspring, the best free em= ail app for work
On Apr 30 2021, at 6:51 pm, Wolf <wolf=40wolfsden.cz> wro= te:
On 2021-04-30 15:46:33 -0400, Andrew wrote= :

I have been setting up a container and instal= led openssh-client , and
went to use ssh git=40gitlab.com , but= got the following error in
response:
/app =23 which = ssh
/usr/bin/ssh
/app =23 ssh git=40gitlab.com
<= div>Error relocating /usr/bin/ssh: reallocarray: symbol not found

Seems to work for me:

+:( =24 podman ru= n -it --rm docker.io/library/alpine:3.11
Trying to pull docker.= io/library/alpine:3.11...
Getting image source signatures
=
Copying blob ddad3d7c1e96 done
Copying config e389ae5892 d= one
Writing manifest to image destination
Storing sig= natures
/ =23 apk add openssh-client
fetch http://dl-= cdn.alpinelinux.org/alpine/v3.11/main/x86=5F64/APKINDEX.tar.gz
= fetch http://dl-cdn.alpinelinux.org/alpine/v3.11/community/x86=5F64/APKIN= DEX.tar.gz
(1/5) Installing openssh-keygen (8.1=5Fp1-r0)
<= div>(2/5) Installing ncurses-terminfo-base (6.1=5Fp20200118-r4)(3/5) Installing ncurses-libs (6.1=5Fp20200118-r4)
(4/5) Insta= lling libedit (20191211.3.1-r0)
(5/5) Installing openssh-client= (8.1=5Fp1-r0)
Executing busybox-1.31.1-r10.trigger
O= K: 10 MiB in 19 packages
/ =23 ssh git=40gitlab.com
T= he authenticity of host 'gitlab.com (172.65.251.78)' can't be established= .
ECDSA key fingerprint is SHA256:HbW3g8zUjNSks=46bqTiUWPWg2Bq1= x8xdGUrliX=46zSnUw.
Are you sure you want to continue connectin= g (yes/no/=5Bfingerprint=5D)=3F yes
Warning: Permanently added = 'gitlab.com,172.65.251.78' (ECDSA) to the list of known hosts.
= git=40gitlab.com: Permission denied (publickey,keyboard-interactive).
/ =23

/app =23 alpine
sh: alpi= ne: not found

What was this supposed to do=3F<= /div>
Is there something that I'm missing here=3F I h= ave to say, this kind of
blindsided me, so I don't know what ot= her info would be helpful.

I think steps to re= produce this would help with giving more useful
advice then =22= works for me=22.

W.

--
There are on= ly two hard things in Computer Science:
cache invalidation, nam= ing things and off-by-one errors.
--608c8d66_7624582d_bd6--