Git error: Unable to view xyz.com (port <none>) (Servname not supported for ai_socktype)
I don't think it has anything to do with Git, but rather has something to do with the server that Git is running on.
See in this article
what it can mean: "Servname is not supported for ai_socktype".
After some other attempts, I finally saw the problem ... NTP ports were not defined in/etc/services
and that was the root of the error.
The system didn't know how to make ntp connections without this. So Ive added the following lines to/etc/services
ntp 123/tcp
ntp 123/udp
and after that
ntpdate
started working as expected ...
Contact your administrator before attempting to modify these files (if this is not your personal server)
a source to share
I don't think the problem with ntp is due to a git bug; at least in my case.
Here's my case:
xxxx@cerberus:~/src$ git clone git://http://cgit.sukimashita.com/sbmanager.git/tree sbmanager
Cloning into sbmanager...
fatal: Unable to look up http (port <none>) (Servname not supported for ai_socktype)
The problem was the syntax for git.
Here is my solution:
xxxx@cerberus:~/src$ git clone git://git.sukimashita.com/sbmanager.git sbmanager
Cloning into sbmanager...
remote: Counting objects: 764, done.
remote: Compressing objects: 100% (643/643), done.
remote: Total 764 (delta 449), reused 257 (delta 118)
Receiving objects: 100% (764/764), 291.75 KiB | 261 KiB/s, done.
Resolving deltas: 100% (449/449), done.
I think the solution is to check the syntax for git.
a source to share