What is the meaning of the error urlopen [Errno -2] Name or service not known?

When I execute the command repo upload ., I get this error message:

[FAILED] device/path/to/repository/ branchname          
   (ssh://gerrit.foo.com/: <urlopen error [Errno -2] Name or service not known>)

Does anyone know what this means, or how can I get more information?

What can I do repo sync .without problems.

+4
source share
1 answer

I found the problem by going through Python code. Repo does not like repository URLs that start with ssh: //. It accepts only http, https or sso.

The culprit was git_config.py, ReviewUrl ().

Maybe I was working with a damaged repo manifest.

Working time was manually pushing through git:

git push origin HEAD:refs/for/project/foo
+1
source

All Articles