Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Cant start server in linux

#1
Bug 
Im having a hell of a time setting up a dedicated server in linux! I have moved the config to the right place and moved the startup script to the right place. When I boot up the server I keep getting the error saying the file has not been moved, when it has. What should I do?
Reply

#2
Be sure, that xonotic folder and server_linux.sh are in correct user. I had once same problem coz started server as root=)
Reply

#3
xxen0nxx, can you please tell me where you got Xonotic, where exactly it's located and where you moved the files? I have to ask you for details because there is obviously something wrong with the location of the files and I can't guess what if I don't know what exact steps you followed to get this problem.

Vargos: I don't think your comment is general. I don't know what you did, but following the instructions from the docs should let you run the server as root just fine. But running it as root is a bad idea anyway, so don't do that Tongue
Reply

#4
I got Xonotic from the website download. I had put the server.cfg into the ~/Xonotic/data folder and the sh file in ~/Xonotic
Reply

#5
And where did you extract Xonotic? In your home directory?
Reply

#6
yes
Reply

#7
Bougo, same to ur comments.
Meaning of my message wuz that if you put xonotic in home/user and then start it as a root command try to look up sh in root folder

xxen0nxx: do you use sh /home/username/Xonotic/server_linux.sh ?
Reply

#8
xxen0nxx, which error do you get? As far as I know, there are two possible related errors that can be displayed when running the server.
Reply

#9
I keep getting this even though I have done what it says to do.

This script is not properly set up yet.
Please refer to the instructions in readme.txt.
In short:
- copy server.cfg to the data directory and adjust its settings
- move this file to the main directory of your Xonotic installation
Reply

#10
Okay, have a look inside the server_linux script:
Code:
#!/bin/sh

case "$(uname -m)" in
  x86_64)       executable="xonotic-linux64-dedicated" ;;
  *)            executable="xonotic-linux32-dedicated" ;;
esac

cd "`dirname "${0}"`"

if ! [ -x "$executable" ]; then
        if [ -x "../$executable" ] && { [ -f ~/.xonotic/data/server.cfg ] || [ -f ../data/server.cfg ]; }; then
                cd ..
        else
                echo "This script is not properly set up yet."
                echo "Please refer to the instructions in readme.txt."
                echo "In short:"
                echo "- copy server.cfg to the data directory and adjust its settings"
                echo "- move this file to the main directory of your Xonotic installation"
                exit 1
        fi
fi

exec ./${executable} +serverconfig server.cfg "${@}"

Do you have an executable file called xonotic-linux32-dedicated (or linux64 if uname -m returns x86_64) in the same directory as server_linux.sh? That is, ~/Xonotic/xonotic-linux32-dedicated if you have ~/Xonotic/server_linux.sh . The script thinks you do not.

Maybe you can add a line just after the cd dirname one that just says pwd? That will tell you where it's looking for the xonotic-linux32-dedicated file.
Reply

#11
O_o i got a output that was ~/Xonotic so its looking in the right dir. I also have the executable in the right place.

ok i fixed that issue with chmod +x but that arose to another issue. Now when I run the sh script i get Segmentation Fault.
Reply

#12
Wow, okay.

It's supposed to be executable, so something must have gone wrong when you extracted the game. Can you checksum the release zip archive you downloaded?
Code:
openssl md5 xonotic-0.6.0.zip
should return
Quote:MD5(xonotic-0.6.0.zip)= 2dac2c1ad4388255d3ad4d038dea3f77

If you get the right checksum, try extracting it again (using the unzip command).
Reply

#13
yes! got it working. Thanks alot!
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [NEED HELP] Setup Dedicated Server to DL from Map Server mrhip 1 839 10-16-2023, 06:22 AM
Last Post: Freddy
  [NEEDS INFO] Xonotic settings file on linux ArchBerrie 2 5,553 07-15-2021, 03:18 AM
Last Post: ArchBerrie
  [NEED HELP] cant start the game/ session lock problem skyghost47 1 3,832 10-24-2020, 11:50 PM
Last Post: BuddyFriendGuy
  USB Mouse input on Linux dagelf 1 2,512 10-07-2020, 06:14 PM
Last Post: BuddyFriendGuy
  [NEEDS INFO] Corsair Strafe input lag in Linux Mint? FAF 1 1,868 08-18-2019, 03:14 AM
Last Post: FAF
  [NEED HELP] Missclick on Linux Mint Mate 19 RanDoom 4 3,653 04-23-2019, 01:41 PM
Last Post: RanDoom
  [NEEDS INFO] Linux install Old_Geekdad 7 5,456 01-16-2019, 06:03 PM
Last Post: Zoommair
  [NEED HELP] Unabel to start xonotic in xubuntu 18.04 prateekgs555 0 2,000 12-24-2018, 09:42 PM
Last Post: prateekgs555
  [NEED HELP] XUbuntu playing with drivers and now Xonotic doesn't start Bla1 9 7,135 05-15-2018, 09:29 PM
Last Post: Bla1
Exclamation [SOLVED] Graphics issues on Intel Kaby Lake (HD630) hardware on Linux cefiar 9 10,354 04-19-2018, 02:42 AM
Last Post: cefiar

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-