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

error while fetching bbmustache #790

Closed
benoitc opened this issue Sep 10, 2015 · 7 comments
Closed

error while fetching bbmustache #790

benoitc opened this issue Sep 10, 2015 · 7 comments

Comments

@benoitc
Copy link
Contributor

benoitc commented Sep 10, 2015

I was trying to build from scratch rebar3 and got the following issue:

[rebar3] ./bootstrap                                                                                         16:13:40  ☁  feature/certifi ☀
===> Updating package registry...
===> Writing registry to /Users/benoitc/.cache/rebar3/hex/default/registry
===> Generating package index...
===> Writing index to /Users/benoitc/.cache/rebar3/hex/default/packages.idx
===> Verifying dependencies...
===> Fetching bbmustache ({pkg,<<"bbmustache">>,<<"1.0.4">>})
escript: exception error: no match of right hand side value 
                 {error,
                     {rebar_fetch,
                         {fetch_fail,{pkg,<<"bbmustache">>,<<"1.0.4">>}}}}
@tsloughter
Copy link
Collaborator

Is this with your changes in the PR? I'm seeing in Travis that for 17.5 and 18 your PR is failing to fetch bbmustache as well... Very weird.

@benoitc
Copy link
Contributor Author

benoitc commented Sep 10, 2015

yes it's my change. I didn't try without it though...

@tsloughter
Copy link
Collaborator

@benoitc so this is due to your change? Are you working on the PR to fix it?

@benoitc
Copy link
Contributor Author

benoitc commented Sep 18, 2015

@tsloughter just retested. So yes it comes from my branch. The error happen because it tries to use `certifi:cacerts()ù before it has been compiled when running the update step. Full trace is:

[rebar3] DEBUG=1 ./bootstrap                                                                        5:35:08  ☁  feature/certifi ☂ ✖ ⚡
===> Updating package registry...
===> Writing registry to /Users/benoitc/.cache/rebar3/hex/default/registry
===> Generating package index...
===> Writing index to /Users/benoitc/.cache/rebar3/hex/default/packages.idx
===> Verifying dependencies...
===> Fetching bbmustache ({pkg,<<"bbmustache">>,<<"1.0.4">>})
===> rebar_fetch exception error undef [{certifi,cacerts,[],[]},
                                               {rebar_pkg_resource,ssl_opts,
                                                1,
                                                [{file,
                                                  "src/rebar_pkg_resource.erl"},
                                                 {line,134}]},
                                               {rebar_pkg_resource,request,2,
                                                [{file,
                                                  "src/rebar_pkg_resource.erl"},
                                                 {line,102}]},
                                               {rebar_pkg_resource,
                                                cached_download,6,
                                                [{file,
                                                  "src/rebar_pkg_resource.erl"},
                                                 {line,38}]},
                                               {rebar_fetch,download_source_,
                                                3,
                                                [{file,"src/rebar_fetch.erl"},
                                                 {line,45}]},
                                               {rebar_fetch,download_source,
                                                3,
                                                [{file,"src/rebar_fetch.erl"},
                                                 {line,29}]},
                                               {rebar_prv_install_deps,
                                                fetch_app,3,
                                                [{file,
                                                  "src/rebar_prv_install_deps.erl"},
                                                 {line,354}]},
                                               {rebar_prv_install_deps,
                                                maybe_fetch,5,
                                                [{file,
                                                  "src/rebar_prv_install_deps.erl"},
                                                 {line,292}]}]
escript: exception error: no match of right hand side value
                 {error,
                     {rebar_fetch,
                         {fetch_fail,{pkg,<<"bbmustache">>,<<"1.0.4">>}}}}

@tsloughter
Copy link
Collaborator

Ah! So you added it to bootstrap now I see. Great, I'll close this issue and get the PR merged then!

talentdeficit pushed a commit to talentdeficit/rebar3 that referenced this issue Sep 29, 2015
@ludwikbukowski
Copy link

I have excatly the same error while building rebar3 on the raspberrypi

@dmitriid
Copy link

Same on clean Ubuntu 14.04.2 TLS with esl-erlang. A different reason in debug though:

> DEBUG=1 ./bootstrap
===> Expanded command sequence to be run: [{default,app_discovery},
                                                  {default,install_deps},
                                                  {default,lock},
                                                  {default,compile}]
===> Verifying dependencies...
===> Fetching bbmustache ({pkg,<<"bbmustache">>,<<"1.0.4">>})
===> Request to "https://s3.amazonaws.com:443/s3.hex.pm/tarballs/bbmustache-1.0.4.tar?" failed: {failed_connect,
                                                                                                        [{to_address,
                                                                                                          {"s3.amazonaws.com",
                                                                                                           443}},
                                                                                                         {inet,
                                                                                                          [inet],
                                                                                                          {tls_alert,
                                                                                                           "certificate unknown"}}]}
escript: exception error: no match of right hand side value
                 {error,
                     {rebar_fetch,{fetch_fail,<<"bbmustache">>,<<"1.0.4">>}}}

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

4 participants