-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script crashes every time i log out #12
Comments
When you access your server, are you sshing in as the minecraft account? When you exit, what are you doing? Just closing the putty window? |
I'm simply logging in as my user. Not root. As for exiting. I type exit in the console and I also use winscp so I just logout of that too. Thanks for the help! When you access your server, are you sshing in as the minecraft account? When you exit, what are you doing? Just closing the putty window? Reply to this email directly or view it on GitHub: |
Ok... some more detail would be great:
|
Thanks again! Ok... some more detail would be great:
Reply to this email directly or view it on GitHub: |
Please copy/paste your terminal output, from logging in, starting the server, to logging out. If you're running Ubuntu, then it should be in /etc/init.d/, and you should be able to call it by |
Login: Using username "theodore".
Mounting ramdisk: Permissions: Starting server: Loggin Out: Script Settings: /etc/init.d/minecraftBEGIN INIT INFOProvides: minecraftRequired-Start: $local_fs $remote_fsRequired-Stop: $local_fs $remote_fsShould-Start: $networkShould-Stop: $networkDefault-Start: 2 3 4 5Default-Stop: 0 1 6Short-Description: Minecraft serverDescription: Init script for minecraft/bukkit server, with rolling logs and use of ramdisk for less lag.END INIT INFOCreated by AhtenusBased on http://www.minecraftwiki.net/wiki/Server_startup_scriptSupport for multiworld by Benni-chan############################# Name of server.jar fileSERVICE="craftbukkit.jar" Name to use for the screen instanceSCREEN="minecraft" User that should run the serverUSERNAME="theodore" Path to minecraft directoryMCPATH="/home/${USERNAME}/minecraft" Number of CPUs/cores to useCPU_COUNT=1 Initial memory usageINITMEM="1024M"Maximum amount of memory to useMAXMEM="2G" Remember: give the ramdisk enough space, subtract from the total amountof RAM available the size of your map and the RAM-consumption of your base system.INVOCATION="java -Xincgc -Xmx$MAXMEM -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=$CPU_COUNT -XX:+AggressiveOpts -jar $SERVICE nogui" Where the world backups should goBACKUPPATH="/home/${USERNAME}/minebak" Where the logs are copied with log-rollLOGPATH="${MCPATH}/logs" Where the whole minecraft directory is copied when whole-backup is executedWHOLEBACKUP="/home/${USERNAME}/serverbak" Where the worlds are located on the disk. Can not be the same as MCPATH.WORLDSTORAGE="${MCPATH}/worldstorage" Path to the the mounted ramdisk default in Ubuntu: /dev/shmRAMDISK="/tmp/ramdisk0" use tar or zip files for world backupBACKUPFORMAT="tar" Thanks! -----Original Message----- Please copy/paste your terminal output, from logging in, starting the server, to logging out. If you're running Ubuntu, then it should be in /etc/init.d/, and you should be able to call it by Reply to this email directly or view it on GitHub: |
ah yes and here is the error message I see when I reconnect to the screen after exiting the ssh session and reentering: 2011-10-01 22:43:23 [INFO] Starting minecraft server version Beta 1.8.1 Thanks, -----Original Message----- Please copy/paste your terminal output, from logging in, starting the server, to logging out. If you're running Ubuntu, then it should be in /etc/init.d/, and you should be able to call it by Reply to this email directly or view it on GitHub: |
I saw you mentioned running the script as sudo. Well i just tried that and it didnt make any difference. Though is this script made to be run in uhup or a screen, apart of course from the server.jar? |
It is meant to be run exactly as you are running it - by calling /etc/init.d/minecraft start cd /home/theodore/minecraft/ Do you see where this comes from in the script? EDIT: I forgot to change the CPU_COUNT It should kick off a screen session in the background, just like the script is intended to do. Try bringing up the screen, and then hiding it again. Start another concurrent session up, and do a tail -f /home/theodore/minecraft/server.log More possibly helpful questions: |
Okay I followed your instructions, and I can tell you that when viewing the As for the revision to the INVOCATION variable in the script, yes I made Thanks, -----Original Message----- It is meant to be run exactly as you are running it - by calling cd /home/theodore/minecraft/ Do you see where this comes from in the script? It should kick off a screen session in the background, just like the script More possibly helpful questions: Reply to this email directly or view it on GitHub: |
Did it crash after logging out of both sessions when you ran the command manually? Also, it's generally a good idea to star our your IP addresses (at least your public ones), or at least the last 2 or 3 octets. Otherwise some jerk-off will know what server version you're running at what ip with what software, and might decide to be an asshole. You never know. |
When I logged out of the second session it crashed as well. I was thinking, I don’t run ramdisk on /dev/shm. Instead like I showed -----Original Message----- Did it crash after logging out of both sessions when you ran the command Reply to this email directly or view it on GitHub: |
Okay, I finally got it to work.... So, since I had a feeling the prob had to do with my username (its use in I suppose I should thank you for all your time and effort into solving my -----Original Message----- Did it crash after logging out of both sessions when you ran the command Reply to this email directly or view it on GitHub: |
You're right! I totally missed that for some reason. I putting the mountpoint in /tmp might be the problem, but either way I don't see the reason for it. Why not just mount it in the same server folder so everything is in one place? |
Hmm well how would you personally go about mounting the ramdisk for the script. Because the instructions on github were rather vague about the ramdisk stuff. You're right! I totally missed that for some reason. I putting the mountpoint in /tmp might be the problem, but either way I don't see the reason for it. Why not just mount it in the same server folder so everything is in one place? Reply to this email directly or view it on GitHub: |
I just put symlinks called world and world_nether to corresponding folder in the already mounted ramdisk at /dev/shm. I would only recommend mounting in the sever folder for organizational reasons - it won't run any faster or slower. The real issue that will effect your speed is actually using the ramdisk by putting your worlds, or some other disk-intensive data on there. The extra mounting of another ramdisk is unnecessary. Example of what I would do: |
Alright, thanks for the info. Now, I wanted to make a feature request that you could probably add within -----Original Message----- I just put symlinks called world and world_nether to corresponding folder in I would only recommend mounting in the sever folder for organizational Example of what I would do: Reply to this email directly or view it on GitHub: |
Last I checked, this script already does that - either that or I'm misunderstanding what you're asking. As for the feature request, I'll take a gander at it, but it's up to Ahtenus to toss it in or not. You can always start your own fork and give it a go! There are many forks of this script (including one of my own), so be sure to check them out - maybe somebody has already implemented the feature you want! |
Hi i was hoping you could help me with my problem. I have gotten the script running well, though I access my server with putty through ssh. Everytime i log out of ssh while server is running, it crashes and just stops working. I have tried running it in a screen as well as nohup to no avail. PLEASE HELP ME ive been struggling with this for days now. Thanks!
The text was updated successfully, but these errors were encountered: