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

Unable to update registry on CircleCI #2429

Closed
RoxasShadow opened this issue Mar 2, 2016 · 2 comments
Closed

Unable to update registry on CircleCI #2429

RoxasShadow opened this issue Mar 2, 2016 · 2 comments

Comments

@RoxasShadow
Copy link

Basically both the setup of the environment and the rust installation work fine, but:

cargo build -v

�$<2>$<2>    Updating�$<2> registry `https://github.com/rust-lang/crates.io-index`
�$<2>Unable to update registry https://github.com/rust-lang/crates.io-index
�$<2>�$<2>
Caused by:
�$<2>�$<2>  failed to fetch `https://github.com/rust-lang/crates.io-index`
�$<2>�$<2>
Caused by:
�$<2>�$<2>  failed to authenticate when downloading repository
�$<2>�$<2>
Caused by:
�$<2>�$<2>  [23/-1] error authenticating: no auth sock variable

�$<2>cargo build -v returned exit code 101
@alexcrichton
Copy link
Member

I think that this is a dupe of #2078 because Circle CI will use insteadOf git configuration to switch to an SSH clone instead of an HTTPS clone. The default keys pointed to by ~/.ssh/config are unfortunately not ready by Cargo just yet :(

@RoxasShadow
Copy link
Author

Yes, it is. Thanks!

Anyay, if someone needs a (hopefully) temporary workaround, they can try adding this to the circle.yml:

test:
  override:
    - eval `ssh-agent` && ssh-add /home/ubuntu/.ssh/id_circleci_github && cargo test

(Source)

bencord0 added a commit to bencord0/blog that referenced this issue May 6, 2016
Hoverbear pushed a commit to iron/iron that referenced this issue Oct 1, 2016
Hoverbear pushed a commit to iron/iron that referenced this issue Oct 1, 2016
Hoverbear pushed a commit to iron/iron that referenced this issue Oct 1, 2016
jdblischak added a commit to workflowr/workflowr-pkg-tests that referenced this issue Sep 11, 2019
I don't know why they do this. I couldn't find it docuemntated anywhere.

Also, it's unclear why this conda version of the workflowr tests is the
first time this error has surfaced. I assume it might be the version of
libgit2.

libgit2/libgit2#4658
rust-lang/cargo#2429 (comment)
https://discuss.circleci.com/t/is-it-ok-for-me-to-delete-gitconfig-in-the-box/5566
https://gist.github.com/Dynom/56d03538c2fdc0470fb5d649569c21fc#file-circle-yml-L4
jdblischak added a commit to workflowr/workflowr-pkg-tests that referenced this issue Sep 11, 2019
I don't know why they do this. I couldn't find it docuemntated anywhere.

Also, it's unclear why this conda version of the workflowr tests is the
first time this error has surfaced. I assume it might be the version of
libgit2.

libgit2/libgit2#4658
rust-lang/cargo#2429 (comment)
https://discuss.circleci.com/t/is-it-ok-for-me-to-delete-gitconfig-in-the-box/5566
https://gist.github.com/Dynom/56d03538c2fdc0470fb5d649569c21fc#file-circle-yml-L4
jdblischak added a commit to workflowr/workflowr-pkg-tests that referenced this issue Sep 11, 2019
I don't know why they do this. I couldn't find it docuemntated anywhere.

Also, it's unclear why this conda version of the workflowr tests is the
first time this error has surfaced. I assume it might be the version of
libgit2.

libgit2/libgit2#4658
rust-lang/cargo#2429 (comment)
https://discuss.circleci.com/t/is-it-ok-for-me-to-delete-gitconfig-in-the-box/5566
https://gist.github.com/Dynom/56d03538c2fdc0470fb5d649569c21fc#file-circle-yml-L4
steveej added a commit to holochain/holochain that referenced this issue Dec 9, 2020
steveej added a commit to holochain/holochain that referenced this issue Dec 10, 2020
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