About uncovery

Owner & admin of this server.

FYI: Our current backup system

I wanted to outline here once how our backup system works right now so you know what is being done and what you can expect in case of a crash but also to get input in case someone with server maintenance experience wants to share possibilities for improvement.

  1. We are running all limited-size world on a RAMdisk. Nether and Darklands are not. They are just too big for that. We are copying changes to the ramdisk to a save-folder with rsync to the normal disk every 5 minutes. If there is any issue (server crashes, system powers down), we should have 5 minutes loss maximum. On hardware restarts, the RAMDisk is built from these saves.
  2. Every day once, I stop auto-saves on the MC server, copy all changed files with rsync to a mirror folder on a second hard drive and continue saving afterwards. This prevents us from issues where the main HD fails.
  3. Every day we zip this mirror on the same 2ndary HD and store the archive in folders numbered 1-31 depending on the day of the month. Like that I keep always the last 31 days as a backup. Same happens with the databases.
  4. Every week we zip the folders on top of that in folders numbered 1-52 depending on the number of the week. This way, in case we can track back an issue to originate further back than one month, we have weekly backups for one year. Same happens with the databases.
  5. On top of that, I have a crashplan subscription which makes off-site backups to a cloud server of the daily databases and the weekly file mirrors of the drives. I had this subscription already to backup my photos to a secure location so no extra costs there. This is newly setup for minecraft since I did not know that I can install the crashplan client on a headless linux server.
  6. Nether and darklands are neither mirrored nor backed up. The nether is now 2.6GB and the darklands 2.3GB which is together larger than all the rest of the files (5.4 GB). Given that we delete those from time to time, there was never a backup and there won’t be one.

So if anyone has some more suggestions on how to improve the system, I am happy for feedback. Finally I am not a learned sysadmin and still learn with every crash :)

MineConomy Bugs – fixed

MineConomy is repeatedly disconnecting from the MySQL server. Since I have re-setup everything from scratch on the new server, there might be some default setting on the new version I am using now that is causing this, but Mineconomy as opposed to other plugins is not automatically reconnecting to the server. So after a while, it simply stops working.

Since Minecononmy was not updated since 1.5.2, I am not sure if the admin is still maintaining it. I sent a bug report, but it seems that the same bug was identified by other users for the last 2 versions already, marked as fixed but we still have the issue.

So what I did now: I wrote a simply plugin that can deal with money since MineConomy was basically only used to see the account status and to give money to users. The only real advantage of having a economy plugin is if other plugins have money functions (such as a shop) but we do not use any external plugins that do that. We wrote all money-related plugins ourselves. So in the end we got rid of another plugin by writing some lines of code.

The new commands are now /money status and /money give <user> <amount>. There is a appropriate help in the system and on the website.

Server back online, please check your stuff!

The server is back online, except for some automated stuff like restarts and backups. Please check if all is as you have left it: Inventories, money, lots etc.

I had do delete a couple of nether files and one darklands file. Most of them were REALLY far out, so I do not think something got damaged. Since we do not backup the nether and the darklands, there is nothing I can do. One Kingdom file got reset by one day, here I could fallback on a backup.

Server shutdown in 7 hours

In line with the latest blog posts, the server will shutdown in 7 hours from now (18:00 New York, Midnight Berlin, 7:00 Hong Kong), but not restart afterwards. This will happen at the same time when the server usually goes for daily reboot anyhow. I will then take the latest backups created, copy them to a secure location and ask the hoster to re-setup the system from scratch.

With this process the chances are the highest that the system will be back up for Thursday/Friday and that there are no unsaved changes that could be lost.

Voting issue, minecarts fixed

I just fixed a voting issue where votes were closed when they got enough support but the form would not really reflect that. Users were still able to change their votes and thus we had some closed votes without the needed support. I hope I was able now to fix this. I re-opened the votes with not enough points.

Minecarts should also be fixed (again). Azkedar kindly looked into the code and made sure that accidental loops of spawning minecarts would not crash the server so easily.

In the meantime I am still doing the backups for the server. There were some technical glitches and I had to start over. I found some better ways to manage the server in the future in the process, so at least some good came out of it.

Server Harddisk corrupt, fix underway

I have now (see last post) found out that the main HD of the server is failing. The hosting company will replace both HDs (main & backup). While I am pretty sure that the second HD is fine, I had to rent a FTP server on their farm to make an additional backup.

I am currently copying all needed data to the backup FTP, then I will ask the hoster to put new HDs into the system, then will have to setup everything again and copy over the data from the backup. Normally the re-setup of the server will take 5 hours, I will most likely need another couple of hours to setup everything again. If the old HD is not too broken, there is a chance that this goes quickly. We will see.

Since it’s getting late here, I will simply let the backup run overnight while I sleep and then try to do the rest tomorrow. Since I never did that before and since I do not know if I will be very busy tomorrow with other stuff and when the hoster actually will be able to replace the HDs, there is not ETA for this yet. The server will be down sometime (including the website), and then hopefully be back up again not too much later. Please check the facebook page for updates and IRC to chat.

Nether file damaged… what to do?

Recently my backup process is throwing this error:

rsync: read errors mapping "/home/minecraft/server/bukkit/nether/DIM-1/region/r.2.-1.mca": Input/output error (5)

I cannot copy the file somewhere else. I know it’s not an access rights issue. Unfortunately, I am not 100% sure what to do best. There are 2 processes available that I know of:

  1. restart the server (the whole machine) and schedule a disk check on startup. This means a longer downtime. Last time I suspected HD errors (not sure anymore what that was) and tried to do that, the machine would not start up by itself and I had to wait for tech support to go in and restart it.
  2. Try to just delete the file and either restore the area from backup or regenerate the area from scratch. The issue with this is that in case there is an issue with the harddisk, we would not know.

Any one with more linux troubleshooting experience who can help how to best approach this?

 

IRC chat fixed, minecart spawning disabled again

I have now fixed IRC, and all the messages should look like in-game. The only thing odd now is that a /me event in-game shows two messages on IRC. Will have to figure this one out.

Also, I came across an issue with minecarts. If you put a pressure plate next to a black wool spawner, it can happen that the cart is spawned, pushes you out of the way, on the pressure plate, spawns a minecart again, pushes you back on the pressure plate etc. Somehow the new limiter is triggered, but it seems still to cause an endless loop that freezes the server. I have now disabled automated spawning until we resolved that issue too.

IRC chat temporarily broken

I have found that the IRC system is quite broken, a lot of in-game messages to not arrive on the IRC channel.

I therefore am researching on other systems that are better supported than the rather old plugin we were using so far. The best maintained plugin seems to have some challenges however, so until I figure out how to make it work properly (I am in contact with the plugin author), the system might be broken.

Please stand by for further information.

Minecarts & Minecart Mania fuly re-enabled, now with limits!

Thanks to our returned-from-the-deadwork resident coder, azkedar, we have now fully re-enabled minecart spawning blocks as previously. Please refer to the respective page on the details. The reason why we could re-enable this is that azkedar changed our plugin that limits spawning of mobs to include vehicles. So you are allowed to have 10 minecarts per lot. Anything beyond that will trigger an alert and stop spawning the minecart.

For those who missed it: We disabled minecart spawning blocks because one could built a redstone contraption that would spawn hundreds in seconds.

Parkour / Race proposal

I got some requests for more games on the server, and while we are building on a PVP arena, I thought we can start preparing the race/parkour at the same time. Since we want to have something that is not getting boring, my idea would be a multi-option race.

We would have a track where you can race in different directions, with different deviations that are selected by a lever-combination before you start. People would decide on a combination of levers (on/off/off/on/on) which would raise certain blocks and lower others or open and close passages that give access to different tracks. There would be 4-5 intersections that each make you chose between 2 different segments of the track. Together with a backward/forward direction change, this should give some different track combinations to keep races interesting. Each segment can have some different key features such as:

  • Spider web slalom
  • Slow sand climbing
  • water obstacles (diving, swimming)
  • log jumping (if you fall down, walk back to the start of the start of the segment and climb up)
  • straight line race
  • etc

One question is if the track needs to be circular or not. If the start is near the finish, of course we would be better able to switch direction.

What other obstacles can we have? Can someone take a sheet of paper with squares on it and try to draft a course with sufficient length that has those different intersections to branch out the track. For the redstone, I imagine the following process:

  1. Switch intersections
  2. There are 4 lanes, everyone picks one.
  3. Lane one user steps on a pressure plate to open a gate for runners to open the track
  4. The same plate disables the intersection switches
  5. At the goal, people step on a pressure plate in their lane. The first one hit will be the winner and be signaled.
  6. The final goal switches the intersections back on

I am not sure how we can integrate the backward/forward race here, maybe the goal and start need to be always the same, just another row of walls lead either to the one or other. I imagine that this does not have to be all on the same level but intersections can be crossing over each other etc. Any input?