Aki Posted January 24, 2017 Share Posted January 24, 2017 Script for quick server deployment on linux-based operating system. Tested on Ubuntu 16.04, 14.04. I don't feel like this forum's category is right for it, but eh... I could only choose between Modding and Troubleshooting. Later is for game and server software and the "guide" seems fitting but on the other hand "modding" and "custom server script" seems to go well, too. Feel free to move this thread to Troubleshooting if it seems more appropriate there. If you have successfully run this script on any os that is not listed above then tell me, so we can expand this list together. Any suggestions are welcome, I will try to improve this script in my free time. Enjoy. You don't need to own Avorion on Steam to use this. [*]Make sure that you have dependencies installed: lib32gcc1 (for steamcmd), tmux [*]Create new user and switch to it: sudo adduser avorion sudo su - avorion [*]Download manager (open in browser if you want to verify content): wget https://aki.ovh/dl/manager [*]Make manager executable: chmod +x manager [*](optional) Open manager in favourite text editor and verify config. [*]Install steamcmd and Avorion Server: ./manager install [*]If installation is successful then you can launch server: ./manager start [*]Check help for more commands: ./manager help FAQ: Q: How do I see server's console and use commands? A: Attach to it with ./manager attach. Q: How do I safely detach from server's console? A: Press Ctrl+B and then D. Q: I have a "steamclient.so: wrong ELF class: ELFCLASS32" error! A: Copy steamclient.so from linux64 to server's root. For default configuration: cd serverfiles cp linux64/steamclient.so . Q: Installation/update is stuck in a loop! A: Press Ctrl+C to stop it, then check for errors. If you can't solve them try posting them here. Link to comment Share on other sites More sharing options...
Kane Hart Posted January 24, 2017 Share Posted January 24, 2017 Nice. Are you planning on including any special scripts/tools for like auto reboot on crash or if the process locks up at 100% cpu over a certain time? Link to comment Share on other sites More sharing options...
Aki Posted January 24, 2017 Author Share Posted January 24, 2017 Yes, I want to make something to monitor server status and restart it if needed. I think I should have time to add at least crash handling this week. It is literally few lines but still, sigh. Link to comment Share on other sites More sharing options...
Kane Hart Posted January 24, 2017 Share Posted January 24, 2017 Cool I might give it a shot then. I'm just using tiny sh script I had for my MC server ages ago for crash handling now and a third party script that runs in the background kills tasks that reach a certain cpu amount but it's sadly false positives killing sometimes :P Link to comment Share on other sites More sharing options...
Aki Posted January 27, 2017 Author Share Posted January 27, 2017 Cleaned up everything a bit and made some improvements for restarting and scheduled breaks. Link to comment Share on other sites More sharing options...
Runningman Posted February 1, 2017 Share Posted February 1, 2017 Thanks for the great startup script. You should add that "tmux" program has to be installed before starting the "manager". On Ubuntu it's: apt-get install tmux I had installed steamcmd and avorion server prior to using your script. But "manager" works, except that steam-based networking has issues: Wed Feb 1 13:16:00 2017| Enabled Traces: Wed Feb 1 13:16:00 2017| Avorion server Beta 0.10.2 r7392 running on Ubuntu 16.04.1 LTS starting up in "/home/steam/.avorion/galaxies/avorion_galaxy" Wed Feb 1 13:16:00 2017| CPU: Intel(R) Xeon(R) CPU E5-2640 v3 @ 2.60GHz 4 Cores Wed Feb 1 13:16:00 2017| name: Zeus Wed Feb 1 13:16:00 2017| seed: H5ZifblM9d Wed Feb 1 13:16:00 2017| port: 27000 Wed Feb 1 13:16:00 2017| max online players: 10 Wed Feb 1 13:16:00 2017| save interval: 600 Wed Feb 1 13:16:00 2017| broadcast interval: 5 Wed Feb 1 13:16:00 2017| max loaded sector time: 300 Wed Feb 1 13:16:00 2017| weak update: yes Wed Feb 1 13:16:00 2017| worker threads: 4 Wed Feb 1 13:16:00 2017| difficulty: Beginner Wed Feb 1 13:16:00 2017| infiniteResources: no Wed Feb 1 13:16:00 2017| collision: 1 Wed Feb 1 13:16:00 2017| access list: Blacklist Wed Feb 1 13:16:00 2017| public: yes Wed Feb 1 13:16:00 2017| authentication: yes Wed Feb 1 13:16:00 2017| listed: yes Wed Feb 1 13:16:00 2017| steam networking & authentication: yes Wed Feb 1 13:16:00 2017| administrators: 'admin' Wed Feb 1 13:16:00 2017| Warning: Command status has not been assigned to a user group. Wed Feb 1 13:16:00 2017| Starting up 4 worker threads. Wed Feb 1 13:16:00 2017| SteamGameServer_Init call failed Wed Feb 1 13:16:00 2017| Error starting steam-based networking. Defaulting to standard TCP/UDP protocols. Wed Feb 1 13:16:00 2017| Further steam-related error messages can be safely ignored. My PARAMS variable looks like this: PARAMS='--admin 12345678901234567 --difficulty -3 --server-name Zeus --public true --listed true --use-steam-networking true --same-start-sector false --threads 4' Any idea what the problem is ? Link to comment Share on other sites More sharing options...
Aki Posted February 1, 2017 Author Share Posted February 1, 2017 You should add that "tmux" program has to be installed before starting the "manager". It is there already, though. In first step. Any idea what the problem is ? I haven't ran into this issue, but did you try running it without manager? Does the same issue occur? If yes, did you try validating server files with steamcmd? Check if server's root has steamclient.so and steam_appid.txt. Check if bin/ has libsteam_api.so (more likely client issue rather than api, but still try it). Link to comment Share on other sites More sharing options...
Runningman Posted February 1, 2017 Share Posted February 1, 2017 Was a steamclient.so issue, got it reloved. thanks. Link to comment Share on other sites More sharing options...
knova Posted February 12, 2017 Share Posted February 12, 2017 I registered just to make this post! I just wanted to say thank you, this simplifies everything. I had some trouble transferring files from an existing Windows dedicated server over to this Linux build, which I found odd. Luckily my friends and I were only a day in so we decided to start over. I don't think it has anything to do with this script per se, just thought it was worth mentioning. Also worth mentioning: I have this server running on an Amazon EC2 instance (Ubuntu) and it works flawlessly. I'm going to write up a small guide on how to get it going but it should be as simple as generating the instance on the AWS dashboard, logging in, and running the steps in the first post. AWS free tier gives you 750 hours a month to run your instances, so if this is the only server you run, you will never exceed that (only 744 hours in a month max). Link to comment Share on other sites More sharing options...
Retromann Posted February 20, 2017 Share Posted February 20, 2017 Thanks for your awesome script! It helped me alot! Is there a way to include access to the "beta" Channel? Link to comment Share on other sites More sharing options...
Aki Posted February 20, 2017 Author Share Posted February 20, 2017 Thanks for your awesome script! It helped me alot! Is there a way to include access to the "beta" Channel? Change line 83 from: $STEAM_DIR/steamcmd.sh +login anonymous +force_install_dir ${INSTALL_DIR} +app_update ${APPID} validate +quit to: $STEAM_DIR/steamcmd.sh +login anonymous +force_install_dir ${INSTALL_DIR} +app_update ${APPID} -beta beta validate +quit Link to comment Share on other sites More sharing options...
Timmeynator Posted March 22, 2017 Share Posted March 22, 2017 -------------Edit: I'm an idiot-------------------- Issue is fixed. ./manager update did the trick. So for anyone installing through the same method. Don't update through steamcmd, just use ./manager update --------------------------------------------------- First of all, great work with the script it. However I'm having an issue which I'm unable to resolve as of yet. My client has been updated to 0.11, but I'm unable to do the same for the server edition, and it stays stuck at version 0.10.2. When I login to steamcmd and update "app_update 565060 -beta beta validate" it states I'm already up to date. It makes no difference if I'm logged in anonymously or with my steam account. Does anyone have the same issue or is this just me? I've posted a similar question at: https://www.avorion.net/forum/index.php?topic=2694.0 but I don't know whether the fault is due to installing via this script or something else. Any help is greatly appreciated. Link to comment Share on other sites More sharing options...
Aki Posted March 23, 2017 Author Share Posted March 23, 2017 -------------Edit: I'm an idiot-------------------- Issue is fixed. ./manager update did the trick. So for anyone installing through the same method. Don't update through steamcmd, just use ./manager update --------------------------------------------------- First of all, great work with the script it. However I'm having an issue which I'm unable to resolve as of yet. My client has been updated to 0.11, but I'm unable to do the same for the server edition, and it stays stuck at version 0.10.2. When I login to steamcmd and update "app_update 565060 -beta beta validate" it states I'm already up to date. It makes no difference if I'm logged in anonymously or with my steam account. Does anyone have the same issue or is this just me? I've posted a similar question at: https://www.avorion.net/forum/index.php?topic=2694.0 but I don't know whether the fault is due to installing via this script or something else. Any help is greatly appreciated. If you want to access beta version and use manager at the same time it would be the best to change line 83 from: $STEAM_DIR/steamcmd.sh +login anonymous +force_install_dir ${INSTALL_DIR} +app_update ${APPID} validate +quit to: $STEAM_DIR/steamcmd.sh +login anonymous +force_install_dir ${INSTALL_DIR} +app_update ${APPID} -beta beta validate +quit I'm planning to finally add that to config section but I still don't have time to do it the way I want. Link to comment Share on other sites More sharing options...
Devious Posted March 23, 2017 Share Posted March 23, 2017 I've also found that when updating and validating, modded files are left untouched. This caused for some weird bugs over the last patches, after doing a clean re-install of the game and mods they have been resolved. Link to comment Share on other sites More sharing options...
Klez Posted July 25, 2017 Share Posted July 25, 2017 Hello I keep getting this error when trying to install Avorion in Ubuntu 16.04 through this manager script but I am pretty sure it has more to do with steamcmd then anything. [Manager]: steamcmd will now perform an update. /home/avorion/steamcmd/steamcmd.sh: line 29: /home/avorion/steamcmd/linux32/steamcmd: No such file or directory [EDIT] Nevermind I could have sworn I installed libgcc1 but I guess I did not. Thanks for even looking :) Link to comment Share on other sites More sharing options...
Brato Posted October 20, 2017 Share Posted October 20, 2017 hi when i try ./manager start comes: [Manager]: AvorionServer is already running! but when i try ./manager status comes [Manager]: AvorionServer is not running. and with ./manager stop [Manager]: AvorionServer is not running currently! Link to comment Share on other sites More sharing options...
CommYutzy Posted December 10, 2017 Share Posted December 10, 2017 hi when i try ./manager start comes: [Manager]: AvorionServer is already running! but when i try ./manager status comes [Manager]: AvorionServer is not running. and with ./manager stop [Manager]: AvorionServer is not running currently! Install tmux (sudo apt-get install tmux) Link to comment Share on other sites More sharing options...
Rinjuu Posted January 22, 2018 Share Posted January 22, 2018 hi when i try ./manager start comes: [Manager]: AvorionServer is already running! but when i try ./manager status comes [Manager]: AvorionServer is not running. and with ./manager stop [Manager]: AvorionServer is not running currently! Install tmux (sudo apt-get install tmux) Hello, i have Debian 8 and have the same issue, but i already installed tmux. tmux is working too. Does someone know what the problem is? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now