[BDS-19079] "Port [19132] may be in use by another process" if in OS disabled IPv6 Created: 23/Feb/24  Updated: 10/Jul/24  Resolved: 10/Jul/24

Status: Resolved
Project: Bedrock Dedicated Server
Affects Version/s: 1.20.62
Fix Version/s: None

Type: Bug
Reporter: anikishov Assignee: Unassigned
Resolution: Awaiting Response Votes: 0
Labels: None
Environment:
  1. cat /etc/os-release
    PRETTY_NAME="Ubuntu 22.04.4 LTS"
    NAME="Ubuntu"
    VERSION_ID="22.04"
    VERSION="22.04.4 LTS (Jammy Jellyfish)"

The server is hosted on a simple local network with nat.


Attachments: File server.properties.conf    
Confirmation Status: Community Consensus

 Description   

When I start the Minecraft Bedrock server, I get an error message

`Port [19132] may be in use by another process`.

Steps to Reproduce

On the server disabled IPv6 

grep ipv6 /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"
GRUB_CMDLINE_LINUX="ipv6.disable=1"

# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:0c:29:b6:ad:60 brd ff:ff:ff:ff:ff:ff
    altname enp3s0
    inet 192.168.1.203/24 metric 100 brd 192.168.1.255 scope global dynamic ens160
       valid_lft 42551sec preferred_lft 42551sec

 

cd /opt/
wget https://minecraft.azureedge.net/bin-linux/bedrock-server-1.20.62.02.zip

mkdir bedrock-server-1.20.62.02 && unzip bedrock-server-1.20.62.02.zip -d bedrock-server-1.20.62.02

 

LD_LIBRARY_PATH=. ./bedrock_server 

 

Сonfiguration in the attachment server.properties.conf ** 

Expected result 

The server is run and listen on the default ports.

Actual result

/opt/bedrock-server-1.20.62.02# LD_LIBRARY_PATH=. ./bedrock_server

NO LOG FILE! - setting up server logging...
[2024-02-23 14:18:27:338 INFO] Starting Server
[2024-02-23 14:18:27:338 INFO] Version: 1.20.62.02
[2024-02-23 14:18:27:338 INFO] Session ID: 02a05263-3947-40c7-8a36-cd48269a230d
[2024-02-23 14:18:27:338 INFO] Build ID: 22010383
[2024-02-23 14:18:27:338 INFO] Branch: r/20_u6
[2024-02-23 14:18:27:338 INFO] Commit ID: ecfbe634e2e231921b3c799f34169d1dcaf5bd74
[2024-02-23 14:18:27:338 INFO] Configuration: Publish
[2024-02-23 14:18:27:338 INFO] Level Name: Bedrock level
[2024-02-23 14:18:27:340 INFO] No CDN config file found for dedicated server
[2024-02-23 14:18:27:340 INFO] Game mode: 0 Survival
[2024-02-23 14:18:27:340 INFO] Difficulty: 1 EASY
[2024-02-23 14:18:27:341 INFO] Content logging to console is enabled.
[2024-02-23 14:18:28:666 INFO] Opening level 'worlds/Bedrock level/db'
[2024-02-23 14:18:28:142 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
[2024-02-23 14:18:28:142 ERROR] Port [19133] 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
[2024-02-23 14:18:28:142 ERROR] Exiting program 

 

Listening port

 

root@uwatcher:/opt/bedrock-server-1.20.62.02# lsof -i -P -n | grep 19132 root@uwatcher:/opt/bedrock-server-1.20.62.02# lsof -i -P -n | grep 19133


/opt/bedrock-server-1.20.62.02# lsof -i -P -n
COMMAND      PID            USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
systemd        1            root  154u  IPv4   20782      0t0  TCP *:111 (LISTEN)
systemd        1            root  155u  IPv4   20783      0t0  UDP *:111
systemd-n    612 systemd-network   15u  IPv4 6707223      0t0  UDP 192.168.1.203:68
rpcbind      619            _rpc    4u  IPv4   20782      0t0  TCP *:111 (LISTEN)
rpcbind      619            _rpc    5u  IPv4   20783      0t0  UDP *:111
systemd-r    645 systemd-resolve   13u  IPv4   21016      0t0  UDP 127.0.0.53:53
systemd-r    645 systemd-resolve   14u  IPv4   21017      0t0  TCP 127.0.0.53:53 (LISTEN)
node_expo    689   node_exporter    3u  IPv4   27059      0t0  TCP *:9100 (LISTEN)
sshd         849            root    3u  IPv4   18841      0t0  TCP *:22 (LISTEN)
postgres    1037        postgres    5u  IPv4   23114      0t0  TCP 127.0.0.1:5434 (LISTEN)
postgres    1037        postgres    7u  IPv4   23120      0t0  UDP 127.0.0.1:36483->127.0.0.1:36483
postgres    1156        postgres    3u  IPv4   22056      0t0  TCP 127.0.0.1:5433 (LISTEN)
postgres    1156        postgres    7u  IPv4   24805      0t0  UDP 127.0.0.1:35953->127.0.0.1:35953
postgres    1157        postgres    3u  IPv4   22054      0t0  TCP 127.0.0.1:5432 (LISTEN)
postgres    1157        postgres    7u  IPv4   27111      0t0  UDP 127.0.0.1:35347->127.0.0.1:35347
postgres    1185        postgres    7u  IPv4   23120      0t0  UDP 127.0.0.1:36483->127.0.0.1:36483
postgres    1186        postgres    7u  IPv4   23120      0t0  UDP 127.0.0.1:36483->127.0.0.1:36483
postgres    1188        postgres    7u  IPv4   23120      0t0  UDP 127.0.0.1:36483->127.0.0.1:36483
postgres    1189        postgres    7u  IPv4   23120      0t0  UDP 127.0.0.1:36483->127.0.0.1:36483
postgres    1190        postgres    7u  IPv4   23120      0t0  UDP 127.0.0.1:36483->127.0.0.1:36483
postgres    1191        postgres    7u  IPv4   23120      0t0  UDP 127.0.0.1:36483->127.0.0.1:36483
postgres    1226        postgres    7u  IPv4   27111      0t0  UDP 127.0.0.1:35347->127.0.0.1:35347
postgres    1227        postgres    7u  IPv4   27111      0t0  UDP 127.0.0.1:35347->127.0.0.1:35347
postgres    1231        postgres    7u  IPv4   27111      0t0  UDP 127.0.0.1:35347->127.0.0.1:35347
postgres    1232        postgres    7u  IPv4   27111      0t0  UDP 127.0.0.1:35347->127.0.0.1:35347
postgres    1233        postgres    7u  IPv4   27111      0t0  UDP 127.0.0.1:35347->127.0.0.1:35347
postgres    1234        postgres    7u  IPv4   27111      0t0  UDP 127.0.0.1:35347->127.0.0.1:35347
postgres    1245        postgres    7u  IPv4   24805      0t0  UDP 127.0.0.1:35953->127.0.0.1:35953
postgres    1246        postgres    7u  IPv4   24805      0t0  UDP 127.0.0.1:35953->127.0.0.1:35953
postgres    1247        postgres    7u  IPv4   24805      0t0  UDP 127.0.0.1:35953->127.0.0.1:35953
postgres    1248        postgres    7u  IPv4   24805      0t0  UDP 127.0.0.1:35953->127.0.0.1:35953
postgres    1249        postgres    7u  IPv4   24805      0t0  UDP 127.0.0.1:35953->127.0.0.1:35953
postgres    1250        postgres    7u  IPv4   24805      0t0  UDP 127.0.0.1:35953->127.0.0.1:35953
master      1394            root   13u  IPv4   22170      0t0  TCP *:25 (LISTEN)
grafana-s   1450         grafana   10u  IPv4   23299      0t0  TCP *:3001 (LISTEN)
grafana-s   1450         grafana   16u  IPv4 6767297      0t0  TCP 192.168.1.203:41348->192.168.1.203:9090 (ESTABLISHED)
prometheu   3120      prometheus    8u  IPv4   43622      0t0  TCP *:9090 (LISTEN)
prometheu   3120      prometheus   11u  IPv4 6730209      0t0  TCP 192.168.1.203:40682->10.0.0.1:9586 (ESTABLISHED)
prometheu   3120      prometheus   32u  IPv4 6769052      0t0  TCP 192.168.1.203:9090->192.168.1.203:41348 (ESTABLISHED)
flask     116911            root    3u  IPv4 1283604      0t0  TCP *:5000 (LISTEN)
flask     116911            root    5u  IPv4 1278776      0t0  TCP 127.0.0.1:33222->127.0.0.1:5432 (ESTABLISHED)
postgres  116916        postgres    7u  IPv4   27111      0t0  UDP 127.0.0.1:35347->127.0.0.1:35347
postgres  116916        postgres    8u  IPv4 1280976      0t0  TCP 127.0.0.1:5432->127.0.0.1:33222 (ESTABLISHED)
sshd      902419            root    4u  IPv4 6778728      0t0  TCP 192.168.1.203:22->192.168.1.170:49775 (ESTABLISHED)
sshd      927233            root    4u  IPv4 6819243      0t0  TCP 192.168.1.203:22->43.155.174.181:37908 (ESTABLISHED)
sshd      927235            sshd    4u  IPv4 6819243      0t0  TCP 192.168.1.203:22->43.155.174.181:37908 (ESTABLISHED)


 Comments   
Comment by [MCQA] Bartłomiej Słodkowski [ 10/Jul/24 ]

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Is this still an issue in the latest version? If yes, could you please add it to the affected versions (or mention it if you are not the reporter)?

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki

Comment by karamelmar [ 25/Mar/24 ]

i can confirm this behavior.
installed the Minecraft Bedrock server on Arch server, also with IPv6 disabled via sysctl and grub, got the exact same port errors (while these ports are not used by any other proc).

Also tried a Linux Mint, and one Ubuntu 22.04 LTS with disabled IPv6, withe the same results.
Even running the Docker image of the Server on one of those machines results in the same error.

After i re-enabled IPv6, the server was starting without ant issues on all machines.

 

Generated at Sat Jan 11 08:24:14 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.