Following it up, when running a server with:

strace ./srcds_run -nomaster -norestart -ip 84.244.189.89 -netconport 9999
-port 27095 2>error.txt

I get the following in error.txt:

bind(5, {sa_family=AF_INET, sin_port=htons(27095),
sin_addr=inet_addr("84.244.189.89")}, 16) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 6
ioctl(6, FIONBIO, [1])                  = 0
setsockopt(6, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
bind(6, {sa_family=AF_INET, sin_port=htons(27005),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(6, {sa_family=AF_INET, sin_port=htons(27006),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(6, {sa_family=AF_INET, sin_port=htons(27007),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(6, {sa_family=AF_INET, sin_port=htons(27008),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(6, {sa_family=AF_INET, sin_port=htons(27009),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(6, {sa_family=AF_INET, sin_port=htons(27010),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(6, {sa_family=AF_INET, sin_port=htons(27011),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(6, {sa_family=AF_INET, sin_port=htons(27012),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(6, {sa_family=AF_INET, sin_port=htons(27013),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(6, {sa_family=AF_INET, sin_port=htons(27014),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
write(1, "WARNING: UDP_OpenSocket: unable "..., 47) = 47
close(6)                                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 6
ioctl(6, FIONBIO, [1])                  = 0
setsockopt(6, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
bind(6, {sa_family=AF_INET, sin_port=htons(0),
sin_addr=inet_addr("84.244.189.89")}, 16) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP) = 7
ioctl(7, FIONBIO, [1])                  = 0
setsockopt(7, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
bind(7, {sa_family=AF_INET, sin_port=htons(27020),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(7, {sa_family=AF_INET, sin_port=htons(27021),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(7, {sa_family=AF_INET, sin_port=htons(27022),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(7, {sa_family=AF_INET, sin_port=htons(27023),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(7, {sa_family=AF_INET, sin_port=htons(27024),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(7, {sa_family=AF_INET, sin_port=htons(27025),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(7, {sa_family=AF_INET, sin_port=htons(27026),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(7, {sa_family=AF_INET, sin_port=htons(27027),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(7, {sa_family=AF_INET, sin_port=htons(27028),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
bind(7, {sa_family=AF_INET, sin_port=htons(27029),
sin_addr=inet_addr("84.244.189.89")}, 16) = -1 EADDRINUSE (Address already
in use)
write(1, "WARNING: UDP_OpenSocket: unable "..., 47) = 47
close(7)                                = 0
write(1, "Couldn\'t allocate any hltv IP po"..., 35) = 35

Note the bind at the top: it succeeds in binding the actual connection port,
but fails in trying to bind other, random, ports

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:hlds_linux-
> [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: 07 November 2008 19:36
> To: 'Half-Life dedicated Linux server mailing list'
> Subject: Re: [hlds_linux] CPU usage
> 
> Hi, this was part of my reply to your post, but it was a bit of an
> essay, so
> reposting it here:
> 
> Can't fork any more than 5, because for some weird reason each server
> listens on 3 UDP ports.  If the first server is on port 27015, it also
> grabs
> ports 27020 and 27005, among others.  So if we try to spawn a 6th
> server,
> it'll try to use 27020 as well, and fail.  Trying to spawn an
> additional
> group of 5 sometimes works, sometimes doesn't.
> 
> In addition, I've just tried to start up another, non-forked, server,
> and
> it's dying as follows:
> 
> WARNING: UDP_OpenSocket: unable to bind socket
> WARNING: UDP_OpenSocket: unable to bind socket
> Couldn't allocate any hltv IP port
> 
> Being started with:
> 
> ./srcds_run -nomaster -norestart -ip 84.244.189.89 -netconport 9999 -
> port
> 27095
> 
> -----------------------------------------------------------
> 
> Server.cfg is:
> 
> echo "Executing server.cfg"
> hostname 127001.org - L4D demo (Private)
> 
> sv_allow_lobby_connect_only 0
> sv_search_key localhost
> sv_password 127lh
> 
> 
> rcon_password "shabang"
> setpause 0
> sv_lan 0
> sv_pausable 0
> sv_region 3
> sv_pure 0
> sv_pure_kick_clients 1
> sv_contact [EMAIL PROTECTED]
> 
> // Rate Settings
> sv_mincmdrate 66
> sv_maxcmdrate 101
> 
> // start cvars for communication
> sv_voiceenable 1
> // allow players to use a microphone. 0 is off 1 is on
> sv_alltalk 1
> // toggles whether both teams can hear each others voice comms or not.
> 0 is
> off 1 is on. recommend it being off
> // end cvars for communication
> 
> sv_downloadurl "http://dl.127001.org/mods/l4d";
> //redirect download location
> 
> 
> // Logging settings
> sv_logbans 1
> sv_logfile 0
> sv_logecho 1
> sv_logflush 1
> log on
> 
> -----------------------------------------------
> Netstat -naup is:
> 
> Active Internet connections (servers and established)
> Proto Recv-Q Send-Q Local Address           Foreign Address
> State
> PID/Program name
> udp        0      0 84.244.189.89:27008     0.0.0.0:*
> 27986/srcds_i486
> udp        0      0 84.244.189.89:27009     0.0.0.0:*
> 9061/srcds_i486
> udp        0      0 84.244.189.89:27010     0.0.0.0:*
> 8610/srcds_i486
> udp        0      0 84.244.189.89:27011     0.0.0.0:*
> 27562/srcds_i486
> udp        0      0 84.244.189.89:27012     0.0.0.0:*
> 4988/srcds_i486
> udp        0      0 84.244.189.89:27013     0.0.0.0:*
> 21952/srcds_i486
> udp        0      0 84.244.189.89:27014     0.0.0.0:*
> 22080/srcds_i486
> udp   110384      0 84.244.189.89:27015     0.0.0.0:*
> -
> udp     1904      0 84.244.189.89:27016     0.0.0.0:*
> 12882/srcds_i486
> udp      736      0 84.244.189.89:27017     0.0.0.0:*
> 24123/srcds_i486
> udp      304      0 84.244.189.89:27018     0.0.0.0:*
> 27986/srcds_i486
> udp     1216      0 84.244.189.89:27019     0.0.0.0:*
> 9061/srcds_i486
> udp     1520      0 84.244.189.89:27020     0.0.0.0:*
> -
> udp        0      0 84.244.189.89:27021     0.0.0.0:*
> 12882/srcds_i486
> udp        0      0 84.244.189.89:27022     0.0.0.0:*
> 24123/srcds_i486
> udp        0      0 84.244.189.89:27023     0.0.0.0:*
> 27986/srcds_i486
> udp        0      0 84.244.189.89:27024     0.0.0.0:*
> 9061/srcds_i486
> udp      304      0 84.244.189.89:27025     0.0.0.0:*
> 8610/srcds_i486
> udp     1040      0 84.244.189.89:27026     0.0.0.0:*
> 27562/srcds_i486
> udp        0      0 84.244.189.89:27027     0.0.0.0:*
> 27562/srcds_i486
> udp        0      0 84.244.189.89:27028     0.0.0.0:*
> 4988/srcds_i486
> udp        0      0 84.244.189.89:26901     0.0.0.0:*
> 4988/srcds_i486
> udp     7904      0 84.244.189.89:27029     0.0.0.0:*
> 4988/srcds_i486
> udp     1472      0 84.244.189.89:27030     0.0.0.0:*
> 21952/srcds_i486
> udp    14720      0 84.244.189.89:26902     0.0.0.0:*
> 12882/srcds_i486
> udp        0      0 84.244.189.89:26903     0.0.0.0:*
> 27986/srcds_i486
> udp     1520      0 84.244.189.89:27031     0.0.0.0:*
> 21952/srcds_i486
> udp        0      0 84.244.189.89:26904     0.0.0.0:*
> 24123/srcds_i486
> udp        0      0 84.244.189.89:27032     0.0.0.0:*
> 8610/srcds_i486
> udp      304      0 84.244.189.89:27033     0.0.0.0:*
> 22080/srcds_i486
> udp        0      0 84.244.189.89:26905     0.0.0.0:*
> 12882/srcds_i486
> udp      304      0 84.244.189.89:26906     0.0.0.0:*
> -
> udp     3040      0 84.244.189.89:27034     0.0.0.0:*
> 22080/srcds_i486
> udp        0      0 0.0.0.0:52890           0.0.0.0:*
> 24068/named
> udp        0      0 84.244.189.89:26907     0.0.0.0:*
> 8610/srcds_i486
> udp        0      0 84.244.189.89:26908     0.0.0.0:*
> 8610/srcds_i486
> udp        0      0 84.244.189.89:26909     0.0.0.0:*
> 22080/srcds_i486
> udp    14720      0 84.244.189.89:26910     0.0.0.0:*
> 27562/srcds_i486
> udp    14720      0 84.244.189.89:26911     0.0.0.0:*
> 9061/srcds_i486
> udp        0      0 84.244.189.89:26912     0.0.0.0:*
> 21952/srcds_i486
> udp        0      0 84.244.189.89:26913     0.0.0.0:*
> 27986/srcds_i486
> udp        0      0 84.244.189.89:161       0.0.0.0:*
> 5219/snmpd
> udp        0      0 127.0.0.1:161           0.0.0.0:*
> 5219/snmpd
> udp        0      0 84.244.189.89:26914     0.0.0.0:*
> 24123/srcds_i486
> udp        0      0 84.244.189.89:26915     0.0.0.0:*
> -
> udp        0      0 84.244.189.89:26916     0.0.0.0:*
> 4988/srcds_i486
> udp        0      0 84.244.189.89:26917     0.0.0.0:*
> 21952/srcds_i486
> udp        0      0 84.244.189.89:26918     0.0.0.0:*
> 9061/srcds_i486
> udp        0      0 84.244.189.89:26919     0.0.0.0:*
> 22080/srcds_i486
> udp        0      0 84.244.189.89:26920     0.0.0.0:*
> 27562/srcds_i486
> udp        0      0 10.127.0.1:53           0.0.0.0:*
> 24068/named
> udp        0      0 84.244.189.90:53        0.0.0.0:*
> 24068/named
> udp        0      0 84.244.189.89:53        0.0.0.0:*
> 24068/named
> udp        0      0 127.0.0.1:53            0.0.0.0:*
> 24068/named
> udp        0      0 84.244.189.89:27960     0.0.0.0:*
> 4341/q3ded
> udp        0      0 84.244.189.89:27962     0.0.0.0:*
> 4332/etded.x86
> 
> I'm about to try running the server with strace to see if I can figure
> out
> what's happening
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:hlds_linux-
> > [EMAIL PROTECTED] On Behalf Of Chris Green
> > Sent: 07 November 2008 19:23
> > To: 'Half-Life dedicated Linux server mailing list'
> > Subject: Re: [hlds_linux] CPU usage
> >
> > Hmmm - if I run with  ./srcds_run -fork 20 +map
> > l4d_dem_hospital01_apartment,
> > I get 20 server processes (I can see them with ps x f).
> 
> 
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to