Minecraft Bedrock Edition – Ubuntu Dedicated Server Guide

Minecraft Bedrock Edition Logo
Minecraft: Bedrock Edition Logo

Minecraft Bedrock Edition is the version of Minecraft that powers the iPhone / Android versions (formerly Minecraft Pocket Edition), the Xbox / PlayStation / Nintendo Switch editions and the free Windows 10 Minecraft edition.

Mojang has released a dedicated server which is considered to be in alpha testing.  I have found it to be very stable and able to run on a wide variety of hardware.

This script and guide are written to help you get a robust Minecraft Bedrock dedicated server up and running in only a few minutes!

This is the standalone version. The easiest and most problem-free way to run this is using Docker (installed as simply as sudo apt install docker.io): Legendary Minecraft Bedrock Container

I’ve also released a way for Java and Bedrock players to play on the same server using Geyser: Minecraft Java + Bedrock Server Together – Geyser + Floodgate

It’s now possible to convert your worlds between Bedrock and Java versions. Check out my guide on Chunker here for more information.

Features

  • Sets up the official Minecraft Bedrock Server (currently in alpha testing)
  • Fully operational Minecraft Bedrock edition server in a couple of minutes
  • Ubuntu / Debian distributions supported
  • Sets up Minecraft as a system service with option to autostart at boot
  • Automatic backups when server restarts
  • Supports multiple instances — you can run multiple Bedrock servers on the same system
  • Updates automatically to the latest or user-defined version when server is started
  • Easy control of server with start.sh, stop.sh and restart.sh scripts
  • Adds logging with timestamps to “logs” directory
  • Optional scheduled daily restart of server using cron

Requirements

  • A computer with a 64 bit processor (if you are trying to use ARM read my article on the limitations). 32 bit binaries of the official server are not available so it needs to be 64 bit!
  • 1 GB of RAM or higher
  • The only officially supported platform by Microsoft is Ubuntu 22.04 / 20.04 (current LTS, recommended)
  • Other Linux flavors supported by this script as well as long as they use systemd (for the service). The script assumes apt is installed but there are minimal dependencies so you could install these on another distro (that doesn’t have apt present) and use the script normally.

Recommended Gear

Game Editions

Minecraft: Bedrock Edition is the “Windows 10” version of Minecraft as well as the version of Minecraft on the Xbox / Playstation / Switch. The versions of Minecraft for Android and iOS are also the Bedrock edition.

All of these versions support cross-platform play with each other (but not with the Java edition).

Minecraft Bedrock Digital Code
Minecraft Bedrock Digital Code

This is the PC Minecraft for Windows 10 (Bedrock) edition of Minecraft. It is able to play cross-platform with other players on Android / iOS / Playstation / Xbox / Switch. Available as a code that is instantly activated to give you permanent access to the game!

Links: Amazon.com*, Amazon.co.jp*, Amazon.co.uk*, Amazon.de*, Amazon.es*, Amazon.fr*, Amazon.it*

Minecraft Bedrock Playstation
Minecraft Bedrock Playstation

The Sony PlayStation version of Minecraft: Bedrock edition.

Links: Amazon.com*, Amazon.ca*, Amazon.com.au*, Amazon.co.jp*, Amazon.co.uk*, Amazon.de*, Amazon.es*, Amazon.fr*, Amazon.it*, Amazon.nl*, Amazon.se*, Amazon.sg*

Minecraft Bedrock Nintendo Switch
Minecraft Bedrock Nintendo Switch

This is the Nintendo Switch version of Minecraft: Bedrock edition.

Links: Amazon.com*, Amazon.ca*, Amazon.com.au*, Amazon.co.jp*, Amazon.co.uk*, Amazon.de*, Amazon.es*, Amazon.fr*, Amazon.it*, Amazon.nl*, Amazon.pl*, Amazon.se*, Amazon.sg*

Minecraft Bedrock Xbox One
Minecraft Bedrock Xbox One

This is the Microsoft Xbox version of Minecraft: Bedrock edition.

Links: Amazon.com*, Amazon.ca*, Amazon.com.au*, Amazon.co.uk*, Amazon.de*, Amazon.es*, Amazon.fr*, Amazon.it*, Amazon.nl*, Amazon.sg*

Recommended Storage (Solid State Drive)

I strongly recommend a Solid State drive (SSD) for your server. This is because Minecraft is constantly reading/storing chunks to the disk which makes I/O performance very important.

These are much cheaper than they used to be. Here’s a decent 120 GB one (higher capacity options are available) at a very low price:

Kingston A400 SSD
Kingston A400 2.5″ SATA SSD

The Kingston A400 is reliable, widely available around the world, has low power requirements and performs very well. It’s also very affordable. This drive has been benchmarked over 1000 times at Pi Benchmarks and is the #1 most popular SSD among the community!

Links: AliExpress*, Amazon.com*, Amazon.ca*, Amazon.com.au*, Amazon.co.jp*, Amazon.co.uk*, Amazon.de*, Amazon.es*, Amazon.fr*, Amazon.it*, Amazon.nl*, Amazon.pl*, Amazon.se*, Amazon.sg*

If you have a M.2 NVME slot in your motherboard you can go with a high end drive. This will give your server maximum performance even if a large number of players are running around on the server changing blocks and triggering disk writes.

This is the one I have in my machine. These range from 250 GB to 2 TB depending on how big your server might grow:

The Samsung 980 Pro (NVMe) is a professional grade SSD and one of the fastest in the world. The Samsung NVMe drives have been at the top of this category for a long time and are well trusted for both their performance and reliability / long life.

Links: AliExpress*, Amazon.com*, Amazon.ca*, Amazon.com.au*, Amazon.co.jp*, Amazon.co.uk*, Amazon.de*, Amazon.es*, Amazon.fr*, Amazon.it*, Amazon.nl*, Amazon.pl*, Amazon.se*, Amazon.sg*

Computer / CPU / Memory

Almost any PC made in the last few years will be a x86_64 bit computer. If you have an older computer around that isn’t being used then it will most likely have the right CPU and amount of memory (as well as fast storage) to run a basic server.

Throwing a SSD in one of these older computers will provide an excellent server experience for small and larger player counts.

The speed of your storage will make the largest difference. Older HDDs are going to have significantly slower performance than any modern SSD even with all other hardware equal. This is because the Minecraft server is constantly reading/writing chunks of your world as well as updates to it to the disk so this tends to be the bottleneck.

Operating System

I highly recommend using Ubuntu Server to run the Minecraft dedicated server. It is available here.

At the time of writing the current version is Ubuntu Server 20.04. This is a secure and robust operating system and will leave plenty of resources available for the server to run.

The script should run on any Debian based flavor of Linux but since the Minecraft Bedrock server is compiled natively for Ubuntu I recommend sticking with it. If you have a GUI flavor of Ubuntu and a decent PC (>= 2 GB of RAM) the server will work just fine on it.

Note: People have reported in the comments that Ubuntu 16.x is no longer working with the latest official Mojang binaries. Ubuntu 18.04 is the minimum requirement for the latest versions, and 20.04 is recommended!

Installation

Log into your Linux server either using SSH or a mouse and keyboard and paste/type the following command:

curl https://raw.githubusercontent.com/TheRemote/MinecraftBedrockServer/master/SetupMinecraft.sh | bash

The script will setup the Minecraft sever and ask you some questions on how to configure it. I’ll explain here what they mean.

The first question will be the installation path. This is the root installation path for ALL servers you will have. If you add additional servers later you should select the exact same installation path. It should always be left as the default (~).

The only exception is if you have something like a completely dedicated disk for the Minecraft server. In that case you should always use the same root path of /mnt/yourdrive or wherever the path is for every new/additional server you install.

“Start Minecraft server at startup automatically (y/n)?” – This will set the Minecraft service to start automatically when your server boots. This is a great option to set up a Minecraft server that is always available.

“Automatically restart and backup server at 4am daily (y/n)?” – This will add a cron job to the server that reboots the server every day at 4am. This is great because every time the server restarts it backs up the server and updates to the latest version. See the “Scheduled Daily Reboots” section below for information on how to customize the time or remove the reboot.

That is it for the setup script. The server will finish configuring and start!

First Run

The server will start up and start displaying output to the console.

[2019-03-30 20:25:12 INFO] Starting Server
[2019-03-30 20:25:12 INFO] Version 1.10.0.7
[2019-03-30 20:25:12 INFO] Level Name: Bedrock level
[2019-03-30 20:25:12 INFO] Game mode: 0 Survival
[2019-03-30 20:25:12 INFO] Difficulty: 1 EASY
[2019-03-30 20:25:20 INFO] IPv4 supported, port: 19132
[2019-03-30 20:25:20 INFO] IPv6 supported, port: 19133
[2019-03-30 20:25:23 INFO] Server started.

Once you see the “Server started” line you will be able to connect from the client.

To add the server to the client open Minecraft and click “Play”. Then at the top of the screen select the “Servers” tab and click “Add Server”.

This will ask you for a Server Name and Server IP Address. For the name you can put anything and for the server IP address put the address of your Linux server. Leave the port as the default 19132. For more information on how to let people from outside your network on go to the “Port Forwarding” section below.

Now choose the server you just added in the list and connect!

Start, Stop and Restart Server

The server can be started, stopped and restarted two different ways. You can use the provided scripts in the Minecraft folder or you can use systemctl. Here are the commands:

cd ~/minecraftbe
./start.sh
./stop.sh
./restart.sh

-OR-

sudo systemctl start minecraftbe
sudo systemctl stop minecraftbe
sudo systemctl restart minecraftbe

Automatic Backups

The server backs up each time it starts. This helps you recover easily if something goes wrong. This system works best if you configured the server to restart daily since it means you will have a backup every day.

To access these backups type:

cd ~/minecraftbe/backups
ls

When a backup is made the filename will be the date and time the backup was taken. If you need to restore a backup it’s very easy. Substitute the timestamp in my example to the backup you want to roll back to. Type:

cd ~/minecraftbe
./stop.sh
rm -rf worlds
tar -xf backups/2019.02.15.22.06.30.tar.gz
./start.sh

Your world has now been restored! It’s a good idea to download these backups off the server periodically just in case the server’s storage fails.

Installing Resource Packs / RTX Support

For instructions on how to install resource packs (including optional RTX support) view my step by step Minecraft Bedrock Dedicated Server Resource Packs guide here.

Scheduled Daily Reboots

The daily reboots are scheduled using cron. It’s very easy to customize the time your server restarts.

To change the time that the server restarts type: crontab -e

This will open a window that will ask you to select a text editor (I find nano to be the easiest) and will show the cronjobs scheduled on the server. The Minecraft one will look like the following:

0 4 * * * /home/ubuntu/minecraftbe/restart.sh
Crontab's syntax layout
Crontab’s syntax layout

There are 5 fields here. The default restart time is set to reboot at 0 minutes of the 4th hour of the day (4 AM). The other 3 fields are left as * to represent every day of every month. Make any desired changes here and press Ctrl+X to exit nano and update the cronjob.

To remove the daily reboot simply delete the line and save.

Reconfigure / Update Scripts

The scripts can always be reconfigured and updated by downloading the latest SetupMinecraft.sh and running the installer again. It will update all of the scripts in the Minecraft directory and reinstall the startup service for you.

Running SetupMinecraft.sh again will also give you a chance to reconfigure options such as the memory dedicated to the server, daily reboots, starting the server on boot, etc.

This will not overwrite your world or any other data so it is safe to run!

Port Forwarding

If everyone on your server is on the same LAN or WiFi network as you then you don’t need to do this. If you want people to connect from outside your local network then you need to set up port forwarding on your router.

The process for this is different for every router so the best thing to do is just look at your router and find the model # and put that in google with port forwarding for easy instructions on how to do it for your specific router.

You want to forward port 19132. The type of connection is both TCP and UDP. On some routers you need to do both a TCP entry and then a second entry as UDP.

Once you do this people will be able to connect to your Minecraft server through your public IP address. This is different than your local IP which is usually a 192.x.x.x or 10.x.x.x. If you don’t know what that is just go to google and type “what’s my ip” and Google will kindly tell you!

Version Override

You can revert to a previous version with the revert.sh script included in your directory like this:

james@jamesgigabyte-linux:~/minecraftbe/james$ ./revert.sh
Set previous version in version_pin.txt: bedrock-server-1.19.10.20.zip

If you have a specific version you would like to run you can also create version_pin.txt yourself like this:

echo "bedrock-server-1.18.33.02.zip" > version_pin.txt

The version hold can be removed by deleting version_pin.txt. This will allow it to update to the latest version again!

Wired vs. Wireless

Going with an ethernet (wired) connection is going to be faster and more reliable. There’s so much wireless traffic and other interference in the air that running your server on WiFi is not recommended.

Even if it is working great 99% of the time it can ruin your experience very quickly if the WiFi drops for a couple of seconds and you get blown up by a creeper!

All that being said, the server works fine on wireless. The script will work fine as is with a wireless connection.

Benchmarking / Testing Storage

If you’re getting poor performance you may want to run my storage benchmark with:

sudo curl https://raw.githubusercontent.com/TheRemote/PiBenchmarks/master/Storage.sh | sudo bash

PC results won’t show up on the site yet (it’s meant for Raspberry Pi) but it will run on Linux just fine and give you a score. If you search for the model of your drive on Pi Benchmarks you can compare your score with others and make sure the drive is performing correctly!

Troubleshooting Note – Oracle Virtual Machines

A very common problem people have with the Oracle Virtual Machine tutorials out there that typically show you how to use a free VM is that the VM is much more difficult to configure than just about any other product / offering out there.

It is because there are several steps you need to take to open the ports on the Oracle VM. You need to both:

  • Set the ingress ports (TCP/UDP) in the Virtual Cloud Network (VCN) security list
  • *and* set the ingress ports in a Network Security Group assigned to your instance

Both of these settings are typically required before you will be able to connect to your VM instance. This is purely configuration related and has nothing to do with the script or the Minecraft server itself.

I do not recommend this platform due to the configuration difficulty but the people who have gone through the pain of configuring an Oracle VM have had good experiences with it after that point. Just keep in mind it’s going to be a rough ride through the configuration for most people.

Troubleshooting Note – Hyper-V

There is a weird bug in Hyper-V that breaks UDP connections on the Minecraft server. The fix for this is that you have to use a Generation 1 VM with the Legacy LAN network driver.

Conclusion

The Minecraft Bedrock Edition dedicated server runs much better than previous third party servers in the past that were missing critical features. The performance is very good even on low end hardware. It has never been easier to set up a Minecraft Bedrock server.

If you have any feedback or suggestions let me know in the comment section. A lot of the changes and developments in this script and guide are directly from readers.

Have fun!

Other Resources

For a guide on how to set up resource packs check out my Minecraft Bedrock Resource Pack guide

If you’re trying to run this on the Raspberry Pi check out the Raspberry Pi specific guide here

Subscribe
Notify of
guest

1.6K Comments
Inline Feedbacks
View all comments
Will
Will
2 years ago

Wow this is great! If I already have a BDS server in Ubuntu, should I run the script as normal, then copy the contents of my old worlds folder to the worlds folder in the new directory, then add the old worlds name to server.properties?

Have you have any luck with high render distance? I have view distance set to 60 on my server and the performance is great, but it crashes and corrupts the world every few days.

Thank you!

Will
Will
2 years ago

Thank you for the reply! We do have newer gaming computers, so there is never any lag. I also tried a render distance of 50, but still had corruption after a few days. I upgraded the server today to a much faster PC (5900HX) with NVME SSD and also plan to give your code a test. I am hopeful it will fix it. Do you think the the corruption could also be due to one of my friends having DSL internet with a very high ping and by having a high render distance?
Is playing Java edition with optifine really the only way to reliably get very high view distances? Thanks again, I am going to send something to your Paypal because you are awesome!

Will
Will
2 years ago

Sorry to say I am still getting corruption even after changing hardware and using your code. Previously the server would crash with an error code stating unable to read .db file. Now the server crashes with the following log:

[2022-04-20 20:06:32] CrashReporter Key: 8c4937c1-64cb-3532-a8dc-1deb28f67293
[2022-04-20 20:06:32]
[2022-04-20 20:06:32] Crash
[2022-04-20 20:06:32] [2022-04-20 20:06:32:651 INFO] at clone (UnknownFile:?)
Failed to open curl lib from binary, use libcurl.so instead
[2022-04-20 20:06:33] 5ae507cf-1765-4f8d-9a2a-edf216dfd916

This save works fine in offline and does not register as corrupt. The server was working perfectly until it crashed. No lag or anything. I do have the view distance at 50, but the NVME in the server scored something like 30k in the RPi test. I did get an error message after installing your code, but the it still seemed to work. The error was after the line “Setting server file permissions” and stated: “tail: cannot open ” for reading: No such file or directory”

Any ideas on what to try? If you think it is the view distance to high, what is a reasonable setting?

Will
Will
2 years ago

Both servers were fresh installs, the old server had the latest version of Mint, the new one has Ubuntu Server 20.04. Could it be due to the fact that both machines came pre-installed with Windows 10, though it did wipe the partitions when I installed Ubuntu from a flash drive? I am using Rufus on Windows to make the boot drives. Should I try the following: Recreate the Ubuntu installation media using a different software, such as Balena Etcher, then boot using the USB, wipe the NVME, then install? Thanks again!

Will
Will
2 years ago

I fully erased the USB and NVME using Gparted in Linux, then reinstalled Ubuntu Server 20.04.4. Sorry to say I am still getting the same crash as above. View distance is set to 32 and tick to 10.

Will
Will
2 years ago

I hesitate to say it’s fixed, but I found something that causes it to not give that exact same error as above. It was still giving me the exact error above even after full erasing the hard drives and using low settings. I tried ./fixpermissions.sh to fix permissions serveral times but it would still crash within 30 minutes. Instead I ran “sudo ./fixpermissions.sh” and it has not crashed in 18 hours with multiple people playing.

Will
Will
2 years ago

Hello again, it’s been smooth sailing the last month with no issues! Happy to report whatever was causing the crash is now fixed. The new revert function is very useful and I was able to set everything back up immediately after the new preview release. I noticed you said we should revert back to the last backup if we opened with the new server version, do you know when the beta update was pushed? I have been out for a few days. It looks like it was released 5/25, but I am not sure if I should use the backup from 5/25 or 5/24 at 4AM EST.

Will
Will
2 years ago
Reply to  Will

Nm I followed the logs and found my answer. Thanks again

Ian goh
Ian goh
2 years ago

Hi, how do I make myself an operator of the server

Sebastian
Sebastian
2 years ago

Hi,
thank you very much for your tutorial! I managed to set up a server and now I am playing around with multiple instances. It sort of works, but when I restart the server (the main PC) not all instances start up. I configured them with different names and ports and as such it works. Only the start-up is somehow buggy.
Is there something I need to change to make it more reliable?

Best regards,
Sebastian

justin
justin
2 years ago

James,

I have just copied my rPi 4 from SD card to USB/SSD.
Minecraft no longer runs.
Your startup script completed, and the server started, but did not complete.
Any ideas what I might have done wrong?

Here is the log:
[2022-03-23 12:20:54] NO LOG FILE! - setting up server logging...
[2022-03-23 12:20:54] [2022-03-23 12:20:54:919 INFO] Starting Server
[2022-03-23 12:20:54] [2022-03-23 12:20:54:922 INFO] Version 1.18.12.01
[2022-03-23 12:20:54] [2022-03-23 12:20:54:922 INFO] Session ID b8d471ac-9b77-4771-875e-4803cd2b326f
[2022-03-23 12:20:54] [2022-03-23 12:20:54:951 INFO] Level Name: Bedrock level
[2022-03-23 12:20:54] [2022-03-23 12:20:54:992 WARN] 'whitelist.json' will be deprecated. Please migrate to 'allowlist.json'.
[2022-03-23 12:20:54] [2022-03-23 12:20:54:006 INFO] Game mode: 0 Survival
[2022-03-23 12:20:54] [2022-03-23 12:20:54:007 INFO] Difficulty: 1 EASY
[2022-03-23 12:20:55] [2022-03-23 12:20:55:111 INFO] opening worlds/Bedrock level/db
[2022-03-23 12:20:55] [2022-03-23 12:20:55:120 ERROR] DBStorage chain is invalid. Possibly encryption-related, or bad DBStorageConfig passed. Reason: Unable to decipher/decrypt LevelDB.
[2022-03-23 12:20:56] [2022-03-23 12:20:56:744 ERROR] Network port occupied, can't start server.
[2022-03-23 12:20:56] [2022-03-23 12:20:56:745 INFO] Server stop requested.
[2022-03-23 12:20:56] Quit correctly

Regards
justin

Tom
Tom
2 years ago

Thanks for the guide. I set it up flawlessly in December with two servers that were running with little issue. Then one of the servers started to say it was full when there were no players on it. The fix was to restart it. However, recently, I ran into the issue that the servers won’t start up at all. When I run the ./start command it acts as if it is starting, but when I try to connect with the screen command there are no sockets running.

I also downloaded and created a new server in another directory. That worked fine, but when I restarted that server, I got the same results. I assume the issue must be with my Ubuntu setup, but I’m really quite a novice at Linux. These minecraft servers are really the only thing running on the server computer. Any help troubleshooting would be great. I’ll post the text from putty below. Thanks.

xxxx@wardsrockserver1:~/minecraftbe/wardsrock_survival$ ./start.sh
Backing up server (to minecraftbe/wardsrock_survival/backups folder)
worlds/
worlds/Bedrock level/
worlds/Bedrock level/level.dat_old
worlds/Bedrock level/levelname.txt
worlds/Bedrock level/db/
worlds/Bedrock level/db/005385.ldb
worlds/Bedrock level/db/MANIFEST-005632
worlds/Bedrock level/db/005626.ldb
worlds/Bedrock level/db/005624.ldb
worlds/Bedrock level/db/005633.ldb
worlds/Bedrock level/db/005628.ldb
worlds/Bedrock level/db/005634.log
worlds/Bedrock level/db/005498.ldb
worlds/Bedrock level/db/CURRENT
worlds/Bedrock level/db/005625.ldb
worlds/Bedrock level/level.dat
Checking for the latest version of Minecraft Bedrock server ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 307k 0 307k 0 0 328k 0 --:--:-- --:--:-- --:--:-- 328k
Minecraft Bedrock server is up to date...
Starting Minecraft server. To view window type screen -r wardsrock_survival
To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D
xxxx@wardsrockserver1:~/minecraftbe/wardsrock_survival$ screen -r wardsrock survival
There is no screen to be resumed matching wardsrock.

Tom
Tom
2 years ago

It looks like the problem was in the save file. I deleted the Worlds directory, and It has been running fine since. fortunately the kids have only logged a few hours in the previous save.

Jake
Jake
2 years ago

Hey There! I have the same issue as Tom. The kids in the family try to connect to the creative server(the first and primary instance) and it gives the same “Server is full” message. I previously spun up a second instance for survival mode for the older kids and I, using 19134/tcp and 19135/udp for the second as the first was using the default ports, and it worked fine for a while but then the original server started give the aforementioned error, saying the server was full. I’d check and it wasn’t even running, stating that it failed to run with “error-code” as the error. The logs for each failure state the same message:

[2022-03-25 04:39:37] [2022-03-25 04:39:37:578 ERROR] Network port occupied, can't start server.
[2022-03-25 04:39:37] [2022-03-25 04:39:37:578 INFO] Server stop requested.
[2022-03-25 04:39:37] Quit correctly

I check and there is nothing listening on those ports at that time. Rather confusing.

There are no spaces in the server name: “kidsmcserver”.

If I systemctl stop {2nd-server-name} and then systemctl start kidsmcserver, all is well. As a result I’m going to go remove the second server from the Cron job and hopefully just keep the second server offline and out of the way. But any ideas on what I can do here? I’m not sure what deleting or changing with the worlds directory will help with.

Thanks!

Jake
Jake
2 years ago
Reply to  Jake

Here is what i’m seeing in the crontab:

0 4 * * * /home/jake/minecraftbe/kidsmcserver/restart.sh
0 4 * * * /home/jake/minecraftbe/kidsmcserver/restart.sh 2>&1
0 4 * * * /home/jake/minecraftbe/Surv1v3/restart.sh 2>&1

I’m not sure why the first server in in there twice, and I don’t know what “2>&1” means. I shall go google it but incase it helps with anything, there it is.

Thanks!

Dekosha
Dekosha
2 years ago

Hey James, i have some trouble.
My Server dont find the directory sbin/route and always try to get it. and i dont hace the directory route. can you help me please?^^

Dekosha
Dekosha
2 years ago

i try it two times. no i get the failure, that the network interface not up. what does it mean?

Gruntzilla
Gruntzilla
2 years ago

James! I adore this guide, (I’m particularly fixated on not having to update manually, easy to scale, but also the nearly 0-decision/guesswork scripting!

However it’s secretly killing me as I just can’t get anything to connect, and until I do, my 6 year old daughter and her friends won’t stop creating worlds for 8 people from their wifi ipads while their parents dual-stream netflix 🙂

At the same time, I think you could add value to your guide by including a guide to using Oracle’s free cloud ubuntu servers. Because free is free, and 24/7 power ain’t always cheap 🙂
I tried using this guide from reddit (in case the link doesn’t make it to the post, it’s a reddit post called how_to_create_a_free_minecraft_bedrock_server)

First I followed their instructions right up to the download, just to get the oracle VM up, then installed with your download link and went forward from there.
I can’t remember all the roadblocks I hit in the last couple weeks, there were a few. If there’s a log I can grab for you, happy to provide that if you can point me where to find it. I’ll list my trials/errors at the bottom if you want all that hacky after-thought level of detail.

But no matter what I;ve tried, I get “Unable to connect to world” adding the server to my gaming pc (that has no issues connecting to my daughter’s ipad, her friends, or coworker’s dedicated windows box). I’m using the cloud vm’s public IP for the server and port19132.. I can ping the ip, the port 19132 settings are enabled from the oracle config AND in firewalld, the service is up and running.

This LOOKS like the issue, but nothing I found via google in ubuntu or oracle’s settings makes any difference, (even when they solve an actual error message on the server.)

Test-NetConnection -ComputerName "X.X.X.X" -InformationLevel "Detailed" -Port 19132
WARNING: TCP connect to (X.X.X.X : 19132) failed
WARNING: Ping to 1X.X.X.X failed with status: TimedOut

I’m a linux amateur, but I’ve done my share of windows scripting, so I have a rough idea of what the commands are doing, and why services/permissions might not be working, but half the time I don’t know how to check, or what would look out of the ordinary in the first place.

Unless you have any really obvious ideas, Before deep diving any further,
I’m HOPING I could convince you to try it out in oracle cloud using your scripts, and see if you have any problems, so I know whether to keep beating my head against the (fire)wall or not! I guess instead of 8000 words I should have just asked that, but maybe you’ll feel sympathy for my struggles 🙂

Kudos for the guide though, I’ve been super-excited to make this work for like 2 weeks since my daughter got sick! It’s literally the only one I’ve seen that I refuse to give up on.

Some issues/troubleshooting:

I wanted a different username than the default oracle ‘forced’, so I had to use chown to get some extra permissions and create some folders manually.

The firewalld instructions were giving me no end of problems, but I think I finally solved with sudo systemctl mask iptables, and also disable ufw. (Maybe oracle’s image is the source of all my problems?)
Also, the start/restart.sh scripts (and even the initial install script) sometimes ran into issues with missing files/directories more often than I’d expect, but I’m not sure I wasn’t running from the wrong place, or just did a poor job with manual cleanups of previous attempts. The latest re-install seems to have gone error free, but I’m paranoid so i’ve been using sudo systemctl start mcbe (my server ‘name’) instead of the script as required.
Oh, and worth it or not, I did edit /usr/lib/systemd/system/initrd-switch-root.service to include “/usr/bin/ in the line ExecStart=/usr/bin/systemctl --no-block switch-root /sysroot earlier today which seemed to make a difference in auto-start working…
Finally, (maybe meaningless but..?) every time it starts it says [2022-03-18 07:16:06] NO LOG FILE! - setting up server logging... permission issue creating new log maybe?

Gruntzilla
Gruntzilla
2 years ago

First up, can I please bother you to strip the IPs out of my previous message, I couldn’t find an edit button, (and I didn’t even notice they were there when I pasted the ping results for the port), the last thing I need is more attention on a private server for 6 year olds 🙂

Great news though! Somewhere along the line I had already tried this and it failed (likely while I had 2 firewalls?), but after re-reading a bunch of your other threads, it turns out that changing AWAY from port 19132 made all the difference. It’s up and running just fine, though I haven’t tested anyone else’s connections yet, (I want to at least import some flashy planet minecraft build or something to catch their eye and draw them away from the ipad-shared games. Can’t have them “Meh” at it out of the gate!

But, yes, I did create the second account, (and weirdly, I had read that exact ‘user’ comment, wondering why he wouldn’t just update the post if he knew that! (because it triggered me to really make a point of doing the 2nd user since oracle just uses “ubuntu” with no obvious way to even change it) I remember going out of my way to create those folders exactly as you suggested (which thinking back, I probably stole from one of your earlier troubleshooting threads as well.)

So, I’m still fairly confident timing/frustration/manual deletes (and the 2 user profiles), and fix over fix over fix created the issues that led to those missing ile/folder errors in your script that (But it was so nice to just delete some folders/.service files and one-line your script to reinstall!!!!!!)

I am going to try your (Java) script on a pure setup with an ARM/oracle server (4gb RAM free, and the ‘guide’ actually comes from the oracle forums), and attempt to do a PaperMC/Geyser/multi-world-portal setup to hopefully get some grief prevention and some mini games / mods to keep their attention span, but it will still need a survival world anyway. (Now that I say that, I guess it won’t really confirm anything since I’d be using your java/Raspberry Pi guide/script, but I’ll let you know when I get there!)

Coincidentally, an oracle sales-guy cold-called me the other day to ask about my server and I just said “I’m not who you’re hoping for with no plans to grow, I just read a guide for a minecraft server for my kid that doesn’t cost me hydro $, and won’t have people calling me during meetings to reboot it. He was like “Oh I understand, you’d be surprised how many people tell me exactly that”, so it seems like it’s working just fine for others, and now I can say – mine certainly did.

I’d guess this has always been about using port 19132, but likely also has something to do with the iptables/firewalld/ufw stuff as well if others are failing too. Just in case you run into more of ‘us’ in the future. If I do need to nuke this thing and start over, I’ll limit it to that and let you know, but for now I’m not touching it while it works beyond importing a new world

I really appreciate the super-quick response, and all the details, I went through all your suggestions just to see if I broke/missed anything along the way, and they were all pretty much in place already.) Your script is fantastic, your guide was fantastic, my inability to combine 2 sets of instructions without complicating everything (and probably 4am exhaustion and a lack of foundational bash/linux understanding) is less fantastic 🙂

Thanks again!

1 45 46 47 48 49 66