1. When making a thread, please tag your thread accordingly using the menu to the left of the textfield where you name your thread where applicable. Server Advertisements and Mod Releases should be contained to their respective subforums.

Server Help Dedicated linux server

Discussion in 'Multiplayer' started by Mastah, Dec 5, 2013.

  1. HomelessPat

    HomelessPat Yeah, You!

    I managed to get it going on Debian 6 by doing the following:

    wget http://ftp.altlinux.org/pub/distrib...6/RPMS.classic/libstdc++6-4.7.2-alt7.i586.rpm
    alien -i libstdc++6-4.7.2-alt7.i586.rpm
     
  2. Daeval

    Daeval Aquatic Astronaut

    I get the following fatal exception error:

    Code:
    Info: Done loading Star::Root.
    Info: Server version 'Beta v. Irritated Koala' '616' '418'
    Info: Shutting down Star::Root
    Error: Fatal Exception Caught: ConfigurationException: No such configuration entry 'upnpPortForwarding'
    ./starbound_server(_ZN4Star13StarExceptionC2ERKSs+0xe7) [0x867dd47]
    ./starbound_server() [0x8183639]
    etc...
    
    I've poked around in the server config and this line doesn't seem to be there. Adding it did nothing. This is on Ubuntu, maybe a year old install now.

    Any ideas? Much appreciated!
     
  3. Leonick

    Leonick Master Chief

    Thanks. Didn't know about SteamCMD. Was a lot faster when I got it working. Definitely makes installing updates a lot easier.
     
  4. sneppid

    sneppid Yeah, You!

    I had issues with outdated versions of gcc, not ssl, which is weird. But if you're running Debian 6 and for whatever reason can't or don't want to upgrade, you can acquire the relevent library versions without any of the headaches associated with messing with experimental apt-get sources. It is worth noting that one of the source lists in the distribution has since updated its domain name from debian-multimedia to http://www.deb-multimedia.org/ – doing an apt-get upgrade after modifying this worked a treat for ssl etc.

    If you're still having libgcc errors, grab the relevant version from http://ftp.de.debian.org/debian/pool/main/g/gcc-4.7/ (I used http://ftp.de.debian.org/debian/pool/main/g/gcc-4.7/libstdc 6_4.7.2-5_i386.deb for x86), unpack (dpkg -x) the .deb and move the two files into /usr/lib, then modify your launch_starbound_server.sh thusly:

    Code:
    LD_LIBRARY_PATH=/usr/lib ./starbound_server
    Server will now launch no problem.

    Just as a note if you're migrating a universe from Mac/PC/elsewhere, you're going to want to modify a couple of vars in default_configuration.config to make sure new characters on your server end up on the same planet/system.

    Code:
      "useDefaultWorldCoordinate" : true,
      "defaultWorldCoordinate" : "alpha:-xxxxxx:-xxxxxx:-xxxxxx:xx:x",
    Obviously using the actual coordinates from your home .world filename, otherwise your buddies are going to find themselves above a completely random planet potentially lightyears from your homeworld. And noone wants that!
     
    Last edited: Dec 6, 2013
  5. sneppid

    sneppid Yeah, You!

    These should be the server binaries -- 200 odd MB, starbound_server and 300 odd mb starbound (though doubt that gets used). I just uploaded these (linux 32) plus the assets folder and it's been working fine!

    (I personally feel that installing it as a service is a bit premature during a development beta, but hey! Horses for courses. Nothin supervise can't handle.)

    p.s. how do I turn off emoticons, super annoying :p
     
    Last edited: Dec 6, 2013
  6. Mithaldu

    Mithaldu Orbital Explorer

    Ack, didn't expect such a quick reply. Turns out i had them but for some reason the git package i made for upload to server had decided to ignore them. :)
     
  7. sneppid

    sneppid Yeah, You!

    Sorry about the mega edits too haha, caffeine. Great, glad you found them!
     
  8. Zalamander

    Zalamander Space Hobo

    Hello, my first post here and kinda novice in linux too but I have tried to give it a shot at running my server after all. But after a seasoned sysadmin told me he had no idea what was wrong I hope I can ask here without embaressing my self about whats wrong, bare with me. :)

    Running Ubuntu Server 12.04 64bit.

    Tried starting the server through "/etc/init.d/starbound start" Gets "* Starting starbound server Starbound ...done."
    Trying status, gets " * starbound is not running"

    Tried running launch_starbound_server.sh directly to see what errors I get, aaand I get confused. Something with it cant make a log file or there is an error but it cant write it to a log file?

    Code:
    ./opt/starbound/bin/launch_starbound_server.sh
    Info: Creating Star::Root with 1 assets sources and config file: './starbound.config'
    Info: Loading Star::Assets from: '../assets'
    Info: Shutting down Star::Root
    Error: Fatal Exception Caught: StarException: Cannot open FileLogSink with filename ./starbound_server.log
    ./starbound_server(_ZN4Star13StarExceptionC2ERKSs+0xfe) [0xa57e2e]
    ./starbound_server(_ZN4Star11FileLogSinkC1ERKNS_6StringENS_6Logger5LevelE+0x18c) [0x9ee63c]
    ./starbound_server(_ZNSt23_Sp_counted_ptr_inplaceIN4Star11FileLogSinkESaIS1_ELN9__gnu_cxx12_Lock_policyE2EEC2IJNS0_6StringENS0_6Logger5LevelEEEES2_DpOT_+0x44) [0x562db4]
    ./starbound_server(_ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IN4Star11FileLogSinkESaIS5_EINS4_6StringENS4_6Logger5LevelEEEESt19_Sp_make_shared_tagPT_RKT0_DpOT1_+0x4c) [0x562e1c]
    ./starbound_server(_ZNSt12__shared_ptrIN4Star11FileLogSinkELN9__gnu_cxx12_Lock_policyE2EEC2ISaIS1_EJNS0_6StringENS0_6Logger5LevelEEEESt19_Sp_make_shared_tagRKT_DpOT0_+0x2b) [0x562e8b]
    ./starbound_server() [0x559e58]
    ./starbound_server() [0x507086]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f626547876d]
    ./starbound_server() [0x50b17d]
    
    I hope its just some really simple linux mistake I made :S
     
  9. Jansen

    Jansen Aquatic Astronaut

    Looks like the starbound user is not allowed to create a logfile in /opt/starbound/bin/

    try (as root)
    Code:
    chown starbound /opt/starbound/bin/
    chmod 755 /opt/starbound/bin/
    
     
  10. Zalamander

    Zalamander Space Hobo

    Oh cheers now its says running on status. :) is there anything that can be done from terminal to aministrate it or thats it? :)

    Oh well the happiness didn't last that long, now I got the same issue as Daeval up there also running ubuntu. :<

    Code:
    Info: Done loading Star::Root.
    Info: Server version 'Beta v. Irritated Koala' '616' '418'
    Info: Shutting down Star::Root
    Info: Writing Star::Configuration to './starbound.config'
    Error: Fatal Exception Caught: ConfigurationException: No such configuration entry 'upnpPortForwarding'
    /opt/starbound/bin/starbound_server(_ZN4Star13StarExceptionC2ERKSs+0xfe) [0xa58e4e]
    /opt/starbound/bin/starbound_server() [0x52cff1]
    /opt/starbound/bin/starbound_server(_ZNK4Star13Configuration3getERKNS_6StringE+0x96) [0x52c3c6]
    /opt/starbound/bin/starbound_server(_ZNK4Star13Configuration7getBoolERKNS_6StringE+0x26) [0x52c646]
    /opt/starbound/bin/starbound_server() [0x50734f]
    /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7fd5f84a776d]
    /opt/starbound/bin/starbound_server() [0x50b35d]
    
     
    Last edited: Dec 6, 2013
  11. Jansen

    Jansen Aquatic Astronaut

    afaik there are only some ingame commands...
     
  12. heliefkarmenar

    heliefkarmenar Space Hobo

    I am trying to run the script launch_starbound_server.sh from inside the bin directory but the assets aren't loading correctly and it's throwing an error.
    I have the correct permissions on the asset folder for it to be accessed by the user that's running the script and it's in the right place ( " ../assets " from the launch_starbound_server.sh script would get into the assets folder). Here is the output I get when running " ./launch_starbound_server.sh " :

    Code:
    antoine@Gaming:~/StarBound$ ./bin/launch_starbound_server.sh
    Info: Creating Star::Root with 1 assets sources and config file: './starbound.config'
    Info: Loading Star::Assets from: '../assets'
    Info: Loading Star::Root...
    Info: Loading Star::Configuration from './starbound.config'
    Warn: Slow asset 0.085 : /treasure/basictreasure.treasurepools
    Warn: Slow asset 0.09 : /treasure/default.treasurepools
    Error: Could not load /tiles/materials/rock03.material asset, attempting to use default.
    AssetException: Could not read variant asset /tiles/materials/rock03.material
    ./starbound_server(_ZN4Star13StarExceptionC1ERKSsRKSt9exception+0x126) [0xa595d6]
    ./starbound_server() [0x609655]
    ./starbound_server() [0x6096c4]
    ./starbound_server() [0x601c1a]
    ./starbound_server() [0x6020cf]
    ./starbound_server() [0x609ae3]
    ./starbound_server() [0x60aa85]
    ./starbound_server() [0x60d5ad]
    ./starbound_server() [0xa63e21]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) [0x7f18f5417e9a]
    /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f18f472e3fd]
    
    caused by: JsonParsingException: Cannot parse json file: /tiles/materials/rock03.material
    ./starbound_server(_ZN4Star13StarExceptionC1ERKSsRKSt9exception+0x126) [0xa595d6]
    ./starbound_server() [0x603032]
    ./starbound_server() [0x609566]
    ./starbound_server() [0x6096c4]
    ./starbound_server() [0x601c1a]
    ./starbound_server() [0x6020cf]
    ./starbound_server() [0x609ae3]
    ./starbound_server() [0x60aa85]
    ./starbound_server() [0x60d5ad]
    ./starbound_server() [0xa63e21]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) [0x7f18f5417e9a]
    /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f18f472e3fd]
    
     
    Last edited: Dec 6, 2013
  13. sneppid

    sneppid Yeah, You!

    The latest update introduced a new server variable in the default config – if you're using your old config this error will occur and crash the server.

    Just add it in.
     
  14. EinSof

    EinSof Void-Bound Voyager

    I don't have the directory /var/run/starbound/ nor the starbound.pid. It isn't in the starbound server directory either.

    I'm using ubuntu 12.10 64bit. Where can I find the pid file?
     
  15. Jansen

    Jansen Aquatic Astronaut

    Just create the directory. The pid file will be automatically created when you start the server.
     
  16. joeka

    joeka Tentacle Wrangler

    It doesn't.
    You don't need the music/sound assets ( more than 622MB ). You can't exclude the graphics though, because they are loaded even on the server.
    Besides the assets, you don't need the client binary ( 313MB ).

    I use this script to update my server. It is only about 380MB this way.
     
    Last edited: Dec 9, 2013
    dwi likes this.
  17. Leonick

    Leonick Master Chief

    Nice. Think I'll have to install cygwin again so I can use that :p

    SteamCMD was fast the first time I used it but now for some reason it's slower than most snails... The VPS has not problems downloading other files at over 15Mb/s but it takes ages to even get 1% of the update in SteamCMD. Don't suppose anyone have a clue as to why SteamCMD would become so slow or how to fix it?
     
  18. Drakythe

    Drakythe Void-Bound Voyager

    I am also getting ridiculously slow downloads over SteamCMD, whereas typically I peak out at around 5Mb/s on this same pipe, SteamCMD took 20 minutes to download 2 percent of the game files. I finally reverted to scp because rsync is freaking out on OSX for some reason...
     
  19. oldschool

    oldschool Space Hobo

    Hi,

    its an old thread, but i didn`t found a better hint, to make starbound start with my linux box.

    I just tried to install the script on my Ubuntu 14.04.3 LTS server and ran into some problems.

    The main problem is, that chucklefish decided to change there config file behaviour - see here:


    Code:
    community.playstarbound.c*m/threads/linux-server-binary-wont-run-with-absolute-path.87386/
    remarks: change * to o in above link.

    I had to add the chdir command to the start-stop-daemon command:
    Code:
    start-stop-daemon --start --make-pidfile --pidfile $PID --chuid $USER --chdir /home/steam/steamcmd/starbound/linux64/ --exec $DAEMON -- $DAEMON_OPTS > /dev/null &
    If you followed this setup guide

    Code:
    starbounder.*rg/Guide:LinuxServerSetup 
    remarks: change * to o in above link.

    and run an ubuntu version similar to mine copy the below code to a file (paste into nano):
    nano /etc/init.d/starbound

    Give it run rights:
    chmod 755 /etc/init.d/starbound

    Make the necessary entries for automatic startup:
    update-rc.d /etc/init.d/starbound defaults

    Create Backuppath:
    mkdir /mnt/backup/starbound/

    Create path for PID :
    mkdir /var/run/starbound/

    Enable daily backup at midnight:

    run as root command
    crontab -e

    and enter (choose nano, if asked for editor):

    Code:
    # daily backup at midnight
    0  0  * * *  /etc/init.d/starbound backup
    

    Code:
    #!/bin/sh
    
    ### BEGIN INIT INFO
    # Provides:      starbound
    # Required-Start:    $local_fs $remote_fs $network $syslog $named
    # Required-Stop:    $local_fs $remote_fs $network $syslog $named
    # Default-Start:    2 3 4 5
    # Default-Stop:      0 1 6
    # Short-Description: starts the starbound server
    # Description:      starts starbound using start-stop-daemon
    ### END INIT INFO
    
    LD_LIBRARY_PATH=/home/steam/steamcmd/starbound/
    PID=/var/run/starbound/starbound.pid
    # Server BIN
    DAEMON=/home/steam/steamcmd/starbound/linux64/starbound_server
    # Name of process
    NAME=Starbound
    # Desc of process
    DESC="starbound server"
    # User used to run the process (do not use root)
    USER=steam
    #Backup Path ( Create a directory for backup )
    BACKUPPATH=/mnt/backup/starbound/
    #Game path ( The path for locate the universe folder )
    SBPATH=/home/steam/steamcmd/starbound/giraffe_storage/
    
    ME=`whoami`
    as_user() {
      if [ "$ME" == "$USER" ] ; then
        bash -c "$1"
      else
        su - $USER -c "$1"
      fi
    }
    
    
    # test exec
    test -x $DAEMON || exit 0
    
    set -e
    
    . /lib/lsb/init-functions
    
    
    start() {
            # start the server
                    start-stop-daemon --start --make-pidfile --pidfile $PID --chuid $USER --chdir /home/steam/steamcmd/starbound/linux64/ --exec $DAEMON -- $DAEMON_OPTS > /dev/null &
    }
    
    stop() {
            # gracefully stop the server
            start-stop-daemon --stop --signal INT --pidfile $PID --chuid $USER --oknodo --exec $DAEMON
    }
    case "$1" in
            start)
                    log_daemon_msg "Starting $DESC" "$NAME"
                    start
                    log_end_msg $?
                    ;;
    
            stop)
                    log_daemon_msg "Stopping $DESC" "$NAME"
                    stop
                    log_end_msg $?
                    ;;
            backup)
                    echo "Backing up Starbound universe"
      if [ -d $BACKUPPATH/universe_`date "+%m.%d.%Y"` ]
      then
        for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
        do
          if [ -d $BACKUPPATH/universe_`date "+%m.%d.%Y"`-$i ]
          then
            continue
          else
            as_user "cd $SBPATH && cp -r universe $BACKUPPATH/universe_`date "+%m.%d.%Y"`-$i"
            break
          fi
        done
      else
        as_user "cd $SBPATH && cp -r universe $BACKUPPATH/universe_`date "+%m.%d.%Y"`"
        echo "Backed up universe"
      fi
          echo "Backup complete"
              ;;
            restart)
                    log_daemon_msg "Restarting $DESC" "$NAME"
                    stop
                    sleep 1
                    start
                    log_end_msg $?
                    ;;
    
            status)
                    status_of_proc -p $PID "$DAEMON" starbound
                    ;;
    
            *)
                    echo "Usage: $NAME {start|stop|backup|restart|status}" >&2
                    exit 1
                    ;;
    esac
    
    exit 0
    
     
    Last edited: Aug 19, 2015

Share This Page