Hi everyone, I’m a total newbie on Linux and Rpi.
Since there are many successful cases, I thought it’s quite easy to set a minecraft server on Rpi, alone with faster CPU, I can play with more friends online.
But while I followed the tutorial on mineOS wiki and start running my server, many problems pops out…
Here are problems and how I tried to solve them.
Server log on webUI does not update automatically, thus I have to manually refresh webpage to see new logs.
The big problem is, the 1st time start took very very long time to prepare spawn area, almost 3 hours. I type $top to see CPU status, and it shows java used over 100% cpu while server preparing.
This problem was solved by changing java from openJDK to oracleJRE
It only take less than 1 min to start a new world now. But another problem has come.
After the server seems stable, I use $top again, and find java only use about 30% CPU, but in a 3-5 interval, it spike to 100%.
Some article said adding nogui while start java can solve this problem, but it does’t work in my scene.
Finally, I logged in with PC, in about 3min, server just crashed.
I went back to see server log.
Hi tNt,
Thanks for your reply, you remind me that there are many things I should check.
Here I can only answer some of your questions because Rpi is somewhere I can’t reach now.
There is no mod installed, I’m using official server.
Yes, I’ve updated MineOS and WebUI as wiki tutorial says.
I don’t know what is this… Is this the version of webUI?
I don’t think so…maybe I will try it and see if this solve the sync problem?
Rpi has only 1G Ram, therefore I think max can’t be set above 1G
Yes, on the top right corner of MineOS WebUI is an arrow next to your log in name. (git commit xxxxx).
No. Trick question to see if you have enabled ‘root’. You have not, so that is not an issue.
Correct, not set above 1gb. However you leave no memory for anything else.
I am not to familiar with your type of hardware. But others here may help.
My impression is you are underpowered but I have been wrong before.
Of note are also the ‘stack guard’ error and the crash (and “crash report”). I feel the server crashed because the server hung due to lack of memory to run, MineOS noticed a ‘tick’ was taking forever and shut down.
Raspberry is a quite small little workhorse, but it might be a bit weak to take on the standard MineOS (as your problems may attest to…)
I know @hexparrot experimented with an RaspBerry a while ago (before he switched to the disourse forum format, and still used google groups as format): You can read about that here: https://groups.google.com/forum/#!searchin/mineos/raspberry/mineos/yN9dwF70ZC4/7OjFy1vYKdsJ. BUT: That forum is no longer in use, so questions asked on the linked post will probably not be answered. So come back here to continue dicussing this
Today I modified max tick time from 60s to -1, and the crash problem was solved!
Looks like the watchdog of Minecraft server is the cause of crash.
However…the server is still laggy, that I can barely tell it’s “working”.
I think now it’s the performance issue that remain to be solved.
It’s hard to believe that with so much improved hardware(compare to Rpi1), Rpi3 is still not able to run a small server with no mod, even reach the minimum requirements of a dedicated server.
Real quick I figured I’d chime in on the subject of running mineOS an a pi 3.
I would definitely use an optimized minimal OS. Currently the best available that I can be found here, DietPi. DietPi even has MineOS install setup.
Secondly I can’t stress enough you should run the server off of a hard drive instead of a thumb drive or SD card. Not only because of limited performance but storage medium failure due to high read/writes. DietPi has an option to install programs onto HHD/SSD with ez. If you end up checking out let me know here.