kazenokizu 10 Posted March 19, 2014 Hello all i have followed this guide here. to the T and i cant seam to get my arma server to show up at all. http://tactical.nekromantix.com/wiki/doku.php?id=arma2:linux-dedicated-server-install this is for the latest beta build arma 2 operation arrowhead combined operations here is my config arma2oaserverscript config thingy #!/bin/bash # # armaserver: ArmA 2 Linux Dedicated Server Control Script # (c) 2010 BIStudio # ArmA 2 binary version must be 1.04 or later # #======================================================================= #======== CONFIGURATION PARAMETERS ======== #======== MUST BE EDITED MANUALLY TO FIT YOUR SYSTEM PARAMETERS ======== #======================================================================= ARMA_DIR=/home/kazenokizu/arma CONFIG=basic.cfg PORT=2305 PIDFILE=armapid.pid RUNFILE=run.run LOGFILE=serverlog.txt SERVER=server OTHERPARAMS=-config=config.cfg #======================================================================= ulimit -c 1000000 case "$1" in start) if [ -f ${RUNFILE} ]; then $0 stop fi echo "Starting ArmA 2 server..." # file to mark we want server running... echo "go" >${RUNFILE} # launch the background watchdog process to run the server nohup </dev/null >/dev/null $0 watchdog & ;; stop) echo "Stopping ArmA 2 server..." if [ -f ${RUNFILE} ]; then # ask watcher process to exit by deleting its runfile... rm -f ${RUNFILE} fi # and terminate ArmA 2 server process if [ -f ${PIDFILE} ]; then kill -TERM $(< ${PIDFILE}) if [ -f ${PIDFILE} ]; then rm -f ${PIDFILE} fi fi ;; status) if [ -f ${RUNFILE} ]; then echo "Server should be running..." else echo "Server should not be running..." fi if [ -f ${PIDFILE} ]; then PID=$(< ${PIDFILE}) echo "PID file exists (PID=${PID})..." if [ -f /proc/${PID}/cmdline ]; then echo "Server process seems to be running..." fi fi ;; check) echo -n "ArmA 2 directory: ${ARMA_DIR} " if [ -d ${ARMA_DIR} ]; then echo "OK" else echo "MISSING!" fi echo -n "Server executable: ${SERVER} " if [ -x ${SERVER} ]; then echo "OK" else echo "ERROR!" fi echo "Port number: ${PORT}" echo -n "Config file: ${CONFIG} " if [ -f ${CONFIG} ]; then echo "OK" else echo "MISSING!" fi echo "PID file: ${PIDFILE}" echo "RUN file: ${RUNFILE}" ;; restart) $0 stop $0 start ;; watchdog) # this is a background watchdog process. Do not start directly while [ -f ${RUNFILE} ]; do # launch the server... cd ${ARMA_DIR} echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Starting server (port ${PORT})..." ${SERVER} >>${LOGFILE} 2>&1 -server -config=${CONFIG} -port=${PORT} -pid=${PIDFILE} ${OTHERPARAMS} if [ -f ${RUNFILE} ]; then echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server died, waiting to restart..." sleep 5s else echo >>${LOGFILE} "WATCHDOG ($$): [$(date)] Server shutdown intentional, watchdog terminating" fi done ;; *) echo "$0 (start|stop|restart|status|check)" ;; esac here is my basic.cfg file MaxMsgSend=5048; MaxSizeGuaranteed=512; MaxSizeNonguaranteed=256; MinBandwidth=51200000; MaxBandwidth=104857600; MinErrorToSend=0.001; MinErrorToSendNear=0.0099999998; MaxCustomFileSize=1310720; class sockets { maxPacketSize=1400; }; adapter=-1; 3D_Performance=1; Resolution_W=0; Resolution_H=0; Resolution_Bpp=32; terrainGrid=10; viewDistance=5000; Windowed=0; here is my server config // Config file generated 3/17/2014 9:55 PM steamPort = 8766; steamQueryPort = 27016; hostName = "xxxxxxxxx"; password = ""; passwordAdmin = "xxxxxx"; reportingIP = "arma2oapc.master.gamespy.com"; logFile = "logfile_console.log"; motd[] = { }; motdInterval = 3; maxPlayers = 100; kickduplicate = 0; verifySignatures = 0; requiredSecureId = 0; voteMissionPlayers = 3; voteThreshold = 0.33; disableVoN = 0; vonCodecQuality = 10; persistent = 1; timeStampFormat = "full"; BattlEye = 0; doubleIdDetected = ""; onUserConnected = ""; onUserDisconnected = ""; onHackedData = ""; onDifferentData = ""; onUnsignedData = ""; regularCheck = ""; class Missions { }; ---------- Post added at 01:41 PM ---------- Previous post was at 01:38 PM ---------- here is some output from my ssh window kazenokizu@ns4009622:~$ cd arma kazenokizu@ns4009622:~/arma$ chmod 777 mithril kazenokizu@ns4009622:~/arma$ ./mithril ./mithril (start|stop|restart|status|check) kazenokizu@ns4009622:~/arma$ ./mithril start Starting ArmA 2 server... kazenokizu@ns4009622:~/arma$ nohup: redirecting stderr to stdout ./mithril check ArmA 2 directory: /home/kazenokizu/arma OK Server executable: server OK Port number: 2305 Config file: basic.cfg OK PID file: armapid.pid RUN file: run.run kazenokizu@ns4009622:~/arma$ ./mithril status Server should be running... kazenokizu@ns4009622:~/arma$ ./mithril restart Stopping ArmA 2 server... Starting ArmA 2 server... kazenokizu@ns4009622:~/arma$ nohup: redirecting stderr to stdout chmod 777 config.cfg kazenokizu@ns4009622:~/arma$ chmod 777 basic.cfg kazenokizu@ns4009622:~/arma$ ./mithril start Stopping ArmA 2 server... Starting ArmA 2 server... kazenokizu@ns4009622:~/arma$ nohup: redirecting stderr to stdout ./mithril check ArmA 2 directory: /home/kazenokizu/arma OK Server executable: server OK Port number: 2305 Config file: basic.cfg OK PID file: armapid.pid RUN file: run.run kazenokizu@ns4009622:~/arma$ ---------- Post added at 01:43 PM ---------- Previous post was at 01:41 PM ---------- More information is all the ports are open all the required dependencies are installed to my knowledge i have spent 4 to 6 days working on this before asking for help i have tried researched check and triple checked it all. and im out of ideas on what the hell to do. Share this post Link to post Share on other sites
redshirt_ensign 11 Posted March 19, 2014 Define "all the ports are open" ... Where is the server? A dedicated? VPS? Home network? Is it on a private IP (10.* 192.* etc) and behind a NAT device? If so have you forwarded _all_ the required ports? Any reason why you are using 2305 and not the default of 2302? When you say "remote" you are talking about putting the IP directing into "Remote" search of in-game multiplayer browser? (which should work regardless of Gamespy working) On linux what is you IPTABLES setup? (run "iptables -L -vn") Share this post Link to post Share on other sites
kazenokizu 10 Posted March 20, 2014 dedicated aka server computer in a data center. changed ports from 2302 to 2305 to see if that would get it to work it did not plan on changing it back. and no the ip tables are not setup i saw some thing about that before but i quickly dismissed it as sounded unneeded . and when i saw remote i mean clicking remote in game and putting in the ip and the port. to see it show up there. like you said which should work regardless or gamespy Share this post Link to post Share on other sites
kazenokizu 10 Posted March 25, 2014 Define "all the ports are open" ...Where is the server? A dedicated? VPS? Home network? Is it on a private IP (10.* 192.* etc) and behind a NAT device? If so have you forwarded _all_ the required ports? Any reason why you are using 2305 and not the default of 2302? When you say "remote" you are talking about putting the IP directing into "Remote" search of in-game multiplayer browser? (which should work regardless of Gamespy working) On linux what is you IPTABLES setup? (run "iptables -L -vn") want to try and help fix it ? im still trying to get this server to work -_- Share this post Link to post Share on other sites
redshirt_ensign 11 Posted March 25, 2014 Sorry mate I was away from home for a few days there. You may not have setup iptables but it would be better to see an output from "iptables -L -vn" to check if there are any pre-configured rules in place that you are not aware of. You did not answer my question about the IP address(es) of the server. Is it a private or public IP? Are there multiple IPs? (output of "ifconfig" would show this) Are you sure the server is starting properly? Can we see some of the RPT log (serverlog.txt)? Share this post Link to post Share on other sites
kazenokizu 10 Posted March 25, 2014 Last login: Mon Mar 24 21:55:47 2014 from c-69-180-1-87.hsd1.ga.comcast.net root@ns4009622:~# iptables -L -vn Chain INPUT (policy ACCEPT 51818 packets, 12M bytes) pkts bytes target prot opt in out source destination 32M 1556M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED 7 300 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 0 0 ACCEPT all -- eth1 eth0 0.0.0.0/0 0.0.0.0/0 Chain OUTPUT (policy ACCEPT 54M packets, 79G bytes) pkts bytes target prot opt in out source destination root@ns4009622:~# ifconfig eth0 Link encap:Ethernet HWaddr 08:60:6e:e5:c2:03 inet addr:192.99.4.23 Bcast:192.99.4.255 Mask:255.255.255.0 inet6 addr: fe80::a60:6eff:fee5:c203/64 Scope:Link inet6 addr: 2607:5300:60:3517::1/64 Scope:Global UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4814854540 errors:0 dropped:0 overruns:0 frame:0 TX packets:10358453285 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:635843339950 (592.1 GiB) TX bytes:15041719272307 (13.6 TiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:619911 errors:0 dropped:0 overruns:0 frame:0 TX packets:619911 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:73138420 (69.7 MiB) TX bytes:73138420 (69.7 MiB) root@ns4009622:~# cant get u rpt as there is not one at least that im aware of ---------- Post added at 11:19 PM ---------- Previous post was at 11:18 PM ---------- Sorry mate I was away from home for a few days there.You may not have setup iptables but it would be better to see an output from "iptables -L -vn" to check if there are any pre-configured rules in place that you are not aware of. You did not answer my question about the IP address(es) of the server. Is it a private or public IP? Are there multiple IPs? (output of "ifconfig" would show this) Are you sure the server is starting properly? Can we see some of the RPT log (serverlog.txt)? posted what u requested Share this post Link to post Share on other sites
redshirt_ensign 11 Posted March 25, 2014 OK, well you do have some rules but the default policy is ACCEPT so yeah iptables are fine. You are on a single public IP too so thats fine too. Must be the (arma) server itself. You do have a an RPT with the linux server but it piped to STDOUT and then the startup script redirects it to a log file. By default it is named after the port you are using - eg: "log.2302.txt" - but in your script you are naming it "serverlog.txt". Do you have that log file? Share this post Link to post Share on other sites
kazenokizu 10 Posted March 25, 2014 OK, well you do have some rules but the default policy is ACCEPT so yeah iptables are fine. You are on a single public IP too so thats fine too.Must be the (arma) server itself. You do have a an RPT with the linux server but it piped to STDOUT and then the startup script redirects it to a log file. By default it is named after the port you are using - eg: "log.2302.txt" - but in your script you are naming it "serverlog.txt". Do you have that log file? yea just says server started server died waiting to restart and it keeps repeating that. and i have no clue why Share this post Link to post Share on other sites
redshirt_ensign 11 Posted March 25, 2014 Yeah, your server is failing to start. Something is wrong with your files, folders or configs. We can sort it out from here via PM. Share this post Link to post Share on other sites
kazenokizu 10 Posted March 25, 2014 Yeah, your server is failing to start. Something is wrong with your files, folders or configs. We can sort it out from here via PM. ok thanks for help Share this post Link to post Share on other sites
visceralsyn 10 Posted June 30, 2014 If anyone else happens to read this thread with similiar problems: ARMA_DIR=/home/kazenokizu/arma CONFIG=basic.cfg PORT=2305 PIDFILE=armapid.pid RUNFILE=run.run LOGFILE=serverlog.txt SERVER=server OTHERPARAMS=-config=config.cfg The config line in the script is for a custom configuration file, or the server config. The one with hostname, persistent settings, etc. He added -config=config.cfg to the OTHERPARAMS line. Which, in essence confused the fork out the server. The standard arma2oa.cfg is read for the BASIC CFG file. Which he has named basic.CFG. The server reads arma2oa.cfg by default, so thats where you put those settings. The MAXMSGSEND, and settings like it. VisceralSyn Share this post Link to post Share on other sites