{
   "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
   "id": "234396",
   "self": "https://bugs.mojang.com/rest/api/2/issue/234396",
   "key": "BDS-752",
   "fields": {
      "issuetype": "1",
      "project": "11700",
      "fixVersions": [],
      "resolution": "7",
      "customfield_10500": null,
      "customfield_12800": null,
      "customfield_12602": [],
      "customfield_12601": null,
      "customfield_12604": null,
      "customfield_12603": null,
      "customfield_12606": null,
      "customfield_12605": null,
      "customfield_12608": null,
      "resolutiondate": "2020-02-07T18:07:11.000+0200",
      "customfield_12607": null,
      "customfield_12609": null,
      "workratio": -1,
      "lastViewed": null,
      "watches": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-752/watchers",
         "watchCount": 3,
         "isWatching": false
      },
      "created": "2019-04-07T02:33:45.000+0300",
      "customfield_12000": null,
      "customfield_12201": null,
      "customfield_12600": null,
      "labels": [],
      "customfield_11700": "{}",
      "versions": [
         "17513"
      ],
      "issuelinks": [],
      "assignee": null,
      "updated": "2020-02-07T18:07:11.000+0200",
      "status": "5",
      "description": "Bedrock server aborts at start:\n\n\u00a0\n\n\u00a0\n{code:java}\n~ $ ./bedrock_server\u00a0\nNO LOG FILE! - setting up server logging...\n[2019-04-06 19:27:55 INFO] Starting Server\n[2019-04-06 19:27:55 INFO] Version 1.10.0.7\n[2019-04-06 19:27:55 INFO] Level Name: Bedrock level\n[2019-04-06 19:27:55 INFO] Game mode: 0 Survival\n[2019-04-06 19:27:55 INFO] Difficulty: 1 EASY\n[2019-04-06 19:27:59 INFO] IPv4 supported, port: 0\n[2019-04-06 19:27:59 INFO] IPv6 supported, port: 0\n[2019-04-06 19:27:59 ERROR] Network port occupied, can't start server.\nQuit correctly\n{code}\n\u00a0\n\n\u00a0\n\nSnippet of the strace below. ipv6 was disabled on this system, other daemons including OpenVPN bind to UDP ports without issue\n\n\u00a0\n\n\u00a0\n{code:java}\nbind(7<UDP:[22049]>, {sa_family=AF_INET, sin_port=htons(19132), sin_addr=inet_addr(\"0.0.0.0\")}, 16) = 0\nsetsockopt(7<UDP:[22049]>, SOL_SOCKET, SO_RCVBUF, [262144], 4) = 0\nsetsockopt(7<UDP:[22049]>, SOL_SOCKET, SO_LINGER, {l_onoff=0, l_linger=0}, 8) = 0\nsetsockopt(7<UDP:[22049]>, SOL_SOCKET, SO_SNDBUF, [16384], 4) = 0\nsetsockopt(7<UDP:[22049]>, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0\ngetsockname(7<UDP:[22049]>, {sa_family=AF_INET, sin_port=htons(19132), sin_addr=inet_addr(\"0.0.0.0\")}, [128->16]) = 0\nsetsockopt(7<UDP:[22049]>, SOL_IP, IP_HDRINCL, [0], 4) = -1 ENOPROTOOPT (Protocol not available)\ngetsockname(7<UDP:[22049]>, {sa_family=AF_INET, sin_port=htons(19132), sin_addr=inet_addr(\"0.0.0.0\")}, [128->16]) = 0\nsendto(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\nsocket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP) = -1 EAFNOSUPPORT (Address family not supported by protocol)\nclose(7<UDP:[22049]>) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 = 0\nwrite(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\n) = 51\nwrite(3</home/minecraft/Debug_Log.txt>, \"[2019-04-06 19:23:51 INFO] IPv4 \"..., 51) = 51\nwrite(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\n) = 51\nwrite(3</home/minecraft/Debug_Log.txt>, \"[2019-04-06 19:23:51 INFO] IPv6 \"..., 51) = 51\nfcntl(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\nclose(4</home/minecraft/worlds/Bedrock level/db/LOCK>) = 0\nclose(6</home/minecraft/worlds/Bedrock level/db/MANIFEST-000033>) = 0\nclose(5</home/minecraft/worlds/Bedrock level/db/000035.log>) = 0\nmunmap(0x7f4830a67000, 190) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 = 0\nmunmap(0x7f4830a3b000, 190) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 = 0\nwrite(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.\n) = 71\nwrite(3</home/minecraft/Debug_Log.txt>, \"[2019-04-06 19:23:51 ERROR] Netw\"..., 71) = 71\nmunmap(0x7f482dc28000, 299008)\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 = 0\n\u00a0\n{code}\n\u00a0\n\n\u00a0",
      "customfield_11100": null,
      "customfield_11300": null,
      "customfield_11500": null,
      "customfield_12503": null,
      "customfield_12700": null,
      "customfield_12502": null,
      "customfield_12504": null,
      "attachment": [],
      "summary": "Bedrock server fails to bind (ip4 ipv6 port reported as 0)",
      "creator": "omkhar",
      "reporter": "omkhar",
      "customfield_10002": null,
      "customfield_12501": null,
      "customfield_12500": null,
      "customfield_11601": null,
      "customfield_11600": "0|i0yfnj:",
      "environment": "Clear Linux\n\n~ $ java -version\n\nopenjdk version \"1.8.0-internal\"\n\nOpenJDK Runtime Environment (build 1.8.0-internal-_2019_03_08_14_35-b00)\n\nOpenJDK 64-Bit Server VM (build 25.71-b00, mixed mode)\n\n\u00a0\n\nBedrock Server\u00a0 '1.10.0.7'",
      "customfield_11801": null,
      "customfield_11800": null,
      "customfield_11602": null,
      "customfield_11802": null,
      "comment": {
         "comments": [
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/234396/comment/535181",
               "id": "535181",
               "author": "rhenthecraterboy",
               "body": "Im having this same problem\u00a0on windows and cant seem to find an answer, if this could get more attention that would be great.\u00a0",
               "updateAuthor": "rhenthecraterboy",
               "created": "2019-04-14T23:20:37.598+0300",
               "updated": "2019-04-14T23:22:35.437+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/234396/comment/539037",
               "id": "539037",
               "author": "ackis81@gmail.com",
               "body": "Possibly some help:\u00a0[https://www.minecraftforum.net/forums/support/minecraft-bedrock-support/2957523-bedrock-server-not-launching-when-run-as-a-service]\n\n\u00a0\n\n\u00a0",
               "updateAuthor": "ackis81@gmail.com",
               "created": "2019-04-24T23:52:57.400+0300",
               "updated": "2019-04-24T23:52:57.400+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/234396/comment/539092",
               "id": "539092",
               "author": "omkhar",
               "body": "The link you cite doesn\u2019t provide a resolution.\u00a0",
               "updateAuthor": "omkhar",
               "created": "2019-04-25T03:58:32.530+0300",
               "updated": "2019-04-25T03:58:32.530+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/234396/comment/539665",
               "id": "539665",
               "author": "adam.baligian@icloud.com",
               "body": "I have this issue when trying to use worlds that are created from downloaded world templates. If I use a vanilla generated world, it works fine.",
               "updateAuthor": "adam.baligian@icloud.com",
               "created": "2019-04-26T16:19:41.594+0300",
               "updated": "2019-04-26T16:19:41.594+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/234396/comment/539745",
               "id": "539745",
               "author": "omkhar",
               "body": "This issue occurs for me with a brand new installation. I presume this would be a vanilla world. ",
               "updateAuthor": "omkhar",
               "created": "2019-04-26T19:40:32.410+0300",
               "updated": "2019-04-26T19:40:32.410+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/234396/comment/545772",
               "id": "545772",
               "author": "stijnm",
               "body": "I was seeing this error in Ubuntu 18.04.2 when using a desktop shortcut file to run bedrock server 1.11.2.1. Interestingly, exactly the same shortcut settings worked (except for the path) for the 1.10.0.7 server.\n\nWithout changing a thing, I was able to run the 1.11.2.1 server by just launching it manually, i.e., going in the terminal to the folder and running the start command 'LD_LIBRARY_PATH=. ./bedrock_server'.",
               "updateAuthor": "stijnm",
               "created": "2019-05-11T17:15:02.436+0300",
               "updated": "2019-05-11T17:16:46.138+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/234396/comment/545853",
               "id": "545853",
               "author": "beardinasuit",
               "body": "Same thing here.\n\nTried v1.11.2.1 on a Ubuntu 18.04.02 VM within Windows 10 and it works fine.\n\nWhen using docker on Windows with a Ubuntu 18.04.02, I'm getting\u00a0 \"Network port occupied, can't start server.\"",
               "updateAuthor": "beardinasuit",
               "created": "2019-05-11T21:35:05.252+0300",
               "updated": "2019-05-11T21:35:05.252+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/234396/comment/550216",
               "id": "550216",
               "author": "microondas222",
               "body": "I had this problem because I had the port for both ipv4 and ipv6 set to the same port. I changed the ports to be different and then it would work. This is on Ubuntu.",
               "updateAuthor": "microondas222",
               "created": "2019-05-23T20:24:58.487+0300",
               "updated": "2019-05-23T20:24:58.487+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/234396/comment/550605",
               "id": "550605",
               "author": "omkhar",
               "body": "As entertaining as some of these suggestions are, I just strace'd the start up again, this seems to be the relevant lines:\n\n\u00a0\n\n{{socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP) = 7<UDP:[33556]>}}{{bind(7<UDP:[33556]>, \\{sa_family=AF_INET, sin_port=htons(19134), sin_addr=inet_addr(\"0.0.0.0\")}, 16) = 0}}{{setsockopt(7<UDP:[33556]>, SOL_SOCKET, SO_RCVBUF, [262144], 4) = 0}}{{setsockopt(7<UDP:[33556]>, SOL_SOCKET, SO_LINGER, \\{l_onoff=0, l_linger=0}, 8) = 0}}{{setsockopt(7<UDP:[33556]>, SOL_SOCKET, SO_SNDBUF, [16384], 4) = 0}}{{setsockopt(7<UDP:[33556]>, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0}}{{getsockname(7<UDP:[33556]>, \\{sa_family=AF_INET, sin_port=htons(19134), sin_addr=inet_addr(\"0.0.0.0\")}, [128->16]) = 0}}{{{color:#FF0000}setsockopt(7<UDP:[33556]>, SOL_IP, IP_HDRINCL, [0], 4) = -1 ENOPROTOOPT (Protocol not available){color}}}{{getsockname(7<UDP:[33556]>, \\{sa_family=AF_INET, sin_port=htons(19134), sin_addr=inet_addr(\"0.0.0.0\")}, [128->16]) = 0}}{{sendto(7<UDP:[33556]>, \"\\0\\0\\0\\0\", 4, 0, \\{sa_family=AF_INET, sin_port=htons(19134), sin_addr=inet_addr(\"127.0.0.1\")}, 16) = 4}}{{{color:#FF0000}socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP) = -1 EAFNOSUPPORT (Address family not supported by protocol){color}}}{{close(7<UDP:[33556]>) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 = 0}}\n\n\u00a0",
               "updateAuthor": "omkhar",
               "created": "2019-05-25T05:39:39.320+0300",
               "updated": "2019-05-25T05:39:39.320+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/234396/comment/551201",
               "id": "551201",
               "author": "okmaster",
               "body": "If you enable the socket option \"IPV6_V6ONLY\" (see\u00a0[https://serverfault.com/a/408670]) ipv4 and ipv6 can use the same ports on linux and the error is gone.",
               "updateAuthor": "okmaster",
               "created": "2019-05-27T13:18:53.135+0300",
               "updated": "2019-05-27T13:19:12.180+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/234396/comment/558763",
               "id": "558763",
               "author": "robotnik",
               "body": "I'm having the same issue as well. The server says the port is occupied on startup, even though the lsof command does not show anything occupying the port",
               "updateAuthor": "robotnik",
               "created": "2019-06-21T02:09:40.172+0300",
               "updated": "2019-06-21T02:09:40.172+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/234396/comment/559384",
               "id": "559384",
               "author": "rossco",
               "body": "I had this same error with v1.11.4.\u00a0 In my case, the error was not related to the message displayed.\u00a0 I had specified the name of a world in the {{server.properties}} file ({{level-name=My World}}). When I removed the {{level-name}} line from my config, the server ran without problem.\n\n-I'm running this in a docker image and on further inspection, I noticed that the folder names mapped through from my Windows machine had extra single quotes surrounding the folder names. I have to investigate further as to why this is happening, but is probably related to Docker itself.-",
               "updateAuthor": "rossco",
               "created": "2019-06-24T07:53:12.257+0300",
               "updated": "2019-06-24T07:54:21.682+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/234396/comment/564598",
               "id": "564598",
               "author": "vjunetxuuftofi",
               "body": "I am having the same issue with 1.12.0.28 on Ubuntu 18.04. Removing the level-name from the config file does not work for me, and I am running from the terminal. My ipv4 and ipv6 ports are different.",
               "updateAuthor": "vjunetxuuftofi",
               "created": "2019-07-11T05:11:36.533+0300",
               "updated": "2019-07-11T05:11:36.533+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/234396/comment/585987",
               "id": "585987",
               "author": "krolik",
               "body": "Probably had the same problem with 1.12.1.1 on debian 10 VM within Windows 10, but solved it by using sudo command.",
               "updateAuthor": "krolik",
               "created": "2019-09-24T14:13:39.004+0300",
               "updated": "2019-09-24T14:13:39.004+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/234396/comment/616046",
               "id": "616046",
               "author": "troy.hatchard",
               "body": "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:\u00a0\n\nCommand:\n{code:java}\nps -ejH | grep bedrock\n{code}\nOutput:\u00a0\n\n1996 1996 1810 pts/1 00:00:08 bedrock_server\n\nThis is your bedrock server process. So to stop this you just kill the process using the PID, which in my case is 1996.\n{code:java}\nkill 1996{code}\nThen restart your server again and it should work just fine\n\n\u00a0",
               "updateAuthor": "troy.hatchard",
               "created": "2019-12-18T23:46:46.491+0200",
               "updated": "2019-12-18T23:49:27.188+0200"
            }
         ],
         "maxResults": 15,
         "total": 15,
         "startAt": 0
      },
      "votes": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-752/votes",
         "votes": 2,
         "hasVoted": false
      }
   },
   "changelog": {
      "startAt": 0,
      "maxResults": 2,
      "total": 2,
      "histories": [
         {
            "id": "1095795",
            "author": "goldenfreddy0703",
            "created": "2019-04-15T01:19:03.215+0300",
            "items": [
               {
                  "field": "Comment",
                  "fieldtype": "jira",
                  "from": "I agree and this is one of the reasons why i don't like the New Windows 10 edition even the pocket and Xbox edition.",
                  "fromString": null,
                  "to": null,
                  "toString": null
               }
            ]
         },
         {
            "id": "1428816",
            "author": "urielsalis",
            "created": "2020-02-07T18:07:12.016+0200",
            "items": [
               {
                  "field": "resolution",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "7",
                  "toString": "Invalid"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "1",
                  "fromString": "Open",
                  "to": "5",
                  "toString": "Resolved"
               }
            ]
         }
      ]
   }
}