#1 2013-10-09 15:46:02

Moris
Player
Reputation: 0
Location: Russia
Registered: 2013-10-08
Posts: 6
Website
Windows 7 Firefox 24.0

BF1942 Linux server

Hi all!

I've installed BFServerManager 2.01 (from over here http://team-simple.org/forum/viewtopic. … 305#p15305 as server is on Linux) and BFRemoteManager 2.01
It works, starts and everything is ok except two strange thing - can't change map. The status screen also can't show the actual status. The log file says:

2013-10-09 17:39:46 : User admin at 62.231.28.38:49787 updated the map rotation.
2013-10-09 17:39:51 : Couldn't send message admin.changeMap  to console! Not connected.
2013-10-09 17:39:51 : Couldn't change to map battle_of_britain GPM_CQ bf1942! The command failed.

Did anybody come across this problem?
Thank you!

Last edited by Moris (2013-10-09 15:47:53)

Offline

    Positive reputation 0   Negative reputation 0

#2 2013-10-09 15:50:18

s[sk]
Rival
Slovakia
Reputation: +11
Registered: 2012-10-10
Posts: 1,227
Windows 7 Firefox 20.0

Re: BF1942 Linux server

looks like bfsmd is unable to connect rcon port of the server
no firewall blocking it? did you start the server from bfsm so rcon passwords match? do you have remote console enabled? password set?

Offline

    Positive reputation 0   Negative reputation 0

#3 2013-10-09 15:58:32

Moris
Player
Reputation: 0
Location: Russia
Registered: 2013-10-08
Posts: 6
Website
Windows 7 Firefox 24.0

Re: BF1942 Linux server

s[sk] wrote:

looks like bfsmd is unable to connect rcon port of the server
no firewall blocking it? did you start the server from bfsm so rcon passwords match? do you have remote console enabled? password set?

O____O 
Opps (c)


Sorry. Some healthy self-sarcasm smile

1) I've started bfsmd on server by ./bfsmd -port 14667
connected by remote manager and pressed "start". Server started only with "use 0.0.0.0" option. And working.

2) I didn't fill any rcon passwords anywhere. As I understood BFRM generates all server configs and starts the server.

3) remote console ... i've checked RemoteConsole and entered username ... and RemoteAdmin too. But I don't see where it go further.
Need to read BFSM manual? smile

Last edited by Moris (2013-10-09 16:05:23)

Offline

    Positive reputation 0   Negative reputation 0

#4 2013-10-09 17:03:31

s[sk]
Rival
Slovakia
Reputation: +11
Registered: 2012-10-10
Posts: 1,227
Windows 7 Firefox 20.0

Re: BF1942 Linux server

i think you need to enable remote console, fill in user, password and restart the server (not 100%, never did too much tests with it but bfsmd needs rcon to issue commands and rcon needs user/password and i don't think bfsmd autogenerates them if they're empty)

Offline

    Positive reputation 0   Negative reputation 0

#5 2013-10-09 17:26:01

Moris
Player
Reputation: 0
Location: Russia
Registered: 2013-10-08
Posts: 6
Website
Windows 7 Firefox 24.0

Re: BF1942 Linux server

s[sk] wrote:

i think you need to enable remote console, fill in user, password and restart the server (not 100%, never did too much tests with it but bfsmd needs rcon to issue commands and rcon needs user/password and i don't think bfsmd autogenerates them if they're empty)

I've just checked. I have Remote Console enabled and username/password filled in.
Still it can't change map.
May be it's because of 0.0.0.0 Ip for the server? There is some strange things happening.
bfsmd doesn't start if I type in the correct IP (public, local, localhost) - it starts only when I have 0.0.0.0 in servermanager.con
When I connect to the server by BFRM I have to fill in correct IP and mark "use 0.0.0.0" option. It overwrites my servermanager.con but still continues to work fine.

start.sh is the same. Starts only with 0.0.0.0 otherwise it fails with "Failed to bind socket" error.

in iptables allowed 14567,14667,14690,4711,23000 (for all both tcp and udp)
May be I forgot some port?

Offline

    Positive reputation 0   Negative reputation 0

#6 2013-10-09 17:58:28

s[sk]
Rival
Slovakia
Reputation: +11
Registered: 2012-10-10
Posts: 1,227
Windows 7 Firefox 20.0

Re: BF1942 Linux server

Moris wrote:

I've just checked. I have Remote Console enabled and username/password filled in.
Still it can't change map.
May be it's because of 0.0.0.0 Ip for the server? There is some strange things happening.
bfsmd doesn't start if I type in the correct IP (public, local, localhost) - it starts only when I have 0.0.0.0 in servermanager.con
When I connect to the server by BFRM I have to fill in correct IP and mark "use 0.0.0.0" option. It overwrites my servermanager.con but still continues to work fine.

start.sh is the same. Starts only with 0.0.0.0 otherwise it fails with "Failed to bind socket" error.

in iptables allowed 14567,14667,14690,4711,23000 (for all both tcp and udp)
May be I forgot some port?

could be anything, make sure you don't have some server instance already running and the one run from bfsmd can't bind to ports because they're already bound
use netstat/lsof/fuser to check

try to flush firewall rules if it's possible that they interfere with bfsmd <-> bf1942 communication

use tcpdump (on both eth and lo interfaces) to see why bfsmd can't connect to rcon (port 4711)

Offline

    Positive reputation 0   Negative reputation 0

#7 2013-10-09 18:02:27

Moris
Player
Reputation: 0
Location: Russia
Registered: 2013-10-08
Posts: 6
Website
Windows 7 Firefox 24.0

Re: BF1942 Linux server

bud wrote:

How does your startscript look like?

as written above - big button start in BFRM smile

Rollback problem. I solved it. Some ancient Buddhist dances and it's working. Just put local address in BFRM ans still use 0.0.0.0 + several restarts smile

Offline

    Positive reputation 0   Negative reputation 0

#8 2013-10-10 09:49:30

Moris
Player
Reputation: 0
Location: Russia
Registered: 2013-10-08
Posts: 6
Website
Windows 7 Firefox 24.0

Re: BF1942 Linux server

bud wrote:

And thats your problem, now your going around the problem with use binding to localhost (127.0.0.1) witch is used in linux for LAN games, but if you dont use a real startscript you will miss out on alot of functions like -restart if the server crashes.

Actually the problem was really with connection to rcon.
I didn't use 127.0.0.1 as It didn't work. I used the local IP like 192.168.1.123 and it managed to work. This means that rcon connection between bfsm and server is through local network, not through publik IP. Still server is available from global internet smile

I guess it come from polices of the host provider. I'll contact the administrator and try to clear this moment. Our server is not rented vps, it is our computer hosted by our local internet provider, so there could be some network and security polices. For example I open access from global network to our server only with help of local administrator (and manually config iptables).

Hope will clarify this. Any way thank you very much for your time and attention!
And once again thanks for all the patches and resources for the server. You're the best! smile

P.S. here is how my server is started (using ps -ef)

SCREEN -A -m -d -S bf1942dc ./bfsmd -port 14667 +statusMonitor 1
/home/bf/bf1942/bf1942_lnxded +statusMonitor 1

Last edited by Moris (2013-10-10 09:53:15)

Offline

    Positive reputation 0   Negative reputation 0

Board footer