Page MenuHomeFeedback Tracker

Linux server not reading -config=server.cfg
Closed, ResolvedPublic

Description

Linux dedicated server does not read the server.cfg given with command line parameter -config=server.cfg .

I noticed it, when I tried to setup a local dedicated server using loopback device (loopback = true;).

I used the well known 'strace' tool to track down the reason and found that my server.cfg is never even touched.
I also saw someone else mentioning it on the forum, but I can't find its post again.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Linux x64
Operating System Version
Ubuntu 16.04 (4.4.0-97-generic #120-Ubuntu SMP x86_64 GNU/Linux)
Category
Dedicated Server
Steps To Reproduce
  1. Follow steps to install dedicated server according to https://community.bistudio.com/wiki/Arma_3_Dedicated_Server#Instructions_.28Linux_o.2Fs.29 .
  1. Create file

    ~/steamcmd/arma3/server.cfg
  1. Launch server with the following commands:

    cd ~/steamcmd/arma3 strace -e trace=file -o strace.log ./arma3server -name=server -config=server.cfg
  1. Shutdown with ^C
  1. Open strace.log in an editor and search for "server.cfg" . There is no log entry for any file system call containing "server.cfg" as parameter.
Additional Information

Console output:


Strace output:

I tried several given solutions to other issues to figure out if it may fix my issue as well, such as:
+ Used fresh environment (created new user).
+ Used a separate steam account.
+ Validated installed files (app_update ... validate)
+ Made sure, steam was not running when I launched the server (since it may interfere).
+ Gave write access to all files/directories to anybody: chmod -R a+w ~
+ Created missing directories ./local/share/Arma 3/tmp and ./local/share/Arma 3/Tmp2302
+ Copied "Arma 3\BISProfile.json" to "Arma 3/BISProfile.json" (just in case)

Event Timeline

protozorq edited Additional Information. (Show Details)Oct 19 2017, 6:59 AM
dedmen added a subscriber: dedmen.Oct 19 2017, 6:27 PM

I am using -config=serverconfig/server.cfg so it's in a subfolder. No problem here. Can you try if a subfolder works?

Tried it, but it makes no difference, unfortunately.

Are you sure, the server actually reads your config? Can you proof it somehow?

It reads the servername and password from it so.... I'm quite confident it reads the config instead of my mind.

dedmen closed this task as Resolved.May 18 2020, 11:27 AM
dedmen claimed this task.