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

Permission denied (publickey) running npm install #1000

Closed
sleighzy opened this issue Apr 30, 2020 · 2 comments · Fixed by #1008
Closed

Permission denied (publickey) running npm install #1000

sleighzy opened this issue Apr 30, 2020 · 2 comments · Fixed by #1008
Assignees
Labels
bug Something isn't working

Comments

@sleighzy
Copy link
Contributor

When running npm install the below error occurs when the build process attempts to clone the git submodules.

> @opentelemetry/[email protected] submodule /Users/simonl/Work/OpenTelemetry/opentelemetry-js/packages/opentelemetry-exporter-collector
> git submodule sync --recursive && git submodule update --init --recursive

Submodule 'packages/opentelemetry-exporter-collector/src/platform/node/protos' ([email protected]:open-telemetry/opentelemetry-proto.git) registered for path 'src/platform/node/protos'
Cloning into '/Users/simonl/Work/OpenTelemetry/opentelemetry-js/packages/opentelemetry-exporter-collector/src/platform/node/protos'...
Warning: Permanently added the RSA host key for IP address '13.237.44.5' to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:open-telemetry/opentelemetry-proto.git' into submodule path '/Users/simonl/Work/OpenTelemetry/opentelemetry-js/packages/opentelemetry-exporter-collector/src/platform/node/protos' failed
Failed to clone 'packages/opentelemetry-exporter-collector/src/platform/node/protos'. Retry scheduled
Cloning into '/Users/simonl/Work/OpenTelemetry/opentelemetry-js/packages/opentelemetry-exporter-collector/src/platform/node/protos'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:open-telemetry/opentelemetry-proto.git' into submodule path '/Users/simonl/Work/OpenTelemetry/opentelemetry-js/packages/opentelemetry-exporter-collector/src/platform/node/protos' failed
Failed to clone 'packages/opentelemetry-exporter-collector/src/platform/node/protos' a second time, aborting

Updating the .gitmodules file to change the url to https and anonymous cloning and this works fine. Is the below an acceptable change, or should this be handled differently?

url = https://github.com/open-telemetry/opentelemetry-proto.git
@sleighzy sleighzy added the bug Something isn't working label Apr 30, 2020
@vmarchaud
Copy link
Member

It is acceptable, someone already complained on gitter actually. Would you have the time to open a PR to make that change ?

@sleighzy
Copy link
Contributor Author

sleighzy commented May 1, 2020

...someone already complained on gitter actually.

That person was probably me 😉 PR is up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants