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

1,529 thoughts on “Minecraft Bedrock Edition – Ubuntu Dedicated Server Guide”

  1. Avatar for Jake

    The “friends” tab on android only seems to show local games on port 19132. If you set up 2 servers, you need to put them on different ports and subsequent ones won’t show in the “friends” tab. The only option would be to set up a server in the server tab but I cannot join servers set up like that without logging in. I can’t log in because I’m playing with my kid, we are both using android and my kid is way to young to be having “accounts” on things and besides I don’t want them logged into stuff.

    The solution here would be to have the minecraft server bind to a different interface on the port 19132 somehow. I either screw around with virtual interfaces but I can’t see in the server.properties if there is a way to specify which interface to bind too. Alternatively would using the docker version actually help with this?

    I guess I could use virtualbox or qemu or something as well

    1. Avatar for James A. Chambers

      Hey Jake,

      Great question. This is a known bug with Bedrock for sure. I think the best found workaround has been to actually use none of your servers on the default ports. That means zero servers using ports 19132 or 19133 and all of them using custom ports. This seems to avoid the port bug.

      As to whether the Docker container would help with it I’m actually not sure. On the Docker version each one would be isolated so theoretically it might but it also wouldn’t surprise me if this is an actual port level conflict that may still occur on Docker. Hopefully that helps!

  2. Avatar for Fruit

    Hello! I am running a Raspberry Pi 4 on Raspbian.

    I have used the script to automatically execute the server. The server automatically terminates before loading the world and printing “Server has Started”

    Here is what I am getting:
    [2022-07-18 16:12:07] NO LOG FILE! - setting up server logging...
    [2022-07-18 16:12:07] [2022-07-18 16:12:07:346 INFO] Starting Server
    [2022-07-18 16:12:07] [2022-07-18 16:12:07:350 INFO] Version 1.19.10.03
    [2022-07-18 16:12:07] [2022-07-18 16:12:07:351 INFO] Session ID 134ea321-8ea3-4dfa-9650-fa16a9600c30
    [2022-07-18 16:12:07] [2022-07-18 16:12:07:402 INFO] Level Name: Raspberry
    [2022-07-18 16:12:07] [2022-07-18 16:12:07:461 INFO] Game mode: 0 Survival
    [2022-07-18 16:12:07] [2022-07-18 16:12:07:462 INFO] Difficulty: 2 NORMAL
    [2022-07-18 16:12:09] [2022-07-18 16:12:09:960 INFO] opening worlds/Raspberry/db

    After this it says that the window is terminating, and will not go any further.

    1. Avatar for James A. Chambers

      Hey Fruit,

      Was it ever working before or is this a brand new server? It’s definitely pretty strange how little information it’s giving you. I’d definitely try creating a completely fresh one just in case as I notice this one is on “Normal” difficulty which isn’t the default.

      It could definitely be related to the new dependencies introduced in 1.19.10 but we have essentially no error to go on which makes it difficult to know where to start / what it could be. In the past the dependency problems have thrown exceptions and weren’t just blank like this and usually the blank ones were related to corrupt servers. That being said we really don’t know with this new version yet as the dependencies literally tripled and I’ve never seen that drastic of a change in something like ~4-5 years that the script has been around so it’s definitely possible.

      Which flavor/version of Linux are you running? I am expecting that anyone running outdated or even slightly old flavors (like the previous releases from the current ones) of Linux will start to break with this version. Hard. It’s linking to things like libssl3 and a whole bunch of other dependencies that you are not going to want to be using an outdated release like the previous 18.04 Ubuntu LTS, any of those ones. They do this every couple of years and it has been a while since the last one (probably longer than that to be honest).

      People who want/need to stay on an old release like this would want to use Docker as it completely fixes this without messing with your existing system configuration (one of the many advantages of Docker). I’m not sure if this applies to you personally yet until we know which flavor you are running but I wanted to mention it for sure as I’m sure others are coming here with this problem that aren’t commenting. The only officially supported version of Linux by Microsoft is the *current* official version of Ubuntu. Technically other flavors of Linux aren’t supported at all according to Microsoft (but lots of people can / have done it but the further you get from Ubuntu/Debian the trickier it gets). Docker completely sidesteps all of this nightmare / drama for those reading this that Docker will work for!

      Testing out a fresh server will help a little bit. I’d be curious if the Docker version will run for you as well. I’ve heard of bugs in the new 1.19 features for sure that can cause corruption in the server but with the dependency changes I’m definitely open to either of these possibilities and the server corruption theory we can at least test right away fairly easily if you try creating a new server as a test and see if it behaves the same way or not. Let us know what you find!

      1. Avatar for Fruit

        Thank you for that information!

        Yes, it is a new server however I have changed some settings including the world, difficulty, aswell as tick and render distance.
        I have tried reinstalling it and the results haven’t changed.

        I will be trying it without changing any settings and I’ll see how it goes.

        Cheers,
        Fruit

        1. Avatar for Fruit

          I have left everything on it’s defaults (ports etc)

          It now appears with a new message.

          ERROR: ld.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/ld.so.preload cannot be preloaded (cannot open shared object file): ignored.
          [2022-07-18 16:36:31] NO LOG FILE! - setting up server logging...
          [2022-07-18 16:36:32] [2022-07-18 16:36:32:865 INFO] Starting Server
          [2022-07-18 16:36:32] [2022-07-18 16:36:32:870 INFO] Version 1.19.10.03
          [2022-07-18 16:36:32] [2022-07-18 16:36:32:870 INFO] Session ID dc3ffe97-3c18-48a4-b334-d3d3f8fe35f0
          [2022-07-18 16:36:32] [2022-07-18 16:36:32:926 INFO] Level Name: Bedrock level
          [2022-07-18 16:36:32] [2022-07-18 16:36:32:994 INFO] Game mode: 0 Survival
          [2022-07-18 16:36:32] [2022-07-18 16:36:32:995 INFO] Difficulty: 1 EASY
          [2022-07-18 16:36:33] [2022-07-18 16:36:33:528 INFO] opening worlds/Bedrock level/db
          [2022-07-18 16:37:14] [2022-07-18 16:37:14:442 INFO] IPv4 supported, port: 19132
          [2022-07-18 16:37:14] [2022-07-18 16:37:14:455 INFO] IPv6 supported, port: 19133
          [2022-07-18 16:37:23] [2022-07-18 16:37:23:651 INFO] Server started.
          [2022-07-18 16:37:23] [2022-07-18 16:37:23:719 INFO] ================ TELEMETRY MESSAGE ===================
          [2022-07-18 16:37:23] [2022-07-18 16:37:23:720 INFO] Server Telemetry is currently not enabled.
          [2022-07-18 16:37:23] [2022-07-18 16:37:23:721 INFO] Enabling this telemetry helps us improve the game.
          [2022-07-18 16:37:23] [2022-07-18 16:37:23:723 INFO]
          [2022-07-18 16:37:23] [2022-07-18 16:37:23:724 INFO] To enable this feature, add the line 'emit-server-telemetry=true'
          [2022-07-18 16:37:23] [2022-07-18 16:37:23:727 INFO] to the server.properties file in the handheld/src-server directory
          [2022-07-18 16:37:23] [2022-07-18 16:37:23:729 INFO] ======================================================
          [2022-07-18 16:37:24] [2022-07-18 16:37:24:932 INFO] IPv4 supported, port: 35391
          [2022-07-18 16:37:24] [2022-07-18 16:37:24:933 INFO] IPv6 supported, port: 43967

          Also it has started. HOWEVER I have realised that the server only works on the first startup the second time I try after a shutdown it behaves like my first post.

          1. Avatar for James A. Chambers

            Hey Fruit,

            Excellent troubleshooting, that definitely helps! It looks like you’re on a 32 bit ARM platform. Are you running an older version of Raspberry Pi OS like Debian buster by chance? It may just need the latest version of your OS. My test Pi is running 32 bit ARM as well but it is definitely on Bullseye and I know people trying to use the old Buster one and outdated versions have had issues that upgrading has resolved.

            I have another fix for you to try from here. I’m not sure if this will have any impact on yours as the weird thing is it works the first time.

            Sorry that I’m not as sure as usual what is happening with yours as you happened to try starting a new server only a few days after they majorly reworked the dependencies. Thank you for investigating it. I’m sure we will find the issue/dependency later and then this will be fixed in the script and wouldn’t happen if that makes sense. We did at least get *some* log output though here which definitely helps!

  3. Avatar for lleduardoll

    I apologize if the wording is not 100% understood but they are from Mexico and I do not speak English so I had to use a translator to be able to communicate with you, I hope you understand all the problems I am going through

    I hope you can help me I don’t know what to do

    I am using Ubuntu 20.04.4 LTS (GNU/Linux 5.13.0-1036-oracle aarch64)

    I apply the following command at startup : sudo apt update && sudo apt upgrade and it appears more but I emphasize the following since there is something that is relevant

    Setting up libcurl4:arm64 (7.68.0-1ubuntu2.12) ...
    Setting up git-man (1:2.25.1-1ubuntu3.5) ...
    Setting up isc-dhcp-common (4.4.1-2.1ubuntu5.20.04.3) ...
    Setting up curl (7.68.0-1ubuntu2.12) ...
    Setting up ubuntu-advantage-tools (27.9~20.04.1) ...
    Installing new version of config file /etc/ubuntu-advantage/uaclient.conf ...
    Created symlink /etc/systemd/system/multi-user.target.wants/ubuntu-advantage.service → /lib/systemd/system/ubuntu-advantage.service.
    Setting up openssl (1.1.1f-1ubuntu2.16) ...
    Setting up gpg (2.2.19-3ubuntu2.2) ...
    Setting up libmbim-glib4:arm64 (1.26.2-1~ubuntu20.04.1) ...
    Setting up gnupg-utils (2.2.19-3ubuntu2.2) ...
    Setting up cloud-init (22.2-0ubuntu1~20.04.3) ...
    Setting up gpg-agent (2.2.19-3ubuntu2.2) ...
    Setting up gpgsm (2.2.19-3ubuntu2.2) ...
    Setting up libmbim-proxy (1.26.2-1~ubuntu20.04.1) ...
    Setting up dirmngr (2.2.19-3ubuntu2.2) ...
    Setting up git (1:2.25.1-1ubuntu3.5) ...
    Setting up gpg-wks-server (2.2.19-3ubuntu2.2) ...
    Setting up gpg-wks-client (2.2.19-3ubuntu2.2) ...
    Setting up libqmi-glib5:arm64 (1.30.4-1~ubuntu20.04.1) ...
    Setting up gnupg (2.2.19-3ubuntu2.2) ...
    Setting up libqmi-proxy (1.30.4-1~ubuntu20.04.1) ...
    Setting up modemmanager (1.18.6-1~ubuntu20.04.1) ...
    Installing new version of config file /etc/dbus-1/system.d/org.freedesktop.ModemManager1.conf ...
    Processing triggers for mime-support (3.64ubuntu1) ...
    Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
    Processing triggers for rsyslog (8.2001.0-1ubuntu1.3) ...
    Processing triggers for systemd (245.4-4ubuntu3.17) ...
    Processing triggers for man-db (2.9.1-1) ...
    Processing triggers for dbus (1.12.16-2ubuntu2.2) ...
    Processing triggers for install-info (6.7.0.dfsg.2-5) ...

    The next command I run is this: curl https://raw.githubusercontent.com/TheRemote/MinecraftBedrockServer/master/SetupMinecraft.sh | bash and the following appears

    Start Minecraft server at startup automatically (y/n)?y
    Created symlink /etc/systemd/system/multi-user.target.wants/canal.service → /etc/systemd/system/canal.service.
    Your time zone is currently set to Etc/UTC. Current system time: Thu Jul 14 05:46:17 UTC 2022
    You can adjust/remove the selected reboot time later by typing crontab -e or running SetupMinecraft.sh again.
    Automatically restart and backup server at 4am daily (y/n)?y
    no crontab for ubuntu
    Daily restart scheduled. To change time or remove automatic restart type crontab -e
    Setting server file permissions...
    Setup is complete. Starting Minecraft server. To view the console use the command screen -r or check the logs folder if the server fails to start.
    Minecraft server has started. Type screen -r canal to view the running server!

    I try to run screen -r and the following appears: There is no screen to be resumed. and if it is screen -x it is the following: There is no screen to be attached. to which I proceed to go to the “logs” folder and the following appears: /home/ubuntu/minecraftbe/canal/bedrock_server: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory. so this is where the first command comes in where this appears: Setting up libcurl4:arm64 (7.68.0-1ubuntu2.12)

    To verify I run the following and it says that the library is installed

    ubuntu@instance-20220714-0020:~/minecraftbe/channel$ dpkg -l | grep libcurl4
    ii libcurl4:arm64 7.68.0-1ubuntu2.12 arm64 easy-to-use client-side URL transfer library (OpenSSL flavour)

    so i try to start the server by command where this appears

    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ ls
    allowlist.json downloads libnsl.so.1 resource_packs
    backups fixpermissions.sh libpthread.so.0 restart.sh
    bedrock_server ld-2.28.so librt.so.1 revert.sh
    bedrock_server_how_to.html ld-2.31.so libssl.so.1.1 server.properties
    bedrock_server_symbols.debug libc.so.6 libstdc++.so.6 start.sh
    behavior_packs libcrypto.so.1.1 libz.so.1 stop.sh
    config libdl.so.2 logs structures
    definitions libgcc_s.so.1 permissions.json update.sh
    depends.zip libm.so.6 release-notes.txt version_installed.txt
    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ ./start.sh
    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 312k 0 312k 0 0 530k 0 --:--:-- --:--:-- --:--:-- 530k
    Latest version online is bedrock-server-1.19.10.03.zip
    Current install is: bedrock-server-1.19.10.03.zip
    Latest version bedrock-server-1.19.10.03.zip is already installed
    Starting Minecraft server. To view window type screen -r canal
    To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D

    I run screen -r, screen -x and screen -ls again

    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ screen -r
    There is no screen to be resumed.
    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ screen -x
    There is no screen to be attached.
    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ screen -ls
    No Sockets found in /run/screen/S-ubuntu.

    I run again: curl https://raw.githubusercontent.com/TheRemote/MinecraftBedrockServer/master/SetupMinecraft.sh | bash and the following appears, I do this because something had already appeared in the comments due to some permissions error

    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ curl https://raw.githubusercontent.com/TheRemote/MinecraftBedrockServer/master/SetupMinecraft.sh | bash
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Minecraft Bedrock Server installation script by James A. Chambers
    Latest version always at https://github.com/TheRemote/MinecraftBedrockServer
    Don't forget to set up port forwarding on your router! The default port is 19132
    100 17090 100 17090 0 0 87641 0 --:--:-- --:--:-- --:--:-- 87641
    Updating apt..
    Hit:1 http://phx-ad-3.clouds.ports.ubuntu.com/ubuntu-ports focal InRelease
    Hit:2 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
    Hit:3 http://phx-ad-3.clouds.ports.ubuntu.com/ubuntu-ports focal-updates InRelease
    Hit:4 http://phx-ad-3.clouds.ports.ubuntu.com/ubuntu-ports focal-backports InRelease
    Reading package lists... Done
    Checking and installing dependencies..
    Dependency installation completed
    Enter root installation path for Minecraft BE (this is the same for ALL servers and should be ~, the subfolder will be chosen from the server name you provide). Almost nobody should change this unless you're installing to a different disk altogether. (default ~):
    Directory Path: ~
    Directory Path : ~ -- accept (y/n)?y
    Directory Path: ~
    Enter a short one word label for a new or existing server (don't use minecraftbe)...
    It will be used in the folder name and service name...
    Server Label: canal
    Server Label : canal -- accept (y/n)?y
    Server Label: canal
    Enter server IPV4 port (default 19132):
    Server IPV4 Port:
    Server IPV4 Port : 19132 -- accept (y/n)?y
    Server IPV4 Port: 19132
    Enter server IPV6 port (default 19133):
    Server IPV6 Port:
    Server IPV6 Port : 19133 -- accept (y/n)?y
    Server IPV6 Port: 19133
    Directory minecraftbe/canal already exists! Updating scripts and configuring service ...
    Server directory is: /home/ubuntu/minecraftbe/canal
    Grabbing start.sh from repository...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 7842 100 7842 0 0 32675 0 --:--:-- --:--:-- --:--:-- 32539
    Grabbing stop.sh from repository...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 2731 100 2731 0 0 13193 0 --:--:-- --:--:-- --:--:-- 13193
    Grabbing restart.sh from repository...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 2856 100 2856 0 0 15111 0 --:--:-- --:--:-- --:--:-- 15111
    Grabbing fixpermissions.sh from repository...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 1982 100 1982 0 0 9668 0 --:--:-- --:--:-- --:--:-- 9715
    Grabbing revert.sh from repository...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 832 100 832 0 0 4425 0 --:--:-- --:--:-- --:--:-- 4425
    Grabbing update.sh from repository...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 751 100 751 0 0 4016 0 --:--:-- --:--:-- --:--:-- 4016
    Configuring Minecraft canal service...
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 361 100 361 0 0 2074 0 --:--:-- --:--:-- --:--:-- 2074
    Start Minecraft server at startup automatically (y/n)?y
    Your time zone is currently set to Etc/UTC. Current system time: Thu Jul 14 06:14:49 UTC 2022
    You can adjust/remove the selected reboot time later by typing crontab -e or running SetupMinecraft.sh again.
    Automatically restart and backup server at 4am daily (y/n)?y
    Daily restart scheduled. To change time or remove automatic restart type crontab -e
    Setting server file permissions...
    Setup is complete. Starting Minecraft canal server. To view the console use the command screen -r or check the logs folder if the server fails to start

    I re-run screen -r, screen -x and screen -ls

    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ screen -r
    There is no screen to be resumed.
    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ screen -x
    There is no screen to be attached.
    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ screen -ls
    No Sockets found in /run/screen/S-ubuntu.

    I check the “logs” folder again and the last .log appears: /home/ubuntu/minecraftbe/canal/bedrock_server: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory

    so I decide to install libcurl4 again and use the following commands

    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ sudo apt-get update
    Hit:1 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
    Hit:2 http://phx-ad-3.clouds.ports.ubuntu.com/ubuntu-ports focal InRelease
    Hit:3 http://phx-ad-3.clouds.ports.ubuntu.com/ubuntu-ports focal-updates InRelease
    Hit:4 http://phx-ad-3.clouds.ports.ubuntu.com/ubuntu-ports focal-backports InRelease
    Reading package lists... Done
    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ sudo apt-get install libcurl4
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    libcurl4 is already the newest version (7.68.0-1ubuntu2.12).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    ubuntu@instance-20220714-0020:~/minecraftbe/canal$

    start the server again and then the screen

    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ ./start.sh
    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 312k 0 312k 0 0 1061k 0 --:--:-- --:--:-- --:--:-- 1061k
    Latest version online is bedrock-server-1.19.10.03.zip
    Current install is: bedrock-server-1.19.10.03.zip
    Latest version bedrock-server-1.19.10.03.zip is already installed
    Starting Minecraft server. To view window type screen -r canal
    To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D

    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ screen -r
    There is no screen to be resumed.
    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ screen -x
    There is no screen to be attached.

    then try a command below that you left for some corrupt download
    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ rm -rf /home/homes/minecraftbe/MinecraftHome/downloads

    start again

    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ ./start.sh
    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 312k 0 312k 0 0 1061k 0 --:--:-- --:--:-- --:--:-- 1061k
    Latest version online is bedrock-server-1.19.10.03.zip
    Current install is: bedrock-server-1.19.10.03.zip
    Latest version bedrock-server-1.19.10.03.zip is already installed
    Starting Minecraft server. To view window type screen -r canal
    To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D
    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ screen -r
    There is no screen to be resumed.
    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ screen -x
    There is no screen to be attached.
    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ ^C
    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ rm -rf /home/homes/minecraftbe/MinecraftHome/downloads
    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ ./start.sh
    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 312k 0 312k 0 0 309k 0 --:--:-- 0:00:01 --:--:-- 309k
    Latest version online is bedrock-server-1.19.10.03.zip
    Current install is: bedrock-server-1.19.10.03.zip
    Latest version bedrock-server-1.19.10.03.zip is already installed
    Starting Minecraft server. To view window type screen -r canal
    To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D

    finally the screen commands

    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ screen -r
    There is no screen to be resumed.
    ubuntu@instance-20220714-0020:~/minecraftbe/canal$ screen -x
    There is no screen to be attached.

    Unfortunately I don’t know what to do anymore, that’s why I ask for your help
    finally one of the things that I have to mention is that I am in a virtual machine in oracle with ubuntu 20.04 arm64 but when this whole situation happened to me I was in a server with ubuntu 22.04 so I thought that by downloading the version of ubuntu I could fix it but I already deleted and recreated servers between 4 to 5 times and every time the terminal behaves the same way as now, these logs are from a server from scratch

    1. Avatar for James A. Chambers

      Hey lleduardoll,

      I don’t think you’re doing anything wrong here. That curl crash message is completely worthless. It has nothing to do with curl and if the server crashes for any reason you will get that error message for literally every crash no matter what it is. Every crash people have posted here in the past 5 years includes that message and it will not help at all.

      The weird thing about yours is that there’s no other messages. It looks like the exact same bug as this person.

      I bet rolling back will fix it just like this person. Basically this would be a bug in the Bedrock server itself (by Microsoft). Your troubleshooting is absolutely spot on and you even thought about the Ubuntu version issue.

      I figured okay, this must be a problem with 1.19.10 then. So I fired mine up and:

      james@jamesgigabyte-linux:~$ docker run -it -v yourvolumename:/minecraft -p 19132:19132/udp -p 19132:19132 -p 19133:19133/udp -p 19133:19133 05jchambers/legendary-bedrock-container:latest
      Minecraft Bedrock Server Docker script by James A. Chambers
      Latest version always at https://github.com/TheRemote/Legendary-Bedrock-Container
      Don't forget to set up port forwarding on your router! The default port is 19132
      Ports used - IPV4: 19132 - IPV6: 19133
      Backing up server (to minecraftbe/backups folder)
      Backing up server (multiple cores) to minecraftbe/backups folder
      worlds/
      worlds/Bedrock level/
      worlds/Bedrock level/db/
      worlds/Bedrock level/db/000019.log
      worlds/Bedrock level/db/MANIFEST-000018
      worlds/Bedrock level/db/CURRENT
      worlds/Bedrock level/levelname.txt
      worlds/Bedrock level/level.dat
      worlds/Bedrock level/level.dat_old
      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 312k 0 312k 0 0 655k 0 --:--:-- --:--:-- --:--:-- 654k
      Latest version online is bedrock-server-1.19.10.03.zip
      Current install is: bedrock-server-1.19.10.20.zip
      Installing bedrock-server-1.19.10.03.zip
      % Total % Received % Xferd Average Speed Time Time Time Current
      Dload Upload Total Spent Left Speed
      100 70.0M 100 70.0M 0 0 37.4M 0 0:00:01 0:00:01 --:--:-- 37.3M
      Archive: downloads/bedrock-server-1.19.10.03.zip
      [2022-07-14 13:44:55] NO LOG FILE! - setting up server logging...
      [2022-07-14 13:44:55] [2022-07-14 13:44:55:020 INFO] Starting Server
      [2022-07-14 13:44:55] [2022-07-14 13:44:55:020 INFO] Version 1.19.10.03
      [2022-07-14 13:44:55] [2022-07-14 13:44:55:020 INFO] Session ID d6cc3bc1-f6dc-4fce-9e16-4e44133b88fd
      [2022-07-14 13:44:55] [2022-07-14 13:44:55:020 INFO] Level Name: Bedrock level
      [2022-07-14 13:44:55] [2022-07-14 13:44:55:021 WARN] 'whitelist.json' will be deprecated. Please migrate to 'allowlist.json'.
      [2022-07-14 13:44:55] [2022-07-14 13:44:55:021 INFO] Game mode: 0 Survival
      [2022-07-14 13:44:55] [2022-07-14 13:44:55:021 INFO] Difficulty: 1 EASY
      [2022-07-14 13:44:55] [2022-07-14 13:44:55:051 INFO] opening worlds/Bedrock level/db
      [2022-07-14 13:44:56] [2022-07-14 13:44:56:380 INFO] IPv4 supported, port: 19132
      [2022-07-14 13:44:56] [2022-07-14 13:44:56:380 INFO] IPv6 not supported
      [2022-07-14 13:44:56] [2022-07-14 13:44:56:549 INFO] Server started.
      [2022-07-14 13:44:56] [2022-07-14 13:44:56:565 INFO] IPv4 supported, port: 53393
      [2022-07-14 13:44:56] [2022-07-14 13:44:56:565 INFO] IPv6 not supported
      [2022-07-14 13:44:56] [2022-07-14 13:44:56:599 INFO] ================ TELEMETRY MESSAGE ===================
      [2022-07-14 13:44:56] [2022-07-14 13:44:56:599 INFO] Server Telemetry is currently not enabled.
      [2022-07-14 13:44:56] [2022-07-14 13:44:56:599 INFO] Enabling this telemetry helps us improve the game.
      [2022-07-14 13:44:56] [2022-07-14 13:44:56:599 INFO]
      [2022-07-14 13:44:56] [2022-07-14 13:44:56:599 INFO] To enable this feature, add the line 'emit-server-telemetry=true'
      [2022-07-14 13:44:56] [2022-07-14 13:44:56:599 INFO] to the server.properties file in the handheld/src-server directory
      [2022-07-14 13:44:56] [2022-07-14 13:44:56:599 INFO] ======================================================

      and… the container went right through. Nothing. It’s perfect. Hmmm. How about the standalone version?

      james@jamesgigabyte-linux:~$ cd minecraftbe
      james@jamesgigabyte-linux:~/minecraftbe$ ls
      james
      james@jamesgigabyte-linux:~/minecraftbe$ cd james
      james@jamesgigabyte-linux:~/minecraftbe/james$ ls
      allowlist.json Dedicated_Server.txt invalid_known_packs.json restart.sh update.sh
      backups definitions logs revert.sh valid_known_packs.json
      bedrock_server development_behavior_packs minecraftpe server.properties version_installed.txt
      bedrock_server_how_to.html development_resource_packs permissions.json start.sh worlds
      bedrock_server_symbols.debug development_skin_packs premium_cache stop.sh world_templates
      behavior_packs downloads release-notes.txt structures
      config fixpermissions.sh resource_packs treatments
      james@jamesgigabyte-linux:~/minecraftbe/james$ ./start.sh
      Backing up server (to minecraftbe/james/backups folder)
      Backing up server (multiple cores) to minecraftbe/james/backups folder
      worlds/
      worlds/Bedrock level/
      worlds/Bedrock level/db/
      worlds/Bedrock level/db/000056.ldb
      worlds/Bedrock level/db/000046.ldb
      worlds/Bedrock level/db/000059.ldb
      worlds/Bedrock level/db/CURRENT
      worlds/Bedrock level/db/000062.log
      worlds/Bedrock level/db/MANIFEST-000061
      worlds/Bedrock level/levelname.txt
      worlds/Bedrock level/level.dat
      worlds/Bedrock level/level.dat_old
      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 312k 0 312k 0 0 688k 0 --:--:-- --:--:-- --:--:-- 688k
      Latest version online is bedrock-server-1.19.10.03.zip
      Current install is: bedrock-server-1.18.33.02.zip
      Installing bedrock-server-1.19.10.03.zip
      % Total % Received % Xferd Average Speed Time Time Time Current
      Dload Upload Total Spent Left Speed
      100 70.0M 100 70.0M 0 0 31.7M 0 0:00:02 0:00:02 --:--:-- 31.7M
      Archive: downloads/bedrock-server-1.19.10.03.zip

      screen -r
      [2022-07-14 07:50:51] NO LOG FILE! - setting up server logging...
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:337 INFO] Starting Server
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:337 INFO] Version 1.19.10.03
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:337 INFO] Session ID 051ac2e8-d0a5-4030-b73a-bd8b3ccf691b
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:337 INFO] Level Name: Bedrock level
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:338 INFO] Game mode: 0 Survival
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:338 INFO] Difficulty: 1 EASY
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:363 INFO] opening worlds/Bedrock level/db
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:689 INFO] IPv4 supported, port: 19132
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:689 INFO] IPv6 supported, port: 19133
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:845 INFO] Server started.
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:872 INFO] IPv4 supported, port: 35806
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:872 INFO] IPv6 supported, port: 43759
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:895 INFO] ================ TELEMETRY MESSAGE ===================
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:895 INFO] Server Telemetry is currently not enabled.
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:895 INFO] Enabling this telemetry helps us improve the game.
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:895 INFO]
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:895 INFO] To enable this feature, add the line 'emit-server-telemetry=true'
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:895 INFO] to the server.properties file in the handheld/src-server directory
      [2022-07-14 07:50:51] [2022-07-14 07:50:51:895 INFO] ======================================================

      And…. that one worked perfectly as well even with an upgrade all the way from 1.18.33.02. So where does that leave us? I basically can’t explain (yet) what is happening to you and that person. You aren’t alone though. This person is having the exact same unexplained behavior you are getting. He did say rolling back to other versions fixed it. Can you try rolling back to any version before this one as a test to see if it loads?

        1. Avatar for James A. Chambers

          Hey Ivan,

          Can you try with the latest version here? I just barely upgraded some changes (to the container). The standalone version also has an update in that it installs libssl3. If you wouldn’t mind trying both I’d love to see what changes / impact this had on each!

      1. Avatar for lleduardoll

        again I apologize for perhaps the bad translation but I repeat I am from Mexico and I do not speak the language

        I am using Ubuntu 20.04.4 LTS (GNU/Linux 5.13.0-1036-oracle aarch64)

        I apply the following command at startup: sudo apt update && sudo apt upgrade

        Preparing to unpack .../0-netplan.io_0.104-0ubuntu2~20.04.2_arm64.deb ...
        Unpacking netplan.io (0.104-0ubuntu2~20.04.2) over (0.104-0ubuntu2~20.04.1) ...
        Preparing to unpack .../1-libnetplan0_0.104-0ubuntu2~20.04.2_arm64.deb ...
        Unpacking libnetplan0:arm64 (0.104-0ubuntu2~20.04.2) over (0.104-0ubuntu2~20.04.1) ...
        Preparing to unpack .../2-libfreetype6_2.10.1-2ubuntu0.2_arm64.deb ...
        Unpacking libfreetype6:arm64 (2.10.1-2ubuntu0.2) over (2.10.1-2ubuntu0.1) ...
        Preparing to unpack .../3-libgstreamer1.0-0_1.16.3-0ubuntu1_arm64.deb ...
        Unpacking libgstreamer1.0-0:arm64 (1.16.3-0ubuntu1) over (1.16.2-2) ...
        Preparing to unpack .../4-libtirpc-common_1.2.5-1ubuntu0.1_all.deb ...
        Unpacking libtirpc-common (1.2.5-1ubuntu0.1) over (1.2.5-1) ...
        Preparing to unpack .../5-libtirpc3_1.2.5-1ubuntu0.1_arm64.deb ...
        Unpacking libtirpc3:arm64 (1.2.5-1ubuntu0.1) over (1.2.5-1) ...
        Preparing to unpack .../6-python3-jwt_1.7.1-2ubuntu2.1_all.deb ...
        Unpacking python3-jwt (1.7.1-2ubuntu2.1) over (1.7.1-2ubuntu2) ...
        Setting up python3-jwt (1.7.1-2ubuntu2.1) ...
        Setting up libtirpc-common (1.2.5-1ubuntu0.1) ...
        Setting up libnetplan0:arm64 (0.104-0ubuntu2~20.04.2) ...
        Setting up netplan.io (0.104-0ubuntu2~20.04.2) ...
        Setting up libfreetype6:arm64 (2.10.1-2ubuntu0.2) ...
        Setting up libgstreamer1.0-0:arm64 (1.16.3-0ubuntu1) ...
        Setcap worked! gst-ptp-helper is not suid!
        Setting up libtirpc3:arm64 (1.2.5-1ubuntu0.1) ...
        Processing triggers for man-db (2.9.1-1) ...
        Processing triggers for dbus (1.12.16-2ubuntu2.2) ...
        Processing triggers for libc-bin (2.31-0ubuntu9.9) .

        the next command I run is this: curl https://raw.githubusercontent.com/TheRemote/MinecraftBedrockServer/master/SetupMinecraft.sh | try and the following appears

        curl https://raw.githubusercontent.com/TheRemote/MinecraftBedrockServer/master/SetupMinecraft.sh | bash
        % Total % Received % Xferd Average Speed ​​Time Time Time Current
        Dload Upload Total Spent Left Speed
        0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Minecraft Bedrock Server installation script by James A. Chambers
        Latest version always at https://github.com/TheRemote/MinecraftBedrockServer
        Don't forget to set up port forwarding on your router! The default port is 19132
        100 19999 100 19999 0 0 465k 0 --:--:-- --:--:-- --:--:-- 465k
        Updating apt..
        Hit:1 https://ryanfortner.github.io/box64-debs/debian ./InRelease
        Hit:2 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
        Hit:3 http://phx-ad-3.clouds.ports.ubuntu.com/ubuntu-ports focal InRelease
        Hit:4 http://phx-ad-3.clouds.ports.ubuntu.com/ubuntu-ports focal-updates InRelease
        Hit:5 http://phx-ad-3.clouds.ports.ubuntu.com/ubuntu-ports focal-backports InRelease
        Reading package lists... Done
        Checking and installing dependencies..
        E: No packages found
        Dependency installation completed
        ...here is more information but only decompression stuff
        Start Minecraft server at startup automatically (y/n)?y
        Your time zone is currently set to Etc/UTC. Current system time: Wed Aug 3 20:37:45 UTC 2022
        You can adjust/remove the selected reboot time later by typing crontab -e or running SetupMinecraft.sh again.
        Automatically restart and backup server at 4am daily (y/n)?y
        Daily restart scheduled. To change time or remove automatic restart type crontab -e
        Setting server file permissions...
        Setup is complete. Starting minecraft test server. To view the console use the command screen -r or check the logs folder if the server fails to start

        When running screen -r the following appears:
        [2022-08-03 20:40:12] DO NOT LOG FILE! - setting up server logging...
        [2022-08-03 20:40:12] [2022-08-03 20:40:12:070 INFO] Starting Server
        [2022-08-03 20:40:12] [2022-08-03 20:40:12:072 INFO] Version 1.19.11.01
        [2022-08-03 20:40:12] [2022-08-03 20:40:12:072 INFO] Session ID 41ba61ea-cdaf-4e19-bf05-d36fce99e1db
        [2022-08-03 20:40:12] [2022-08-03 20:40:12:090 INFO] Level Name: Bedrock level
        [2022-08-03 20:40:12] [2022-08-03 20:40:12:109 INFO] Game mode: 0 Survival
        [2022-08-03 20:40:12] [2022-08-03 20:40:12:109 INFO] Difficulty: 1 EASY
        [2022-08-03 20:40:13] [2022-08-03 20:40:13:576 INFO] opening worlds/Bedrock level/db
        Unknown host QEMU_IFLA type: 54
        Unknown host QEMU_IFLA type: 56
        Unknown host QEMU_IFLA type: 57
        Unknown host QEMU_IFLA type: 54
        Unknown host QEMU_IFLA type: 56
        Unknown host QEMU_IFLA type: 57
        Unknown host QEMU_IFLA type: 54
        Unknown host QEMU_IFLA type: 56
        Unknown host QEMU_IFLA type: 57
        Unsupported setsockopt level=41 optname=34
        [2022-08-03 20:40:25] [2022-08-03 20:40:25:745 INFO] IPv4 supported, port: 19132
        [2022-08-03 20:40:25] [2022-08-03 20:40:25:751 INFO] IPv6 supported, port: 19133
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:619 INFO] Server started.
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:691 INFO] ================= TELEMETRY MESSAGE ===== ==============
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:692 INFO] Server Telemetry is currently not enabled.
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:692 INFO] Enabling this telemetry helps us improve the game.
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:693 INFO]
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:693 INFO] To enable this feature, add the line 'emit-server-telemetry=true'
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:694 INFO] to the server.properties file in the handheld/src-server directory
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:694 INFO] ========================= =================================
        Unknown host QEMU_IFLA type: 54
        Unknown host QEMU_IFLA type: 56
        Unknown host QEMU_IFLA type: 57
        Unknown host QEMU_IFLA type: 54
        Unknown host QEMU_IFLA type: 56
        Unknown host QEMU_IFLA type: 57
        Unsupported setsockopt level=41 optname=34
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:769 INFO] IPv4 supported, port: 37687
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:770 INFO] IPv6 supported, port: 43417

        it appears as if it was already running and I try to enter the server and minecraft tells me that it is not possible to connect, apart from the ip I realized that an extra ipv4 appears so I tried to enter with that and it did not let me enter either, here what I do strange is the legend of QEMU_IFLA that I can’t find because it comes out

        I check the “logs” folder and the last .log appears:
        [2022-08-03 20:40:12] DO NOT LOG FILE! - setting up server logging...
        [2022-08-03 20:40:12] [2022-08-03 20:40:12:070 INFO] Starting Server
        [2022-08-03 20:40:12] [2022-08-03 20:40:12:072 INFO] Version 1.19.11.01
        [2022-08-03 20:40:12] [2022-08-03 20:40:12:072 INFO] Session ID 41ba61ea-cdaf-4e19-bf05-d36fce99e1db
        [2022-08-03 20:40:12] [2022-08-03 20:40:12:090 INFO] Level Name: Bedrock level
        [2022-08-03 20:40:12] [2022-08-03 20:40:12:109 INFO] Game mode: 0 Survival
        [2022-08-03 20:40:12] [2022-08-03 20:40:12:109 INFO] Difficulty: 1 EASY
        [2022-08-03 20:40:13] [2022-08-03 20:40:13:576 INFO] opening worlds/Bedrock level/db
        Unknown host QEMU_IFLA type: 54
        Unknown host QEMU_IFLA type: 56
        Unknown host QEMU_IFLA type: 57
        Unknown host QEMU_IFLA type: 54
        Unknown host QEMU_IFLA type: 56
        Unknown host QEMU_IFLA type: 57
        Unknown host QEMU_IFLA type: 54
        Unknown host QEMU_IFLA type: 56
        Unknown host QEMU_IFLA type: 57
        Unsupported setsockopt level=41 optname=34
        [2022-08-03 20:40:25] [2022-08-03 20:40:25:745 INFO] IPv4 supported, port: 19132
        [2022-08-03 20:40:25] [2022-08-03 20:40:25:751 INFO] IPv6 supported, port: 19133
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:619 INFO] Server started.
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:691 INFO] ================= TELEMETRY MESSAGE ===== ==============
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:692 INFO] Server Telemetry is currently not enabled.
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:692 INFO] Enabling this telemetry helps us improve the game.
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:693 INFO]
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:693 INFO] To enable this feature, add the line 'emit-server-telemetry=true'
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:694 INFO] to the server.properties file in the handheld/src-server directory
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:694 INFO] ========================= =================================
        Unknown host QEMU_IFLA type: 54
        Unknown host QEMU_IFLA type: 56
        Unknown host QEMU_IFLA type: 57
        Unknown host QEMU_IFLA type: 54
        Unknown host QEMU_IFLA type: 56
        Unknown host QEMU_IFLA type: 57
        Unsupported setsockopt level=41 optname=34
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:769 INFO] IPv4 supported, port: 37687
        [2022-08-03 20:40:28] [2022-08-03 20:40:28:770 INFO] IPv6 supported, port: 43417

        finally what I plan to do is add the line in the server.properties “emit-server-telemetry=true” and stop and start the server again

        ubuntu@test-1:~/minecraftbe/test$ ./stop.sh
        Stopping minecraft server ...
        Minecraft server test stopped.
        ubuntu@test-1:~/minecraftbe/test$ ./start.sh
        Backing up server (to minecraftbe/test/backups folder)
        Backing up server (multiple cores) to minecraftbe/test/backups folder
        worlds/
        worlds/Bedrock level/
        worlds/Bedrocklevel/level.dat
        worlds/Bedrocklevel/levelname.txt
        worlds/Bedrocklevel/db/
        worlds/Bedrocklevel/db/MANIFEST-000004
        worlds/Bedrocklevel/db/000005.ldb
        worlds/Bedrocklevel/db/000006.log
        worlds/Bedrock level/db/CURRENT
        worlds/Bedrock level/level.dat_old
        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 312k 0 312k 0 0 569k 0 --:--:-- --:--:-- --:--:-- 570k
        Latest version online is bedrock-server-1.19.11.01.zip
        Current install is: bedrock-server-1.19.11.01.zip
        Latest version bedrock-server-1.19.11.01.zip is already installed
        Starting Minecraft server. To view window type screen -r test
        To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D

        I run screen -r and this is what appears

        [2022-08-03 20:53:11] DO NOT LOG FILE! - setting up server logging...
        [2022-08-03 20:53:11] [2022-08-03 20:53:11:374 INFO] Starting Server
        [2022-08-03 20:53:11] [2022-08-03 20:53:11:377 INFO] Version 1.19.11.01
        [2022-08-03 20:53:11] [2022-08-03 20:53:11:377 INFO] Session ID 0c7f8bc3-f305-46d5-8bd7-9663eeff48f8
        [2022-08-03 20:53:11] [2022-08-03 20:53:11:395 INFO] Level Name: Bedrock level
        [2022-08-03 20:53:11] [2022-08-03 20:53:11:413 INFO] Game mode: 0 Survival
        [2022-08-03 20:53:11] [2022-08-03 20:53:11:414 INFO] Difficulty: 1 EASY
        [2022-08-03 20:53:11] [2022-08-03 20:53:11:886 INFO] opening worlds/Bedrock level/db
        Unknown host QEMU_IFLA type: 54
        Unknown host QEMU_IFLA type: 56
        Unknown host QEMU_IFLA type: 57
        Unknown host QEMU_IFLA type: 54
        Unknown host QEMU_IFLA type: 56
        Unknown host QEMU_IFLA type: 57
        Unknown host QEMU_IFLA type: 54
        Unknown host QEMU_IFLA type: 56
        Unknown host QEMU_IFLA type: 57
        Unsupported setsockopt level=41 optname=34
        [2022-08-03 20:53:23] [2022-08-03 20:53:23:842 INFO] IPv4 supported, port: 19132
        [2022-08-03 20:53:23] [2022-08-03 20:53:23:847 INFO] IPv6 supported, port: 19133
        [2022-08-03 20:53:26] [2022-08-03 20:53:26:742 INFO] Server started.
        Unknown host QEMU_IFLA type: 54
        Unknown host QEMU_IFLA type: 56
        Unknown host QEMU_IFLA type: 57
        Unknown host QEMU_IFLA type: 54
        Unknown host QEMU_IFLA type: 56
        Unknown host QEMU_IFLA type: 57
        Unsupported setsockopt level=41 optname=34
        [2022-08-03 20:53:26] [2022-08-03 20:53:26:905 INFO] IPv4 supported, port: 36435
        [2022-08-03 20:53:26] [2022-08-03 20:53:26:905 INFO] IPv6 supported, port: 55783

        Adding a line to server.properties no longer appears, but QEMU_IFLA is still preserved

        you really see an improvement since you can see that the screen is already running but the truth is that I don’t know what is happening with QEMU_IFLA I don’t know much about the subject but it looks like it was an error

        finally one of the things that I have to mention is that I am in a virtual machine in oracle with ubuntu 20.04 arm64

        I hope you can advise me with this new situation

        1. Avatar for James A. Chambers

          Hey lleduardoll,

          Welcome back! So those are all warnings from QEMU and they’re all purely because the QEMU on the system is too old. Most likely the packages available in 20.04 are a lot older than in Ubuntu:latest (22.04). We see the same warnings a lot on Raspberry Pis that aren’t running Bullseye yet (the current Debian distro). One way to fix this is to use the Docker version but hold on until the end as due to updates there’s another option!

          I definitely recommend that you update the scripts by running SetupMinecraft.sh (or update.sh) because on aarch64 (arm64) it no longer uses QEMU as of yesterday! This is a very recent change that I’ve been working on for some time.

          QEMU is replaced by box64 on your architecture as it works faster by reducing how much emulation is used. I’d imagine simply running SetupMinecraft.sh and updating to the latest version of the scripts from GitHub will eliminate all those warnings entirely (and substantially improve your performance). It will completely bypass this problem since the Box64 build actually comes from the officially endorsed Box64 daily build channel so we don’t have to worry about old apt packages (you don’t have to follow those instructions I linked, that’s just for reference, the script will do it for you).

          Can you try updating to the latest Box64 version? I’d be curious how it works for you! Simply running:

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

          and then filling out your existing server name/label will safely update all the scripts and install Box64 automatically!

          1. Avatar for lleduardoll

            hello, how are you, good afternoon, look, the truth is that the server has already started, the QEMU_IFLA problem no longer appeared and everything seems fine, but I have a small problem since it is supposed to be fine, but when I want to enter the server, it appears that It does not have ping literally, it is a red circle, apart from people online, a number does not even appear and when I select to enter the server, the following text appears “it is not possible to connect to the world”

            according to the screen -r it is assumed that the server has already started but it seems very strange to me that I cannot enter since it is active

            [2022-08-04 05:29:47] NO LOG FILE! - setting up server logging...
            [2022-08-04 05:29:47] [2022-08-04 05:29:47:403 INFO] Starting Server
            [2022-08-04 05:29:47] [2022-08-04 05:29:47:405 INFO] Version 1.19.11.01
            [2022-08-04 05:29:47] [2022-08-04 05:29:47:405 INFO] Session ID 2c82d8a6-e82d-449b-8322-a3c353d4cc99
            [2022-08-04 05:29:47] [2022-08-04 05:29:47:423 INFO] Level Name: Bedrock level
            [2022-08-04 05:29:47] [2022-08-04 05:29:47:441 INFO] Game mode: 0 Survival
            [2022-08-04 05:29:47] [2022-08-04 05:29:47:442 INFO] Difficulty: 2 NORMAL
            [2022-08-04 05:29:48] [2022-08-04 05:29:48:929 INFO] opening worlds/Bedrock level/db
            [2022-08-04 05:30:00] [2022-08-04 05:30:00:174 INFO] IPv4 supported, port: 19132
            [2022-08-04 05:30:00] [2022-08-04 05:30:00:179 INFO] IPv6 supported, port: 19133
            [2022-08-04 05:30:03] [2022-08-04 05:30:03:411 INFO] Server started.
            [2022-08-04 05:30:03] [2022-08-04 05:30:03:467 INFO] ================ TELEMETRY MESSAGE ===================
            [2022-08-04 05:30:03] [2022-08-04 05:30:03:467 INFO] Server Telemetry is currently not enabled.
            [2022-08-04 05:30:03] [2022-08-04 05:30:03:468 INFO] Enabling this telemetry helps us improve the game.
            [2022-08-04 05:30:03] [2022-08-04 05:30:03:468 INFO]
            [2022-08-04 05:30:03] [2022-08-04 05:30:03:469 INFO] To enable this feature, add the line 'emit-server-telemetry=true'
            [2022-08-04 05:30:03] [2022-08-04 05:30:03:470 INFO] to the server.properties file in the handheld/src-server directory
            [2022-08-04 05:30:03] [2022-08-04 05:30:03:470 INFO] ======================================================
            [2022-08-04 05:30:03] [2022-08-04 05:30:03:528 INFO] IPv4 supported, port: 37065
            [2022-08-04 05:30:03] [2022-08-04 05:30:03:528 INFO] IPv6 supported, port: 58411

            apart from this I show you the ./update since it is not able to copy the registry when you install it

            ubuntu@intento-22-04:~/minecraftbe/intento22$ ./update.sh
            % Total % Received % Xferd Average Speed Time Time Time Current
            Dload Upload Total Spent Left Speed
            0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Minecraft Bedrock Server installation script by James A. Chambers
            Latest version always at https://github.com/TheRemote/MinecraftBedrockServer
            Don't forget to set up port forwarding on your router! The default port is 19132
            100 19999 100 19999 0 0 84752 0 --:--:-- --:--:-- --:--:-- 84741
            Updating apt..
            Hit:1 https://ryanfortner.github.io/box64-debs/debian ./ InRelease
            Hit:2 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
            Hit:3 http://phx-ad-3.clouds.ports.ubuntu.com/ubuntu-ports jammy InRelease
            Hit:4 http://phx-ad-3.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
            Hit:5 http://phx-ad-3.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports InRelease
            Reading package lists... Done
            Checking and installing dependencies..
            E: No packages found
            Dependency installation completed
            Enter root installation path for Minecraft BE (this is the same for ALL servers and should be ~, the subfolder will be chosen from the server name you provide). Almost nobody should change this unless you're installing to a different disk altogether. (default ~):
            Directory Path: ~
            Directory Path : ~ -- accept (y/n)?y
            Directory Path: ~
            Enter a short one word label for a new or existing server (don't use minecraftbe)...
            It will be used in the folder name and service name...
            Server Label: intento22
            Server Label : intento22 -- accept (y/n)?y
            Server Label: intento22
            Enter server IPV4 port (default 19132):
            Server IPV4 Port:
            Server IPV4 Port : 19132 -- accept (y/n)?y
            Server IPV4 Port: 19132
            Enter server IPV6 port (default 19133):
            Server IPV6 Port:
            Server IPV6 Port : 19133 -- accept (y/n)?y
            Server IPV6 Port: 19133
            Directory minecraftbe/intento22 already exists! Updating scripts and configuring service ...
            Server directory is: /home/ubuntu/minecraftbe/intento22
            Grabbing start.sh from repository...
            % Total % Received % Xferd Average Speed Time Time Time Current
            Dload Upload Total Spent Left Speed
            100 8157 100 8157 0 0 33743 0 --:--:-- --:--:-- --:--:-- 33846
            Grabbing stop.sh from repository...
            % Total % Received % Xferd Average Speed Time Time Time Current
            Dload Upload Total Spent Left Speed
            100 2731 100 2731 0 0 7976 0 --:--:-- --:--:-- --:--:-- 7985
            Grabbing restart.sh from repository...
            % Total % Received % Xferd Average Speed Time Time Time Current
            Dload Upload Total Spent Left Speed
            100 2856 100 2856 0 0 11588 0 --:--:-- --:--:-- --:--:-- 11562
            Grabbing fixpermissions.sh from repository...
            % Total % Received % Xferd Average Speed Time Time Time Current
            Dload Upload Total Spent Left Speed
            100 2128 100 2128 0 0 9822 0 --:--:-- --:--:-- --:--:-- 9851
            Grabbing revert.sh from repository...
            % Total % Received % Xferd Average Speed Time Time Time Current
            Dload Upload Total Spent Left Speed
            100 832 100 832 0 0 3473 0 --:--:-- --:--:-- --:--:-- 3481
            Grabbing update.sh from repository...
            % Total % Received % Xferd Average Speed Time Time Time Current
            Dload Upload Total Spent Left Speed
            100 749 100 749 0 0 2284 0 --:--:-- --:--:-- --:--:-- 2283
            Configuring Minecraft intento22 service...
            % Total % Received % Xferd Average Speed Time Time Time Current
            Dload Upload Total Spent Left Speed
            100 362 100 362 0 0 1525 0 --:--:-- --:--:-- --:--:-- 1527

            Start Minecraft server at startup automatically (y/n)?y
            Your time zone is currently set to Etc/UTC. Current system time: Thu Aug 4 05:46:37 UTC 2022
            You can adjust/remove the selected reboot time later by typing crontab -e or running SetupMinecraft.sh again.
            Automatically restart and backup server at 4am daily (y/n)?y
            Daily restart scheduled. To change time or remove automatic restart type crontab -e
            Setting server file permissions...
            Setup is complete. Starting Minecraft intento22 server. To view the console use the command screen -r or check the logs folder if the server fails to start

            I re-entered the command screen -r

            [2022-08-04 05:46:42] NO LOG FILE! - setting up server logging...
            [2022-08-04 05:46:42] [2022-08-04 05:46:42:957 INFO] Starting Server
            [2022-08-04 05:46:42] [2022-08-04 05:46:42:959 INFO] Version 1.19.11.01
            [2022-08-04 05:46:42] [2022-08-04 05:46:42:959 INFO] Session ID cc8ce2d5-bede-42d7-8eaa-0910f2949082
            [2022-08-04 05:46:42] [2022-08-04 05:46:42:978 INFO] Level Name: Bedrock level
            [2022-08-04 05:46:42] [2022-08-04 05:46:42:997 INFO] Game mode: 0 Survival
            [2022-08-04 05:46:42] [2022-08-04 05:46:42:998 INFO] Difficulty: 2 NORMAL
            [2022-08-04 05:46:42] [2022-08-04 05:46:42:488 INFO] opening worlds/Bedrock level/db
            [2022-08-04 05:46:55] [2022-08-04 05:46:55:857 INFO] IPv4 supported, port: 19132
            [2022-08-04 05:46:55] [2022-08-04 05:46:55:862 INFO] IPv6 supported, port: 19133
            [2022-08-04 05:46:58] [2022-08-04 05:46:58:081 INFO] Server started.
            [2022-08-04 05:46:58] [2022-08-04 05:46:58:136 INFO] ================ TELEMETRY MESSAGE ===================
            [2022-08-04 05:46:58] [2022-08-04 05:46:58:137 INFO] Server Telemetry is currently not enabled.
            [2022-08-04 05:46:58] [2022-08-04 05:46:58:137 INFO] Enabling this telemetry helps us improve the game.
            [2022-08-04 05:46:58] [2022-08-04 05:46:58:137 INFO]
            [2022-08-04 05:46:58] [2022-08-04 05:46:58:138 INFO] To enable this feature, add the line 'emit-server-telemetry=true'
            [2022-08-04 05:46:58] [2022-08-04 05:46:58:139 INFO] to the server.properties file in the handheld/src-server directory
            [2022-08-04 05:46:58] [2022-08-04 05:46:58:139 INFO] ======================================================
            [2022-08-04 05:46:58] [2022-08-04 05:46:58:195 INFO] IPv4 supported, port: 48689
            [2022-08-04 05:46:58] [2022-08-04 05:46:58:195 INFO] IPv6 supported, port: 55489

            check the log folder and there is absolutely nothing, I thought maybe I had minecraft out of date on my cell phone and it was with the latest version

            I did all this in version 22.04 and I made an attempt in 20.04 and it was the same, everything appears normal, it starts the server but it does not let me enter

            Now I don’t even know what to do

            1. Avatar for James A. Chambers

              Hey lleduardoll,

              That all looks right for sure. I see it’s Oracle. That’s definitely the problem. There’s nothing wrong with Oracle specifically and it will work but it requires more configuration. I haven’t seen a tougher one to configure than Oracle and some of the people configuring these were experienced network engineers who finally figured out how to set it up just right.

              Check out this post here.

              And another one here.

              The problem is the Oracle ingress settings. Everyone who has ever tried it on Oracle platforms runs into this because they are extremely confusing. Specifically:

              in the oracle VNIC settings you need to create a network security group (with ingress for your minecraft ports), and then add this group to you instance – hey presto it works! So hopefully this helps anyone else trying to get working!

              It’s always this with Oracle and everyone has always got it working after setting up the security groups in this way. All of your traffic is being dropped basically and there is no problem with the server.

              Just opening the ports won’t do the trick. It has to be this network security group with the ingress ports for Minecraft and then you have to add that new group you create to your instance. Hopefully that gets it for you, it’s purely Oracle configuration for this one (which is usually good because once you know the trick to set it up it’s not too hard to resolve this)!

              1. Avatar for lleduardoll

                It seems that I already fixed it without the need to change the ports, I only had to execute some firewall commands since the ports were active in the configuration but the server or rather there was a firewall that did not let the ports work.

                sudo firewall-cmd --permanent --zone=public --add-port=19132/tcp
                sudo firewall-cmd --permanent --zone=public --add-port=19132/udp
                sudo firewall-cmd --reload

                with that it seems that everything is fixed, anyway I will try to change the ports in the instance and see what happens

                but for the moment there is already a solution, I really appreciate the attention you gave me

              2. Avatar for lleduardoll

                I already checked the change of port and the reality is that it did not work without granting the firewall permissions, so the only solution that I found was the commands that I published in the part above

              3. Avatar for James A. Chambers

                Hey lleduardoll,

                Excellent, I’m glad you were able to do it! It looks like you did have a firewall installed after all (just not ufw). I tried typing in firewall-cmd on my computer and it said:

                Command 'firewall-cmd' not found, but can be installed with:

                sudo apt install firewalld

                so this isn’t a default package (at least normally, VM deployments often add things like this). Thanks for posting your solution, I don’t think we’ve seen this specific variant of this for Oracle until now!

  4. Avatar for TheBaregon

    I created this server yesterday, worked a ton on it. This morning I’m getting an error in Minecraft Cannot connect to server Connection timed out. The server is actually running. I’ve rebooted it a couple times and the host machine. Any ideas ? No firewall changes or server properties have been changed since I was playing it yesterday.

    1. Avatar for James A. Chambers

      Hey TheBaregon,

      Welcome! What does your server console look like? You can bring it up with:

      screen -r

      Basically we want to see if it’s running properly in that window and if everything looks like it’s okay. If it says screen cannot be found then you may want to check the “logs” folder of your server as well. If you’re seeing anything strange in there feel free to post it here and I’m sure we can get it going!

      1. Avatar for TheBaregon

        After start.sh:
        [2022-07-13 11:37:59] NO LOG FILE! - setting up server logging...
        [2022-07-13 11:37:59] [2022-07-13 11:37:59:650 INFO] Starting Server
        [2022-07-13 11:37:59] [2022-07-13 11:37:59:650 INFO] Version 1.19.10.03
        [2022-07-13 11:37:59] [2022-07-13 11:37:59:650 INFO] Session ID abfb4806-8838-412d-bb69-7975aeb1f4d6
        [2022-07-13 11:37:59] [2022-07-13 11:37:59:650 INFO] Level Name: UncleGosh
        [2022-07-13 11:37:59] [2022-07-13 11:37:59:652 INFO] Game mode: 0 Survival
        [2022-07-13 11:37:59] [2022-07-13 11:37:59:652 INFO] Difficulty: 1 EASY
        [2022-07-13 11:37:59] [2022-07-13 11:37:59:695 INFO] Content logging enabled. Writing log to: ContentLog__Wednesday__2022_July_13__11_37_59
        [2022-07-13 11:37:59] [2022-07-13 11:37:59:695 INFO] opening worlds/UncleGosh/db
        [2022-07-13 11:37:59] [2022-07-13 11:37:59:267 INFO] IPv4 supported, port: 19132
        [2022-07-13 11:37:59] [2022-07-13 11:37:59:267 INFO] IPv6 supported, port: 19133
        [2022-07-13 11:38:00] [2022-07-13 11:38:00:536 INFO] Server started.
        [2022-07-13 11:38:00] [2022-07-13 11:38:00:563 INFO] IPv4 supported, port: 41948
        [2022-07-13 11:38:00] [2022-07-13 11:38:00:563 INFO] IPv6 supported, port: 38517
        [2022-07-13 11:38:00] [2022-07-13 11:38:00:586 INFO] ================ TELEMETRY MESSAGE ===================
        [2022-07-13 11:38:00] [2022-07-13 11:38:00:586 INFO] Server Telemetry is currently not enabled.
        [2022-07-13 11:38:00] [2022-07-13 11:38:00:586 INFO] Enabling this telemetry helps us improve the game.
        [2022-07-13 11:38:00] [2022-07-13 11:38:00:586 INFO]
        [2022-07-13 11:38:00] [2022-07-13 11:38:00:586 INFO] To enable this feature, add the line 'emit-server-telemetry=true'
        [2022-07-13 11:38:00] [2022-07-13 11:38:00:586 INFO] to the server.properties file in the handheld/src-server directory
        [2022-07-13 11:38:00] [2022-07-13 11:38:00:586 INFO] ======================================================

        I turned on content logging just to see if I could see more info but I cant find the logs anywhere. When i try to connect to the server, there is never a connection request that shows in this.

        This is the first log from the first server reboot last night:

        [2022-07-13 04:00:33] NO LOG FILE! - setting up server logging...
        [2022-07-13 04:00:33] [2022-07-13 04:00:33:386 INFO] Starting Server
        [2022-07-13 04:00:33] [2022-07-13 04:00:33:386 INFO] Version 1.19.10.03
        [2022-07-13 04:00:33] [2022-07-13 04:00:33:386 INFO] Session ID c41febb9-eaed-4e96-a085-1f44d16f9ce1
        [2022-07-13 04:00:33] [2022-07-13 04:00:33:386 INFO] Level Name: UncleGosh
        [2022-07-13 04:00:33] [2022-07-13 04:00:33:388 INFO] Game mode: 0 Survival
        [2022-07-13 04:00:33] [2022-07-13 04:00:33:388 INFO] Difficulty: 1 EASY
        [2022-07-13 04:00:33] [2022-07-13 04:00:33:431 INFO] opening worlds/UncleGosh/db
        [2022-07-13 04:00:34] [2022-07-13 04:00:34:992 INFO] IPv4 supported, port: 19132
        [2022-07-13 04:00:34] [2022-07-13 04:00:34:992 INFO] IPv6 supported, port: 19133
        [2022-07-13 04:00:34] [2022-07-13 04:00:34:269 INFO] Server started.
        [2022-07-13 04:00:34] [2022-07-13 04:00:34:297 INFO] IPv4 supported, port: 57078
        [2022-07-13 04:00:34] [2022-07-13 04:00:34:297 INFO] IPv6 supported, port: 38044
        [2022-07-13 04:00:34] [2022-07-13 04:00:34:320 INFO] ================ TELEMETRY MESSAGE ===================
        [2022-07-13 04:00:34] [2022-07-13 04:00:34:320 INFO] Server Telemetry is currently not enabled.
        [2022-07-13 04:00:34] [2022-07-13 04:00:34:320 INFO] Enabling this telemetry helps us improve the game.
        [2022-07-13 04:00:34] [2022-07-13 04:00:34:320 INFO]
        [2022-07-13 04:00:34] [2022-07-13 04:00:34:320 INFO] To enable this feature, add the line 'emit-server-telemetry=true'
        [2022-07-13 04:00:34] [2022-07-13 04:00:34:320 INFO] to the server.properties file in the handheld/src-server directory
        [2022-07-13 04:00:34] [2022-07-13 04:00:34:320 INFO] ======================================================
        say Server is restarting in 30 seconds!
        say Server is restarting in 7 seconds!
        say Server is restarting in 6 seconds!
        say Server is restarting in 5 seconds!
        say Server is restarting in 4 seconds!
        say Server is restarting in 3 seconds!
        say Server is restarting in 2 seconds!
        say Server is restarting in 1 second!
        say Closing server...
        stop
        [2022-07-13 10:25:48] [2022-07-13 10:25:48:100 INFO] Server stop requested.
        [2022-07-13 10:25:48] [2022-07-13 10:25:48:145 INFO] Stopping server...
        [2022-07-13 10:25:48] Quit correctly

        1. Avatar for James A. Chambers

          Hey TheBaregon

          That all looks okay here. What happens if you try with a new server by chance? It’s strange to me that it was working yesterday.

          I’d suspect that the IP may have changed on your network or something like that but you’re connecting to the machine somehow to run the server I’m guessing here.

          I don’t see in your first log you joining the server at all. All I see is it starting and then going down. This doesn’t make a lot of sense as we should definitely see some activity in there from you connecting last night. Usually you will see yourself joining and leaving the game.

          If you weren’t on that server though what on earth were you connected to last night? This is definitely a really puzzling one!

          1. Avatar for TheBaregon

            So the log of the server running with me on it yesterday I have, didn’t post yet, but it all shows people connecting and disconnecting fine with lines of AutoCompaction every few minutes. Here is the end of the file, the rest of it looks standard: I changed my xuid just because lol. It could be an IP conflicyt. I’m hosting the server on a VM inside a machine at my data center so the IP address is given by the firewall with a pre-designated static lease. I am double checking all that now though.

            2022-07-13 02:10:25] [2022-07-13 02:10:25:193 INFO] Player disconnected: TheBaregon, xuid: 123456789
            [2022-07-13 02:12:42] [2022-07-13 02:12:42:776 INFO] Running AutoCompaction...
            [2022-07-13 02:18:42] [2022-07-13 02:18:42:799 INFO] Running AutoCompaction...
            [2022-07-13 02:24:42] [2022-07-13 02:24:42:800 INFO] Running AutoCompaction...
            [2022-07-13 02:30:42] [2022-07-13 02:30:42:801 INFO] Running AutoCompaction...
            [2022-07-13 02:36:42] [2022-07-13 02:36:42:816 INFO] Running AutoCompaction...
            [2022-07-13 02:42:42] [2022-07-13 02:42:42:817 INFO] Running AutoCompaction...
            [2022-07-13 02:48:42] [2022-07-13 02:48:42:819 INFO] Running AutoCompaction...
            [2022-07-13 02:54:42] [2022-07-13 02:54:42:821 INFO] Running AutoCompaction...
            [2022-07-13 03:00:42] [2022-07-13 03:00:42:842 INFO] Running AutoCompaction...
            [2022-07-13 03:06:42] [2022-07-13 03:06:42:843 INFO] Running AutoCompaction...
            [2022-07-13 03:12:42] [2022-07-13 03:12:42:845 INFO] Running AutoCompaction...
            [2022-07-13 03:20:03] [2022-07-13 03:20:03:846 INFO] Running AutoCompaction...
            [2022-07-13 03:26:03] [2022-07-13 03:26:03:867 INFO] Running AutoCompaction...
            [2022-07-13 03:32:03] [2022-07-13 03:32:03:868 INFO] Running AutoCompaction...
            [2022-07-13 03:38:03] [2022-07-13 03:38:03:870 INFO] Running AutoCompaction...
            [2022-07-13 03:44:03] [2022-07-13 03:44:03:871 INFO] Running AutoCompaction...
            [2022-07-13 03:50:03] [2022-07-13 03:50:03:899 INFO] Running AutoCompaction...
            [2022-07-13 03:56:03] [2022-07-13 03:56:03:901 INFO] Running AutoCompaction...
            say Server is restarting in 30 seconds!
            say Server is restarting in 7 seconds!
            say Server is restarting in 6 seconds!
            say Server is restarting in 5 seconds!
            say Server is restarting in 4 seconds!
            say Server is restarting in 3 seconds!
            say Server is restarting in 2 seconds!
            say Server is restarting in 1 second!
            say Closing server...
            stop
            [2022-07-13 04:00:31] [2022-07-13 04:00:31:868 INFO] Server stop requested.
            [2022-07-13 04:00:31] [2022-07-13 04:00:31:913 INFO] Stopping server...
            [2022-07-13 04:00:31] Quit correctly

            (END)

            1. Avatar for TheBaregon

              also, I just checked and the server IS talking to my computer back and forth. The game just doesnt load

              1. Avatar for James A. Chambers

                Hey TheBaregon,

                You may be onto something there! It could be IP conflict or port conflict related. I would try changing the server off of the default ports as this has fixed weird issues like this before that were otherwise unexplainable. My theory is it has something to do with the bug where it shows a second set of seemingly randomized ports that aren’t in your config file when the Bedrock server starts.

                This can be done by running SetupMinecraft.sh again and choosing different ports but the same server name/label. It’s safe to do this and designed for it.

                I also wonder if this has to do with Xbox Live authentication. This could actually tie into the port and IP conflicts but I half wonder if what is happening is that it is trying to authenticate with the Microsoft Xbox authentication servers and is getting stuck / something is going wrong with that so your player just sits there waiting forever.

                You could try going into server.properties and setting online-mode=true to online-mode=false. This will disable Xbox Live authentication on the server. This will break things like console being able to join due to the live service nature of those but PCs should be able to join unauthenticated (and probably iOS and Android devices I’d assume as well). If this works then what is getting blocked / going wrong is the Xbox Live authentication.

                Can you try those and let us know what you find? I think we’re getting warmer here!

              2. Avatar for ChrisJ

                Hi!

                The same thing happened to my server as well to today, after have been working for months without issues.
                Worked fine yesterday on 1.19.10.X, but today I get “connection timed out unable to connect to world”

                I installed another server on a separate IP with Ubuntu 22.04 and your script to see if it would work, but got the same results. Also used a non-deafult port.
                When I found this thread I also tried “online-mode=false” but as far as I can tell it made no difference.

                Any other ideas? 🙂

                Best regards

              3. Avatar for James A. Chambers

                Hey Chris,

                As far as I know all of these issues are fixed for everyone that was having them (I’ve heard back from everyone here at this point). What do your log files look like? My guess is you are missing a dependency potentially. They changed the dependencies dramatically in the latest version.

                If it just broke out of nowhere (especially after you were already running 1.19.10 which means you already were running the dependency changes) I’d almost suspect more that the server might be corrupted. None of these people’s broke out of the blue. It was when they upgraded to 1.19.10 and they were never able to run that version until I made dramatic changes but that is not the case with yours (plus those were fixed).

                Have you tried starting a fresh server to see if that starts up?

              4. Avatar for ChrisJ

                I did install a fresh server as well, no luck. But I’ll focus on my server and network instead.

                Thanks for the help, I’m very grateful 🙂

              5. Avatar for James A. Chambers

                Hey ChrisJ,

                Anything in your “logs” folder for the crash at all? Definitely let me know if you find out what it is as I assume there’s still some kind of problem but it’s not impacting everyone using it. There were a lot of big changes so this is definitely to be expected.

                Let me know if you find anything and if I can help further, it’s no trouble at all!

  5. Avatar for elborderas

    Hi, i just used this script to setup my own server. Quick question: can i configure a list of users to login? I’d like to have access control so only my kids and their friends can access. Thanks

      1. Avatar for James A. Chambers

        Hey elborderas,

        Don’t sweat it, that’s actually a great question! I’m sure you found the text files in the configuration that control this (or you can use the console as well).

        The answer to can you use a GUI is theoretically yes but in practice the GUI might not be expecting to be launched the way this script does. I imagine many of them would work though as just a drop-in.

        Feel free to stop by if anything else comes up!

        1. Avatar for elborderas

          Thanks for your answer 🙂
          Yes, i found the text files and I am capable of configure the initial things that i want. I am completely new to minecraft, not to Linux, so i am learning about minecraft server mgmt as we speak. All this just to keep my kids save 😉
          As for the GUI, i realized that in order for them to handle such a server, they need to have full control over it. You need to move all the files to their parent folder… etc Which pretty much seems like a bad decision as i would lose the whole advantage of YOUR setup.
          I am quite comfortable with Linux so probably i will keep using ssh and screen to manage the server.

          1. Avatar for James A. Chambers

            Hey elborderas,

            Excellent, I’m glad you got it working! I agree with you 100% for sure on that one as once you get going with the basics you can do almost everything in-game with the server operator commands (and should be, they’re easy to use in-game with a nice autocomplete system to help you with the commands, /help works as well for admins once you op someone).

            It’s hard to try and tell this to someone before they’ve tried to run the server and have some context but the easiest and smartest way to both learn and administrate a Minecraft server is exactly how you’ve approached it here. It’s really maybe 30-60 minutes of basic learning and configuration to get started (which is definitely a “hump” especially if people haven’t used Linux before) but I can personally vouch that normal, everyday people can learn this really quickly.

            Over the years we’ve seen parents who have zero IT experience leave comments here saying they were able to not only get going but actually thrive once they jumped into configuring / administrating it. It seems way scarier than it is. It actually is just text files and in-game commands (with a nice shortcut of typing op yourplayername in the server console to be able to use all commands in game).

            I know a lot of people use those GUIs but I think that probably you and anyone else who has got over the “hump” of the initial configuration and learned the real Minecraft server configuration methods (the same for Java and Bedrock for the most part) it’s really *not* that hard even for ordinary people and is just text files and commands that you can read from the README until you feel comfortable. None of those GUIs are official and you’re making yourself dependent on some person or team to keep it working / updated all to avoid editing some text files and maybe getting over a little discomfort with Linux (but is easy to overcome for anyone, you will not have to do any sorcery I promise).

            The advantage of this is you aren’t really dependent on my scripts for this. You can take that bedrock server folder and not use the scripts at all and it will work fine. You can even move it over to Windows and start running it there and people have done that before. That is because my scripts don’t do anything but updates/backups and you are actually learning the REAL Minecraft server configuration/administration techniques and once you know them you aren’t dependent on me or anyone else. It’s empowering while one of those closed-source GUIs (and there’s a lot of them) is a crutch/a weakness to avoid something that I guarantee they could easily do and would be yelling at themselves if they knew how easy it actually was.

            I think you’re on the path to a great and very fun server here. Thanks for letting me know you got it working and ended up not going through with trying to use a proprietary GUI or anything like that (I definitely think this is the right decision although I’m definitely biased toward more open source / power to the people kind of approach for sure). Take care and enjoy!

            1. Avatar for elborderas

              Wow, thanks for the amazing answer.

              You are absolutely right, this script and system that you created is more powerful than what it seems. Thank you so much!
              After reading your response i discovered about the “in game commands”, giving OP to a user, and found all these amazing list of commands available.
              WOW, this is serious stuff now 🙂

              I love it.
              First thing i did was to change the world to creative and activate the keepinventory.
              The friend from my son has been playing in a local world from his phone and he doesn’t die in it.
              I don’t think there is such an option in this server, within the creative/adventure/survival mode but i guess it will be ok if they return to the same state after dying.

              I also changed the world name, played with the allow list… so cool.

              And all of this working in a simple chromebox machine that i have with Linux installed.

              And yes, out of my mind the GUI thing. I am a Linux user since 1995, my work machine is a linux laptop so I love to live on the terminal.
              My initial request came out of not knowing anything whatsoever but, after spending a couple of hours on minecraft and setting up 3 kids accounts, I am starting to see that I can do everything from the comfort of my terminal.

              I understand some folks may feel lost at the beginning, maybe like me yesterday. But it only took me a bit of time to open my eyes and see the beauty of this sytem.
              Thanks for your patience when dealing with us… customers 🙂

              Congratulations again on this lean setup!

    1. Avatar for Eike

      Hi,
      that is possible. just add the kids to the whitelist / allowlist my pulling down the comand line in Game (you hae to be admin) and type allowlist add make sure that if you have names with spaces in use “name 34344”

      cheers
      eike

  6. Avatar for MarRod

    Sorry for interrupting again ,but i changed root AND user passwords , now i cant Let the server stay on , i put start.sh but It not stay , i updated AND still dont start do i need permissions on something? , If i put start.sh by seconds say already started but if i wait More a little More It does everything again AND dont stay, cant use screen – r either .

    Crash
    At gsignal(unknownfile:?)
    At abort(unknownfile:?)
    At __libc__start__main(unknownFile:?)
    Failed to open curl lib from binary , use libcurl.so instead

    1. Avatar for James A. Chambers

      Hey MarRod,

      Usually you just want to run SetupMinecraft.sh again when this happens. This will fix any permissions that may be wrong for sure. The passwords won’t have anything to do with it as they aren’t used anywhere.

      Did you change accounts that were running the Minecraft server? I think SetupMinecraft.sh should take care of these issues for sure. Make sure you aren’t trying to run the server as root (it sounds like this happened to me which probably messed up the permissions). If it says it’s open then it’s possible you ran start.sh as root at some point. To see that you’d have to do sudo screen -r.

      I’d definitely run SetupMinecraft.sh again on this and let it fix all the permissions and then try restarting the entire server (this will close any instances open in the background no matter what user they are running under). Let us know what you find!

      1. Avatar for MarRod

        Thanks for the reply ,the problem Is that i dont have setupMinecraft.sh anymore at least Is not where start.sh AND restart.sh are

        I run the curl again still no screen ,there was an Ubuntu update before the change

        I deleted the entire minecraftbe , reset AND there aré mising files included the bedrock_server ( i have a backup copy from backups )

          1. Avatar for MarRodLinux

            homes@homes-HP-Notebook:~/minecraftbe/MinecraftHome$ curl https://raw.githubusercontent.com/TheRemote/MinecraftBedrockServer/master/SetupMinecraft.sh | bash
            % Total % Received % Xferd Average Speed Time Time Time Current
            Dload Upload Total Spent Left Speed
            0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Minecraft Bedrock Server installation script by James A. Chambers
            Latest version always at https://github.com/TheRemote/MinecraftBedrockServer
            Don't forget to set up port forwarding on your router! The default port is 19132
            100 17090 100 17090 0 0 43047 0 --:--:-- --:--:-- --:--:-- 43047
            Updating apt..
            [sudo] password for homes:
            Hit:1 https://download.docker.com/linux/ubuntu focal InRelease
            Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
            Hit:3 http://mx.archive.ubuntu.com/ubuntu focal InRelease
            Get:4 http://mx.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
            Get:5 http://security.ubuntu.com/ubuntu focal-security/main amd64 DEP-11 Metadata [40.7 kB]
            Get:6 http://security.ubuntu.com/ubuntu focal-security/universe amd64 DEP-11 Metadata [66.3 kB]
            Get:7 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 DEP-11 Metadata [2 468 B]
            Get:8 http://mx.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
            Get:9 http://mx.archive.ubuntu.com/ubuntu focal-updates/main amd64 DEP-11 Metadata [278 kB]
            Get:10 http://mx.archive.ubuntu.com/ubuntu focal-updates/universe amd64 DEP-11 Metadata [390 kB]
            Get:11 http://mx.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [944 B]
            Get:12 http://mx.archive.ubuntu.com/ubuntu focal-backports/main amd64 DEP-11 Metadata [7 964 B]
            Get:13 http://mx.archive.ubuntu.com/ubuntu focal-backports/universe amd64 DEP-11 Metadata [30.5 kB]
            Fetched 1 153 kB in 3s (406 kB/s)
            Reading package lists... Done
            Checking and installing dependencies..
            Dependency installation completed
            Enter root installation path for Minecraft BE (this is the same for ALL servers and should be ~, the subfolder will be chosen from the server name you provide). Almost nobody should change this unless you're installing to a different disk altogether. (default ~):
            Directory Path: ~
            Directory Path : ~ -- accept (y/n)?y
            Directory Path: ~
            Enter a short one word label for a new or existing server (don't use minecraftbe)...
            It will be used in the folder name and service name...
            Server Label: MinecraftHome
            Server Label : MinecraftHome -- accept (y/n)?y
            Server Label: MinecraftHome
            Enter server IPV4 port (default 19132):
            Server IPV4 Port: 19132
            Server IPV4 Port : 19132 -- accept (y/n)?y
            Server IPV4 Port: 19132
            Enter server IPV6 port (default 19133):
            Server IPV6 Port: 19133
            Server IPV6 Port : 19133 -- accept (y/n)?y
            Server IPV6 Port: 19133
            Directory minecraftbe/MinecraftHome already exists! Updating scripts and configuring service ...
            Server directory is: /home/homes/minecraftbe/MinecraftHome
            Grabbing start.sh from repository...
            % Total % Received % Xferd Average Speed Time Time Time Current
            Dload Upload Total Spent Left Speed
            100 7842 100 7842 0 0 21662 0 --:--:-- --:--:-- --:--:-- 21662
            Grabbing stop.sh from repository...
            % Total % Received % Xferd Average Speed Time Time Time Current
            Dload Upload Total Spent Left Speed
            100 2731 100 2731 0 0 6949 0 --:--:-- --:--:-- --:--:-- 6949
            Grabbing restart.sh from repository...
            % Total % Received % Xferd Average Speed Time Time Time Current
            Dload Upload Total Spent Left Speed
            100 2856 100 2856 0 0 7955 0 --:--:-- --:--:-- --:--:-- 7955
            Grabbing fixpermissions.sh from repository...
            % Total % Received % Xferd Average Speed Time Time Time Current
            Dload Upload Total Spent Left Speed
            100 1982 100 1982 0 0 5400 0 --:--:-- --:--:-- --:--:-- 5400
            Grabbing revert.sh from repository...
            % Total % Received % Xferd Average Speed Time Time Time Current
            Dload Upload Total Spent Left Speed
            100 832 100 832 0 0 2195 0 --:--:-- --:--:-- --:--:-- 2195
            Grabbing update.sh from repository...
            % Total % Received % Xferd Average Speed Time Time Time Current
            Dload Upload Total Spent Left Speed
            100 751 100 751 0 0 1986 0 --:--:-- --:--:-- --:--:-- 1981
            Configuring Minecraft MinecraftHome service...
            % Total % Received % Xferd Average Speed Time Time Time Current
            Dload Upload Total Spent Left Speed
            100 361 100 361 0 0 1000 0 --:--:-- --:--:-- --:--:-- 1000
            sed: can't read server.properties: No such file or directory
            sed: can't read server.properties: No such file or directory
            Start Minecraft server at startup automatically (y/n)?y
            Your time zone is currently set to America/Mexico_City. Current system time: sáb 02 jul 2022 10:44:21 CDT
            You can adjust/remove the selected reboot time later by typing crontab -e or running SetupMinecraft.sh again.
            Automatically restart and backup server at 4am daily (y/n)?y
            Daily restart scheduled. To change time or remove automatic restart type crontab -e
            Setting server file permissions...
            chmod: cannot access '/home/homes/minecraftbe/MinecraftHome/bedrock_server': No such file or directory
            chmod: cannot access '/home/homes/minecraftbe/MinecraftHome/bedrock_server': No such file or directory
            Setup is complete. Starting Minecraft MinecraftHome server. To view the console use the command screen -r or check the logs folder if the server fails to start
            homes@homes-HP-Notebook:~/minecraftbe/MinecraftHome$ ./start.sh
            chmod: cannot access '/home/homes/minecraftbe/MinecraftHome/bedrock_server': No such file or directory
            chmod: cannot access '/home/homes/minecraftbe/MinecraftHome/bedrock_server': No such file or directory
            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 314k 0 314k 0 0 384k 0 --:--:-- --:--:-- --:--:-- 384k
            Latest version online is bedrock-server-1.19.2.02.zip
            Current install is: bedrock-server-1.19.2.02.zip
            Latest version bedrock-server-1.19.2.02.zip is already installed
            Starting Minecraft server. To view window type screen -r MinecraftHome
            To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D

            1. Avatar for James A. Chambers

              Hey MarRod,

              That all looks okay! How about when you run start.sh or look at the logs in the “logs” folder? It looks like your system is fine at least through the SetupMinecraft.sh part.

              Let’s take a look at start.sh and your “logs” folder to see what is happening and we should be able to get it going!

              1. Avatar for MarRodLinux

                start.sh i thought it was already on the last one :
                homes@homes-HP-Notebook:~/minecraftbe/MinecraftHome$ ./start.sh
                chmod: cannot access '/home/homes/minecraftbe/MinecraftHome/bedrock_server': No such file or directory
                chmod: cannot access '/home/homes/minecraftbe/MinecraftHome/bedrock_server': No such file or directory
                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 312k 0 312k 0 0 328k 0 --:--:-- --:--:-- --:--:-- 328k
                Latest version online is bedrock-server-1.19.2.02.zip
                Current install is: bedrock-server-1.19.2.02.zip
                Latest version bedrock-server-1.19.2.02.zip is already installed
                Starting Minecraft server. To view window type screen -r MinecraftHome
                To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D

                logs say :
                GNU nano 4.8 MinecraftHome.2022.07.02.10.44.38.log
                /bin/bash: /home/homes/minecraftbe/MinecraftHome/bedrock_server: No such file or directory

              2. Avatar for James A. Chambers

                Hey MarRod,

                Thanks, this is a really strange case! The output looks pretty normal here other than the file does seem to be physically missing. I almost wonder if you have a corrupt download cached.

                Can you try the following:

                rm -rf /home/homes/minecraftbe/MinecraftHome/downloads

                The reason I want to try this is that it says the latest version is already installed but bedrock_server seems to be physically missing. This could also be due to corrupt disk partitions (very common and usually explains the extremely strange issues) but before assuming that let’s make sure it’s not a corrupt download.

                Can you give that a try and then try running start.sh again?

              3. Avatar for MarRodLinux

                homes@homes-HP-Notebook:~/minecraftbe/MinecraftHome$ rm -rf /home/homes/minecraftbe/MinecraftHome/downloads
                homes@homes-HP-Notebook:~/minecraftbe/MinecraftHome$ ls
                allowlist.json fixpermissions.sh permissions.json revert.sh stop.sh version_installed.txt
                backups logs restart.sh start.sh update.sh
                homes@homes-HP-Notebook:~/minecraftbe/MinecraftHome$ ./start.sh
                chmod: cannot access '/home/homes/minecraftbe/MinecraftHome/bedrock_server': No such file or directory
                chmod: cannot access '/home/homes/minecraftbe/MinecraftHome/bedrock_server': No such file or directory
                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 312k 0 312k 0 0 323k 0 --:--:-- --:--:-- --:--:-- 323k
                Latest version online is bedrock-server-1.19.2.02.zip
                Current install is: bedrock-server-1.19.2.02.zip
                Latest version bedrock-server-1.19.2.02.zip is already installed
                Starting Minecraft server. To view window type screen -r MinecraftHome
                To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D
                homes@homes-HP-Notebook:~/minecraftbe/MinecraftHome$ ls
                allowlist.json downloads logs restart.sh start.sh update.sh
                backups fixpermissions.sh permissions.json revert.sh stop.sh version_installed.txt
                homes@homes-HP-Notebook:~/minecraftbe/MinecraftHome$ screen -r
                There is no screen to be resumed.
                homes@homes-HP-Notebook:~/minecraftbe/MinecraftHome$

                it has been worked exelent for 3 months ,F for the server,thanks a lot for trying u.u

              4. Avatar for James A. Chambers

                Hey MarRodLinux,

                I’m stumped on this one. It says it’s downloading and unzipping the files and there’s no errors but the files just aren’t there. My guess is that the partitions/disk on this laptop are corrupted.

                We deleted the downloads folder so it shouldn’t have said that the latest version is already installed (we deleted that and the version file that it checks to see if you have the latest version) but it still looks like it didn’t try to download and install this.

                This would basically be beyond the script and OS / disk level problems. The OS may need a reinstall here or the partitions may need an fsck. Sorry I couldn’t be of more help, there’s just no errors in the script but nothing is downloading / appears to be where it should be. It definitely seems like a corrupt OS disk to me here!

              5. Avatar for MarRod

                ITS working again ,but It had to be changed from Linux 22.04 to 20.04 AND a new World ,old just corrupted it

                Thanks a lot by the way ,ITS so cool to have it

              6. Avatar for James A. Chambers

                Hey MarRod,

                Thanks a ton for the update! I’m glad you got it going! It makes sense that it ended up being that as this was some totally crazy behavior (almost nonsensical!). That definitely points to issues like this a lot of the time.

                No problem at all and I’m glad it continues to help you out! Take care!

Leave a Comment

Your email address will not be published. Required fields are marked *

Type here..

Exit mobile version