From owner-freebsd-questions@freebsd.org Sun Jan 10 15:54:22 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D17CC4D0C43 for ; Sun, 10 Jan 2021 15:54:22 +0000 (UTC) (envelope-from shamaz.mazum@gmail.com) Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DDLxT6VNvz4pWl for ; Sun, 10 Jan 2021 15:54:21 +0000 (UTC) (envelope-from shamaz.mazum@gmail.com) Received: by mail-ot1-x32e.google.com with SMTP id j12so14576126ota.7 for ; Sun, 10 Jan 2021 07:54:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VMa6eCC0sOC7MwgP9bYXYSFY4xPKVVcJ93JPgWCKCDU=; b=h5Qbq82N8r0t/MRVeZVL7m12yzYZEhWVXVlsX3hVakh4OM2BtVcY/k5er2TBvS12L+ gJuvKkeY+nNHYRPA4W6/kTLtm3Cn8dm64Ex6FrrEoe6ie/Vz61L3hWnwoIuD32kKerGW krxXCIdqNj1zhV4xNiaGUkeUURM5wWgwdylqFcN6X/HDrGF9F29+SQJ02gwREXlaHSp/ OS4CcusYmwYbS6Ys1Vv9nRdB4N6SILqXFc8qZ6AVI2UpCsNHSW5lhVEmd94Wutjj1bIC +QzDPyZiaFdbBfigwc+8xqtCxjFR9RN+TPLa4UzL10SJjzopjeCuAh8yC2S9XQ/Uqg15 SlsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VMa6eCC0sOC7MwgP9bYXYSFY4xPKVVcJ93JPgWCKCDU=; b=XGT3tH/s8LWAAFHY8Swx1uN6fOWAXOyjv+1QfZkAncS3L7QhxRC1I8a44srVEVbP2R o+OeEKVdwm4rsk1XX7sXZZ9UdtKFUzF5mEwfr2aY5/ZoE0je30HNmzwM4rsocR4e2faM y5g5eN9nzqANTE87CVZuJehNZk5q6+jeIsbmG9y1oFhY3HEX5XaSruQGd5bCwQiA8eW8 Z6UzvMlcWkN3akzoopYOLhhyn4mlN1vwo/9rgJUeF7IpardaETdcFM1WmaIJ4tZLMyio kOQXkxf6v/so3q3XASFtpbXZ947dFuQckUfygWvK56JfIXbnZ54i/aUcOSvPjYAoGlyC dRYw== X-Gm-Message-State: AOAM532wfktznHsU9vHJppPjSoN4bFaioj1gcKFZ0OctpBonCKg5+cDu dYvLvC0RTSf/VZ/jMwcQpGlzQuBLzF6y3HZvcXsH0N0F6Ia14k4r X-Google-Smtp-Source: ABdhPJy5Ye6dqPc3di11WChLGxg2GkLCp4stD0AEyvD8jRI94xfx/qL4Ns2I/5HIZzb6gwv/kik6qexQV9TR2DLHfLY= X-Received: by 2002:a05:6830:13d2:: with SMTP id e18mr8698625otq.366.1610294060529; Sun, 10 Jan 2021 07:54:20 -0800 (PST) MIME-Version: 1.0 References: <17692bb2-7472-4a20-bd8f-05684f209b66@pobox.com> In-Reply-To: <17692bb2-7472-4a20-bd8f-05684f209b66@pobox.com> From: Vasily Postnicov Date: Sun, 10 Jan 2021 18:54:08 +0300 Message-ID: Subject: Re: wget hung at "Initiating handshake"; version upgrade made things worse To: James E Keenan Cc: freeBSD Mailing List X-Rspamd-Queue-Id: 4DDLxT6VNvz4pWl X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=h5Qbq82N; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of shamazmazum@gmail.com designates 2607:f8b0:4864:20::32e as permitted sender) smtp.mailfrom=shamazmazum@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.998]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::32e:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::32e:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::32e:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jan 2021 15:54:22 -0000 Update to supported FreeBSD version, when update all packages =D0=B2=D1=81, 10 =D1=8F=D0=BD=D0=B2. 2021 =D0=B3., 18:42 James E Keenan : > This is a two-stage problem, i.e., a case where what I did to correct a > problem in Stage 1 only got me into a worse problem in Stage 2. > > Stage 1 > > On FreeBSD-11, using wget 1.19.5, I was attempting to download a tarball > in a way I have done dozens of times previously. (I'll show debug and > verbose output.) > > ##### > $ wget -dv https://www.cpan.org/src/5.0/perl-5.32.1-RC1.tar.gz > Setting --verbose (verbose) to 1 > Setting --verbose (verbose) to 1 > DEBUG output created by Wget 1.19.5 on freebsd11.1. > > Reading HSTS entries from /home/jkeenan/.wget-hsts > URI encoding =3D 'US-ASCII' > converted 'https://www.cpan.org/src/5.0/perl-5.32.1-RC1.tar.gz' > (US-ASCII) -> 'https://www.cpan.org/src/5.0/perl-5.32.1-RC1.tar.gz' > (UTF-8) > Converted file name 'perl-5.32.1-RC1.tar.gz' (UTF-8) -> > 'perl-5.32.1-RC1.tar.gz' (US-ASCII) > --2021-01-10 14:56:49-- > https://www.cpan.org/src/5.0/perl-5.32.1-RC1.tar.gz > Resolving www.cpan.org (www.cpan.org)... 151.101.2.132, 151.101.66.132, > 151.101.130.132, ... > Caching www.cpan.org =3D> 151.101.2.132 151.101.66.132 151.101.130.132 > 151.101.194.132 2a04:4e42::644 2a04:4e42:200::644 2a04:4e42:400::644 > 2a04:4e42:600::644 > Connecting to www.cpan.org (www.cpan.org)|151.101.2.132|:443... connected= . > Created socket 3. > Releasing 0x0000000802371680 (new refcount 1). > Initiating SSL handshake. > > ##### > > At this point wget hung indefinitely. In contrast (a) wget was able to > download a different tarball from an http site; (b) wget successfully > loaded the same (perl release candidate) tarball on Linux. Picking up > from `Initiating SSL handshake.`, on Linux I got output like this: > > ##### > ... > Initiating SSL handshake. > Handshake successful; connected socket 3 to SSL handle 0x0000555575f73080 > certificate: > subject: CN=3D*.cpan.org > issuer: CN=3DR3,O=3DLet's Encrypt,C=3DUS > X509 certificate successfully verified and matches host www.cpan.org > > ---request begin--- > GET /src/5.0/perl-5.32.1-RC1.tar.gz HTTP/1.1 > User-Agent: Wget/1.20.3 (linux-gnu) > Accept: */* > Accept-Encoding: identity > Host: www.cpan.org > Connection: Keep-Alive > > ---request end--- > HTTP request sent, awaiting response... > ---response begin--- > HTTP/1.1 200 OK > Connection: keep-alive > Content-Length: 18040350 > Server: Apache/2.4.41 (Unix) > Last-Modified: Sat, 09 Jan 2021 16:48:26 GMT > ETag: "113461e-5b87a7110ca80" > Cache-Control: public, max-age=3D172800, stale-while-revalidate=3D90, > stale-if-error=3D172800 > Content-Type: application/x-gzip > Via: 1.1 varnish, 1.1 varnish > Strict-Transport-Security: max-age=3D15724800; > Accept-Ranges: bytes > Age: 43433 > Date: Sun, 10 Jan 2021 15:08:43 GMT > X-Served-By: cache-fra19165-FRA, cache-ewr18172-EWR > X-Cache: HIT, HIT > X-Cache-Hits: 0, 0 > X-Timer: S1610291324.941590,VS0,VE1 > > ---response end--- > 200 OK > Registered socket 3 for persistent reuse. > Parsed Strict-Transport-Security max-age =3D 15724800, includeSubDomains = =3D > false > Updated HSTS host: www.cpan.org:443 (max-age: 15724800, > includeSubdomains: false) > Length: 18040350 (17M) [application/x-gzip] > Saving to: =E2=80=98perl-5.32.1-RC1.tar.gz.1=E2=80=99 > > perl-5.32.1-RC1.tar.gz.1 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D>] > 17.20M 5.95MB/s in 2.9s > > 2021-01-10 10:08:46 (5.95 MB/s) - =E2=80=98perl-5.32.1-RC1.tar.gz.1=E2=80= =99 saved > [18040350/18040350] > > Saving HSTS entries to /home/jkeenan/.wget-hsts > ##### > > So in Stage 1, the problem was that on FreeBSD-11, wget failed to > complete the handshake in a usage I had accomplished many times previousl= y. > > Stage 2 > > I noted that the version of wget I was using on FreeBSD-11 was behind > that which I was using on Linux. So I attempted to upgrade wget. > Upshot: now my wget is unusable. > > ##### > $ sudo pkg install wget > Updating FreeBSD repository catalogue... > Fetching meta.txz: 100% 916 B 0.9kB/s 00:01 > Fetching packagesite.txz: 100% 6 MiB 6.0MB/s 00:01 > Processing entries: 0% > Newer FreeBSD version for package py37-mysqlclient: > To ignore this error set IGNORE_OSVERSION=3Dyes > - package: 1104001 > - running kernel: 1102503 > Ignore the mismatch and continue? [y/N]: y > Processing entries: 100% > FreeBSD repository update completed. 28863 packages processed. > All repositories are up to date. > New version of pkg detected; it needs to be installed first. > The following 1 package(s) will be affected (of 0 checked): > > Installed packages to be UPGRADED: > pkg: 1.15.4 -> 1.16.1 > > Number of packages to be upgraded: 1 > > 4 MiB to be downloaded. > > Proceed with this action? [y/N]: y > [1/1] Fetching pkg-1.16.1.txz: 100% 4 MiB 3.7MB/s 00:01 > Checking integrity... done (0 conflicting) > [1/1] Upgrading pkg from 1.15.4 to 1.16.1... > [1/1] Extracting pkg-1.16.1: 100% > Updating FreeBSD repository catalogue... > FreeBSD repository is up to date. > All repositories are up to date. > The following 1 package(s) will be affected (of 0 checked): > > Installed packages to be UPGRADED: > wget: 1.19.5 -> 1.20.3_1 > > Number of packages to be upgraded: 1 > > 650 KiB to be downloaded. > > Proceed with this action? [y/N]: y > [1/1] Fetching wget-1.20.3_1.txz: 100% 650 KiB 666.1kB/s 00:01 > Checking integrity... done (0 conflicting) > [1/1] Upgrading wget from 1.19.5 to 1.20.3_1... > [1/1] Extracting wget-1.20.3_1: 100% > > $ wget -dv https://www.cpan.org/src/5.0/perl-5.32.1-RC1.tar.gz > /lib/libc.so.7: version FBSD_1.6 required by /usr/local/bin/wget not foun= d > ##### > > So my upgrade to wget-1.20 on FreeBSD-11 was not successful. I can't > even use it on non-https sites. > > I do have /lib/libc.so.7: > > ##### > $ ls -l /lib/libc.so.7 > -r--r--r-- 1 root wheel 1760360 Oct 20 2018 /lib/libc.so.7 > ##### > > But wget is not happy with that. > > Does anyone have suggestions as to either (a) what was going wrong in > Stage 1; or (b) how I can get myself out of the rabbit hole in Stage 2? > > Thank you very much. > Jim Keenan > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >