unable to allocate any listen sockets on host (null) port 9418

epanagio

Well-Known Member
May 26, 2012
50
1
58
cPanel Access Level
Website Owner
I issue:
PHP:
<path>/git-daemon --syslog --base-path=<path>git --export-all --detach --verbose --enable=receive-pack
but when I check with
PHP:
ps -A | grep git
it is not running.

The log shows
PHP:
unable to allocate any listen sockets on host (null) port 9418
I am running a firewall and issuing
PHP:
service iptables status | grep 9418
I get
PHP:
30   ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:9418
Of course when I try to push using my git client I get an error.

I just don't understand what I am missing here. How can I resolve the error from the log?

<EDIT>
Also the command
netstat -l | grep git
shows
tcp 0 0 *:git *:* LISTEN
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

Do you experience the same issue when temporarily disabling your firewall completely? Note that you may want to post this question on a forum dedicated to discussions of GIT or CentOS, as this is not necessarily related to cPanel so you may not receive as much user-feedback here.

Thank you.
 

epanagio

Well-Known Member
May 26, 2012
50
1
58
cPanel Access Level
Website Owner
I tried it with iptables turned off and I received the same error in the log.

Hello :)

Do you experience the same issue when temporarily disabling your firewall completely? Note that you may want to post this question on a forum dedicated to discussions of GIT or CentOS, as this is not necessarily related to cPanel so you may not receive as much user-feedback here.

Thank you.