Bedrock server won't start on Ubuntu - Port may be in use
Hi Team,
I have had this issue since trying to upgrade to v1.20.x
Ubuntu version - Ubuntu 18.04.1 LTS
Steps to Reproduce:
1. Download and Extract https://minecraft.azureedge.net/bin-linux/bedrock-server-1.20.14.01.zip to folder /opt/bedrock_server folder. (ie: removed original folder and started fresh)
2. Modified required settings in server.properties
sudo sed -i '/^server-name.*/ c server-name=HomeTestServer' /opt/bedrock_server/server.properties sudo sed -i '/^gamemode.*/ c gamemode=survival' /opt/bedrock_server/server.properties sudo sed -i '/^force-gamemode.*/ c force-gamemode=true' /opt/bedrock_server/server.properties sudo sed -i '/^difficulty.*/ c difficulty=easy' /opt/bedrock_server/server.properties sudo sed -i '/^allow-cheats.*/ c allow-cheats=true' /opt/bedrock_server/server.properties sudo sed -i '/^online-mode.*/ c online-mode=true' /opt/bedrock_server/server.properties sudo sed -i '/^server-port=.*/ c server-port=19132' /opt/bedrock_server/server.properties sudo sed -i '/^server-portv6=.*/ c server-portv6=19232' /opt/bedrock_server/server.properties sudo sed -i '/^level-name.*/ c level-name=Bedrock Level' /opt/bedrock_server/server.properties sudo sed -i '/^enable-lan-visibility.*/ c enable-lan-visibility=false' /opt/bedrock_server/server.properties
3. Attempted to start Bedrock Server using sudo ./bedrock_server
Observed Results:
Server fails to start with below error
[2023-08-10 21:21:17:685 INFO] Starting Server [2023-08-10 21:21:17:685 INFO] Version: 1.20.14.01 [2023-08-10 21:21:17:685 INFO] Session ID: a1150eaf-11dd-456a-8d77-84f6b954198a [2023-08-10 21:21:17:685 INFO] Build ID: 17242466 [2023-08-10 21:21:17:685 INFO] Branch: r/20_u1 [2023-08-10 21:21:17:685 INFO] Commit ID: aa6bec6a6021d5effb36cb2e97bd7e4ec54baf67 [2023-08-10 21:21:17:685 INFO] Configuration: Publish [2023-08-10 21:21:17:685 INFO] Level Name: Bedrock Level [2023-08-10 21:21:17:688 INFO] Game mode: 0 Survival [2023-08-10 21:21:17:688 INFO] Difficulty: 1 EASY [2023-08-10 21:21:17:690 INFO] Content logging to console is enabled. [2023-08-10 21:21:17:041 INFO] Opening level 'worlds/Bedrock Level/db' [2023-08-10 21:21:18:641 ERROR] Port [19132] may be in use by another process. Free up port and re-run program or adjust server.properties file to use alternate ports for server [2023-08-10 21:21:18:641 ERROR] Port [19232] may be in use by another process. Free up port and re-run program or adjust server.properties file to use alternate ports for server [2023-08-10 21:21:18:641 ERROR] Exiting program
Netstat result on server
tcp 0 0 127.0.0.1:44911 0.0.0.0:* LISTEN 4322/Plex Plug-in [ tcp 0 0 192.168.10.95:47503 0.0.0.0:* LISTEN 1112/squeeze2raop-x tcp 0 0 0.0.0.0:32400 0.0.0.0:* LISTEN 3231/Plex Media Ser tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1245/mono tcp 0 0 127.0.0.1:32401 0.0.0.0:* LISTEN 3231/Plex Media Ser tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 879/systemd-resolve tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1287/sshd tcp 0 0 127.0.0.1:45943 0.0.0.0:* LISTEN 4393/Plex Plug-in [ tcp 0 0 0.0.0.0:41175 0.0.0.0:* LISTEN 933/perl tcp 0 0 127.0.0.1:32600 0.0.0.0:* LISTEN 3628/Plex Tuner Ser tcp 0 0 0.0.0.0:10200 0.0.0.0:* LISTEN 1245/mono tcp 0 0 0.0.0.0:3483 0.0.0.0:* LISTEN 933/perl tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 1316/smbd tcp 0 0 0.0.0.0:9981 0.0.0.0:* LISTEN 1329/tvheadend tcp 0 0 0.0.0.0:9982 0.0.0.0:* LISTEN 1329/tvheadend tcp 0 0 0.0.0.0:10400 0.0.0.0:* LISTEN 1245/mono tcp 0 0 0.0.0.0:10401 0.0.0.0:* LISTEN 1245/mono tcp 0 0 0.0.0.0:9090 0.0.0.0:* LISTEN 933/perl tcp 0 0 127.0.0.1:42853 0.0.0.0:* LISTEN 4174/Plex Plug-in [ tcp 0 0 127.0.0.1:46725 0.0.0.0:* LISTEN 3676/Plex Plug-in [ tcp 0 0 127.0.0.1:36999 0.0.0.0:* LISTEN 3673/Plex Plug-in [ tcp 0 0 127.0.0.1:38599 0.0.0.0:* LISTEN 3274/Plex Plug-in [ tcp 0 0 0.0.0.0:9000 0.0.0.0:* LISTEN 933/perl tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 1316/smbd tcp 0 0 0.0.0.0:3979 0.0.0.0:* LISTEN 900/openttd tcp 0 0 127.0.0.1:39277 0.0.0.0:* LISTEN 4320/Plex Plug-in [ udp 0 0 127.0.0.1:40998 0.0.0.0:* 3231/Plex Media Ser udp 0 0 127.0.0.53:53 0.0.0.0:* 879/systemd-resolve udp 0 0 192.168.10.255:137 0.0.0.0:* 1234/nmbd udp 0 0 192.168.10.95:137 0.0.0.0:* 1234/nmbd udp 0 0 0.0.0.0:137 0.0.0.0:* 1234/nmbd udp 0 0 192.168.10.255:138 0.0.0.0:* 1234/nmbd udp 0 0 192.168.10.95:138 0.0.0.0:* 1234/nmbd udp 0 0 0.0.0.0:138 0.0.0.0:* 1234/nmbd udp 0 0 192.168.10.95:33487 0.0.0.0:* 3231/Plex Media Ser udp 0 0 0.0.0.0:50598 0.0.0.0:* 899/avahi-daemon: r udp 0 0 192.168.10.95:58881 0.0.0.0:* 3231/Plex Media Ser udp 0 0 239.255.255.250:1900 0.0.0.0:* 1329/tvheadend udp 0 0 0.0.0.0:1900 0.0.0.0:* 933/perl udp 0 0 0.0.0.0:1901 0.0.0.0:* 3231/Plex Media Ser udp 0 0 127.0.0.1:51388 0.0.0.0:* 3231/Plex Media Ser udp 0 0 0.0.0.0:43407 0.0.0.0:* 3628/Plex Tuner Ser udp 0 0 0.0.0.0:52019 0.0.0.0:* 899/avahi-daemon: r udp 0 0 0.0.0.0:3483 0.0.0.0:* 933/perl udp 0 0 192.168.10.95:44830 0.0.0.0:* 3231/Plex Media Ser udp 0 0 0.0.0.0:3979 0.0.0.0:* 900/openttd udp 0 0 0.0.0.0:5353 0.0.0.0:* 1112/squeeze2raop-x udp 0 0 0.0.0.0:5353 0.0.0.0:* 1112/squeeze2raop-x udp 0 0 0.0.0.0:5353 0.0.0.0:* 899/avahi-daemon: r udp 0 0 0.0.0.0:38296 0.0.0.0:* 933/perl udp 0 0 0.0.0.0:47466 0.0.0.0:* 1329/tvheadend udp 0 0 0.0.0.0:32410 0.0.0.0:* 3231/Plex Media Ser udp 0 0 0.0.0.0:32412 0.0.0.0:* 3231/Plex Media Ser udp 0 0 0.0.0.0:32413 0.0.0.0:* 3231/Plex Media Ser udp 0 0 0.0.0.0:32414 0.0.0.0:* 3231/Plex Media Ser
Expected Results:
Bedrock Server starts and is usable on local LAN
Environment
Ubuntu 18.04.1 LTS - physical server (not a VM)
Comments2
History3
Resolution: Unresolved → Awaiting Response
Resolution: Awaiting Response → Unresolved
Resolution: Unresolved → Incomplete
Hi
Does this issue still occur after updating to 1.20.15?
This ticket will automatically reopen when you reply.
Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki