mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 14:15:59 +03:00
[GH-ISSUE #928] Tmux issue #744
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#744
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 @TheRealRag on GitHub (Jul 21, 2016).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/928
I get this now and again have to kill TMUX to get the server to restart
http://pastebin.com/WTGswpKi
@UltimateByte commented on GitHub (Jul 21, 2016):
@JaL-P commented on GitHub (Jul 22, 2016):
I am having a very similar issue myself while running this script. The server will start up fine if I use the startup command manually (by switching into /arma3server/serverfiles/) but when using the script I get the following "tmux errror : No such files or directory.
Logs:
./arma3server start: http://pastebin.com/jKJjVNPZ
./arma3server details: http://pastebin.com/u0c0fX72
./arma3server debug: http://pastebin.com/k9131KPA
@cedarlug commented on GitHub (Jul 22, 2016):
It might be a problem with /dev/pts being mounted to your container (based on your root filesystem being a loopback device).
Does your system have any problem with starting a generic tmux session?
Just issue tmux, Then type 'exit'.
@TheRealRag commented on GitHub (Jul 25, 2016):
I now get this error, I wont run Debug because it breaks my mods......
[ .... ] Starting arma3-server: no server running on /tmp/tmux-1003/default
[ FAIL ] Starting arma3-server: Unable to start BPTanoaExile1.0Revive|Advancemods|Tanks|
http://pastebin.com/5ZsYheXv Details...
Also How do you get it to restart using a crontab? everytime i try to run it, i get errors about tmux
I've tried restart as well
my crontab
http://pastebin.com/wyZw7Nxq
@UltimateByte commented on GitHub (Jul 25, 2016):
Here is how you do crontabs : https://github.com/dgibbs64/linuxgsm/wiki/Automation
Edit :
For your other issue, i don't know. Any logs ?
@TheRealRag commented on GitHub (Jul 25, 2016):
script log
http://pastebin.com/v7Rra6gp
the console log shouldn't matter since it wont actually start the server.......
funny thing is i had it running 1 second before that happen all i did was issue the restart command
@UltimateByte commented on GitHub (Jul 25, 2016):
No server console logs generated since it fails to start ? Take note that i'm trying to help without having ever made an Arma3 server. I know more about LGSM than Arma3.
I just saw your start parameters, they seem to be on several lines. Is that an issue with pastebin's formatting, or is it really like that ?
I'd simplify the start parameters and try again to see if it's due to that first.
Starting with debug function would help too to isolate a possible issue with tmux.
@TheRealRag commented on GitHub (Jul 25, 2016):
thats a paste bin issue.. it wouldn't have a console log because it never gets to the point of the start command, it fails way before then. it had logs right before i restarted the arma server. The debug functions kills my mods, then I therefor would have to reinstall them to my box.
@dgibbs64 commented on GitHub (Jul 25, 2016):
This is definitely a problem with tmux rather than LGSM. However what is causing the issue I dont know. So you wont get much of an output from logs apart from teh error you get given from tmux. I recommend Googling the error "protocol version mismatch (client 8, server 7)" and see what comes up.
@UltimateByte commented on GitHub (Jul 25, 2016):
@dgibbs64 The problem evolved, i suppose after what Cedar said.
Now it's "no server running on /tmp/tmux-1003/default"
I'm just thinking about it : what if you got a ghost tmux session running preventing the new one from opening ?
@TheRealRag commented on GitHub (Jul 26, 2016):
I didn't have either running.
a reinstall fixes it 3rd time now.
but as far as crontabs go still doesn't work gives me an error..
this paste bin is from my mail logs from the crontabs
http://pastebin.com/bXS3BeZr doesn't make sense since I can run the command and it works...
@UltimateByte commented on GitHub (Jul 26, 2016):
Did you fix your crontabs as i suggested in the first place ?
Your syntax is not what we suggest, and all those "stop/start"... The "restart" function would be way more efficient as it does the exact same thing, but without any delay.
@TheRealRag commented on GitHub (Jul 26, 2016):
yes, I did. I attempted to use root as well and now my regular account is locked out of starting the server great.............
@UltimateByte commented on GitHub (Jul 26, 2016):
What do you mean locked out ?
Can you show your user and root cronjobs ?
Also, is it now working correctly, cronjobs appart ?
@TheRealRag commented on GitHub (Jul 26, 2016):
If I could get the server running then it would be working but since, Tried to get root to issue the command It now has locked me out of executing the ./arma3server
root cron
http://pastebin.com/V7BAei1Z
/var/spool/mail/ log
http://pastebin.com/AcBtEied
I have since deleted the user cronjob but still have the /var/spool/mail/ for said user and the cronjobs were copied and pasted from the example linked above but with my settings
http://pastebin.com/CG3vL8S1
I get this when I am the user trying to start the server..
bash-4.2$ ./arma3server start
bash: ./arma3server: Permission denied
I have all the files Chmod 777 so I know any one could execute it.
@UltimateByte commented on GitHub (Jul 26, 2016):
Your cronjobs seem fine now.
You possibly messed up permissions: Who owns arma3server and other files ?
ls -al@TheRealRag commented on GitHub (Jul 26, 2016):
Arma3server user does.. which i dont understand why it would all of a sudden say that user doesn't. if I chmod 0777 everything that has to do with the server it would allow everyone and their mother to edit/run/view so I dont see how that would change it.
@UltimateByte commented on GitHub (Jul 26, 2016):
Doesn't look like you're logged to the user, otherwise it would be something like
arma3server$ ./arma3server start@TheRealRag commented on GitHub (Jul 26, 2016):
It is logged in as arma3server.
http://pastebin.com/YGdrCqNh
Its worked 99% of the time since I started the server minus the hiccups.
@UltimateByte commented on GitHub (Jul 26, 2016):
That "-bash-4.2$" is kinda disturbing.
Show us your output of :
ls -al /home/arma3serverAnd
ls -al /home/arma3server/lgsm/functions@TheRealRag commented on GitHub (Jul 26, 2016):
I agree when it happen i was a little confused. but it ran the server so why fix something if its not broke....
ls -all
http://pastebin.com/2XJ6ixjv
lgsm functions
http://pastebin.com/NKDp3dzS
@UltimateByte commented on GitHub (Jul 26, 2016):
Well, everything seems fine in terms of permissions (except it's unsecured as fuck)
What if your user just can't run scripts anymore due to something else you did ?
Some googleing lead me to think it could be related to fstab settings.
cat /etc/fstab@TheRealRag commented on GitHub (Jul 26, 2016):
I also Added arma3server login to be a sudoer. maybe that will fix it. im having my fingers crossed. I didnt change any settings just added the root to cronjob it since the user cron would error out as well.. thinking the root would override the permission.
@UltimateByte commented on GitHub (Jul 26, 2016):
Did you try backuping your arma3server script, then remove the lgsm foler, then download arma3server again, put back your settings in it, and try again ?
Could you try to run any bash script with that user, to at least see if it can ?
If it doesn't help and you can't fix what's wrong on your system, if got nothing else installed on this machine, maybe go for a fresh system install and make sure to not break it this time. :o))
@TheRealRag commented on GitHub (Jul 26, 2016):
I mean I'm sure the datacenter I use can do that for a small fee, but from what I did, I didn't touch anything just changed permission from 0775 to 0777 which from my understanding shouldn't do such a thing like this. I may just be more of a entry level linux tech (since I am in school for network admin) but I am very confident that I didn't change anything I wasn't suppose to... maybe it was just a freak error or something. just weird how the user cronjob didnt run and would give me a error then root cron would lock me out.. I have 4 different directory with the server install already done for issues like this, all i have to do is drag and drop mods and cfgs into the base set ups to get it back online. but unfortunately I am not at home so all I can do iss ssh in and just try to figure out what the problem is.
@UltimateByte commented on GitHub (Jul 26, 2016):
I personally have never seen something like that, and it's been like 1.5 years i don't miss an issue on the github support and almost 1 year for the steam group. So i'm kinda clueless here.
As you now can't run the script for denied permission, the only thing i'm sure about is that it's not a script issue.
Anyways, did you try what i just suggested ? https://github.com/dgibbs64/linuxgsm/issues/928#issuecomment-235382092
@TheRealRag commented on GitHub (Jul 26, 2016):
Nope, im at work so I cant just focus on this, So im just going to swap to a different user and directory and just delete the dir and user and go from there. makes it easier since I already have a test server up and just make that one the main and remake a test server, and hope to see if this user can cron a restart..
@UltimateByte commented on GitHub (Aug 27, 2016):
No update for 1 month, closing.
Please, use the steam group or Discord if further help is needed.
@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.