Bedrock server aborts at start:
~ $ ./bedrock_server
NO LOG FILE! - setting up server logging...
[2019-04-06 19:27:55 INFO] Starting Server
[2019-04-06 19:27:55 INFO] Version 1.10.0.7
[2019-04-06 19:27:55 INFO] Level Name: Bedrock level
[2019-04-06 19:27:55 INFO] Game mode: 0 Survival
[2019-04-06 19:27:55 INFO] Difficulty: 1 EASY
[2019-04-06 19:27:59 INFO] IPv4 supported, port: 0
[2019-04-06 19:27:59 INFO] IPv6 supported, port: 0
[2019-04-06 19:27:59 ERROR] Network port occupied, can't start server.
Quit correctly
Snippet of the strace below. ipv6 was disabled on this system, other daemons including OpenVPN bind to UDP ports without issue
bind(7<UDP:[22049]>, {sa_family=AF_INET, sin_port=htons(19132), sin_addr=inet_addr("0.0.0.0")}, 16) = 0
setsockopt(7<UDP:[22049]>, SOL_SOCKET, SO_RCVBUF, [262144], 4) = 0
setsockopt(7<UDP:[22049]>, SOL_SOCKET, SO_LINGER, {l_onoff=0, l_linger=0}, 8) = 0
setsockopt(7<UDP:[22049]>, SOL_SOCKET, SO_SNDBUF, [16384], 4) = 0
setsockopt(7<UDP:[22049]>, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
getsockname(7<UDP:[22049]>, {sa_family=AF_INET, sin_port=htons(19132), sin_addr=inet_addr("0.0.0.0")}, [128->16]) = 0
setsockopt(7<UDP:[22049]>, SOL_IP, IP_HDRINCL, [0], 4) = -1 ENOPROTOOPT (Protocol not available)
getsockname(7<UDP:[22049]>, {sa_family=AF_INET, sin_port=htons(19132), sin_addr=inet_addr("0.0.0.0")}, [128->16]) = 0
sendto(7<UDP:[22049]>, "\0\0\0\0", 4, 0, {sa_family=AF_INET, sin_port=htons(19132), sin_addr=inet_addr("127.0.0.1")}, 16) = 4
socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP) = -1 EAFNOSUPPORT (Address family not supported by protocol)
close(7<UDP:[22049]>) = 0
write(1</dev/pts/0<char 136:0>>, "[2019-04-06 19:23:51 INFO] IPv4 "..., 51[2019-04-06 19:23:51 INFO] IPv4 supported, port: 0
) = 51
write(3</home/minecraft/Debug_Log.txt>, "[2019-04-06 19:23:51 INFO] IPv4 "..., 51) = 51
write(1</dev/pts/0<char 136:0>>, "[2019-04-06 19:23:51 INFO] IPv6 "..., 51[2019-04-06 19:23:51 INFO] IPv6 supported, port: 0
) = 51
write(3</home/minecraft/Debug_Log.txt>, "[2019-04-06 19:23:51 INFO] IPv6 "..., 51) = 51
fcntl(4</home/minecraft/worlds/Bedrock level/db/LOCK>, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
close(4</home/minecraft/worlds/Bedrock level/db/LOCK>) = 0
close(6</home/minecraft/worlds/Bedrock level/db/MANIFEST-000033>) = 0
close(5</home/minecraft/worlds/Bedrock level/db/000035.log>) = 0
munmap(0x7f4830a67000, 190) = 0
munmap(0x7f4830a3b000, 190) = 0
write(1</dev/pts/0<char 136:0>>, "[2019-04-06 19:23:51 ERROR] Netw"..., 71[2019-04-06 19:23:51 ERROR] Network port occupied, can't start server.
) = 71
write(3</home/minecraft/Debug_Log.txt>, "[2019-04-06 19:23:51 ERROR] Netw"..., 71) = 71
munmap(0x7f482dc28000, 299008) = 0
Comments 45
Im having this same problem on windows and cant seem to find an answer, if this could get more attention that would be great.
Im having this same problem on windows and cant seem to find an answer, if this could get more attention that would be great.
Probably had the same problem with 1.12.1.1 on debian 10 VM within Windows 10, but solved it by using sudo command.
Probably had the same problem with 1.12.1.1 on debian 10 VM within Windows 10, but solved it by using sudo command.
I had this issue and it was caused by the server not being shut down properly. My solution was to find the process ID and kill it. In linux this should look like:
Command:
ps -ejH | grep bedrock
Output:
1996 1996 1810 pts/1 00:00:08 bedrock_server
This is your bedrock server process. So to stop this you just kill the process using the PID, which in my case is 1996.
kill 1996
Then restart your server again and it should work just fine
I had this issue and it was caused by the server not being shut down properly. My solution was to find the process ID and kill it. In linux this should look like:
Command:
ps -ejH | grep bedrock
Output:
1996 1996 1810 pts/1 00:00:08 bedrock_server
This is your bedrock server process. So to stop this you just kill the process using the PID, which in my case is 1996.
kill 1996
Then restart your server again and it should work just fine
I had this issue and it was caused by the server not being shut down properly. My solution was to find the process ID and kill it. In linux this should look like:
Command:
ps -ejH | grep bedrock
Output:
1996 1996 1810 pts/1 00:00:08 bedrock_server
This is your bedrock server process. So to stop this you just kill the process using the PID, which in my case is 1996.
kill 1996
Then restart your server again and it should work just fine
Im having this same problem on windows and cant seem to find an answer, if this could get more attention that would be great.