Page MenuHomeFeedback Tracker

no RPT logs are generated for linux servers
New, WishlistPublic

Description

using "find |grep rpt" in / dir wont show any rpt logs

that prevents fixing setup issues on linux side

Details

Legacy ID
3842122490
Severity
None
Resolution
Open
Reproducibility
N/A
Category
Server
Steps To Reproduce
  1. Install a fresh Debian
  2. Setup a ArmA 3 server
  3. run it and search the RPT logs
Additional Information

fully qualified version string:
Linux f589 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u1 x86_64 GNU/Linux

run script:
#!/bin/bash
while true; do

modsPath="/home/steam/ArmA3/OverallMods/"
port=2312
mods="-mod="
mods="${mods}${modsPath}@XLib;"
mods="${mods}${modsPath}@CBA_A3;"
mods="${mods}${modsPath}@task_force_radio;"
mods="${mods}${modsPath}@A3MP;"
mods="${mods}${modsPath}@fallujah1_2;"
mods="${mods}${modsPath}@islandZstuff;"
mods="${mods}${modsPath}@Koplic;"
mods="${mods}${modsPath}@Nziwasogo;"
mods="${mods}${modsPath}@Thirsk;"
mods="${mods}${modsPath}@panthera;"
echo "Starting ArmA 3 server on port $port with following mods string: $mods"
./arma3server -port=$port -pid=ServerRunning -cfg=basicServer.cpp -config=server.cpp "${mods}"
echo "ArmA 3 server has stopped ..."
for (( i=20; i>0; i-- ))
do
        echo "Restarting in $i"
        sleep 1s
done

done

Event Timeline

X39 edited Steps To Reproduce. (Show Details)Jul 25 2014, 5:35 PM
X39 edited Additional Information. (Show Details)
X39 set Category to Server.
X39 set Reproducibility to N/A.
X39 set Severity to None.
X39 set Resolution to Open.
X39 set Legacy ID to 3842122490.May 7 2016, 7:05 PM

It is not very well documented, but the Linux server outputs the "RPT log" messages on stdout/stderr. (The BIS Linux game servers have done this since back in the OFP days)

Solution: redirect stdout and stderr to a log file of your choosing. For example:

./arma3server -port=$port -pid=ServerRunning -cfg=basicServer.cpp -config=server.cpp "${mods}" >>log.${pid}.txt 2>&1

So: not a bug, but Linux dedis being "different". :-)

X39 added a subscriber: X39.May 7 2016, 7:05 PM
X39 added a comment.Jul 26 2014, 3:18 PM

well ... then the linux servers are still lacking much of documentation which is also not ... good

the only question remaining now is
why is the server not outputting the mods when they should be loaded

Syr3L added a subscriber: Syr3L.May 7 2016, 7:05 PM
Syr3L added a comment.Aug 23 2015, 4:09 PM

the redirecting works not the best also it wont log the complete startup procedure as well
also if you use screen with it it wont log the servers terminal output instead the messages of screen please include a log-function for the rpt maybe in the CONFIG_server.cfg (a.e.: serverRPTlocation = "/home/arma3server/logs")