mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 14:15:59 +03:00
[GH-ISSUE #296] [l4d2server] console logs are zero bytes on Ubuntu #255
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#255
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 @Montclair on GitHub (Feb 17, 2015).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/296
We're using your script (great job), and it was logging things fine on Debian. For whatever reason, the L4D2 servers weren't stable there so we migrated to Ubuntu 14.x. Ever since that, the console logs are empty. We're not sure what we did that could cause that, but no matter what logging variables we change and adding / removing -debug from the command line, the files are always created but always 0 bytes. tmux is installed also. Do you have any insight?
@dgibbs64 commented on GitHub (Feb 18, 2015):
Please paste output of ./l4d2server details.
@Montclair commented on GitHub (Feb 18, 2015):
/home/l4d2-1/functions/fn_details_distro: command substitution: line 55: syntax error near unexpected token
|' /home/l4d2-1/functions/fn_details_distro: command substitution: line 55:free ${option} | | awk '/Swap:/ {print $2}')'Distro Details
Distro: Ubuntu 14.04.1 LTS
Arch: x86_64
Kernel: 3.13.0-45-generic
Hostname: TFPG-NJ
tmux: tmux 1.8
GLIBC: 2.19
Performance
Uptime: 5d, 14h, 16m
Avg Load: 0.28, 0.16, 0.09
Mem: total used free
Physical: 2.0G 1.9G 78M
Swap: 0B 0B
Disk Usage
Disk available: 16G
Serverfiles: 9.9G
Left 4 Dead 2 Server Details
Server name:
Server IP: 104.207.128.135:27015
Status: ONLINE
Service name: l4d2-server
User: l4d2-1
Location: /home/l4d2-1
Config file: /home/l4d2-1/serverfiles/left4dead2/cfg/l4d2-server.cfg
Backups
No Backups created
Command-line Parameters
./srcds_run -game left4dead2 -strictportbind -ip 104.207.128.135 -port 27015 +clientport 27005 +map c2m1_highway +servercfgfile l4d2-server.cfg -tickrate 60
Ports
Change ports by editing the command-line
parameters in l4d2server.
Useful port diagnostic command:
netstat -atunp | grep srcds_linux
DESCRIPTION DIRECTION PORT PROTOCOL
Status: ONLINE
@Scarsz commented on GitHub (Feb 18, 2015):
rm -r /home/l4d2-1/functions/;/home/l4d2-1/l4d2server details@Montclair commented on GitHub (Feb 18, 2015):
Issued the above and functions were downloaded again.
ERRORS REMOVED:
/home/l4d2-1/functions/fn_details_distro: command substitution: line 55: syntax error near unexpected token
|' /home/l4d2-1/functions/fn_details_distro: command substitution: line 55:free ${option} | | awk '/Swap:/ {print $2}')'ERRORS CREATED:
/home/l4d2-1/functions/fn_start: line 72: fn_check_logs: command not found
console logs now have data, but say that tmux 1.8 is broken
Console logging disabled: Bug in tmux 1.8 breaks logging
Currently installed: tmux 1.8
@Montclair commented on GitHub (Feb 18, 2015):
SOLVED
Upgraded tmux to 1.9a and the log files contain data again.
ISSUE:
/home/l4d2-1/functions/fn_start: line 72: fn_check_logs: command not found
Do we need to care about this?
@Montclair commented on GitHub (Feb 18, 2015):
I manually downloaded fn_check_logs and added it to the functions directory, however, this error message persists:
/home/l4d2-1/functions/fn_start: line 72: fn_check_logs: command not found
@dgibbs64 commented on GitHub (Feb 19, 2015):
If you get any bugs like that always delete the functions dir. This will make sure you have the latest version :-).
@dgibbs64 commented on GitHub (Feb 19, 2015):
O wait yeah my fault. Forgot to add the new function to fn_functions
@Montclair commented on GitHub (Feb 19, 2015):
Have you fixed this now?
@dgibbs64 commented on GitHub (Feb 19, 2015):
Nope not yet. Haven't been at my laptop today. Will take 2 mins when I get a chance :-). The bug doesn't break anything though so no need to worry.
@Montclair commented on GitHub (Feb 19, 2015):
I did it manually in our copies. I'm new to GitHub and don't know how to contribute, else I'd do it here for all.
fn_check_logs(){
functionfile="${FUNCNAME}"
fn_runfunction
}
@dgibbs64 commented on GitHub (Feb 19, 2015):
Look at github for Windows :). Its the easiest way to get started with githubg
@Scarsz commented on GitHub (Feb 19, 2015):
Go to whatever file you want to edit in the main list and there's an edit button to automatically clone the repo and once you're done editing your copy you can send us a merge request
@lock[bot] commented on GitHub (Jul 19, 2018):
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.