GithubHelp home page GithubHelp logo

theremote / minecraftbedrockserver Goto Github PK

View Code? Open in Web Editor NEW
783.0 783.0 156.0 35.7 MB

Sets up a Minecraft Bedrock dedicated server on Ubuntu with options for automatic updates and running at startup

Home Page: https://jamesachambers.com/minecraft-bedrock-edition-ubuntu-dedicated-server-guide/

License: MIT License

Shell 100.00%
bedrock-dedicated-server bedrock-edition dedicated-game-server dedicated-server minecraft raspberry-pi server

minecraftbedrockserver's People

Contributors

jordanmajd avatar kmpoppe avatar masayakondo999 avatar omkhar avatar rumyantsevmichael avatar smallsam avatar sparagi avatar sweavo avatar theremote avatar thewilbo avatar titiscan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

minecraftbedrockserver's Issues

bedrock_server: Permission denied

Starting from the automatic restart at 0400 JST today (2021-04-06 19:00 UTC), the server suddenly refuses to work, with the single line "bedrock_server: Permission denied" appearing in logs:

tkimura@tower:~/minecraftbe/Bedrock1/logs$ grep -c $ * | tail
Bedrock1.2021.04.02.16.48.30.log:19
Bedrock1.2021.04.02.17.06.47.log:28
Bedrock1.2021.04.03.04.00.56.log:26
Bedrock1.2021.04.04.04.00.55.log:228
Bedrock1.2021.04.05.04.01.10.log:175
Bedrock1.2021.04.06.04.00.55.log:204
Bedrock1.2021.04.07.04.00.57.log:1
Bedrock1.2021.04.07.14.17.02.log:1
Bedrock1.2021.04.07.14.20.07.log:1
Bedrock1.2021.04.07.14.21.32.log:1
tkimura@tower:~/minecraftbe/Bedrock1/logs$ cat Bedrock1.2021.04.07.04.00.57.log
/bin/bash: /home/tkimura/minecraftbe/Bedrock1/bedrock_server: Permission denied
tkimura@tower:~/minecraftbe/Bedrock1/logs$

bedrock_server is owned by me, like (I assume) it has been before 0400 JST:

tkimura@tower:~/minecraftbe/Bedrock1$ ls -l bedrock_server
-rw-r--r-- 1 tkimura tkimura 69192536 Mar 20 06:28 bedrock_server
tkimura@tower:~/minecraftbe/Bedrock1$ whoami
tkimura
tkimura@tower:~/minecraftbe/Bedrock1$

I did a fresh run of the latest SetupMinecraft.sh on another server, and the exact same issue occurs. Anybody else experiencing this issue? Any ideas how to fix?

Bedrock Server is not listening to Ports

I am on Ubuntu Server 18.04 LTS and I used the script here to install an Bedrock Server.
I am hosting this Server on a VPS so all Ports are unblocked by any type of firewall.
I used the ufw to enable TCP / UDP on 19132, 19133 and custom ports.
After startup of the Bedrockserver " lsof -i -P -n | grep LISTEN " run as sudo and local user doesnt show the ports which should be open.
External pings are not working either. But if I setup a java server on any port this port will correctly open and the server will listen.
image
image
image
image
image

Fails right after start?

Hi!
I just tried to setup this server on a Ubuntu 18.04.03. Right after the install finished it gives me this:
Server is already started! Press screen -r minecraft to open it

But I cannot jump into the screen:
minecraft@minecraft:~/minecraftbe/minecraft$ screen -r minecraft
There is no screen to be resumed matching minecraft.

Also tried running it manually, but im not getting any errors:
minecraft@minecraft:~/minecraftbe/minecraft$ ./start.sh
Server is already started! Press screen -r minecraft to open it

minecraft@minecraft:~/minecraftbe/minecraft$ screen -r minecraft
There is no screen to be resumed matching minecraft.

Any ideas?

-r to open server window

Upon starting the server everything works correctly except that when I try -r to open and view the running server it returns an unknown command message and does not open the server in another window. Any ideas?

There is no screen to be resumed matching minecraft. (Ubuntu 16.04.6 (LTS) x64)

On a brand new Ubuntu 16.04.6 (LTS) x64 instance (on Digital Ocean), the script ends with no screen and no minecraft server has been started:

There is no screen to be resumed matching minecraft.

This is how the install script ends:

Start Minecraft server at startup automatically (y/n)?y
Created symlink from /etc/systemd/system/multi-user.target.wants/minecraft.service to /etc/systemd/system/minecraft.service.
Your time zone is currently set to Etc/UTC. Current system time: Tue Apr 14 11:13:37 UTC 2020
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 root
Daily restart scheduled. To change time or remove automatic restart type crontab -e
Setup is complete. Starting Minecraft server...
Minecraft server failed to start after 20 seconds.
There is no screen to be resumed matching minecraft.

raspberry pi 4 missing ld-linux-x86-64 issue

It seems like the raspberry pi setup is broken.
After the setup complete it fails to start on Raspberry Pi 4.

Setup is complete.  Starting Minecraft server...
Minecraft server failed to start after 20 seconds.
There is no screen to be resumed matching test.

tail /logs/xxx.log says

/lib64/ld-linux-x86-64.so.2: No such file or directory

Am I missing something?

Only using one CPU core

Hello, I recently started using this program over one made for the windows environment. It works perfectly except for one issue, which is more than likely my own fault, I just cannot figure it out.

My server.properties file can be found here
https://pastebin.com/raw/vDpsAGTs

As you can see max-threads is set to zero. However, when we open htop we can see that only core 24 is being used, and its being maxed out at 100%.
https://ibb.co/bWw6Hg7

I know its being limited as the server will normally run PERFECTLY and the cores will run at maximum ~15%. The server is also very laggy (server sided lag, ex. mobs move slowly, slow reaction time, blocks take long time to drop entity, etc.)

start.sh Auto Update Broken

# Test internet connectivity first wget --spider --quiet https://minecraft.net/en-us/download/server/bedrock/
results in: "HTTP request sent, awaiting response... 503 Service Unavailable
Remote file does not exist -- broken link!!!"

# Download server index.html to check latest version wget -O downloads/version.html https://minecraft.net/en-us/download/server/bedrock/
result in: "downloads/version.html: No such file or directory"

Auto-update fails and although server will restart correctly, clients will be unable to connect to it.

Unable to connect to world error when trying to connect to my server.

Hi.
I have a ubuntu vps. I ran the script and all went well. I was able to start the server. It said server started, however when my friends try to connect to my external IP with the port 19132, it says unable to connect to world. Nothing shows up on the logs. Port 19132 is open on UFW. What am I doing wrong here?

Server failed to start

Hello,

After execute the script, the minecraft server failed to start, here are the logs :

Nov 5 19:23:11 lion systemd[1]: Starting cocoland minecraft server...
Nov 5 19:23:11 lion bash[11224]: Checking for the latest version of Minecraft Bedrock server ...
Nov 5 19:23:12 lion bash[11224]: --2019-11-05 19:23:12-- https://minecraft.net/en-us/download/server/bedrock/
Nov 5 19:23:12 lion bash[11224]: Resolving minecraft.net (minecraft.net)... 54.230.218.164, 54.230.218.111, 54.230.218.87, ...
Nov 5 19:23:12 lion bash[11224]: Connecting to minecraft.net (minecraft.net)|54.230.218.164|:443... connected.
Nov 5 19:23:12 lion bash[11224]: HTTP request sent, awaiting response... 302 Moved Temporarily
Nov 5 19:23:12 lion bash[11224]: Location: https://www.minecraft.net/en-us/download/server/bedrock/ [following]
Nov 5 19:23:12 lion bash[11224]: --2019-11-05 19:23:12-- https://www.minecraft.net/en-us/download/server/bedrock/
Nov 5 19:23:12 lion bash[11224]: Resolving www.minecraft.net (www.minecraft.net)... 2606:2800:233:18f9:1142:8f:20aa:11e2, 152.199.20.92
Nov 5 19:23:12 lion bash[11224]: Connecting to www.minecraft.net (www.minecraft.net)|2606:2800:233:18f9:1142:8f:20aa:11e2|:443... connected.
Nov 5 19:23:12 lion bash[11224]: HTTP request sent, awaiting response... 200 OK
Nov 5 19:23:12 lion bash[11224]: Length: unspecified [text/html]
Nov 5 19:23:12 lion bash[11224]: Saving to: ‘downloads/version.html’
Nov 5 19:23:12 lion bash[11224]: 0K .......... .......... .......... .......... .......... 1.96M
Nov 5 19:23:12 lion bash[11224]: 50K .......... .......... .......... .......... .......... 2.31M
Nov 5 19:23:12 lion bash[11224]: 100K .......... .......... .......... .......... .......... 11.0M
Nov 5 19:23:12 lion bash[11224]: 150K .......... .......... .......... .......... .......... 11.4M
Nov 5 19:23:12 lion bash[11224]: 200K .......... .......... .......... .......... .......... 2.91M
Nov 5 19:23:12 lion bash[11224]: 250K .......... .......... .......... .......... ...... 13.5M=0.07s
Nov 5 19:23:12 lion bash[11224]: 2019-11-05 19:23:12 (3.86 MB/s) - ‘downloads/version.html’ saved [303314]
Nov 5 19:23:12 lion bash[11224]: Minecraft Bedrock server is up to date...
Nov 5 19:23:12 lion bash[11224]: Starting Minecraft server. To view window type screen -r cocoland
Nov 5 19:23:12 lion bash[11224]: To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D
Nov 5 19:23:12 lion systemd[1]: Started cocoland minecraft server.
Nov 5 19:23:12 lion bash[11240]: Server is not currently running!
Nov 5 19:23:12 lion systemd[1]: cocoland.service: Control process exited, code=exited status=1
Nov 5 19:23:12 lion systemd[1]: cocoland.service: Unit entered failed state.
Nov 5 19:23:12 lion systemd[1]: cocoland.service: Failed with result 'exit-code'.

I can't find where is the error, can you help me to resolve it ?

Thanks

question

is multiple servers working???

Is this project dead?

Piles of issues, bunch of PRs. I happen to pass by here due to a problem I have saying that my server is outdated even if im using the latest version with the hopes that there was a change to parse the download correctly.

Is there any active fork for this?

Simplified server administration

I'm wondering what you would think about making your script better compatible with cockpit to improve user-friendly server administration. It's already pretty close to there given you went with systemd services.

I was thinking that moving from crontab to systemd timers for the restart would be a good first step. I started working on it but thought I'd get your thoughts on if there was a compelling reason to stick with crontab. If not, I'd like to contribute a little, maybe even eventually offer to install/enable cockpit as part of your script.

Just a thought...

Removing old backups is done in the wrong directory context

The default script does the following for removing old backups:

# Rotate backups -- keep most recent 10
Rotate=$(ls -1tr dirname/minecraftbe/servername/backups | head -n -10 | xargs -d '\n' rm -f --)

The problem is that the 'rm' command that xargs is operating on is just the list of files but rm is performing them in the wrong working directory.

A simple fix for this would be to change to the correct directory first. So the following works:

# Rotate backups -- keep most recent 10
Rotate=$(pushd dirname/minecraftbe/servername/backups; ls -1tr | head -n -10 | xargs -d '\n' rm -f --; popd)

[Fail to start] Exec Format Error on Pi 4

Latest version throws Exec Format Error and immediately closes screen.

Log of a fresh install:
/bin/bash: /home/pi/minecraftbe/testServer/bedrock_server: cannot execute binary file: Exec format error

End of Setup Script of a fresh install:
Setup is complete. Starting Minecraft testServer server...
There is no screen to be resumed matching testServer.

Possibly missing QEMU libraries?
(There are no other servers running on this device).

CPU Usage

Hello,

First of all, your script is simply amazing. I'm running into a very annoying issue though.
When the server idles, it's using about 3-4% cpu, but as soon as one player joins, it spikes to 100% and stays between 75 - 100%.

Maybe htop tells you something more.. I'm not sure if this is an issue with Minecraft Bedrock or your script, so sorry in advance.

Thanks
100cpu

Anyway to edit level.dat?

Can't open in Notepad or popular pre-existing third party editors that usually can edit the file.
I just want to toggle the coords option on.

Please Help Me Understand.

The install seems pretty straight forward and It seems like it is well built. (as far as i can tell -(.)/- ). I set up my system a while ago. It uses the most basic crontab + screen combo possible to launch my server automatically. (I'm proud of it but i want to improve.) I have herd about systemd but cant figure out how to use it and I want to learn enough to write an auto update similar to what you have. If you can, will you explain in as much detail as you can how lines 37 to the end of start.sh works.

I know this isn't an issue but i didn't know how to ask you otherwise.

Hugh Sparks
(The 15yo wannabe programmer)

How to add a timestamp to the screen and the log.

Thank you for the great script. I wanted to include a timestamp of all actions to include when people logged in and out. I modified mine in the following way:

Create the script named helper.sh in the server root
#!/bin/bash

LD_LIBRARY_PATH=/Path/ServerName> /Path/ServerName/bedrock_server | awk '{ print strftime("[%Y-%m-%d %H:%M:%S]"), $0 }'

Change last line in start.sh to:
screen -L -Logfile logs/.$(date +%Y.%m.%d.%H.%M.%S).log -dmS /bin/bash -c "/Path/ServerName /Path/ServerName/helper.sh"

Path= the path where the servers are
ServerName = name of the server

Now you get logs like this:
[2021-03-10 04:00:55] NO LOG FILE! - setting up server logging...
[2021-03-10 04:00:55] [2021-03-10 04:00:55 INFO] Starting Server
[2021-03-10 04:00:55] [2021-03-10 04:00:55 INFO] Version 1.16.210.05
[2021-03-10 04:00:55] [2021-03-10 04:00:55 INFO] Session ID 15898e26-8ad4-4ed7-8b6f-eb26f8bd3857
[2021-03-10 04:00:55] [2021-03-10 04:00:55 INFO] Level Name: paradise
[2021-03-10 04:00:55] [2021-03-10 04:00:55 INFO] Game mode: 0 Survival
[2021-03-10 04:00:55] [2021-03-10 04:00:55 INFO] Difficulty: 1 EASY
[2021-03-10 04:00:55] [INFO] opening worlds/paradise/db
[2021-03-10 04:00:58] [INFO] IPv4 supported, port: 19132
[2021-03-10 04:00:58] [INFO] IPv6 supported, port: 19133
[2021-03-10 04:00:58] [INFO] IPv4 supported, port: 56338
[2021-03-10 04:00:58] [INFO] IPv6 supported, port: 55859
[2021-03-10 04:01:00] [INFO] Server started.
[2021-03-10 04:06:55] [INFO] Running AutoCompaction...
[2021-03-10 04:12:55] [INFO] Running AutoCompaction...
[2021-03-10 04:18:55] [INFO] Running AutoCompaction...
[2021-03-10 04:24:55] [INFO] Running AutoCompaction.

Starting server deletes all start/stop/restart files

I downloaded today (12/16/2020) and whenever the server starts it deletes the following files (to my knowledge):

  • bedrock_server
  • libCrypto.so
  • server.properties
  • stop.sh
  • restart.sh
  • start.sh
  • valid_known_packs.json

question

hi @TheRemote does the server its self auto update if not is there a way to force update

Server failed to start because there was no screen to be resumed.

I encountered the error message at the end of a server setup. The error went as follows:

Minecraft server failed to start after 20 seconds.
There is no screen to be resumed matching Server.

To reproduce this error I followed the steps listed in the read me file. Once I ran the script I choose the following options.

  1. IPV4 port: 19132
  2. IPV6 port: 19133
  3. Start automatically: y
  4. backup at 4am daily: y

Even though the startup script claims that the set up was not successful, it still creates the file and all of the associated data. When running the start.sh script it throws no error messages but ends immediately.

OpenSSL

Hello,
Why is OpenSSL being installed ?
Is it needed to run a minecraft bedrock server ?

Thanks

hi i have problem when i start my server on debian 9

Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Network interface not up, will try again in 1 second
Waiting for network interface to come up timed out - starting server without network connection ...
Checking for the latest version of Minecraft Bedrock server ...
--2020-06-29 16:04:02-- https://minecraft.net/en-us/download/server/bedrock/
Resolving minecraft.net (minecraft.net)... 13.249.4.64, 13.249.4.48, 13.249.4.41, ...
Connecting to minecraft.net (minecraft.net)|13.249.4.64|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://www.minecraft.net/en-us/download/server/bedrock/ [following]
--2020-06-29 16:04:02-- https://www.minecraft.net/en-us/download/server/bedrock/
Resolving www.minecraft.net (www.minecraft.net)... 152.199.21.175, 2606:2800:233:1cb7:261b:1f9c:2074:3c
Connecting to www.minecraft.net (www.minecraft.net)|152.199.21.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 305880 (299K) [text/html]
Saving to: 'downloads/version.html'

downloads/version.h 100%[===================>] 298.71K --.-KB/s in 0.06s

2020-06-29 16:04:03 (4.97 MB/s) - 'downloads/version.html' saved [305880/305880]

Minecraft Bedrock server is up to date...
Starting Minecraft server. To view window type screen -r devbds
To minimize the window and let the server run in the background, press Ctrl+A then Ctrl+D
root@omegaserv:~/minecraftbe/devbds# screen -r devbds
There is no screen to be resumed matching devbds.

Add plugin support

Hi,
If any of you have ever used Pocketmine, you will know you can get plugins. I understand it may not be possible to do this right now, but it would be great to get plugins for the dedicated server. Thanks!

Level Migration

I've setup a new server and attempted to migrate an existing level (local Win10 1909 hosted level, client v1.16.10) to the server (Ubuntu 20 hosted on a vSphere 6.0 server, also using Webmin to easier access settings & services) and although I've got things transitioned, there's a few tricks and caveats to note. This likely should be added to your documentation.

To Migrate World from device to device:

  1. Stop server
  2. Copy world folder from: "C:\Users%username%\AppData\Local\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang\minecraftWorlds".
    The world folder will be a scrambled set of characters ending with an "=" sign. I recommend opening world in Minecraft so you know which one it is, then in Windows Explorer, sort by last modified date.
  3. Copy that folder to the server Minecraft folder:
    "minecraftbe[key word specified during setup]\worlds"
  4. Remove the "=" from the name of the folder.
  5. Edit the file "server.properties", changing the field "level-name" (line 55) to the name of the world folder you copied over.
  6. Save file
  7. Start Server

Caveats:

  • All Inventory on player is lost. Recommended to store in a chest first for any players that have played on this world.
  • Any Experience gained on player will be reset to 0 (Is this normal with other migrations??)
  • Your spawn will reset to the World spawn point. Recommend noting your coordinates if possible.
  • Operator status does not follow the world. You will need to reset this once the world is started using the "whitelist.json" & "permissions.json" files.

Multi-Worlds Recommendation:

I would also suggest expanding your documentation to explain how to setup the multi-world servers as well. It took a little bit for me to figure it out since there's no details on the process. Thanks :)

Kudos:

Thanks to those who've contributed to this. Setting up this server was relatively easy to do with the package and instructions that have been provided.

Question

Is the raspberry pi support broken or working

Server fails to start: OPENSSL_1_1_1 Not found

Love work. Thank you!

Just upgraded to 1.12 from 1.11 using your script and afterwards the server silently failed to start on Ubuntu 18.04.

When I ran bedrock_server manually I got

OPENSSL_1_1_1 Not found

from libCrypto.so

sudo apt install openssl -y upgraded openssl and fixed the issue.

Could I make a couple of feature requests?

  1. Not sure what bedrock_server gives you in the way of return codes but any sort of check to see if it has started correctly would be great.

  2. Include a check for openssl version

Rotate backups

Please add backup rotation feature as the backups tend to pile up after some time.

Make it clear the Minecraft Server this installs is in Alpha testing.

Please add to the README or someplace obvious that the server installed is in Alpha.

I installed this several months ago and now I am running into issues with the server failing to save the world properly. Following the trail back, the server this script installs is from Minecraft.net. on Minecraft.net it is made clear that the server is in Alpha. I would not have installed the server (for what I was using it for) if I had known it was in Alpha.

question

is there away to change the info in the consle to time stamps
image

I can't open server in RasberryPi

ERROR: Id.so: object '/usr/lib/arm-linux-gnueabihf/libarmmem-${PLATFORM}.so' from /etc/id.so.preload cannot be preloaded (cannot open shared object file): ignored.
NO LOG FILE! - setting up server logging...

Unhandled prefetch abort: unknown 1 (0x001) at 0x604eb1a6

My device is RaspberryPI 3B+

Unable to locate package libcurl4 on debian stretch

During installation it says:
Unable to locate package libcurl4

Tried installing it with apt-get install libcurl4 but that couldn't locate the package.

The installation continues but the server refuses to start.

Crash restart?

[2020-07-27 15:41:31 INFO] Package: com.mojang.minecraft.dedicatedserver
Version: 1.16.1.2
OS: Linux
Server start: 2020-07-27 13:26:33 EDT
Dmp timestamp: 2020-07-27 15:41:31 EDT
Upload Date: 2020-07-27 15:41:31 EDT
Session ID: 3b8263d5-5875-499b-bc01-8495bca1f81a
Commit hash:
Build id: development
CrashReporter Key: 1ad85b68-eb6c-3af0-b372-46d31a5b7e2f

Crash
[2020-07-27 15:41:31 INFO]      at Mob::baseTick[] (UnknownFile:?)
        at Actor::normalTick[] (UnknownFile:?)
        at Mob::normalTick[] (UnknownFile:?)
        at Monster::normalTick[] (UnknownFile:?)
        at Actor::tick[BlockSource&] (UnknownFile:?)
        at LevelChunk::tick[BlockSource&, Tick const&] (UnknownFile:?)
        at Player::tickWorld[Tick const&] (UnknownFile:?)
        at ServerPlayer::tickWorld[Tick const&] (UnknownFile:?)
        at std::function<bool [Player&]>::operator[][Player&] const (UnknownFile:?)
        at Level::forEachPlayer[std::function<bool [Player&]>] (UnknownFile:?)
        at Level::tick[] (UnknownFile:?)
        at ServerLevel::tick[] (UnknownFile:?)
        at GameSession::tick[] (UnknownFile:?)
        at Minecraft::tickSimtime[int, int] (UnknownFile:?)
        at Minecraft::update[] (UnknownFile:?)
        at ServerInstance::_update[] (UnknownFile:?)
        at clone (UnknownFile:?)
352d2c05-37d8-4fdf-9b82-df19d06df768

screen exited with this error log.

Could you revive the server automatically?

update

plz update server the verison is old

Multiple bedrock servers

Hi,

I found a small problem when running 2 servers from startup script.

Config:
minecraft1:

server-port=19132
server-portv6=19133

minecraft2:

server-port=29132
server-portv6=29133

When minecraft2 starts first then:

[2019-11-19 13:49:36 INFO] IPv4 supported, port: 29132
[2019-11-19 13:49:36 INFO] IPv6 supported, port: 29133
[2019-11-19 13:49:36 INFO] IPv4 supported, port: 19132
[2019-11-19 13:49:36 INFO] IPv6 supported, port: 19133

So when minecraft1 starts it writes:

[2019-11-19 13:51:11 INFO] IPv4 supported, port: 0
[2019-11-19 13:51:11 INFO] IPv6 supported, port: 0
[2019-11-19 13:51:11 ERROR] Network port occupied, can't start server.

I've added to minecraft2.service line:
After=network-online.target minecraft1.service

After this modification both servers starts properly on system startup.
But manually I have to control not to start minecraft2 when minecraft1 is not running.
Maybe the better solution is set both server to non-standard port?

Regards,
Mickey

Stop script issue

Ran on two brand new Ubuntu VPS, one 18.04, one 19 and had the same issue using stop.sh:

./stop.sh: line 37: syntax error near unexpected token `done'
./stop.sh: line 37: `done'

Looking at the code, looks like the while loop formatting is the issue, updating line 33 from:

while [ $CountdownTime -gt 0 ] do

To:

while [ $CountdownTime -gt 0 ]; do

resolves the issue, I can open a PR.

Invalid user userxname

Permissions=$(sudo chown -R userxname dirname/minecraftbe/servername >/dev/null)

Who is userxname? This (predictably) causes the following error:

terry@os3-354-10066:~/minecraftbe/Bedrock-KIX$ ./start.sh 
[sudo] password for terry: 
chown: invalid user: 'userxname'
Checking for the latest version of Minecraft Bedrock server ...
<SNIP>

can't run the installer

Hi,

Unfortunately I can not install the server.
I'm always stucked here:
"
Welcome to Ubuntu 20.10 (GNU/Linux 5.4.73-1-pve x86_64)

Thanks in advance,
BL

Install script forces installation to current users homedir

Hi, why does the install script force itself to install to the executing users homedir? I want the server files to be stored on a different partition than the one my homedir is on, but the script keeps trying to force itself into the homedir folder. II was able to modify the script to use a variable instead of the hardcoded ~ I found all over the place, it puts the files where I want them now. I strongly recommend you remove the default install path and make it the first thing the script asks you for instead

Crashes on start

On a Raspberry Pi 2. Followed installation instructions, Debug_Log.txt shows:
Debug_Log.txt[2019-07-05 19:49:22 INFO] Starting Server
[2019-07-05 19:49:22 INFO] Version 1.11.4.2
[2019-07-05 19:49:22 INFO] Level Name: Bedrock level

Running with "LD_LIBRARY_PATH=/home/pi/minecraftbe/TripleCraft /home/pi/minecraftbe/TripleCraft/bedrock_server" shows a segfault.
NO LOG FILE! - setting up server logging...
[2019-07-05 19:54:23 INFO] Starting Server
[2019-07-05 19:54:23 INFO] Version 1.11.4.2
[2019-07-05 19:54:23 INFO] Level Name: Bedrock level
Segmentation fault

idea: restructure setup script into two parts: sudo commands and non-sudo commands

I like how this tutorial suggests running the bedrock server under a separate, lower-privileged user, to increase security.

Perhaps the same thing could be achieved with MinecraftBedrockServer? Perhaps by separating the parts that require sudo into a separate script? Then, this could be installed in two parts, one script (the sudo commands) by a more privileged user, and the rest of the commands by a less privileged user.

I tried to get this working, but got stuck and gave up for now. But I thought I'd share this idea, in case anyone else wants to give it a shot. And also, to see if y'all think it would actually increase security and be worth the hassle.

Can't connect to the server as if no ports is open?

Hi.

I used your guide to install on a brand new Digital Ocean instance with Ubuntu 18.04.3(LTS) and the install goes great.
The server starts as well, but I can't connect to the server:

[2020-04-14 10:55:10 INFO] Starting Server
[2020-04-14 10:55:10 INFO] Version 1.14.32.1
[2020-04-14 10:55:10 INFO] Session ID 90c185f8-de4a-4767-ab45-a0dcc3960a6d
[2020-04-14 10:55:10 INFO] Level Name: Emil
[2020-04-14 10:55:10 INFO] Game mode: 1 Creative
[2020-04-14 10:55:10 INFO] Difficulty: 1 EASY
[2020-04-14 10:55:11 INFO] opening worlds/Bedrock/db
[2020-04-14 10:55:13 INFO] IPv4 supported, port: 19132
[2020-04-14 10:55:13 INFO] IPv6 supported, port: 19133
[2020-04-14 10:55:13 INFO] IPv4 supported, port: 51358
[2020-04-14 10:55:13 INFO] IPv6 supported, port: 38329
[2020-04-14 10:55:15 INFO] Server started.

I also tried to telnet localhost 19132on the server and it fails? Do I need to open some ports?

$ telnet localhost 19132
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.