mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 06:05:57 +03:00
[GH-ISSUE #4309] [Bug]: Console logfile empty #2701
Labels
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#2701
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ervins0x on GitHub (Sep 8, 2023).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4309
User story
I want so log files are being saved
Game
Rust
Linux distro
Debian 11
Command
command: console
Further information
Hello!
I have Debian 11 running LGSM with Rust server, tried this with clean install too.
At first thought this was some Ubuntu shenanigan, tried with Debian ,realised if my VM container has no memory and i have OOM crash, log permissions or something gets broken, couldn't debug this further, please assist.
When this happens
./rustserver consolei'm monitoring things but during crash it crashes and closes session and i'm unable to see what's going on so i'm going to check log folder and these logfiles are empty.files are owned by rustserver:rustserver
Thanks.
Relevant log output
No response
Steps to reproduce
ls -la/ tailing shows that they are empty.@devsnowy commented on GitHub (Sep 11, 2023):
Hi there,
I was looking around and I found this https://github.com/GameServerManagers/LinuxGSM/pull/2966/files , this directed me to check parameters and it looks like default was -logfile with nothing after it, I'm not sure if this is supposed to be like this in _default but I've changed it to
-logfile \"${consolelogdate}\""and now everything seem to be working, I'm not sure if it should be to rust-console.log instead? Please advise and if possible please fix this problem, I've noticed it also on my fresh docker image install.@devsnowy commented on GitHub (Sep 11, 2023):
Actually it looks like the variable
consolelogworks to fix this issue, notconsolelogdate. This will keep the log rotation working.@ervins0x commented on GitHub (Sep 11, 2023):
Good spot, i tried to pass
-logfile ~/log/console/rust-console.logbut then it couldn't start, let's try with consolelog.Update:
Tried with
-logfile ${consolelog}and also tried to escape with quotes\"${consolelog}\", same unable to start even server with this argument, it stopsInitializing Shutdown HandlerI can start the server with pure-logfilebut the log files are empty.Update2: <-- scratch that...
Manged to run server with :
-logfile \"${gamelogdate}\""and logging also works.still crashing, i didn't saved file lol.
@devsnowy commented on GitHub (Sep 11, 2023):
Try like this:
It should end with "" and starts at -logfile, or you can replace from "password" of recon.password.
password \"${rconpassword}\" -logfile \"${consolelog}\""This has to be in /data/config-lgsm/rustserver/rustserver.cfg (instance) NOT _default.
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters startparameters="-batchmode +app.listenip ${ip} +app.port ${appport} +server.ip ${ip} +server.port ${port} +server.queryport ${queryport} +server.tickrate ${tickrate} +server.hostname \"${servername}\" +server.identity \"${selfname}\" +server.gamemode ${gamemode} +server.level \"${serverlevel}\" +server.seed ${seed} +server.salt ${salt} +server.maxplayers ${maxplayers} +server.worldsize ${worldsize} +server.saveinterval ${saveinterval} +rcon.web ${rconweb} +rcon.ip ${ip} +rcon.port ${rconport} +rcon.password \"${rconpassword}\" -logfile \"${consolelog}\""That last part translates to me to
-logfile "/data/log/console/rustserver-console.log"Keep in mind this is what I use for the docker version of linuxgsm.
@ervins0x commented on GitHub (Sep 11, 2023):
Thanks, yeah i did it like that, i'm running natively without Docker, but in the LGSM config itself variable $consolelog is set, so it should work both ways.
Just to doublecheck will share my details here, config of:
config-lgsm/rustserver/rustserver.cfg:Let's append -
\"${consolelog}\"result -
-logfile \"${consolelog}\""- just putting emphasis on that i'm not missing double quotes 💇Let's do server restart, and it's stuck in this:
And when i remove variable that we added to -logfile it immediately boots up.
I can see during
./rustserver debugWeird behaviour, it's not booting, then i removed this var, restart again, now it's writing to log files, i don't get it.
@devsnowy commented on GitHub (Sep 11, 2023):
Does this folder exists for you?
/home/rustserver/log/console/Reach out to me on discord "devsnowy" username, and we can try debug it.
@ervins0x commented on GitHub (Sep 12, 2023):
Anyways, now the rust-console.log is getting filled up and i don't know what happened.
Update, for test purposes did map-wipe, server restarts, and new log file is empty:
@ervins0x commented on GitHub (Sep 14, 2023):
Update:
passed
-logfile $consoledirand Shutdown intitialize is just output from screen/tmux session, i can now check logs at least in it's location.@github-actions[bot] commented on GitHub (Sep 16, 2024):
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.