stat("../bin") on /Users directory sometimes fails with errno=2 (ENOENT)
I saw this failure on several Mac machines. Especially:
- macOS Monterey 12.1, MacBook Pro 13-inch, 2020, M1
- macOS Monterey 12.1, MacBook Pro 16-inch, 2019, Intel
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| var duration time.Duration |
| package main | |
| import ( | |
| "crypto/tls" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| ) | |
| const requestURL = "https://twitter.com/utgwkk" |
| 2022-04-04T00:21:07,56937| Running cpm 0.997009 (cpm.test) on perl 5.16.3 built for darwin-2level (/Users/skaji/env/plenv/versions/5.16.3/bin/perl) | |
| 2022-04-04T00:21:07,56937| This is a self-contained version, 0.997009-2-g8144350-dirty (https://github.com/skaji/cpm/tree/8144350) | |
| 2022-04-04T00:21:07,56937| Command line arguments are: install --no-prebuilt Plack | |
| 2022-04-04T00:21:08,56937| Work directory is /Users/skaji/.perl-cpm/work/1648999268.56937 | |
| 2022-04-04T00:21:08,56937| You have make /usr/bin/make | |
| 2022-04-04T00:21:08,56937| You have /usr/bin/curl curl 7.79.1 (x86_64-apple-darwin21.0) libcurl/7.79.1 (SecureTransport) LibreSSL/3.3.5 zlib/1.2.11 nghttp2/1.45.1 | |
| 2022-04-04T00:21:08,56937| You have tar /usr/local/bin/gtar (gnu) | |
| 2022-04-04T00:21:08,56937| You have unzip /usr/bin/unzip | |
| 2022-04-04T00:21:08,56937| Setup local::lib /Users/skaji/src/github.com/skaji/cpm/local | |
| 2022-04-04T00:21:08,56937| -- |
| #!/bin/bash | |
| set -exu | |
| curl -sO https://www.cpan.org/authors/id/S/SK/SKAJI/CHECKSUMS | |
| perl -ne 'print unless /BEGIN PGP SIGNATURE/../END PGP SIGNATURE/' CHECKSUMS > CHECKSUMS-NO-PGP-SIGNATURE | |
| perl -MModule::Signature -e 'my $rv = Module::Signature::_verify(shift); printf "%s, %s\n", $rv, $rv eq Module::Signature::SIGNATURE_OK ? "OK" : "NOT OK"' CHECKSUMS-NO-PGP-SIGNATURE |
| ❯ wget https://rakudo.org/dl/rakudo/rakudo-2021.03.tar.gz | |
| ❯ tar xf rakudo-2021.03.tar.gz | |
| ❯ cd rakudo-2021.03 | |
| ❯ perl Configure.pl --prefix=$HOME/rakudo --backend=moar --gen-moar --make-install | |
| fatal: not in a git directory | |
| fatal: not in a git directory | |
| No pre-existing installed file found at /Users/skaji/rakudo/bin/nqp-m |
| ❯ ./build.pl --all | |
| /Users/skaji/env/plenv/libexec/plenv: line 45: /dev/null: Interrupted system call | |
| plenv: cannot change working directory to `.' |
The following script test.pl downloads 02packages.details.txt.gz from cpan.metacpan.org 5 times
with HTTP::Tiny->mirror.
#!/usr/bin/env perl
use strict;
use warnings;
use HTTP::Tiny;
use IO::Socket::SSL;| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use 5.10.1; | |
| use Time::Piece (); | |
| use Time::Seconds (); | |
| sub is_stale { | |
| my ($date, $name) = @_; |
| "FAIL Download" messages in https://github.com/libwww-perl/libwww-perl/runs/838019243 | |
| 2020-07-05T04:36:24.4213790Z 2020-07-05T04:34:13,951,HTTP-Cookies-6.08| -> FAIL Download https://cpan.metacpan.org/authors/id/O/OA/OALDERS/HTTP-Cookies-6.08.tar.gz failed. Retrying ... | |
| 2020-07-05T04:36:24.4215080Z 2020-07-05T04:34:13,951,HTTP-Cookies-6.08| -> FAIL Download https://cpan.metacpan.org/authors/id/O/OA/OALDERS/HTTP-Cookies-6.08.tar.gz failed. Retrying ... | |
| 2020-07-05T04:36:24.4223110Z 2020-07-05T04:34:13,950,Net-HTTP-6.19| -> FAIL Download https://cpan.metacpan.org/authors/id/O/OA/OALDERS/Net-HTTP-6.19.tar.gz failed. Retrying ... | |
| 2020-07-05T04:36:24.4231820Z 2020-07-05T04:34:13,950,Net-HTTP-6.19| -> FAIL Download https://cpan.metacpan.org/authors/id/O/OA/OALDERS/Net-HTTP-6.19.tar.gz failed. Retrying ... | |
| 2020-07-05T04:36:24.4234950Z 2020-07-05T04:34:13,950,Net-HTTP-6.19| -> FAIL Download https://cpan.metacpan.org/authors/id/O/OA/OALDERS/Net-HTTP-6.19.tar.gz failed. Retrying ... | |
| 2020-07-05T04:36:24.4238940Z 2020-0 |