A
A
AnarchyAVK2020-04-23 15:43:50
git
AnarchyAVK, 2020-04-23 15:43:50

Git push hangs indefinitely and can sometimes give an error unable to connect. What could be the problem?

We deployed Git on our own server, the port is not used by the standard one. Created a repository. When working through NetBeans, everything works fine, clone, fetch, push. We decided to use a different PHPStorm development environment. To work with Git, we additionally installed gitforwindows.

Now the situation is this, we can clone the repository from the server, but the following commands do not work. Neither push nor fetch. Just an endless connection hangs. The situation is the same if you use another gui such as TortoiseGit. Doesn't throw errors.

There is no information in the git server logs.

From the command line it looks something like this:

$ git push --verbose
Pushing to git://172.16.110.5:9494/test
Looking up 172.16.110.5 ... done.
Connecting to 172.16.110.5 (port 9494) ... 172.16.110.5 done.

and after that hangs indefinitely.
Sometimes throws an error
fatal: unable to connect to 172.16.110.5:
172.16.110.5[0: 172.16.110.5]: errno=Unknown error


Netbeans has an Output window.

There, when doing git actions, such as push, it outputs what Netbeans is running.

That's what's in there
git branch
git submodule status
git push git://172.16.110.5:9494/test.git refs/heads/fix-26720:refs/heads/fix-26720

do the same commands in GitBash does not push push .. hangs

Tell me where to look for the problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
Bohdan Petrov, 2020-04-23
@mindyourlifeguide

Look in the direction of the submodule, how to properly push them

A
AnarchyAVK, 2020-04-29
@AnarchyAVK

Submodule is a little different, the project does not contain submodules.
During testing, the following operations were carried out:

  1. Turned off the firewall completely;
  2. Changed to standard port 9418
  3. Updated the Git backend to the latest version
  4. Tried different versions of gitforwindows

None of these actions worked, push works from NetBeans, gitforwindows doesn't work.
In NetBeans, as far as I know, jgit is used, but I have no idea how it can be connected with the same PhpStorm.

A
anitspam, 2020-06-01
@anitspam

Possible problem.
The server asks you for a username and password.
But due to the fact that the ~/.bashrc (or similar) file is configured to output some characters to the "terminal", you may "not see" this request.
Git connects to the server, hangs for a while, waiting for a username / password, and disconnects.
In Netbins it works for you, since it already contains data for connecting to the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question