I cannot access Gitlab from the browser.
I am getting the following message:
This site can’t be reached
gitlab.com took too long to respond.
Try:
Checking the connection
Checking the proxy and the firewall
Running Windows Network Diagnostics
ERR_TIMED_OUT
I am not able to use git pull origin master and git push -u origin master from the terminal.
It is showing the following error message:
**fatal: unable to access "https://gitlab.com/myproject.git/" : OpenSSL SSL_connect: SS_ERROR_SYSCALL in connection to gitlab.com:443**
Help me to fix the isssue,
Thanks.
Check your DNS settings, can you reach other sites? This doesn't seem to be a gitlab specific problem.
Also, your remote URL seems quite weird. It's usually gitlab.com/user/repo.git
Try other sites, do they work?
Try acquiring the IP Address from gitlab using an online whois service. Does opening this IP work?
Adjust your origin:
git remote rm origin
git remote add origin "https://username#gitlab.com/username/password.git"
Try this and report back if something worked.
Related
I'm trying to access a source code from a Windows 7 host using Git 2.23.0.windows.1. I have to use a Windows host and git:// protocol. Linux and other protocols are not allowed.
The error is:
$ git clone git://johndoe#source.example.com:22480/main
Cloning into 'main'...
fatal: unable to look up johndoe#source.example.com (port 22480)
(A non-recoverable error occurred during a database lookup. )
I'm finding hits for similar problems, like Cloning git repository Failure (fixed by switching to https://) and How to fix "fatal :unable to look up https (port 9418) (push problem). But I have not found my specific problem.
I believe git://johndoe#source.example.com:22480/main is well formed according to the git pull (1) man page. See the section Git Urls.
If I am parsing the error message correctly, it looks like Git is not separating the user from the url, port and protocol. That is, "unable to look up johndoe#source.example.com (port 22480)" should be "unable to look up source.example.com (port 22480)" (without the user part).
What is the problem and how do I fix it?
~/.gitconfig is pretty boring at the moment:
[user]
email = john.doe#example.com
name = John Doe
[winUpdater]
recentlySeenVersion = 2.23.0.windows.1
The only interesting thing is, the email address uses a dot john.doe#example.com, while the user in the url does not johndoe#source.example.com:22480. This is how the system is setup.
https://git-scm.com/docs/git-pull
The native transport (i.e. git:// URL) does no authentication…
I.e. the URL should be git://source.example.com:22480/main. Or switch to a different protocol that does authentication. Try ssh://johndoe#source.example.com:22480/main or https://johndoe#source.example.com:22480/main.
The Heroku documentation says that I should use the following proxy settings when I use the heroku create command:
> set HTTP_PROXY=http://proxy.server.com:portnumber
or
> set HTTPS_PROXY=https://proxy.server.com:portnumber
> heroku login
Unfortunately, I am receiving the following error message:
! ECONNRESET: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND proxy.server.com
! proxy.server.com:8080
How can I fix this error?
I am also having trouble cloning the GitHub repo which is mentioned in the Heroku documentation, so I have to download it manually.
That documentation is under the heading Using an HTTP proxy. Are you sure that you need to use an HTTP proxy? In many cases you won't need one; simply running heroku create will work.
If you are sure that you need an HTTP proxy you should make sure to replace proxy.server.com with your actual proxy server's name or IP address. proxy.server.com is just an example.
I've searched and tried kinds of solution before I ask this question, but obviously it doesn't work. That may be a common problem of Mac Air:
And the problem is that when I tried to establish new repo for git and type:
git remote add origin https://githup.com/username/reponame.git
git push -u origin master
I got this error:
fatal : unable to access 'https://githup.com/....': failed to connect to githup.com443; Operation timed out.
If I use git like this:
git remote add origin git#githup.com:username/repo.git
git push -u origin master
I got these:
ssh: connect to host githup.com port 22: Operation timed out
fatal: Could not read from remote repository.
I just begin to doubt that ssh service of Mac Air may be not available.
Any useful solution ?
Thanks very much in advance!!!
Have you tried https://github.com instead of https://githup.com.
I guess that is the error.
I have now built up a gitlab server on my Ubuntu computer as your installation guide on www.gitlab.org official website tells.
Then I signed in the gitlab server homepage through IE browser in the client computer.
Subsequently I modified the "My Profile" and uploaded my SSH public key.
Logged out and reboot server, then login again.
Create my first git project : gitlab_testing.git
At that time when I did 'git clone' to download the gitlab_testing.git repository from server, or when I push the first commit upon to server, it always showed the below error message, please kindly see the below snapshots :
As mentioned here:
"Name or service not known" is a socket-level error which usually points to either an invalid IP address/DNS hostname, or an unregistered port name.
Check if this is a proxy issue (as in this question).
Either you need to configure a proxy, or make sure that you don't use a proxy when accessing a local gitlab server (using the no_proxy environment variable)
I'm facing some problems while git clone a repo from my ubuntu server running gitolite.
First, I got a public key from the developer who wants to clone the repository from the server. It was a rsa key created with putty. So I did the following to parse it from the putty-style to openssh format with:
ssh-keygen -i -f /tmp/ssh2/YourName.pub > /tmp/openssh/YourName.pub (taken from http://gitolite.googlecode.com/git/doc/ssh-troubleshooting.mkd?r=d3a663d03f1027f909732d55d0519bdd84edb62c)
and uploaded the public key along with a new entry for the repo and the new user in the config file to gitolite-admin repo.
So far, so good.
The developer is using **** along with putty to connect to the server, which is running git on a non-standard port and he keeps on getting the same error over and over again:
Cloning into 'D:\path\to\dirctory'...
error: Recv failure: Connection was reset while accessing http://sub.domain.com/info/refs
fatal: HTTP request failed
git did not exit cleanly (exit code 128)
Could anyone give me some advice about this issue?
EDIT:
In the meantime, we managed to git clone the repository by addressing it with the ssh:// protocol instead of git://, so it doesn't seem like it is a problem of the rsa_public.key or something like that.
The iptables on the server are accepting connections through the port for git, but it keeps on giving the above mentioned error.
The OP herom initially commented that the developer used git://git#remote.server.com:port/repo.git as an address.
I asked if there was any firewall issue, preventing the use of the git port (9418), but the OP mentioned:
no, there shouldn't be a firewall issue as iptables is accepting traffic for the git port - the port is forwarded and appears to be another port when connecting from outside...
Now, the developer cloned the repo through ssh:// (and even connecting to the ssh-port!)
I note that the git port can sometime be blocked, as illustrated in this thread.
If not on the client side, maybe on the server side.