mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 14:15:59 +03:00
[GH-ISSUE #772] hwserver unable to start -- no logs found. #617
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#617
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 @aftek on GitHub (Mar 28, 2016).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/772
As requested by @UltimateByte, following up on issue #554;
I still couldn't get it to work
First I would get:
[ FAIL ] Starting hurtworld-server: Unable to start Hurtworld LGSM Serverbut nothing in the logs... only:
which I did upgrade, but now i'm getting empty logs
I'll try without ./hwserver in a new container, see if it has anything to do with it, or just my current setup.
Update: server is working when going straight through steamcmd and skipping hwserver :'(
though, i'm left with a server that i can join and show my friends how to join, but still not visible ingame...
so.. won't be using hwserver, unless it works first shot AND is visible ingame :)
PS: please please, get rid of tmux, nohup works like a charm on debian based distribution.. and is most likely already installed.
tmux is the reason why i woudn't see any log file from the game;
EVEN after updating it with the ppa you're linking for tmux -- it was worst, no log at all.
PPS: if you need access to this LXC container, even root, let me know -- there's nothing sensitive on it.
@UltimateByte commented on GitHub (Mar 28, 2016):
In the end, did you try tu run it natively, without a container ?
Containers are UNTESTED.
@aftek commented on GitHub (Mar 28, 2016):
by 'native' I meant using steamcmd directly, but still inside a container..
this way, I at least got the server to start..
my friends could join, but still not showing up in game..
using steamcmd and a container, I also had an ARK server running without any problem;
maybe I should try ARK to learn more about linuxgsm first.
( ARK, Starbound and Don't Starve had no trouble inside a container via steamcmd ).
@UltimateByte commented on GitHub (Mar 28, 2016):
But did you try the LGSM Hurtworld script outside of a container ?
This is how it's intended to use. If you wish to add another layer using a container, we can't guarantee you it'll work.
@aftek commented on GitHub (Mar 28, 2016):
never tried it no, but I don't have the infra for it..
I only have one big server with multiple accounts on them..
I'm not willing to go that far for Hurtworld on that machine.
I'll try with ARK.. see if it works..
aaand it does not :'(
./arkserver startgives me:While, using the exact same files, running:
nohup ./ShooterGameServer TheIsland?listen?SessionName=lgsm772?ServerAdminPassword=please -server -log &and the server is up and running.
lgsm initiative is awesome.. but i guess it's not for me :'(
PS: You could close the ticket :'(
If anyone wants to investigate, I can spawn a container for whoever :)
PPS: still one last suggestion..
should probably be only :
being able to add the user, you're already root..
you really dont need a new entry point for attackers to try and brute force that new account password.
@UltimateByte commented on GitHub (Mar 30, 2016):
Ark and Rust and Hurtworld have a common point : Unity3D.
So if your method doesn't work for one, it will probably not for others.
And Ark seems boring as it seems to require telnet over everything else to be administrated/moderated. But that's another topic.
However, what you'd need is watching the gamelog. Last log for Rust (as it doesn't support custom directory nor server console) : cat serverfiles/game*.log
Rust will make that gamelog on start, even on some failures, if i remember well the few times it happened to me. Then upon next start, it will move that log to /log/server to keep things clean.
Also, if you have other unity3d servers running, you might wanna have a look at the "Multiple servers" section here : http://oxidemod.org/threads/setting-up-a-rust-server-with-linux-and-lgsm.16528/
If it doesn't work even without a container (why would one use it in the first place ?!), it could either be the server force closing because it thinks it's already running, or either be an issue with tmux, or even a wrong dependency, like too old glibc.
I didn't close this issue, i know github can be confusing about that, but it's the previous one, mentioned here that is closed.
About your last suggestion : What if you wanna give access to SSH to another user to control the ark server ? To update and reboot it when needed ? You give him root access ? Sounds like a terrible idea. If you're affraid of bruteforce, 1) set strong enough passwords 2) trust SSH timeouts when too many requests 3) allow login of certain users only. 4) If you're still paranoid, install fail2bann.
I personally just setup a new machine that i will be the only one using SSH on it (but not FTP), so i
Most people login to the user directly. So did i for a while. Some will wanna share some users ssh login (so do i). Many beginners don't know su command to login to a user from root, or forget to input "cd" afterwards. If you're an experienced user, you probably already know that you're not compeled to create logins for a new user with adduser, but can use useradd instead if you wish, so i see no point changing the default command proposed.
However, installing packages with "sudo" on debian is something that i've never seen yet, as sudo isn't installed by default. That is the thing i would change about gameservermanagers.com's doc. :p
@aftek commented on GitHub (Mar 30, 2016):
I meant to offer root to an LXC container so you or someone could try and help me debug the lgsm setup on it...
and giving access is via private message only for sure :)
If anything inappropriate was to be found on it, then a simple
lxc-destroywould take care of it.with memory and cpu limits, there's isn't much threat to other containers on the same hardware either.
LXC doesn't have the overhead of virtualization ( https://linuxcontainers.org/ )
It's been working like a charm for ARK for months.
and the goal, is that each server has no idea it's sharing hardware resources;
if I were to give someone access to the ARK container for server administration,
it'd be the ark user, not root indeed.
but in this case, i can chose not to give him access to the Starbound server on the same hardware.
The other cool thing about LXC, are the templates:
https://github.com/lxc/lxc/tree/master/templates
I can pop a container of almost any linux distro,
whichever the developers or the guide used to document how to host a dedicated server.
@UltimateByte commented on GitHub (Mar 31, 2016):
You're not the first one trying to convince me about containers. :p
It may be something to consider at some point. But for now i think it's too much effort for the benefits. User based servers with good chmod is OK already. You can even jail users in their home directories if you're affraid that they mess up with other servers.
I've been connecting to people's machine sometimes to help them diagnose the issue but in the end, we can usually diagnose issues simply with advices. But I got so many things to manage already right now, switching domain name of my community, switching servers, reworking a lot of things... What about the things i just told you about logs ? Can't you test it already ?
@aftek commented on GitHub (Mar 31, 2016):
I most likely will, but only this week end;
I'm definitely a github newbie too, I really meant you or anyone willing to try and help debug..
and I actually might have found someone.. to be continued soon :)
if we do find a solution it will be a pleasure to share it back;
@UltimateByte commented on GitHub (Mar 31, 2016):
Do you really need someone to do :
adduser test
su test
cd
wget http://gameservermanagers.com/dl/rustserver
chmod +x rustserver
./rustserver install
./rustserver start
cat serverfiles/game*.log
?
@aftek commented on GitHub (Mar 31, 2016):
for motivation yes, but your last message worked too lol
install still successful but:
and still no log :'(
find ~/serverfiles/ -name '*.log'cannot see any( and not much time now to look into it :'( )
@UltimateByte commented on GitHub (Mar 31, 2016):
tmux version ?
dpkg -s tmux
What's your distro already ?
cat /proc/version
@UltimateByte commented on GitHub (Apr 5, 2016):
Solved ? Should we close this ?
@Jonathan-Rosewood commented on GitHub (May 12, 2017):
Same problem.
tmux not works inside LXC...
Anybody solve this?
@UltimateByte commented on GitHub (May 13, 2017):
Please, don't bump if you don't have relevant details, like... what i asked in my previous post.
@Jonathan-Rosewood commented on GitHub (May 22, 2017):
So...okay
https://asciinema.org/a/696z8p753qzwez0no1g53qki8
@cedarlug commented on GitHub (May 22, 2017):
Not an LinuxGSM issue.
The crux of your issue is the LXC container's lack of a PTY when you issue the equivalent of lxc 'attach' to acquire a terminal.
IMO, this is a dupe of #1409 (with the same workaround - Don't start the server if you don't have a PTY - that is, if you're "attach"ing to the container).
@lock[bot] commented on GitHub (Jul 18, 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.