mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 14:15:59 +03:00
[GH-ISSUE #816] Problem with Hurtworld script #655
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#655
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 @rogerhnn on GitHub (May 16, 2016).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/816
Hello, after setting up a hurtworld server using the game script I have this problem:
Set current directory to /home/hurtworld/serverfiles
Found path: /home/hurtworld/serverfiles/Hurtworld.x86
The only thing I changed in the script was the ip, server name and added my steam id to become admin.
Can anyone help me? Thanks
@UltimateByte commented on GitHub (May 16, 2016):
Hi,
I'm sorry, i don't get what the issue is. Could you make a screenshot or something ?
@rogerhnn commented on GitHub (May 16, 2016):
Sure, you can check it here: http://i.imgur.com/XefICdv.png
What I did: Started the server and then console:
./hwserver start
./hwserver console
Then I got this message, and I followed everything on the how to setup page.
@UltimateByte commented on GitHub (May 16, 2016):
The console won't display anything else. This isn't an issue, this is the normal behavior of a Hurtworld server. If you think it sucks, blame Hurtworld team or Unity Engine, or both. :o))
@rogerhnn commented on GitHub (May 16, 2016):
I know, what I am saying is that the server doesnt start, it give me that message:
Set current directory to /home/hurtworld/serverfiles
Found path: /home/hurtworld/serverfiles/Hurtworld.x86
and then it shuts down.
Like if the directory in the start script is wrong.
@UltimateByte commented on GitHub (May 16, 2016):
You didn't say that at any point.
As you're able to see the console, it seems like the server is starting.
If you exit the console with
ctrl + c(instead ofctrl + b, d), that's why the server shutdowns.ctrl + cwill terminate the process, whilectrl +b, dwill let it run in background../hwserver startWait a few seconds
then
./hwserver monitor-> output ?
Also, when adding yourself as an admin, make sure you follow the right syntax :
admins="addadmin 012345678901234567"@rogerhnn commented on GitHub (May 16, 2016):
I use the ctrl+b, d to exit the console.
The addadmin is correct.
This is my output:
[hwserver@ubuntu-1gb-nyc3-01 ~]$ ./hwserver start [ OK ] Starting hurtworld-server: BR Survival x5 |TP|Home|Shop [hwserver@ubuntu-1gb-nyc3-01 ~]$ ./hwserver monitor fetching functions/command_monitor.sh...OK [ OK ] Monitor hurtworld-server: Checking session: OK fetching functions/monitor_gsquery.sh...OK [ .... ] Monitor hurtworld-server: Querying port: 104.131.107.91:12881 : QUERYIN [ FAIL ] Monitor hurtworld-server: Querying port: 104.131.107.91:12881 : ERROR: Unable to receive [ FAIL ] Monitor hurtworld-server: Querying port: 104.131.107.91:12881 : ERROR: Unable to receive [ FAIL ] Stopping hurtworld-server: BR Survival x5 |TP|Home|Shop is already stopped [ OK ] Starting hurtworld-server: BR Survival x5 |TP|Home|Shop [hwserver@ubuntu-1gb-nyc3-01 ~]$ ./hwserver monitor [ OK ] Monitor hurtworld-server: Checking session: OK [ OK ] Monitor hurtworld-server: Querying port: 104.131.107.91:12881 : OK [hwserver@ubuntu-1gb-nyc3-01 ~]$ ./hwserver monitor [ OK ] Monitor hurtworld-server: Checking session: OK [ OK ] Monitor hurtworld-server: Querying port: 104.131.107.91:12881 : OK [hwserver@ubuntu-1gb-nyc3-01 ~]$Strange is that I can't connect, I got a no response from server message.
@UltimateByte commented on GitHub (May 16, 2016):
OK, so your first "monitor" attempt failed, but the second one is fine.
If the monitor says OK, it means your server accept querying, and supposedly connections from local.
No response could be a firewall issue,either on your OS, or a hardware firewall to set from your server provider. Also make sure that for some reason, you don't have several hurtworld processes started. (use the "top" command or webmin to check).
@rogerhnn commented on GitHub (May 16, 2016):
I checked now it says firewall is not running, and only one process is running.
I have to run firewall to enable the tcp/udp connections so?
@UltimateByte commented on GitHub (May 16, 2016):
Nope. If
iptables -Lshows you the default policy is to accept connections, you have nothing to do.However, some servers like the "game" series from OVH have a firewal that you have to manage from your OVH panel. I'd search for that.
You can also use the
netstat -atunp | grep Hurtworldcommand to check that your Hurtworld server is listening correctly for connections. If the monitor function tells you it's OK, then everything should be normal there.After that, i'll be a bit short on clues if you can't manage to get it working.
@rogerhnn commented on GitHub (May 16, 2016):
Okay, so far so good. The server appears on the server list now.
But for some strange reason I can't connect to it.
I started the firewalld service, and added the ports 12871 and 12881 to the list. Both tcp and udp.
Tried the command you said: netstat -atunp it outputs this:
I am using DigitalOcean with centos 7.2 to deploy a test server.
@UltimateByte commented on GitHub (May 16, 2016):
Why put a firewall when you're diagnosing stuff ? -_-
@rogerhnn commented on GitHub (May 16, 2016):
Because before the udp and tcp ports were closed, I activated the firewall service to enable them.
Why its so hard to get it working under linux -_-
@UltimateByte commented on GitHub (May 16, 2016):
No firewall doesn't mean the ports are closed. It means there is no restriction.
If your firewall policy was to deny all connections, of course it couldn't work.
Here is a properly disabled firewall output
I'm sorry about what i'm gonna say, but if you think this is hard even when using LGSM, either put your thumbs out your ass or don't use linux.
@rogerhnn commented on GitHub (May 16, 2016):
I disabled the firewall and it outputs:
@UltimateByte commented on GitHub (May 16, 2016):
And you still can't connect ? What is the exact message ?
You didn't answer about that : Does your server have another kind of firewall ? Like a hardware firewall, that you would setup within your server provider's panel ?
@rogerhnn commented on GitHub (May 16, 2016):
The only message it gives is that I can't connect.
There's no other firewall, not from the panel itself.
@UltimateByte commented on GitHub (May 16, 2016):
What is the exact message ?
Are you sure that there is no other firewall ? Sometimes it's not obvious, like with the "game" server from OVH.
@rogerhnn commented on GitHub (May 16, 2016):
http://i.imgur.com/pkO3tpu.png
This is what shows, and the message is "connection failed"
The server appears on the list
@UltimateByte commented on GitHub (May 16, 2016):
Can you connect to other servers ? (make sure it's not a client issue)
Are both your client and server up to date ?
./hwserver validate@UltimateByte commented on GitHub (May 16, 2016):
Boy, i noticed you're lacking a port listening.
Compare to my output :
Where is your 12871 ?
@rogerhnn commented on GitHub (May 16, 2016):
Yeah I can connect to others. I have 1 server up using windows, but the problem is linux.
I validated the files, started it again and same...
It may be something with a port???
@UltimateByte commented on GitHub (May 16, 2016):
See my upper message.
What's your distro ?
@rogerhnn commented on GitHub (May 16, 2016):
I am using Centos 7.2
Yeah I saw.
Mine is not listening on port 12871, but why??
@UltimateByte commented on GitHub (May 16, 2016):
Any reason for using CentOS ?
I'd recommend Debian 8 or Ubuntu 14+. 64 bits.
BTW, your query port is listening and responds, that's why monitor says it's ok, and that's why you're listed into the server list. But for some reason, your game port isn't listening. Don't mess with the firewall again, if the process doesn't even listen correctly, you can open whatever you want it won't help.
./hwserver detailsOutput of "Command-line Parameters" section ?
@UltimateByte commented on GitHub (May 16, 2016):
In your hwserver
You have map="diemensland" don't you ?
Try to remove "diemensland"
so that you have map=""
And restart hwserver.
@UltimateByte commented on GitHub (May 16, 2016):
More importantly, your admin syntax is wrong.
What did i tell you in my first posts ?
What did you do ?
admins="76561198024356708">>>>>> WRONG WRONG WRONGCan't you actually read ?
@rogerhnn commented on GitHub (May 16, 2016):
I corrected that already. Sorry :(
Here's the corrected:
The strange thing is that the game tries to connect to that ip:12881 and not 12871
@UltimateByte commented on GitHub (May 16, 2016):
Now it looks better.
./hwserver restartThen wait 30s
Then :
netstat -atunp | grep HurtworldOutput ?
@rogerhnn commented on GitHub (May 16, 2016):
Now it shows this:
@UltimateByte commented on GitHub (May 16, 2016):
"@ubuntu-1gb-nyc3-01"
So your CentOS server is called ubuntu ? Or you managed to reinstall it ?
Now you got a decent netstat.
Try to connect again to 104.131.107.91:12871 ?
@rogerhnn commented on GitHub (May 16, 2016):
Yeah, its called that, don't know why. Every server is called ubuntu in digitalocean.
Didn't reinstalled yet.
Tried, no luck.
The server shows on the list, if I try to connect through the list it tries the port 18881 and not 12871.
Manually no luck too. Even using 12871
@UltimateByte commented on GitHub (May 16, 2016):
Weird. I wish i could try your server, but i don't own the game.
Is there any output in serverfiles/gamelog.txt ?
Can you try to connect to my test server ? If mine works, we'll know that it's not a general error.
IP : 164.132.201.49:12871
@rogerhnn commented on GitHub (May 16, 2016):
I connected to your server, it worked. But mine not.
Here is the output from gamelog.txt
http://pastie.org/10839546
@UltimateByte commented on GitHub (May 16, 2016):
Server failed to start: Exception0: Failed to bind to port range 12881-12881 ---> System.Net.Sockets.SocketException: Address already in use
Something is using that port already on your machine.
netstat -tulpn | grep :12881
@rogerhnn commented on GitHub (May 16, 2016):
Weird...
@UltimateByte commented on GitHub (May 16, 2016):
Try the same as root.
Sometimes processes from other users are hidden otherwise.
@UltimateByte commented on GitHub (May 16, 2016):
Maybe to isolate issues, you can try to shutdown your hurtworld server first.
@rogerhnn commented on GitHub (May 16, 2016):
Now it shows nothing...
The server I connected you installed on ubuntu?
@UltimateByte commented on GitHub (May 16, 2016):
Weird.
It's Debian 8.4 x64
Maybe try an OS reinstall if you got nothing on this machine.
If it still doesn't work, then see with your provider. If you don't have a dedicated IP, that could explain the thing.
A stupid thing could be : not enough RAM to start up the server. How much RAM does your server have ?
@rogerhnn commented on GitHub (May 16, 2016):
So, installed Ubuntu 14.04 x64...
Installed the scripts...
Voilá... It worked.
Who knows why with the other its not working.
Again, thank you so much for the help UltimateByte :D
@UltimateByte commented on GitHub (May 16, 2016):
Well, it's often like that with CentOS, that OS isn't appealing to me... Sometimes Ubuntu is kind of a jerk too, too many thing pre-installed and pre-configured weirdly. The safest way to go still seems to be running the latest Debian. Debian, my sweetheart. :o))
@UltimateByte commented on GitHub (May 16, 2016):
Glad you got it solved though. Closing ;)
@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.