I just wanted to chip in and offer my impressions of AllGamer's services. I've had a server with them for some time now (specifically since April of 2011), and I have been extrelemy pleased with their service on nearly all levels. There was one small episode of downtime which was poorly communicated, but ever since that incident, there have been no surprises, and their support personnel are extremely helpful and responsive to every inquiry I have made of them. I can recommend their VPS services without hesitation, and, though I have no experience with their other services, can only imagine that their top-shelf standards of service are in-place across their entire line of offerings.
anywho how do i make it so i can close my terminal window? theres kinda no point in hosting it from vps when you need to leave your own computer in shell
Make sure DISPLAY_ON_LAUNCH is set to 0. This is on line 16 of the current version of the script.
Ok you will need to install httpd and may as chuck in php
I'm all for helping folk out, but might I gently suggest further assistance be taken to another thread relevant to web or image hosting? Other people with similar problems are more likely to search for a thread with an appropriate title. :smile.gif:
Also, I strongly urge you not to run Minecraft as root.
Why? What could happen if I run it as root? I have read that there are some vulnerabilities regarding hacking, but are there any performance issues too?
No performance issues, but if a vulnerability in any of the stack of programs you're using to run Minecraft is discovered, your server is open season. If you run as another user, the worst thing they can do is break Minecraft. If you run it as root, the worst-case scenario is much, much worse.
The only thing you should be doing as root is systems administration tasks; anything else should have a specific user that has access to what they need to to their job, and no more.
-bash: ./minecraft.sh: /bin/bash^M: bad interpreter: No such file or directory
I tried changing the MC_PATH setting, but nothing that I edited worked.
My VPS structure is like this:
root/minecraft/bin
so where should the minecraft.sh be placed and what should I write in MC_PATH ?
Did you edit the file on a Windows machine? That '^M' at the end is a DOS-style EOL marker. Look into a program like Dos2Unix to convert the file.
Also, I strongly urge you not to run Minecraft as root.
I've been using endofzero's fork of this admin script for a while now. Dude, you guys are awesome! Thanks so much for the help and my server is running amazing thanks to you. OH! Also, thanks for adding sync and biome.. they work like a champ.
I'm thinking of writing an shm fork of this for servers with lots of free RAM; copying the worlds shared memory for mapping and biome extraction has the potential to be much, much faster. More to come.
Hi, when I start up the shell script, i cant seem to access the console. Is there any way to do that? Also, are there guides on installing c10t and the other addons along with how to set up a cronjob/crontab (don't know the difference). Thanks for reading and hopefully answering.
EDIT: oh and also, after I stop the server and try to start it again, it says server is online. It still doesn't start even when I do ./minecraft.sh start force (even when I kill the process) The only way I got it starting is by using ./minecraft.sh update 0.0
2nd Edit: ./minecraft.sh stop doesn't stop at all for me either.
To which console are you referring?
Installing c10t is as simple as following the directions over in the top post of the c10t thread.
A cron job is a task on the cron table (or crontab). To put it another way, a crontab is a list of cron jobs. To edit the table, run the command 'crontab -e' as the user as whom you will be running minecraft, and a file will open in your favorite editor. Cron's syntax is a little esoteric, but I'll try to give you an example here:
The above cron table has two schedule cron jobs. The first one, thing1.sh, runs every fifteen minutes, every day. You could use that for a job that would, say, make sure the server is running, and if not, restart it.
The second, thing2.sh, runs at 2:30 AM every day. That could be a script that halts saving, backs up the world, makes new maps, and then restarts saving once its tasks have been completed.
As to the other problems you're having, it's hard to answer without having more details. Precisely what happens, including messages, when you try to start the already-stopped server, for example?
what I figured out is that the file in the directory was labled Minecraft.jar, not minecraft.jar. In windows that doesn't matter but the linux file system is case sensitive, so because of that it wasn't able to find the file.
Once I placed a minecraft.jar file in that directory matching the name, I got this error:
Discovering minecraft.jar interface...
WARNING: Could not extract grasscolor.png or foliagecolor.png
Either Minecraft or this program are out of date!
Match strength: 1%
Deobfuscation of minecraft.jar failed.
Signature match for save class not found.
Class listing (27entires)
GameUpdater$1.class
GameUpdater$2.class
GameUpdater$3.class
GameUpdater$4.class
GameUpdater.class
Launcher$1.class
Launcher$2.class
Launcher.class
LauncherFrame$1$1.class
LauncherFrame$1.class
LauncherFrame.class
LoginForm$1.class
LoginForm$2.class
LoginForm$3.class
LoginForm$4.class
LoginForm$5.class
LoginForm$6.class
LoginForm$7.class
LoginForm$8.class
LoginForm$9.class
LoginForm.class
MinecraftLauncher.class
Util$OS.class
Util.class
CRangeDecoder.class
LzmaException.class
LzmaInputStream.class
Failed to bind to Minecraft, cannot generate biomes.
Review the above messages to see if there's anything you can do about it.
If not, check online for a new version.
any ideas?
That's what you get when you run against Minecraft.jar (what you download from the website), and not minecraft.jar (what minecraft.jar download automagically for you).
I have a theory that I plan to test when I get home from work, but I thought I'd see if anyone else has tried this:
Most Linux distributions include support for what is essentially a dynamically-sized RAM disk called shared memory, which exists as a filesystem at /dev/shm.
Would the Minecraft server benefit from relocating the world datafiles into /dev/shm and running with the world in a RAM disk rather than doing actual, slow, disk I/O, and then copying the world out of /dev/shm onto the hard drive at server shutdown?
Or does disk I/O not terribly impact Minecraft's performance more than losing the RAM equivelant to the world's size would?
I'm running a server that is otherwise behaving perfectly normally (or at least as normal as SMP gets), except for the following behavior:
Sometimes, the following message appears a few times in the server log:
[WARNING] Can't keep up! Did the system time change, or is the server overloaded?
Now, this would make sense if the server were indeed under strain, but I get this message when the server us under nearly 0 load and has tons of free RAM. It also sometimes appears when players are on the server, and no one reports having any issues. As an example of the status of the server when I get this message:
minecraft@fortress:~/public_html/images$ uptime && free -m
10:56:30 up 53 days, 12:58, 10 users, load average: 0.00, 0.05, 0.07
total used free shared buffers cached
Mem: 3466 2577 888 0 191 890
-/+ buffers/cache: 1495 1971
Swap: 1474 503 970
minecraft@fortress:~/public_html/images$ top -b | head
top - 10:57:23 up 53 days, 12:59, 10 users, load average: 0.00, 0.04, 0.06
Tasks: 178 total, 1 running, 177 sleeping, 0 stopped, 0 zombie
Cpu(s): 11.7%us, 2.7%sy, 0.0%ni, 84.0%id, 1.4%wa, 0.1%hi, 0.1%si, 0.0%st
Mem: 3549800k total, 2639832k used, 909968k free, 196148k buffers
Swap: 1510068k total, 516036k used, 994032k free, 912360k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
22531 minecraf 20 0 1178m 1.0g 8868 S 3.9 30.2 307:09.22 java
9737 minecraf 20 0 2468 1072 776 R 1.9 0.0 0:00.02 top
1 root 20 0 2620 988 660 S 0.0 0.0 0:03.88 init
Is this something I should be concerned about? What causes this message? Is there something I can do to correct for the perceived problem?
I'm running Minecraft server on a Linux dedicated server, and I tried to run browman Minecraft Overview, but I got an error and I can't solve it:
rios@icarus:~/tmp/brownan-Minecraft-Overviewer-914a307$ python2.6 gmap.py /home/minecraft/world/ imgs/
2010-11-29 19:42:38,744 [WARNING] alpha_over extension not found; using default PIL paste()
2010-11-29 19:42:38,874 [INFO] Welcome to Minecraft Overviewer!
2010-11-29 19:42:38,874 [INFO] Scanning chunks
Traceback (most recent call last):
File "/home/rios/tmp/brownan-Minecraft-Overviewer-914a307/chunk.py", line 120, in render_and_save
return a.render_and_save(cave)
File "/home/rios/tmp/brownan-Minecraft-Overviewer-914a307/chunk.py", line 361, in render_and_save
os.unlink(dest_path)
OSError: [Errno 2] No such file or directory: '/home/minecraft/world/o/1g/img.o.-c.nocave.a059ad.png'
Traceback (most recent call last):
File "/home/rios/tmp/brownan-Minecraft-Overviewer-914a307/chunk.py", line 120, in render_and_save
return a.render_and_save(cave)
File "/home/rios/tmp/brownan-Minecraft-Overviewer-914a307/chunk.py", line 361, in render_and_save
os.unlink(dest_path)
OSError: [Errno 2] No such file or directory: '/home/minecraft/world/o/1m/img.o.-6.nocave.c00f48.png'
Traceback (most recent call last):
File "/home/rios/tmp/brownan-Minecraft-Overviewer-914a307/chunk.py", line 120, in render_and_save
return a.render_and_save(cave)
File "/home/rios/tmp/brownan-Minecraft-Overviewer-914a307/chunk.py", line 361, in render_and_save
os.unlink(dest_path)
OSError: [Errno 2] No such file or directory: '/home/minecraft/world/o/1/img.o.1.nocave.a94d21.png'
Traceback (most recent call last):
File "gmap.py", line 173, in <module>
main()
File "gmap.py", line 120, in main
w.go(options.procs)
File "/home/rios/tmp/brownan-Minecraft-Overviewer-914a307/world.py", line 213, in go
self.chunkmap = self._render_chunks_async(chunks, procs)
File "/home/rios/tmp/brownan-Minecraft-Overviewer-914a307/world.py", line 311, in _render_chunks_async
results[(col, row)] = result.get()
File "/usr/lib/python2.6/multiprocessing/pool.py", line 422, in get
raise self._value
OSError: [Errno 2] No such file or directory: '/home/minecraft/world/o/1/img.o.1.nocave.a94d21.png'
Traceback (most recent call last):
File "/home/rios/tmp/brownan-Minecraft-Overviewer-914a307/chunk.py", line 120, in render_and_save
return a.render_and_save(cave)
File "/home/rios/tmp/brownan-Minecraft-Overviewer-914a307/chunk.py", line 361, in render_and_save
os.unlink(dest_path)
OSError: [Errno 2] No such file or directory: '/home/minecraft/world/o/1k/img.o.-8.nocave.038da0.png'
But I can't find any .png in wolrd dir on server nether on my client (on Mac OS X).
Any idea ?
If it helps, here is how I am invoking Minecraft-overviewer:
I'm running a vanilla server with no mods or extensions, and suddenly some of my players have reported not being able to alter the terrain in some areas of the map, particularly near the spawn location.
Flipping automated saving on and off had no effect, nor did restarting the server. I did try opping one of my trusted players and suddenly they were able to build.
Has anyone else seen this, or more importantly, a solution? Again, I am not running Llamacraft or Hey0 or anything that has protection zones or anything- how could this be happening in Vanilla?
0
I just wanted to chip in and offer my impressions of AllGamer's services. I've had a server with them for some time now (specifically since April of 2011), and I have been extrelemy pleased with their service on nearly all levels. There was one small episode of downtime which was poorly communicated, but ever since that incident, there have been no surprises, and their support personnel are extremely helpful and responsive to every inquiry I have made of them. I can recommend their VPS services without hesitation, and, though I have no experience with their other services, can only imagine that their top-shelf standards of service are in-place across their entire line of offerings.
ETA: better grammar.
0
Make sure DISPLAY_ON_LAUNCH is set to 0. This is on line 16 of the current version of the script.
0
It doesn't- it only needs to refer to some of the code therein, and the author (rightly) doesn't want to redistribute Notch's code without permission.
0
I'm all for helping folk out, but might I gently suggest further assistance be taken to another thread relevant to web or image hosting? Other people with similar problems are more likely to search for a thread with an appropriate title. :smile.gif:
0
No performance issues, but if a vulnerability in any of the stack of programs you're using to run Minecraft is discovered, your server is open season. If you run as another user, the worst thing they can do is break Minecraft. If you run it as root, the worst-case scenario is much, much worse.
The only thing you should be doing as root is systems administration tasks; anything else should have a specific user that has access to what they need to to their job, and no more.
0
Did you edit the file on a Windows machine? That '^M' at the end is a DOS-style EOL marker. Look into a program like Dos2Unix to convert the file.
Also, I strongly urge you not to run Minecraft as root.
0
I'm thinking of writing an shm fork of this for servers with lots of free RAM; copying the worlds shared memory for mapping and biome extraction has the potential to be much, much faster. More to come.
0
To which console are you referring?
Installing c10t is as simple as following the directions over in the top post of the c10t thread.
A cron job is a task on the cron table (or crontab). To put it another way, a crontab is a list of cron jobs. To edit the table, run the command 'crontab -e' as the user as whom you will be running minecraft, and a file will open in your favorite editor. Cron's syntax is a little esoteric, but I'll try to give you an example here:
The above cron table has two schedule cron jobs. The first one, thing1.sh, runs every fifteen minutes, every day. You could use that for a job that would, say, make sure the server is running, and if not, restart it.
The second, thing2.sh, runs at 2:30 AM every day. That could be a script that halts saving, backs up the world, makes new maps, and then restarts saving once its tasks have been completed.
As to the other problems you're having, it's hard to answer without having more details. Precisely what happens, including messages, when you try to start the already-stopped server, for example?
0
Now you just need to resolve the apparent "running the Minecraft server as root" issues you're having.
0
That's what you get when you run against Minecraft.jar (what you download from the website), and not minecraft.jar (what minecraft.jar download automagically for you).
0
Most Linux distributions include support for what is essentially a dynamically-sized RAM disk called shared memory, which exists as a filesystem at /dev/shm.
Would the Minecraft server benefit from relocating the world datafiles into /dev/shm and running with the world in a RAM disk rather than doing actual, slow, disk I/O, and then copying the world out of /dev/shm onto the hard drive at server shutdown?
Or does disk I/O not terribly impact Minecraft's performance more than losing the RAM equivelant to the world's size would?
0
I'm running a server that is otherwise behaving perfectly normally (or at least as normal as SMP gets), except for the following behavior:
Sometimes, the following message appears a few times in the server log: Now, this would make sense if the server were indeed under strain, but I get this message when the server us under nearly 0 load and has tons of free RAM. It also sometimes appears when players are on the server, and no one reports having any issues. As an example of the status of the server when I get this message:
Is this something I should be concerned about? What causes this message? Is there something I can do to correct for the perceived problem?
0
If it helps, here is how I am invoking Minecraft-overviewer:
You could try running that (with or without --night).
0
0
Flipping automated saving on and off had no effect, nor did restarting the server. I did try opping one of my trusted players and suddenly they were able to build.
Has anyone else seen this, or more importantly, a solution? Again, I am not running Llamacraft or Hey0 or anything that has protection zones or anything- how could this be happening in Vanilla?