Skip to content

LGSM tries to alter config file even if it doesn't exist #1234

@UltimateByte

Description

@UltimateByte

Sample log.

янв 09 05:41:31 ark-server: START: FATAL: Unable to start LinuxGSM
янв 09 05:41:32 ark-server: START: FATAL: command_start.sh exiting with code: 1
Jan 09 06:06:29 ark-server: CHECK: INFO: Using anonymous Steam login.
Jan 09 06:06:31 ark-server: CHECK: WARN: Configuration file missing!
Jan 09 06:06:31 ark-server: CHECK: WARN: /home/ark/serverfiles/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini
Jan 09 06:06:34 ark-server: INSTALL: INFO: copying GameUserSettings.ini config file.
( user displayed error at the same time: cp: cannot create regular file ‘/home/ark/serverfiles/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini’: No such file or directory )
Jan 09 06:06:35 ark-server: INSTALL: INFO: changing hostname.
Jan 09 06:06:36 ark-server: INSTALL: INFO: changing rcon/admin password.

It's just a matter of an if check for existing file before actually trying to change hostname/password.
Also, this check could be used to tell if the file wasn't copied properly (as it was the case here).

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions