Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Failure - "Tried to get the result of a broken Promise..." #158

Open
Xliff opened this issue Oct 28, 2021 · 1 comment
Open

Comments

@Xliff
Copy link
Contributor

Xliff commented Oct 28, 2021

While attempting to install I received the following errors:

[Cro::HTTP] Tried to get the result of a broken Promise
[Cro::HTTP]   in block  at /home/ubuntu/.zef/tmp/cro-http-0.8.6.tar.gz/cro-http-0.8.6/lib/Cro/HTTP/Client.pm6 (Cro::HTTP::Client) line 786
[Cro::HTTP] Original exception:
[Cro::HTTP]     Tried to get the result of a broken Promise
[Cro::HTTP]       in block  at /home/ubuntu/.rakubrew/versions/moar-master/install/share/perl6/site/sources/8F9CE57B4C9E54F00938F862E837CA40DCD18536 (Cro::TLS) line 110
[Cro::HTTP]     Original exception:
[Cro::HTTP]         An operation first awaited:
[Cro::HTTP]           in block  at /home/ubuntu/.rakubrew/versions/moar-master/install/share/perl6/site/sources/DC2535A0A8F9C376CD7A8C92E469C35747CBF671 (IO::Socket::Async::SSL) line 364
[Cro::HTTP]         Died with the exception:
[Cro::HTTP]             Server certificate verification failed: certificate has expired
[Cro::HTTP]               in block  at /home/ubuntu/.rakubrew/versions/moar-master/install/share/perl6/site/sources/DC2535A0A8F9C376CD7A8C92E469C35747CBF671 (IO::Socket::Async::SSL) line 364
[Cro::HTTP] Tried to get the result of a broken Promise
[Cro::HTTP]   in block  at /home/ubuntu/.zef/tmp/cro-http-0.8.6.tar.gz/cro-http-0.8.6/lib/Cro/HTTP/Client.pm6 (Cro::HTTP::Client) line 786
[Cro::HTTP] Original exception:
[Cro::HTTP]     Tried to get the result of a broken Promise
[Cro::HTTP]       in block  at /home/ubuntu/.rakubrew/versions/moar-master/install/share/perl6/site/sources/8F9CE57B4C9E54F00938F862E837CA40DCD18536 (Cro::TLS) line 110
[Cro::HTTP]     Original exception:
[Cro::HTTP]         An operation first awaited:
[Cro::HTTP]           in block  at /home/ubuntu/.rakubrew/versions/moar-master/install/share/perl6/site/sources/DC2535A0A8F9C376CD7A8C92E469C35747CBF671 (IO::Socket::Async::SSL) line 364
[Cro::HTTP]         Died with the exception:
[Cro::HTTP]             Server certificate verification failed: certificate has expired
[Cro::HTTP]               in block  at /home/ubuntu/.rakubrew/versions/moar-master/install/share/perl6/site/sources/DC2535A0A8F9C376CD7A8C92E469C35747CBF671 (IO::Socket::Async::SSL) line 364
[Cro::HTTP] # Failed test 'Can connect once service is started (HTTPS)'
[Cro::HTTP] # at t/http-server.t line 87
[Cro::HTTP] # Server certificate verification failed: certificate has expired
[Cro::HTTP] Cannot resolve caller print(Any:U: Str:D); none of these signatures match:
[Cro::HTTP]     (Mu: *%_)
[Cro::HTTP]   in block <unit> at t/http-server.t line 89
[Cro::HTTP] Tried to get the result of a broken Promise
[Cro::HTTP]   in block  at /home/ubuntu/.zef/tmp/cro-http-0.8.6.tar.gz/cro-http-0.8.6/lib/Cro/HTTP/Client.pm6 (Cro::HTTP::Client) line 786
[Cro::HTTP] Original exception:
[Cro::HTTP]     Tried to get the result of a broken Promise
[Cro::HTTP]       in block  at /home/ubuntu/.rakubrew/versions/moar-master/install/share/perl6/site/sources/8F9CE57B4C9E54F00938F862E837CA40DCD18536 (Cro::TLS) line 110
[Cro::HTTP]     Original exception:
[Cro::HTTP]         An operation first awaited:
[Cro::HTTP]           in block  at /home/ubuntu/.rakubrew/versions/moar-master/install/share/perl6/site/sources/DC2535A0A8F9C376CD7A8C92E469C35747CBF671 (IO::Socket::Async::SSL) line 364
[Cro::HTTP]         Died with the exception:
[Cro::HTTP]             Server certificate verification failed: certificate has expired
[Cro::HTTP]               in block  at /home/ubuntu/.rakubrew/versions/moar-master/install/share/perl6/site/sources/DC2535A0A8F9C376CD7A8C92E469C35747CBF671 (IO::Socket::Async::SSL) line 364
[Cro::HTTP] Tried to get the result of a broken Promise
[Cro::HTTP]   in block  at /home/ubuntu/.rakubrew/versions/moar-master/install/share/perl6/site/sources/8F9CE57B4C9E54F00938F862E837CA40DCD18536 (Cro::TLS) line 110
[Cro::HTTP] Original exception:
[Cro::HTTP]     An operation first awaited:
[Cro::HTTP]       in block  at /home/ubuntu/.rakubrew/versions/moar-master/install/share/perl6/site/sources/DC2535A0A8F9C376CD7A8C92E469C35747CBF671 (IO::Socket::Async::SSL) line 364
[Cro::HTTP]     Died with the exception:
[Cro::HTTP]         Server certificate verification failed: certificate has expired
[Cro::HTTP]           in block  at /home/ubuntu/.rakubrew/versions/moar-master/install/share/perl6/site/sources/DC2535A0A8F9C376CD7A8C92E469C35747CBF671 (IO::Socket::Async::SSL) line 364
[Cro::HTTP] Tried to get the result of a broken Promise
[Cro::HTTP]   in block  at /home/ubuntu/.rakubrew/versions/moar-master/install/share/perl6/site/sources/8F9CE57B4C9E54F00938F862E837CA40DCD18536 (Cro::TLS) line 110
[Cro::HTTP] Original exception:
[Cro::HTTP]     An operation first awaited:
[Cro::HTTP]       in block  at /home/ubuntu/.rakubrew/versions/moar-master/install/share/perl6/site/sources/DC2535A0A8F9C376CD7A8C92E469C35747CBF671 (IO::Socket::Async::SSL) line 364
[Cro::HTTP]     Died with the exception:
[Cro::HTTP]         Server certificate verification failed: certificate has expired
[Cro::HTTP]           in block  at /home/ubuntu/.rakubrew/versions/moar-master/install/share/perl6/site/sources/DC2535A0A8F9C376CD7A8C92E469C35747CBF671 (IO::Socket::Async::SSL) line 364
===> Testing [FAIL]: Cro::HTTP:ver<0.8.6>
@masukomi
Copy link

masukomi commented Nov 22, 2022

~13 months later this problem appears to still exist in v0.8.8

This appears to just be an expired cert. can this be pointed at something with either a new cert or maybe do something with LetsEncrypt to guarantee a valid one?

I haven't looked into what exactly is needing a cert from where.

===> Testing: Cro::HTTP:ver<0.8.8>:auth<zef:cro>
[Cro::HTTP] Tried to get the result of a broken Promise
[Cro::HTTP]   in block  at /Users/masukomi/.zef/store/ef3725d0ad4512ce6ea2d0f44f26a74dea0d9333.tar.gz/dist/lib/Cro/HTTP/Client.pm6 (Cro::HTTP::Client) line 845
[Cro::HTTP] Original exception:
[Cro::HTTP]     Tried to get the result of a broken Promise
[Cro::HTTP]       in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/56A36099C44515B6FA290B0AA504EB1D072A66DC (Cro::TLS) line 110
[Cro::HTTP]     Original exception:
[Cro::HTTP]         An operation first awaited:
[Cro::HTTP]           in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/8143677EA272A04F4BA3843A02BBD016F5269804 (IO::Socket::Async::SSL) line 405
[Cro::HTTP]         Died with the exception:
[Cro::HTTP]             Server certificate verification failed: certificate has expired
[Cro::HTTP]               in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/8143677EA272A04F4BA3843A02BBD016F5269804 (IO::Socket::Async::SSL) line 405
[Cro::HTTP] Tried to get the result of a broken Promise
[Cro::HTTP]   in block  at /Users/masukomi/.zef/store/ef3725d0ad4512ce6ea2d0f44f26a74dea0d9333.tar.gz/dist/lib/Cro/HTTP/Client.pm6 (Cro::HTTP::Client) line 845
[Cro::HTTP] Original exception:
[Cro::HTTP]     Tried to get the result of a broken Promise
[Cro::HTTP]       in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/56A36099C44515B6FA290B0AA504EB1D072A66DC (Cro::TLS) line 110
[Cro::HTTP]     Original exception:
[Cro::HTTP]         An operation first awaited:
[Cro::HTTP]           in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/8143677EA272A04F4BA3843A02BBD016F5269804 (IO::Socket::Async::SSL) line 405
[Cro::HTTP]         Died with the exception:
[Cro::HTTP]             Server certificate verification failed: certificate has expired
[Cro::HTTP]               in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/8143677EA272A04F4BA3843A02BBD016F5269804 (IO::Socket::Async::SSL) line 405
[Cro::HTTP] Tried to get the result of a broken Promise
[Cro::HTTP]   in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/56A36099C44515B6FA290B0AA504EB1D072A66DC (Cro::TLS) line 110
[Cro::HTTP] Original exception:
[Cro::HTTP]     An operation first awaited:
[Cro::HTTP]       in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/8143677EA272A04F4BA3843A02BBD016F5269804 (IO::Socket::Async::SSL) line 405
[Cro::HTTP]     Died with the exception:
[Cro::HTTP]         Server certificate verification failed: certificate has expired
[Cro::HTTP]           in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/8143677EA272A04F4BA3843A02BBD016F5269804 (IO::Socket::Async::SSL) line 405
[Cro::HTTP] # Failed test 'Can connect once service is started (HTTPS)'
[Cro::HTTP] # at t/http-server.t line 92
[Cro::HTTP] # Server certificate verification failed: certificate has expired
[Cro::HTTP] Cannot resolve caller print(Any:U: Str:D); none of these signatures matches:
[Cro::HTTP]     (Mu: *%_)
[Cro::HTTP]   in block <unit> at t/http-server.t line 94
[Cro::HTTP]     # Failed test 'right exception type (X::Cro::HTTP::Client::Timeout)'
[Cro::HTTP]     # at SETTING::src/core.d/await.pm6 line 20
[Cro::HTTP]     # Expected: X::Cro::HTTP::Client::Timeout
[Cro::HTTP]     # Got:      X::IO::Socket::Async::SSL::Verification+{X::Await::Died}+{X::Promise::Broken}
[Cro::HTTP]     # Exception message: Server certificate verification failed: certificate has expired
[Cro::HTTP]     # You failed 1 test of 3
[Cro::HTTP] # Failed test 'Timeout for headers via total for HTTP/2'
[Cro::HTTP] # at t/http-timeout.t line 62
[Cro::HTTP] Tried to get the result of a broken Promise
[Cro::HTTP]   in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/56A36099C44515B6FA290B0AA504EB1D072A66DC (Cro::TLS) line 110
[Cro::HTTP] Original exception:
[Cro::HTTP]     An operation first awaited:
[Cro::HTTP]       in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/8143677EA272A04F4BA3843A02BBD016F5269804 (IO::Socket::Async::SSL) line 405
[Cro::HTTP]     Died with the exception:
[Cro::HTTP]         Server certificate verification failed: certificate has expired
[Cro::HTTP]           in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/8143677EA272A04F4BA3843A02BBD016F5269804 (IO::Socket::Async::SSL) line 405
[Cro::HTTP] Tried to get the result of a broken Promise
[Cro::HTTP]   in block  at /Users/masukomi/.zef/store/ef3725d0ad4512ce6ea2d0f44f26a74dea0d9333.tar.gz/dist/lib/Cro/HTTP/Client.pm6 (Cro::HTTP::Client) line 845
[Cro::HTTP] Original exception:
[Cro::HTTP]     Tried to get the result of a broken Promise
[Cro::HTTP]       in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/56A36099C44515B6FA290B0AA504EB1D072A66DC (Cro::TLS) line 110
[Cro::HTTP]     Original exception:
[Cro::HTTP]         An operation first awaited:
[Cro::HTTP]           in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/8143677EA272A04F4BA3843A02BBD016F5269804 (IO::Socket::Async::SSL) line 405
[Cro::HTTP]         Died with the exception:
[Cro::HTTP]             Server certificate verification failed: certificate has expired
[Cro::HTTP]               in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/8143677EA272A04F4BA3843A02BBD016F5269804 (IO::Socket::Async::SSL) line 405
[Cro::HTTP] Tried to get the result of a broken Promise
[Cro::HTTP]   in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/56A36099C44515B6FA290B0AA504EB1D072A66DC (Cro::TLS) line 110
[Cro::HTTP] Original exception:
[Cro::HTTP]     An operation first awaited:
[Cro::HTTP]       in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/8143677EA272A04F4BA3843A02BBD016F5269804 (IO::Socket::Async::SSL) line 405
[Cro::HTTP]     Died with the exception:
[Cro::HTTP]         Server certificate verification failed: certificate has expired
[Cro::HTTP]           in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/8143677EA272A04F4BA3843A02BBD016F5269804 (IO::Socket::Async::SSL) line 405
[Cro::HTTP] Tried to get the result of a broken Promise
[Cro::HTTP]   in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/56A36099C44515B6FA290B0AA504EB1D072A66DC (Cro::TLS) line 110
[Cro::HTTP] Original exception:
[Cro::HTTP]     An operation first awaited:
[Cro::HTTP]       in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/8143677EA272A04F4BA3843A02BBD016F5269804 (IO::Socket::Async::SSL) line 405
[Cro::HTTP]     Died with the exception:
[Cro::HTTP]         Server certificate verification failed: certificate has expired
[Cro::HTTP]           in block  at /opt/homebrew/Cellar/rakudo-star/2022.07/share/perl6/site/sources/8143677EA272A04F4BA3843A02BBD016F5269804 (IO::Socket::Async::SSL) line 405
===> Testing [FAIL]: Cro::HTTP:ver<0.8.8>:auth<zef:cro>
Aborting due to test failure: Cro::HTTP:ver<0.8.8>:auth<zef:cro> (use --force-test to override)

macOS: 12.6 Monterey

❯ rakudo --version
Welcome to Rakudo™ v2022.07.
Implementing the Raku® Programming Language v6.d.
Built on MoarVM version 2022.07.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants