Synology NAS Minecraft Server Setup, Including Paper, Spigot, and Craftbukkit

Minecraft


This started as a blog post about installing Minecraft on my Rackstation 814+.  The Synology "DSM" software (basically a customized Linux) allows installation of various packages.  It turns out, someone had created a Minecraft server package, but the package was out of date:

http://pcloadletter.co.uk/2012/01/11/minecraft-package-for-synology/

There were pages and pages of comments and I was able to install the package and get it up and running, updated to the latest version, but that seemed like a lousy solution, so... I started with the package provided and created my own, and put it on Github, where other people can contribute to it.

First, if you're just looking to install the package, you can install it from my repository server.
  1. You'll have to install Synology's "Java Manager" first, which is under "Utilities" in Package Center in DSM 5.x.
  2. In the DSM Control Panel, go to User, Advanced, and check "Enable User Home Service."
  3. After that, go settings and "Package Sources" and set up a new source from this URL: http://www.hildinger.us/sspks/index.php
  4. After that, under "General" you'll have to set your server up to accept "any publisher," and you should see the Minecraft server under "Community.

It should install and start without problems.  Now you have a functioning single world server running on your Synology box and you can start figuring out how to admin it.

Once you run the package your server will be running with default settings.  If you're like me, the question is, "Uh, now what?"  When I picked up the project, I knew exactly nothing about administering a Minecraft server, so I have been stumbling through this.

Administration

So, first a little primer, without any extensions, a Minecraft server will be a single world, either creative or survival.  Depending on which package you run, you'll find the basic settings files in different places:

/volume1/@appstore/Minecraft/server.properties
/volume1/@appstore/Paper/server.properties
/volume1/@appstore/Spigot/server.properties
/volume1/@appstore/Craftbukkit/server.properties

Command Line

You can telnet or SSH into your Synology once you've turned on the Terminal service in "Control Panel-> Terminal & SNMP -> Terminal -> Enable Telnet/SSH service." Once you log in with your client of choice you can manually edit this file using VI.  This is, of course, how I did it at first. If you're not used to using a Linux command line and/or you've never used VI, that will quite likely be a painful experience.  Even if you used to use VI a bit but that was 20 years ago, you're going to struggle a bit.  A few client options:
  • Windows includes a telnet client.
  • Lots of people like PuTTY, including me

Synology DSM Interface

I haven't gone far in trying to admin from DSM.  It seems like a clunky approach, but there might be reasons to do it.

Windows Interface

I'm going to guess that this is the direction most people are going to tilt on this, so this is where I'm going to put my energy.  While PuTTY is a nice way to SHH into your Synology, if you're not a CLI expert, or maybe even if you are, you're going to get a little sick of doing some things CLI.  WinSCP provides a nice way to execute tasks from the Windows desktop, with the power to jump into CLI at any time.  Basically, it's a wrapper for a command line session that provides a Windows Explorer type interface AND a command line.



Another program I like for working with text files is TextPad.  It's a pretty powerful text editor.  If you're sitting around using Notepad and don't already have a favorite editor, check it out.

With DSM 6, Synology locked things down just a little tighter than before, which is generally a good thing, but it also makes things a little more complicated for those who barely use a CLI.  I tried to think of the best recommendation here.  The instructions below reduce CLI security, but for most Synology users, this probably isn't a huge deal.  Basically, if someone has your password, they have your password.

You're going to have to go into superuser mode to do anything with a "sudo su" command, and your Synology, by default, is going to want the admin password again to to this, even though you've just logged in with your admin password.  You can disable this behavior by editing the file "/etc/sudoers" and adding a line at the end "admin ALL= NOPASSWD: ALL."  To do all of this, you'll need to spend some time at the Synology command line.  The steps look like this:

SSH into your Synology (I used PuTTY), and login as admin, and enter the following commands:

cd /etc
sudo vi sudoers


Once you've entered your password, you'll be in VI and need to add the following line at the bottom of your sudoers file:

admin ALL= NOPASSWD: ALL


You'll note that the file is read only, so to save when you exit you'll hit <Esc> and then type :x! and then hit enter.  Now your admin user execute sudo su without retyping its password.  Again note, this isn't a good idea for a system that gets left with a CLI interface open.

Now that you've done this, you can use the advanced settings window in WinSCP to enable the shell command "sudo su -" at the beginning of its sessions and you will have superuser privileges from WinSCP.  Be careful with this power, don't go crippling your Synology.

 

Once you're up and running, you can send CLI commands through WinSCP for administration of the server:



For instance, to send a command to whitelist a player named XXXXX on a spigot installation, 

echo whitelist add XXXXX >> /tmp/stdin.spigot



Upgrades and Backing Up Your Worlds

The upgrade process saves the "world" directory.  If you rename your world, it will not be saved in an upgrade.  Even if you haven't renamed it, you should back up your world if you think keeping it is important, particularly before upgrades.  To back it up, simply copy the entire "world" directory to another location outside the /minecraft (or /paper/ or /spigot or /craftbukkit) directory using whatever administration method you are using.

Mods

Paper

I've recently converted our server to Paper, a high performance fork of Spigot.  This is what you should probably be running on your Synology since we don't have a lot of resources.

Spigot

I've recently created an install package for Spigot, which is the world's most widely used mod package out there.  More on Spigot as I dig into it.  While I'll maintain the vanilla package, this is where I'm going to be putting in my time.

Craftbukkit

There's also a craftbukkit install, but it seems to be a dead end for Minecraft server administration.  I am keeping it updated as much as I can.

Links

Below are some useful Minecraft Server Admin Links:

Help Make This Better:

If you have issues, the Github project is at:

https://github.com/colin1497/Synology-Install-Package-for-Minecraft-and-Craftbukkit

The repository I'm using can be found at:

https://github.com/jdel/sspks

It has recently been completely rewritten and greatly improved.  Also, my fork is at, but I'm not very actively working on it:

https://github.com/colin1497/sspks

Help make the world a better place by contributing code.

Updates to Minecraft Package:
2/9/2020 Package version 0039 is Server 1.15.2
5/29/2019 Package version 0038 is Server 1.14.2
5/24/2019 Package version 0037 is Server 1.14.1
11/4/2018 Package version 0036 is Server 1.13.2
11/29/2017 Package version 0035 is Server 1.12.2
8/9/2017 Package version 0034 is Server 1.12.1
7/22/2017 Package version 0033 is Server 1.12.0
12/25/2016 Package version 0032 is Server 1.11.2
11/28/2016 Package version 0031 is Server 1.11.0 increased memory allocation for > 6GB RAM
8/15/2016 Package version 0030 is Server 1.10.2
6/15/2016 Package version 0029 is Server 1.10.0
5/27/2016 Package version 0028 makes a few minor updates to installer, adds option for >4GB RAM
5/15/2016 Package version 0027 is Server 1.9.4
5/7/2016 Package version 0026 fixes status in Package Center.
5/7/2016 Package version 0025 installs in DSM 6, doesn't work with earlier DSM versions. Still has issues with package center integration.
5/1//2016 Package version 0024 is Server 1.9.2
3/22/2016 Package version 0023 is Server 1.9.0
2/10/2016 Package version 0022 makes changes to the INFO file to note the EULA acceptance and links EULA.
1/1/2016 Package version 0021 is Server 1.8.9, reduces RAM usage for many boxes with 2GB or less RAM.  Attempting to address some issues people are seeing with RAM, but it will impact performance a little bit.
8/15/2015 Package version 0020 corrects 2 issues: deleting old .json whitelist/ops files on upgrade, and log files unavailable from the DSM package manager.
8/12/2015 Package version 0019 is Server 1.8.8
6/27/2015 Package version 0018 is Server 1.8.7
5/29/2015 Package version 0017 is Server 1.8.6

Updates to Paper Package:
5/26/2020 Package version 0001 is Server 1.15.2

Updates to Spigot Package:
2/9/2020  Package version 0014 is Server 1.15.2
5/29/2019 Package version 0013 is Server 1.14.2
5/24/2019 Package version 0012 is Server 1.14.1
11/4/2018 Package version 0011 is Server 1.13.2
11/29/2017 Package version 0010 is Server 1.12.2 (labeled as 1.12.20 due to typo back on 0009)
8/9/2017 Package version 0009 is Server 1.12.1, corrected broken mirror link issue
7/22/2017 Package version 0008 is Server 1.12.0
1/8/2017 Package version 0007 is Server 1.11.2
12/25/2016 Package version 0006 is Server 1.11.0 (almost 1.11.2)
11/28/2016 Package version 0005 is Server 1.11.0 increased memory allocation for > 6GB RAM
8/15/2016 Package version 0004 is Server 1.10.2
6/15/2016 Package version 0003 is Server 1.10.0
5/27/2016 Package version 0002 makes a few minor updates to installer, adds option for >4GB RAM
5/20/2016 Package version 0001 is Server 1.9.4

Updates to CraftBukkit Package:
2/9/2020 Package version 0032 is Server 1.15.2 
5/29/2019 Package version 0031 is Server 1.14.2 
5/24/2019 Package version 0030 is Server 1.14.1
11/4/2018 Package version 0029 is Server 1.13.2
11/29/2017 Package version 0028 is Server 1.12.2
8/9/2017 Package version 0027 is Server 1.12.1, corrected broken mirror link issue
7/22/2017 Package version 0026 is Server 1.12.0
1/8/2017 Package version 0025 is Server 1.11.2
12/25/2016 Package version 0024 is Server 1.11.0 (almost 1.11.2)
11/28/2016 Package version 0023 is Server 1.11.0 increased memory allocation for > 6GB RAM
8/15/2016 Package version 0022 is Server 1.10.2
6/15/2016 Package version 0021 is Server 1.10.0
5/27/2016 Package version 0020 makes a few minor updates to installer, adds option for >4GB RAM
5/17/2016 Package version 0019 Update to 1.9.4 CraftBukkit mirror to go with new Minecraft version.
2/11/2016 Package version 0018 corrected error in install
2/10/2016 Package version 0017 updates to download a 1.8.8 mirror version and updates the INFO file to address the demise of CraftBukkit due to the DMCA issues.


335 comments:

  1. Hi. Tried to download the Craftbukkit-Package, but I get the error, that the downloadlink https://tcpr.ca/downloads/craftbukkit/... is not available. Any Idea how I can install the craftbukkit-Package?
    Thanks & Regards
    Axel

    ReplyDelete
  2. Hi ,Im playing around with trying to get the win 10 version of minecraft working with this but it isnt working , now ive been reading around and it looks like its based on pocket edition which from my limited knowledge is slightly different and needs its own server , is that right ?

    ReplyDelete
  3. OK a bit more googleing sorted it , there is apocketmine server https://github.com/PocketMine/PocketMine-MP and it has a docker imahe so ill play with that

    ReplyDelete
  4. how can i put a modified infinity modpack in this_

    ReplyDelete
  5. Hi, I've tried to install latest minecraft package on DSM 6.0 Beta 2, but following error has been returned: 'The User Home service is not enabled. Please enable this feature in the User control panel in DSM'. So far so good, but now the funny thing: User Home Service IS ENABLED!! What's running wrong?

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. excerpt from logfile:
      2016/02/28 16:09:21 admin Failed to install package [Minecraft Server].
      2016/02/28 16:09:20 admin System successfully deleted User [userhometest].
      2016/02/28 16:09:16 admin User [userhometest] was created.

      Delete
    3. I have updated the package (0025) and it installs on DSM 6 and above. User Home issue is fixed, but there are still a few issues because it doesn't report that it's running in Package Center.

      Delete
  6. What is the process of upgrading to a newer version of the Minecraft server (1.9) ?

    ReplyDelete
  7. To answer my own question. This is how I did it.
    First I stopped the running minecraft server using the GUI

    Then I logged in as root on my Synology

    cd ./volume1/@appstore/Minecraft
    mv minecraft.jar minecraft.jar_old
    wget https://s3.amazonaws.com/Minecraft.Download/versions/1.9/minecraft_server.1.9.jar
    ln -s ./minecraft_server.1.9.jar ./minecraft.jar

    Then I started the minecraft server using the GUI.
    Works fine.

    ReplyDelete
    Replies
    1. How to started the minecraft using gui?
      I can start it with putty but once I close putty the server seems to shut down.
      How can I keep it running on my DS916+?
      Thank you!

      Delete
  8. After updating to DSM 6.0 the Minecraftserver wont start. Does anyone know how to fix this?

    ReplyDelete
  9. Hello, I have Home service issue too - it is enabled, but i get an error message. Synology 1511+ and DSM 6.0 - installed today. Java 8 enabled. Can you help me?

    ReplyDelete
  10. Same here, just fyi. DSM 6.0 and the server is UP, but in the Package Center it says is stopped. Thanks a lot for your work, it means a lot for me and my son! :)

    ReplyDelete
    Replies
    1. I have updated the package (0025) and it installs on DSM 6 and above. User Home issue is fixed, but there are still a few issues because it doesn't report that it's running in Package Center.

      Delete
  11. Thank you for you hard work and time. At the moment it's working fine in my DS713+, I'll check on my son later to know how it is going.
    Cheers minecraft server hosting

    ReplyDelete
  12. Thank you for you hard work and time. At the moment it's working fine in my DS713+, I'll check on my son later to know how it is going.
    Cheers minecraft server hosting

    ReplyDelete
  13. Hi, can anyone help me? I always stucked with same error message all the time, User Home Services is not enabled. But it is not true. I enabled it. But I can't install minecraft or craftbucket. Please help me. Thank you! Best regards: SiD

    ReplyDelete
  14. Hi, same issue here with DSM 6.0-7321 DS214play

    ReplyDelete
    Replies
    1. I have updated the package (0025) and it installs on DSM 6 and above. User Home issue is fixed, but there are still a few issues because it doesn't report that it's running in Package Center.

      Delete
  15. Had the same issue on DS214play. Modified the script as explained in github and it installed.
    https://github.com/colin1497/Synology-Install-Package-for-Minecraft-and-Craftbukkit/issues/8
    Now I have another two issues:
    Cannot connect (I see "user disconnected" in the log)
    and package status is not right (says stopped, but it is listening)

    ReplyDelete
    Replies
    1. In the start-stop-status.sh file change the line :

      ps -u craftbukkit | grep "^ *[0-9]* ${DAEMON_USER_SHORT} .*java" > /dev/null

      by this one :

      ps -u craftbukkit | grep java > /dev/null

      Delete
  16. Hi Colin,

    Have you any plan to update to 1.9.2 ? My client refuses the server 1.9.0 and it seems to be a common case with 1.9.x first releases.

    Thx for the good work.
    nico

    ReplyDelete
  17. Same issue as everybody else here. DSM 6.0, Service enabled yet the Plug-In thinks it's not.

    ReplyDelete
  18. Hi
    I tried to install Minecraft and got the Home service not enabled message even though it is
    Any chance of an update ?

    Thanks

    Paul

    ReplyDelete
    Replies
    1. Same issue here. I read this is because of incompatibility with DSM6 which I unfortunately have installed. When do you expect to have a fix for this Colin? We would love that ;-)

      Delete
  19. Hi all, i've had the same issues. After I've modified the script (as outlined above) The server would not start.

    Reading from the log I found the following: Minecraft did a world-upgrade of the old 1.8.9 world on the server. This usually takes significantly longer than a normal server start, so the startup script shut down the minecraft server too soon.

    There's an easy workaround: just repeadetly start the minecraft server. It's an incremental process and after about 5 restarts mine was ok. YMMV.

    regards Willi ...

    ReplyDelete
    Replies
    1. Interesting. This needs to be logged as an issue on github. If you're on there and want to create an issue, that would be cool:

      https://github.com/colin1497/Synology-Install-Package-for-Minecraft-and-Craftbukkit

      Delete
  20. One more suffering the "not home user installed" issue. Waiting for a little fix to make a child happy :-)

    ReplyDelete
  21. Thank you so much. Now my kids can play with out me having my computer turned on all the time.

    ReplyDelete
  22. Sorry for not having put in the time to figure out the DSM 6 issues. Still need to upgrade my box then debug. I'll try this weekend.

    There was a suggestion on Github but it didn't work for me under DSM 5.2, so I'll try it again after I upgrade my box.

    https://github.com/colin1497/Synology-Install-Package-for-Minecraft-and-Craftbukkit

    ReplyDelete
    Replies
    1. By the way, if you have a look a this video

      https://www.youtube.com/watch?v=nYeSQt2mrtE&feature=youtu.be

      You'll find that guy have a working 6.0 friendly .spk here ===> https://drive.google.com/file/d/0BwYSORGhMcYPZU8yNXE3bkdhYkU/view?usp=sharing

      Hope this helps

      Delete
    2. Thanks, Manfred is more into Minecraft than me and has been on top of this. I need to touch base with him/check out what he's done.

      I have updated the package (0025) and it installs on DSM 6 and above. User Home issue is fixed, but there are still a few issues because it doesn't report that it's running in Package Center.

      Delete
  23. Thank you! That would-be so great!

    ReplyDelete
  24. The last link by Sergio works. I was able to install it under dsm 6. Unfurtunally its the old 1.9 version and not the new 1.92.

    ReplyDelete
  25. I just installed Minecraft package on my Synology 1511+ and it´s running - via last link by Sergio.

    IP of my server id 192.168.0.107 - on what port I can find Minecraft server, please? When I try connect from iPhone, I use standard port 19132, but I don´t know, if it is correct.

    Thank you.

    ReplyDelete
  26. Of course I try 25565, but nothing...

    ReplyDelete
  27. I don´t understanf it :( I use this tool: https://dinnerbone.com/minecraft/tools/status/ - and it calls me, that my server is running, but I can´t connect to it through iPhone or Windows version :( Please, can you help me? Server version 1.9

    ReplyDelete
    Replies
    1. Thats because that package is a regular Minecraft server. To access from a mobile device you need a Minecraft Pocket server

      Delete
  28. But I can't join from another PC as well - I have Minecraft on my PC...

    ReplyDelete
  29. I have updated the package (0025) and it installs on DSM 6 and above. User Home issue is fixed, but there are still a few issues because it doesn't report that it's running in Package Center.

    ReplyDelete
  30. Hello, Colin, thank you! I try to install and it works! Now I have 1.9.2 server on my Synology 1511+ - cool :) But, after a while, it crashes :( Picture from log here: https://goo.gl/photos/RqVMygzXpFBQA83q8

    ReplyDelete
    Replies
    1. got the same fault, same 60 seconds msg and then a stop

      Delete
  31. Sergie u r right - wuth Pocket Server, thank you!

    ReplyDelete
  32. Hi and thanks for your awesome package.
    im running the server on the DS214+ but it will only run on one of the CPU cores, is there any way to make it use both cores so it runs a little smoother?

    ReplyDelete
  33. Is there a chance to update it to 1.9.4? Thx

    ReplyDelete
  34. Hello, thank you again - version 1.9.4 is fully working (Synology 1511+), without errors, 2 players (for now) and everything is ok... Thank you very much for your work, Colin! My son is thrilled :)

    ReplyDelete
  35. Hi , I have updated the package to 1.9.4 and my world was regenerated, i have lost all i have made in this world.
    Do you know if there is a solution to return to my previus world ?

    ReplyDelete
  36. also could you tell me how to make a save of the world data

    ReplyDelete
    Replies
    1. I am sorry to hear about your losing the world, Fabrice. It should keep worlds on updates, but backing up is a good idea. I will post some instructions. Basically you want to copy the "world" directory before upgrading.

      Note that if you rename this in your config file then my update code won't save it and you'll absolutely have to backup between upgrades.

      Delete
    2. Thanks for your reply. That the reason why i have lost my world , i have rename it !
      I hadn't read all this page this is my fault !

      Delete
    3. I'm sorry, it was really my fault. I added the information to the page after I read your comment. :(

      Delete
    4. Don't worry, my son as rebuilt a new world !
      Thanks for your contribution. My son is crazy to have his own server.

      Delete
  37. Hello, I would like to know can I enable more ram to the package. I try to edit the launcher.sh.It failed I can’t even start the package.

    I got 8 gb ram on my 415+, thanks

    ReplyDelete
    Replies
    1. Sorry, made the changes the day I saw your message, just updated the file publicly though. Latest version will allocate 4GB in your installation.

      Delete
  38. Updated from your last version, but now can’t connect to the server! If i try to log the server in package center there is no data at all. weird :-)

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
  39. Same for me.
    I have only four files after update :
    World (the repertory)
    eula.txt
    Minecraft.jar
    Server.properties

    Before the update i had 13 files i don't know if it is the reason.

    ReplyDelete
    Replies
    1. Ok after uninstall and install again that works.
      D'ont forget to backing up your world before uninstalling

      Delete
    2. Not for me im afraid. If I uninstall completely and reinstall, just install these files:

      eula.txt
      spigot.jar

      and nothing more. I'm reinstalling Spigot package. :-/

      Delete
    3. Those are the only 2 files that it installs. The rest are created by Spigot the first time it runs, so that's normal, it's just not running for some reason. Weird.

      Delete
    4. I did "java -jar spigot.jar nogui" in ssh session. Then the server run for the first time creating all the files. Hope it helps :-)

      Delete
    5. Good thought. I should have suggested that. I was too busy wondering why it didn't run to suggest just running it yourself. Go to hear it's working.

      Delete
    6. The only issue about the "java -jar" solution is the server closes when you close the ssh session -logic-. But is a temporary solution. Keep up the good work! :-)

      Delete
  40. Just updated to your latest version and...nothing, still not working :-(

    wonder this problem is related, maybe a permissions problem?

    kind regards you're the best! :-)

    ReplyDelete
    Replies
    1. Sorry, I haven't really tried digging in. I did test with spigot on my server and it seemed to work OK. How much RAM did you have?

      Delete
    2. 4Gb RAM, I believe is enough. But thanks for trying :)

      Delete
  41. This comment has been removed by the author.

    ReplyDelete
  42. Hi I am getting reproduceable a crash when running the latest version on my DS 415play. I always find those lines in the log:

    [14:25:13] [Server thread/INFO]: Preparing spawn area: 94%
    [14:25:14] [Server thread/INFO]: Preparing spawn area: 98%
    [14:25:14] [Server thread/INFO]: Done (25.531s)! For help, type "help" or "?"
    [14:25:16] [Server thread/INFO]: CannarXXXX[/192.168.111.38:52855] logged in with entity id 331 at (98.76668829034723, 70.0, 232.19716747944906)
    [14:25:16] [Server thread/INFO]: Cannar2005 joined the game
    [14:25:26] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 10155ms behind, skipping 203 tick(s)
    [14:26:09] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 33717ms behind, skipping 674 tick(s)
    [14:26:16] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 7100ms behind, skipping 142 tick(s)
    [14:28:00] [Server Watchdog/FATAL]: A single server tick took 60.01 seconds (should be max 0.05)
    [14:28:00] [Server Watchdog/FATAL]: Considering it to be crashed, server will forcibly shutdown.
    [14:28:12] [Server Watchdog/ERROR]: This crash report has been saved to: /volume1/@appstore/Minecraft/./crash-reports/crash-2016-06-19_14.28.12-server.txt
    [14:28:12] [Server Shutdown Thread/INFO]: Stopping server

    Anyone an idea, what is the reason for the crash?

    ReplyDelete
  43. Hello

    The Package dont start. This i can read i the log:
    Starting Minecraft server version 1.9.4
    Loading properties
    Default game type: SURVIVAL
    Gernerating Keypair
    Starting Minecraft server on *:25565
    Using default channel type
    ****FAILED TO BIND TO PORT!
    THE exception was: java.net.BindException: Adress already in use
    Perhaps the server is already running on that port?
    Stopping server

    I tryed the orignal package before yours.

    I hope you can help me.

    ReplyDelete
    Replies
    1. I also get this! tried lots to no aval

      Delete
    2. Has anyone worked out how to solve this problem, I have went through all solutions I can find and none have worked, and it's a new system so doesn't have anything running on it. Any help?

      Delete
  44. Hi again Colin!

    my problem installing Spigot package persists. I've tried to completely uninstall and reinstall again and no luck. Then I though about the permissions thing. A fresh install of the package has this properties:

    https://dl.dropboxusercontent.com/u/13187200/Captura.PNG

    and inside the result is this:

    https://dl.dropboxusercontent.com/u/13187200/Captura2.PNG

    Hope this helps, the installer create the folder and puts the .jar inside but it doesn't execute it at all.

    Thanks again for your help m8! :)

    ReplyDelete
    Replies
    1. I was wondering if maybe I was missing something in the part of the script that looks at RAM, but I upgraded to 4GB and still am working.

      There should be a spigot user that gets all the permissions. I'll try and circle back and look at that, but I'm a little puzzled at what might be going on on your box.

      Delete
  45. Hey, you should make a package of multicraft (http://www.multicraft.org/). It would make updating and managing soooo much easier.
    :)

    ReplyDelete
  46. This comment has been removed by the author.

    ReplyDelete
  47. My server just does this every time I start it.. please help!

    99%
    [03:16:32] [Server thread/INFO]: Preparing spawn area: 99%
    [03:16:41] [Server thread/INFO]: Preparing spawn area: 99%
    [03:16:47] [Server thread/INFO]: Preparing spawn area: 99%
    [03:16:56] [Server thread/INFO]: Preparing spawn area: 99%
    [03:17:06] [Server thread/INFO]: Done (5784.848s)! For help, type "help" or "?"
    [03:17:08] [Server thread/INFO]: com.mojang.authlib.GameProfile@************************************************,name=************,properties={textures=[com.mojang.authlib.properties.Property@710e66]},legacy=false] (/192.168.2.2:55710) lost connection: Disconnected
    [03:18:05] [User Authenticator #2/INFO]: UUID of player ******************************************************
    [03:18:08] [Server Watchdog/FATAL]: A single server tick took 60.01 seconds (should be max 0.05)
    [03:18:08] [Server Watchdog/FATAL]: Considering it to be crashed, server will forcibly shutdown.
    [03:18:08] [Server Watchdog/ERROR]: This crash report has been saved to: /volume1/@appstore/Minecraft/./crash-reports/crash-2016-08-17_03.18.08-server.txt
    [03:18:08] [Server Shutdown Thread/INFO]: Stopping server

    ReplyDelete
  48. Hi Sir,
    I have 8G ram, however, I could not find the ram select option.
    Can you help me? thanks

    ReplyDelete
  49. Ram is checked in the startup script and more is allocated the more you have.

    ReplyDelete
  50. Where can I find the startup script?
    I can change the ram setting?
    Thank you for your fast reply. :D

    ReplyDelete
    Replies
    1. I'll probably tweak it in the next version. I added some RAM and can test it with more RAM now. How much do you have? I can tell you what it's doing on your box...

      Delete
    2. I got 8G with DS716
      However, the system always says ram use percentage is under 20%

      Delete
    3. Hmmm, well that's not right! Let me try to look at this today.

      Delete
    4. Colin could you please advise me about my above comment/problem? I keep getting that creating spawn area and then 60s tick followed by shutdown. But my server is not using anywhere near full cpu or memory at the time so its not hardware. Cheers

      Delete
  51. Colin,
    Could you please teach us how to set up ram for Java.
    I would like to give Minecraft 6G to 7G ram running server.
    Now, I see I only use 4G of them. Thanks.

    ReplyDelete
  52. The only way I can start the server is thru ssh and putty. Thru package center when I start it, it says running but is not. Any ideas?

    ReplyDelete
    Replies
    1. Found on Forum: @rbruinsma

      got the same error i tried the first time. my fault was to use java 7! uninstalled all packages. rebooted NAS, installed JAVA8 and then the spigot package.
      now it runs fine.

      Delete
  53. Hi Colin! just a quick comment to say my problem is gone! the only thing I've changed client side is desinstalled Java 8 and reinstalled again. And now works, I dunno if its related, but Im very happy now :-D

    ReplyDelete
  54. Hi Colin!

    Thank you very much! i installed Spigot for my kids and it works perfectly!

    ReplyDelete
  55. Hi.
    can we expect an update. from today my server version is to old :(

    ReplyDelete
    Replies
    1. I'm out of town but I will try and update it this weekend when I get home.

      Delete
  56. This comment has been removed by the author.

    ReplyDelete
  57. Where can I get the minecraft1.11.0-noarch-0031.spk file (not the .tar file).

    ReplyDelete
  58. This comment has been removed by the author.

    ReplyDelete
  59. HI I have installed the server and it is saying running in the log but I can't log in with either my external (taken from whatismyip.org) (error is given "ERR_EMPTY_RESPONSE") Or the internal IP, assigned to the server by me ? (error is given"ERR_NAME_NOT_RESOLVED") The port is 25578.
    Any help ould be greatly appreciated.
    Thanks.

    ReplyDelete
    Replies
    1. Did you remember to forward the correct port to your serves IP address in your router?

      Delete
    2. Yes, check with portforward and it is saying it is open.

      Delete
  60. This comment has been removed by the author.

    ReplyDelete
  61. I have a DS916+ and I cannot add the repo... it gives me the error "Invalid Location". Can you do something about it?

    ReplyDelete
    Replies
    1. Can you access the repo URL from a browser?

      Delete
    2. same, by me.
      In browser works fine, manual installation no problem, but putting the link to Packet Sources -> "Invalid Location" (working on DS414j DSM 6.1-14871)

      Delete
    3. Hi Colin,

      I can't access the repo on the most of the time, it just shows "Can't not find the server or DNS address", but I did once yesterday. Is there any regional only with this domain?

      And same "Location Invalid"issue with DS716+II DSM 6.0.2 Update 6/7. Please have a check b/c finding a new version of Spigot.spk file is so hard and I really want to have an autoupdate via Package Center.

      BTW, if you move .jar plugin from anywhere in the DS to ../Pigot/plugins via SSH, the permission of your plugin changed and then you have to change it by yourself. Otherwise the server can't unzip and use it.

      Delete
    4. This comment has been removed by the author.

      Delete
    5. Oh, APPROVED. I use an US-VPN and the repo website works, but still can't add in the package center

      Delete
    6. Nothing regional on my end. I am linking out for the downloads, so it's possible that there's something there, but nothing I'm doing.

      On the permissions thing, that comes with setting it up as a package on the Synology.

      Delete
    7. Try it now, just updated the repo software.

      Delete
    8. FYI, there was an issue with the repo software that caused issues with "+II" versions of the synology boxes. I've patched.

      Delete
    9. Wow! I'm going to try it again tonight, never thought there was an update on Christmas.
      Thanks a lot

      Delete
    10. FIXED, just a hint for everyone:
      I got a private DNS server with the wrong setting (all domain "synology.me"redirected to my private IPs). That's why it shows up error on web and invalid locaiton in package center.

      Summary:
      If you guys had the problem to add the repo in the package center, please check your dns setting in your NAS or router.

      Delete
  62. Is there a way to update server from 1.10.2 to 1.11?

    ReplyDelete
    Replies
    1. Current version should be 1.11. Have you updated to it?

      Delete
  63. Minecraft 1.11.2 Released. Colin u move! :-)

    would be a little bit annoying for u to receive version update requests innit? maybe some sort of automatic version update or something could be nice.

    Thank you Colin!!

    ReplyDelete
    Replies
    1. Just pushed updates onto the repo. Merry Christmas!

      (and yes, this should totally be some sort of autobuild)

      Delete
    2. first of all thanks a lot for creating the package today! :)

      But...once the package is installed and the server restarted...it stills in 11.0! maybe it is just me but...could u check that please? many many many thanks! :)

      Delete
    3. The spigot and CB packages still say 1.11, but the descriptions say 1.11.2. Not sure why, just bundled the current versions. I'll refresh it again in a few days and see if it's changed.

      Delete
    4. Happy New Year!
      Any news on this? Still saying it is on 1.11
      My 2 boys are impatient MC gamers :-)

      Delete
    5. Spigot 1.11.2-0006 did the same issue and BTW the update reset my whitelist.json and ops.json to default (didn't use other settings, e.g. banned-ips). Anyway to prevent this rather than making a copy of these setting files before update?

      Delete
  64. I've tried to install this package on my DS716+ but it failed.
    I can't see relevant directory for DS716+ on your SPK server. Possibly this NAS type is not supported. Any chance to make it work??

    ReplyDelete
    Replies
    1. Let me see if I can get that sorted. When they add models they have to be updated on the server.

      Delete
  65. Replies
    1. Thanks for fast reaction. I will try ASAP and let you know if it works.

      Delete
    2. Works perfectly but I still need to figure out all configuration nuances on DSM 6. Thank you very much for help!

      Delete
  66. Hi, I would like to know if you plan to create a Sponge version of MC for latest DSM 6.x ?

    ReplyDelete
  67. This comment has been removed by the author.

    ReplyDelete
  68. Hey i found the problem, that for some users the start script doesn't work.

    I have a synology DS216+II with a 64 Bit Cpu and 8GB ram.
    But i installed the ejdk and this is only a 32 bit version. The start script ties now to allocate over 5000MB ram, but java can't do this. So nothing is started. Edit the start script: vim /var/packages/Spigot/scripts/launcher.sh

    and change the lines for the JAVA_MAX_HEAP like this:
    if [ $RAM -le 128 ]; then
    JAVA_MAX_HEAP=80M
    elif [ $RAM -le 256 ]; then
    JAVA_MAX_HEAP=160M
    elif [ $RAM -le 512 ]; then
    JAVA_MAX_HEAP=416M
    elif [ $RAM -le 1024 ]; then
    JAVA_MAX_HEAP=832M
    elif [ $RAM -le 2048 ]; then
    JAVA_MAX_HEAP=1664M
    elif [ $RAM -le 3072 ]; then
    JAVA_MAX_HEAP=2560M
    elif [ $RAM -gt 4096 ]; then
    JAVA_MAX_HEAP=3584M
    #elif [ $RAM -gt 6144 ]; then
    # JAVA_MAX_HEAP=4096M
    #elif [ $RAM -gt 6144 ]; then
    #:w JAVA_MAX_HEAP=5120M
    fi

    ReplyDelete
    Replies
    1. Oh, geez, thanks. I had some high RAM users complaining that they wanted to allocate more and I added those higher tiers, but since I only have 4GB I couldn't test, and didn't think about it being 32 bit JDK. /facepalm

      Delete
    2. OK, just shelled in and checked, my Java says it's 64-bit, running the Java 1.8 distro from Synology:

      OpenJDK Runtime Environment (IcedTea 3.1.0) (linux-gnu build 1.8.0_101-b13)
      OpenJDK 64-Bit Server VM (build 25.101-b13, mixed mode)

      Where are you installing the ejdk version from? 3rd party or is that an option on your DSM version?

      Delete
    3. I have not the OpenJDK. I used the JDK from oracle.
      Link: http://www.oracle.com/technetwork/java/embedded/embedded-se/downloads/index.html

      Delete
    4. Small code correction, this is the right code:

      if [ $RAM -le 128 ]; then
      JAVA_MAX_HEAP=80M
      elif [ $RAM -le 256 ]; then
      JAVA_MAX_HEAP=160M
      elif [ $RAM -le 512 ]; then
      JAVA_MAX_HEAP=416M
      elif [ $RAM -le 1024 ]; then
      JAVA_MAX_HEAP=832M
      elif [ $RAM -le 2048 ]; then
      JAVA_MAX_HEAP=1664M
      elif [ $RAM -le 3072 ]; then
      JAVA_MAX_HEAP=2560M
      elif [ $RAM -gt 3072 ]; then
      JAVA_MAX_HEAP=3584M
      # elif [ $RAM -le 6144 ]; then
      # JAVA_MAX_HEAP=4096M
      # elif [ $RAM -gt 6144 ]; then
      # JAVA_MAX_HEAP=5120M

      Delete
  69. This comment has been removed by the author.

    ReplyDelete
  70. Hi there, Colin,
    Firstly, thank you very much for all your work.
    I am having some troubles getting things going on my DS916+. Is there a certain order that you have to start the packages in order for them to boot up properly?
    ie should I run Spigot before I run Minecraft Server? Or does it not matter.
    Andrew

    ReplyDelete
    Replies
    1. Minecraft and Spigot are separate installations. If you install Spigot you don't need to install Minecraft and vice versa.

      Delete
  71. I don't seem to be able to get the Minecraft Server to run. Clues that it isn't running are:
    1. there is "No Data" in the Minecraft Server View Log on the NAS, and
    2. there aren't any files in the /volume1/homes/minecraft folder

    ReplyDelete
  72. Okay. It worked for a while, and really well. Using PuTTY on my laptop, I went to:
    /volume1/@appstore/Minecraft
    and typed in:
    java –Xms2G –Xmx4G -jar minecraft.jar nogui

    It worked fine until I shutdown the laptop, then the server shutdown on the NAS. So, can you give me a hint about how to get it started through the NAS so that it runs all the time?

    Thanks again,

    ReplyDelete
    Replies
    1. Well, probably the trick is that when you disconnect from NAS the linux shell session is being shutdown, together with the server. Try adding "&" sign after the command, it will disconnect server process from your session, so it will remain alive when you close your putty.

      Try this command instead:
      java –Xms2G –Xmx4G -jar minecraft.jar nogui &

      This is temporary solution. You need to add this command to some startup script in order to have Minecraft server running after NAS reboot.

      Delete
  73. Hi - this is all great stuff. I have everything installed and running and am on 1.11.2 for both the server and the client. My windows client though is reporting that the server is old. I have tried replacing the supplied minecraft.jar with the latest from the official minecraft site. What am i doing wrong or is there a known bug in 1.11.2?
    Thanks
    Steve

    ReplyDelete
    Replies
    1. I also tried deleting the world folder, still the same issue.
      I am on a synology DS213j

      Delete
    2. sorry to keep replying to my own posts! I just thought, could this be due to using Java 8? I have no "Java Manager" app available so i just went for the latest available java instead, which was v8.

      Delete
    3. Weird. Java 8 should be good. I'll have to dig here and see if I can figure it out.

      Delete
    4. I take it yours still works fine?

      Delete
    5. Hello, same issue here on a DS 214, Java8, DSM 6.1.1-15101. Minecraft is running but server is flagged as Old by the game.

      Delete
  74. Thanks for all the work you've put into bringing Minecraft to the Diskstation. I've just set up Java and the Minecraft package and the server is actually shown in Minecraft. However, like Steve, I can't join it. In the server list, it is marked as "old".
    It doesn't make a difference whether I'm running Java 7 or 8.
    Bastian

    ReplyDelete
    Replies
    1. Which model are you running on Bastian?

      Delete
    2. I'm on a DS213j, too. And I'm running DSM 6.1-15047 Update 1.
      -Bastian

      Delete
  75. This comment has been removed by the author.

    ReplyDelete
  76. Hi,
    Where can i found older version of Minecraft Server ?
    Im' still under DSM 5.5

    ReplyDelete
  77. Hi there,
    Is there a console mode for adding whitelist(whitelist add "name") or changing the settings while not in the game?

    Regards

    ReplyDelete
    Replies
    1. From CLI you can access stdin. An example for spigot is as follows (copied from the main text body above):

      echo whitelist add XXXXX >> /tmp/stdin.spigot

      Delete
  78. Colin, I am unable to install. It's saying "failed to install Minecraft from the official download link." I have manually downloaded it, and placed it in the public folder. It's still failing.. Any thoughts?

    ReplyDelete
    Replies
    1. Colin, I figured it out. I had to add wget-ssl. Another strange issue is that when I click on run, it acts like it's running, but it doesn't. There are no logs generated. I can manually start the server via CMD. Any thoughts?

      Delete
    2. I faced the same error, how did you solve it?

      Delete
  79. package source site is down, gives error code 503.

    ReplyDelete
  80. I cannot download the package, error is a problem downloading jar file from official download link (Spigot 1.11)

    ReplyDelete
  81. can not download Spigot.
    the link is dead in the Synology package center

    ReplyDelete
  82. Seems that Minecraft requires now Spigot 1.12.
    It is possible to manually upgrade Spigot on Synology by replacing spigot.jar file with its new version fetched from this location:
    https://getbukkit.org/spigot
    Please remember to set file owner and privileges properly (chown + chmod).

    ReplyDelete
  83. I tried manually updating the minecraft.jar (With the linux version) and it's reporting a headless error. What am I doing wrong?

    ReplyDelete
  84. https://ci.mcadmin.net/job/Spigot/119/artifact/spigot-1.11.2.jar is no longer up, preventing spigot from installing. could you possibly change the filehost?

    ReplyDelete
  85. DSM6.1 has an update to 1.12 in Package Center, but it does not work. Do you know about this issue?

    ReplyDelete
  86. Im trying to install and just gett the message Failed to install

    ReplyDelete
  87. Replies
    1. v1.12.0-0033 finding my server but it says ''old''

      Delete
    2. So...it says ''old'' because the server takes like an hr to start. After the LOG says ''Done'' i can join the server but it takes so long to load and it lags pretty bad... Hardware: DS116

      Any idea?

      Delete
  88. FIXED: Updated JAVA to version 1.8. 144. and installed the server from the minecraft website via putty. Got it to work this way

    ReplyDelete
  89. Thanks for putting so much effort into this project. Please keep up the work.

    I've got the package installed and running on my Synology NAS (414 slim) and it is showing as running.

    Now I'm stuck as I am using a Mac and PuTTY isn't available for Mac...

    I did manage to use Terminal to see the files installed, but there was only a minecraft.jar (not Minecraft Server) in the @appstore/Minecraft/ folder. No server.properties file either.

    Any idea what has gone wrong or how I can connect Minecraft to the sever if there is nothing wrong (as the package is running on the server).

    Essentially I got as far as the 'Command Line' and 'Administration' sections in your instructions above and am now stuck...

    ReplyDelete
  90. Helo,

    Please corrected broken mirror link.
    There is a problem to install package.

    ReplyDelete
  91. Hi

    Please help a dumb user.

    I added your source but could not see the package in package centre so I I downloaded it from your site and installed it manually. It's running.

    But now for the really stupid question. How does a user access it please?

    ReplyDelete
  92. After installing the packages on my NAS I have the Minecraft, Spigot and the Craftbukkit folder in my @appstore folder.
    Each folder jointains a .jar file and an eula.txt but nothing more.

    What do I have to do now?

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. Hi Markus,
      I have the same problem : only a minecraft.jar and a eula.txt file il my /volume1/@appstore/Minecraft
      Have you solve the problem ?
      Many thanks
      Marc

      Delete
  93. Hey Man

    Thanks for all your effort!
    Is it possible to upgrade the package on the repo to 1.12.2?

    kind regards

    ReplyDelete
  94. Hey! I'd love to donate for your continued support of spigot! Is this possible?

    ReplyDelete
  95. Thanks very much for all the hard work you've put into this project. I recently got 12.1 working on my Synology :)

    ReplyDelete

  96. I do not have access to @appstore so you can add the ability to rename files.

    ReplyDelete

  97. I do not have access to @appstore so you can add the ability to rename files.

    ReplyDelete
  98. Hi,

    I installed 12.1 and it shows as running in the log.
    Now I try to connect for my iPad and it says (after I add the world):
    Server is being searched (in Dutch), and when I click it:
    Cannot connect to world (in Dutch)

    I must be doing something wrong. Any ideas?

    KR, Jeroen

    ReplyDelete
    Replies
    1. The iPad runs a different version of Minecraft. You won't be able to connect to the Java Minecraft server.

      Delete
  99. hey i am running spigot on dsm 6 and how do i change the version and every time i try edit files on it using the admin account it says i dont have permissions to edit it

    ReplyDelete
  100. Thanks for all your work on this - my kids would be very grateful (if I can get it to work)!


    It has downloaded the jar and installed it and is running. But that is where I get completely lost as I only have Apple computers available and cannot follow the SSH instructions to be able to do anything (not that I fully understand them).

    Any suggestions for a Mac user so I can get this working for my kids to be able to access the world from their tablets or computers?

    ReplyDelete
  101. Hi Colin and all,

    had it working with the minecraft server package on a ds415+ WITH 8 GB RAM. Thing had a failed atom processor, got it back from synology and had to reinstall ...

    Can not remember how I did it before...

    I have the java 7 package from oracle running (that is what the logfile says) and installed both minecrat and spigot. Both show empty logfiles and cli putty to their directories only shows the eulas (both accepted) and the minecraft and spigot jar files but no other properties files...

    Am I too impatient (I read stories of waiting an hour or so) or is something wrong?

    In a terminal window I can issue java commands from the java7 directory and the commandline way to start the server says



    Unsupported major.minor version 52.0


    Plz anyone?

    ReplyDelete
  102. got it partially working.

    I can 'manually' start the server (MC) bij commandline issuing the command

    java -Xmx1024M -Xms1024M -jar minecraft_server.1.12.2.jar nogui

    Before this I replaced the minecraftserver.jar file in the /volume1/@appstore/Minecraft folder with the file minecraft_server.1.12.2.jar from https://minecraft.net/nl-nl/download/server.

    I did it with java 8, downloaded from oracle.

    You do need a folder called public, where you place the oracle-java file. After the java installation, I could not get it to work with the package starting. (no other files in the minecraft folder than the eula and the minecraft.jar file)

    I then downloaded the .1.12.2 file from mojang, and that worked.

    ReplyDelete
  103. Server restart (/restart command) does not work. Maybe missing script?

    ReplyDelete
  104. Hi. i'm running latest DSM, latest Minecraft server package from you, i only added a java parameter to run on tcpv4 instead of tcpv6, but i cant connect. My win10 client can't find a game, and if i direct connect, it says it cant connect
    I tried to telnet to my Syno port 25565 and the connection got open.

    But Minecraft client wont connect.

    ReplyDelete
  105. Hello Collin
    thank you for all your work.
    The server is running on my NAS, but do you know if someone had written a tutorial "how to connect" player ? I'm a newbie using NAS and Minecraft (ipad version) so if you know where i can find some information? Thank you ! (sorry for my so bad english...)

    ReplyDelete
  106. Hi. I had this running fine on my new DS218j but then decided I wanted a DS218+ instead. Moved drives over to DS218+, did some faffing about and to cut a long story short, have done everything as before but now only have the minecraft.jar file in /volume1/@appstore/minecraft. Hwo to do get the .jar file to expand (install)?
    Thanks.

    ReplyDelete
  107. Hi. I installed minecraft on my DS218J but decided I wanted a DS218+ instead. Moved drives over but no joy running minecraft on it. Reinstalled but I just have the minecraft.jar file in /volume1/@appstore/Minecraft. So it hasnt installed correctly. Can anyone tell me what Im dojgn wrong please and how to fix?
    Thanks

    ReplyDelete