{
   "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
   "id": "254761",
   "self": "https://bugs.mojang.com/rest/api/2/issue/254761",
   "key": "BDS-1264",
   "fields": {
      "issuetype": "1",
      "project": "11700",
      "fixVersions": [],
      "resolution": "4",
      "customfield_10500": {
         "self": "https://bugs.mojang.com/rest/api/2/customFieldOption/10300",
         "value": "Unconfirmed",
         "id": "10300",
         "disabled": false
      },
      "customfield_12800": null,
      "customfield_12602": [],
      "customfield_12601": null,
      "customfield_12604": null,
      "customfield_12603": null,
      "customfield_12606": null,
      "customfield_12605": null,
      "customfield_12608": null,
      "resolutiondate": "2021-01-29T18:19:51.000+0200",
      "customfield_12607": null,
      "customfield_12609": null,
      "workratio": -1,
      "lastViewed": null,
      "watches": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-1264/watchers",
         "watchCount": 4,
         "isWatching": false
      },
      "created": "2019-08-08T16:06:09.000+0300",
      "customfield_12000": null,
      "customfield_12201": null,
      "customfield_12600": null,
      "labels": [
         "awaiting-response"
      ],
      "customfield_11700": "{}",
      "versions": [
         "17604"
      ],
      "issuelinks": [
         {
            "id": "204684",
            "self": "https://bugs.mojang.com/rest/api/2/issueLink/204684",
            "type": "10102",
            "inwardIssue": "376157"
         }
      ],
      "assignee": null,
      "updated": "2021-06-21T09:57:04.000+0300",
      "status": "5",
      "description": "{{Upon trying to launched bedrock server, it appears that it is ignoring both options within {color:#ff0000}server.properties{color}:}}\n\n\u00a0\n{code:java}\nserver-port=19132\nserver-portv6=19133{code}\n\u00a0\n\nThe following output is observed:\n{code:java}\n# LD_LIBRARY_PATH=. ./bedrock_server\nNO LOG FILE! - setting up server logging...\n[2019-08-08 13:58:15 INFO] Starting Server\n[2019-08-08 13:58:15 INFO] Version 1.12.0.28\n[2019-08-08 13:58:15 INFO] Session ID e0d9fbf4-a584-4d6e-8df1-03e76330598f\n[2019-08-08 13:58:15 INFO] Level Name: Bedrock level\n[2019-08-08 13:58:15 INFO] Game mode: 0 Survival\n[2019-08-08 13:58:15 INFO] Difficulty: 1 EASY\n[2019-08-08 13:58:16 INFO] IPv4 supported, port: 0\n[2019-08-08 13:58:16 INFO] IPv6 supported, port: 0\n[2019-08-08 13:58:16 ERROR] Network port occupied, can't start server.\nQuit correctly{code}\nIt appears that BDS is trying to bind both IPv6 and IPv4 to port 0.\n\nAlso, it is incorrectly identifying IPv6 as being supported, as this is disabled on the host via grub upon launch:\n{code:java}\ndefault/grub:10:GRUB_CMDLINE_LINUX=\"ipv6.disable=1\"\u00a0\n{code}\nThis is with a fresh copy of BDS, with default config values present:\n{code:java}\nserver-name=Dedicated Server\ngamemode=survival\ndifficulty=easy\nallow-cheats=false\nmax-players=10\nonline-mode=true\nwhite-list=false\nserver-port=19132\nserver-portv6=19133\nview-distance=10\ntick-distance=4\nplayer-idle-timeout=30\nmax-threads=8\nlevel-name=Bedrock level\nlevel-seed=\ndefault-player-permission-level=member\ntexturepack-required=false\ncontent-log-file-enabled=false\n{code}\nNo other processes or services are running on the ports set within the configuration.",
      "customfield_11100": 1.0,
      "customfield_11300": null,
      "customfield_11500": null,
      "customfield_12503": null,
      "customfield_12700": null,
      "customfield_12502": null,
      "customfield_12504": null,
      "attachment": [],
      "summary": "Unable to launch - Network port occupied, can't start server.",
      "creator": "ertnec",
      "reporter": "ertnec",
      "customfield_10002": null,
      "customfield_12501": null,
      "customfield_12500": null,
      "customfield_11601": null,
      "customfield_11600": "0|i11v3z:",
      "environment": "Debian 10 (Buster)\n\nLinux 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux\n\nopenjdk 11.0.4 2019-07-16\n OpenJDK Runtime Environment (build 11.0.4+11-post-Debian-1deb10u1)\n OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Debian-1deb10u1, mixed mode, sharing)\n\n{color:#FF0000}*BDS Version 1.12.0.28*{color}",
      "customfield_11801": null,
      "customfield_11800": null,
      "customfield_11602": null,
      "customfield_11802": null,
      "comment": {
         "comments": [
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/254761/comment/573461",
               "id": "573461",
               "author": "ertnec",
               "body": "After some further digging, it appears that BDS doesn't respect using the kernel boot-time option {color:#FF0000}ipv6.disable=1{color} and relies entirely on ipv6 being disabled via sysctl:\n{noformat}\nsysctl net.ipv6.conf.all.disable_ipv6\nnet.ipv6.conf.all.disable_ipv6 = 1{noformat}\nOnce ipv6 was disabled via sysctl, BDS would launch successfully:\n{noformat}\nNO LOG FILE! - setting up server logging...\n[2019-08-08 15:04:12 INFO] Starting Server\n[2019-08-08 15:04:12 INFO] Version 1.12.0.28\n[2019-08-08 15:04:12 INFO] Session ID 41d3e2e9-0e7a-4b0c-bbd4-2554fc0b8b08\n[2019-08-08 15:04:12 INFO] Level Name: Bedrock level\n[2019-08-08 15:04:12 INFO] Game mode: 0 Survival\n[2019-08-08 15:04:12 INFO] Difficulty: 1 EASY\n[2019-08-08 15:04:14 INFO] IPv4 supported, port: 19132\n[2019-08-08 15:04:14 INFO] IPv6 not supported\n[2019-08-08 15:04:14 INFO] IPv4 supported, port: 50531\n[2019-08-08 15:04:14 INFO] IPv6 not supported\n[2019-08-08 15:04:15 INFO] Server started.{noformat}",
               "updateAuthor": "ertnec",
               "created": "2019-08-08T17:08:49.474+0300",
               "updated": "2019-08-08T17:08:49.474+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/254761/comment/641267",
               "id": "641267",
               "author": "lzap",
               "body": "For the record, Minecraft exits with this weird error if it's unable to write to data directories. I unpacked the ZIP file accidentaly by root, executed as minecraft user and the error was the exactly same one. Beware!",
               "updateAuthor": "lzap",
               "created": "2020-02-29T16:15:48.377+0200",
               "updated": "2020-02-29T16:15:48.377+0200"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/254761/comment/647430",
               "id": "647430",
               "author": "uxorious",
               "body": "Just ran into the same.\n\nWhen disabling with GRUB, it refused to start the server.\n\nAfter sysctl, it starts.\nBut as in the log above, it seems really confused about what port to use.",
               "updateAuthor": "uxorious",
               "created": "2020-03-15T23:01:31.257+0200",
               "updated": "2020-03-15T23:01:31.257+0200"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/254761/comment/654488",
               "id": "654488",
               "author": "zizzyzizzy",
               "body": "@Paul Thanks for that!\n\nEven with ipV6 disabled, if you specify just a random ipV6 port that happens to be in use by anything, the server says \"IPv6 supported\", then \"Network port occupied\". Same if you leave it undefined, same if you remove it from server.properties completely.\n\nEven more head-scratching: if you set the port to something *completely invalid*, it starts up fine. I *certainly* *appreciate* that this is unsupported and basically a \"gift\" from Microsoft to have it available at all, but seriously - who writes this stuff?\n\n_\"Failed successfully!\"_\n{code:java}\n[2020-03-26 23:03:56 INFO] IPv4 supported, port: 19134\n[2020-03-26 23:03:56 INFO] IPv6 not supported\n[2020-03-26 23:03:56 INFO] IPv4 supported, port: 35122\n[2020-03-26 23:03:56 INFO] IPv6 not supported\n[2020-03-26 23:03:57 INFO] Server started.\nstop\nQuit correctly{code}\n{code:java}\n# grep port server.properties\nserver-port=19134\nserver-portv6=99999{code}",
               "updateAuthor": "zizzyzizzy",
               "created": "2020-03-27T01:06:56.167+0200",
               "updated": "2020-03-27T01:06:56.167+0200"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/254761/comment/667603",
               "id": "667603",
               "author": "zizzyzizzy",
               "body": "*Update* - the 99999 port hack stopped working randomly.\r\n\r\nNow I have to script it so a random, unused lower port is assigned to the server-portv6 line:\r\n\r\n\u00a0\r\n{code:java}\r\nfreeport=$(comm -23 <(seq 1025 19130 | sort) <(ss -Huan | awk '{print $4}' | cut -d':' -f2 | sort -u) | shuf | head -n 1)\u00a0\r\n{code}\r\nThat works fine now. Just make sure to remove the kernel\u00a0*ipv6.disable=1* line if it's active, and then reboot. I found out on a different Ubuntu server that with that kernel option enabled, there is no work-around to this frustrating issue.",
               "updateAuthor": "zizzyzizzy",
               "created": "2020-04-17T01:16:56.010+0300",
               "updated": "2020-04-17T01:16:56.010+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/254761/comment/741222",
               "id": "741222",
               "author": "ionicecko",
               "body": "Does this issue happen on a Ubuntu 18+ install?\r\n\r\nIf so can someone please provide steps to reproduce:\r\n{quote}\r\nh4. What I expected to happen was...:\r\nWhen I killed a squid, it should have dropped an ink sac.\r\n\r\nh4. What actually happened was...:\r\nInstead, it dropped an apple.\r\n\r\nh4. Steps to Reproduce:\r\n# Find a squid (though we all know how difficult they are to find when you *actually* want to find one).\r\n# Kill the squid.\r\n# Notice that it drops apples instead of ink sacs. How am I supposed to get black dye now?\r\n{quote}\r\n\r\nThe original report was for Debian which is not a supported OS for BDS and therefore would not be a valid report unless it can be reproduced on a new Ubuntu install.",
               "updateAuthor": "ionicecko",
               "created": "2020-06-24T04:59:35.830+0300",
               "updated": "2020-06-24T04:59:35.830+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/254761/comment/769063",
               "id": "769063",
               "author": "JIRAUSER529223",
               "body": "This issue occurs on my install of Ubuntu 18.04.4 LTS on GCP.\r\n\r\nI am using the service Multicraft to manage my dedicated bedrock alpha server, and with my server.properties file settings:\r\n{code:java}\r\nserver-port=25565\r\nserver-portv6=25566{code}\r\nI get the error:\r\n{code:java}\r\n20.07 17:13:25 [Server] INFO Starting Server\r\n20.07 17:13:25 [Server] INFO Version 1.16.1.2\r\n20.07 17:13:25 [Server] INFO Session ID d765949b-8c42-4054-bbf9-08b57f461647\r\n20.07 17:13:25 [Server] INFO Level Name: world\r\n20.07 17:13:25 [Server] ERROR Error opening whitelist file: whitelist.json\r\n20.07 17:13:25 [Server] INFO Game mode: 0 Survival\r\n20.07 17:13:25 [Server] INFO Difficulty: 1 EASY\r\n20.07 17:13:25 [Server] INFO opening worlds/world/db\r\n20.07 17:13:28 [Server] INFO IPv4 supported, port: 0\r\n20.07 17:13:28 [Server] INFO IPv6 supported, port: 0\r\n20.07 17:13:28 [Server] ERROR Network port occupied, can't start server.{code}\r\nI have changed the sysctl rule to equal one, and have also tried to give my ipv6 port a wild number and neither methods worked. When I run:\r\n{code:java}\r\nps -ejH | grep bedrock{code}\r\nNo current processes are listed, and if I run lsof, no processes are using the ports above. I am not sure why it is trying to default them to 0 even though I have them set in system properties.\r\n\r\nI also tried Zizzy's last method as well to no avail.\r\n\r\n\u00a0\r\n\r\nEdit: I fixed this issue, and it was related to using Multicraft to manage the bedrock server. In the bedrock.jar.conf file that is necessary to use the bedrock alpha software with multicraft, you must fill the relevant fields of info in so that Multicraft does not overwrite\u00a0Minecraft's server.properties file with empty default values.",
               "updateAuthor": "ionicecko",
               "created": "2020-07-20T20:31:40.830+0300",
               "updated": "2020-08-09T09:53:37.388+0300",
               "visibility": {
                  "type": "group",
                  "value": "helper"
               }
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/254761/comment/907936",
               "id": "907936",
               "author": "mega_spud",
               "body": "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|https://aka.ms/MCBugTrackerHelp|How To Write helpful bug reports] which includes steps to reproduce the problem.\r\n\r\n*Quick Links*:\r\n\ud83d\udcd3 [Issue Guidelines|https://aka.ms/MCBugTrackerHelp|How To Write Awesome Tickets! \ud83d\udcaf] -- \ud83d\udcac [Mojang Support|https://help.minecraft.net/hc/en-us/requests/new|Account Support \ud83d\udd79] -- \ud83d\udce7 [Suggestions|https://feedback.minecraft.net/|Feedback and Suggestions \u270d\ufe0f] -- \ud83d\udcd6 [Minecraft Wiki|http://minecraft.gamepedia.com/Minecraft_Wiki|Minecraft Wiki \ud83c\udf93]",
               "updateAuthor": "mega_spud",
               "created": "2021-01-29T18:19:51.951+0200",
               "updated": "2021-01-29T18:19:51.951+0200"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/254761/comment/935675",
               "id": "935675",
               "author": "zizzyzizzy",
               "body": "This is still broken on Ubuntu 18 with Bedrock Server v1.16.201.3.\r\n\r\nIf IPv6 is disabled completely via GRUB, Bedrock Server crashes during startup. There doesn't appear to be a way to tell it to only use IPv4, even when the entire server has already been configured to do so.\r\n\r\n*/etc/apt/apt.conf.d/99force-ipv4*:\r\nAcquire::ForceIPv4 \"true\";\r\n\r\n*/etc/sysctl.conf*:\r\nnet.ipv6.conf.all.disable_ipv6=1\r\nnet.ipv6.conf.default.disable_ipv6=1\r\nnet.ipv6.conf.lo.disable_ipv6=1\r\nnet.ipv6.bindv6only=1\r\n\r\n*/etc/default.grub*:\r\nGRUB_CMDLINE_LINUX_DEFAULT=\"ipv6.disable=1\"\r\nGRUB_CMDLINE_LINUX=\"ipv6.disable=1\"\r\n\r\nIPv6 causes nothing but problems on every server I've ever encountered, which is why we always disable it completely. If something odd is going on with networking/DNS/etc., disabling IPv6 and rebooting usually does the trick.",
               "updateAuthor": "zizzyzizzy",
               "created": "2021-03-02T22:37:31.574+0200",
               "updated": "2021-03-02T22:37:31.574+0200"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/254761/comment/1020220",
               "id": "1020220",
               "author": "JIRAUSER531695",
               "body": "@Zizzy zizzy\r\n\u201cFailed successfully\u201d. I laughed so hard that I spelt my coffee, luckily not on the keyboard.\r\n\r\nI\u2019ve been running a Bedrock server in Docker for about a year and suddenly started having the port \u20180\u2019 issue. (bds v 1.17.1.01)\r\n\r\nAfter reading this I\u2019ve set-up my server.properties\r\n\r\n SERVER_PORT_V6: \u201cdisable\u201d\r\n\r\nFails perfectly!\r\n\r\n\u00a0\r\n\r\n\u00a0",
               "updateAuthor": "JIRAUSER531695",
               "created": "2021-06-21T09:57:04.027+0300",
               "updated": "2021-06-21T09:57:04.027+0300"
            }
         ],
         "maxResults": 10,
         "total": 10,
         "startAt": 0
      },
      "votes": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-1264/votes",
         "votes": 1,
         "hasVoted": false
      }
   },
   "changelog": {
      "startAt": 0,
      "maxResults": 10,
      "total": 10,
      "histories": [
         {
            "id": "1455949",
            "author": "ionicecko",
            "created": "2020-03-04T14:03:49.462+0200",
            "items": [
               {
                  "field": "labels",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": "",
                  "to": null,
                  "toString": "awaiting-system-requirements"
               }
            ]
         },
         {
            "id": "1514564",
            "author": "arisabot",
            "created": "2020-04-17T01:17:16.210+0300",
            "items": [
               {
                  "field": "Confirmation Status",
                  "fieldtype": "custom",
                  "from": null,
                  "fromString": null,
                  "to": "10300",
                  "toString": "Unconfirmed"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "1",
                  "fromString": "Open",
                  "to": "1",
                  "toString": "Open"
               }
            ]
         },
         {
            "id": "1674271",
            "author": "ionicecko",
            "created": "2020-06-24T04:59:47.015+0300",
            "items": [
               {
                  "field": "resolution",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "10001",
                  "toString": "Awaiting Response"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "1",
                  "fromString": "Open",
                  "to": "5",
                  "toString": "Resolved"
               }
            ]
         },
         {
            "id": "1727905",
            "author": "arisabot",
            "created": "2020-07-20T20:31:42.753+0300",
            "items": [
               {
                  "field": "resolution",
                  "fieldtype": "jira",
                  "from": "10001",
                  "fromString": "Awaiting Response",
                  "to": null,
                  "toString": null
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "5",
                  "fromString": "Resolved",
                  "to": "4",
                  "toString": "Reopened"
               }
            ]
         },
         {
            "id": "1758483",
            "author": "ionicecko",
            "created": "2020-08-09T09:53:53.986+0300",
            "items": [
               {
                  "field": "resolution",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "10001",
                  "toString": "Awaiting Response"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "4",
                  "fromString": "Reopened",
                  "to": "5",
                  "toString": "Resolved"
               }
            ]
         },
         {
            "id": "1758484",
            "author": "ionicecko",
            "created": "2020-08-09T09:54:02.373+0300",
            "items": [
               {
                  "field": "labels",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": "awaiting-system-requirements",
                  "to": null,
                  "toString": "awaiting-response"
               }
            ]
         },
         {
            "id": "1833531",
            "author": "ionicecko",
            "created": "2020-10-07T04:10:20.297+0300",
            "items": [
               {
                  "field": "Link",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "BDS-9198",
                  "toString": "This issue is duplicated by BDS-9198"
               }
            ]
         },
         {
            "id": "1999154",
            "author": "mega_spud",
            "created": "2021-01-29T18:19:06.529+0200",
            "items": [
               {
                  "field": "resolution",
                  "fieldtype": "jira",
                  "from": "10001",
                  "fromString": "Awaiting Response",
                  "to": null,
                  "toString": null
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "5",
                  "fromString": "Resolved",
                  "to": "4",
                  "toString": "Reopened"
               }
            ]
         },
         {
            "id": "1999174",
            "author": "arisabot",
            "created": "2021-01-29T18:19:40.278+0200",
            "items": [
               {
                  "field": "Linked",
                  "fieldtype": "custom",
                  "from": null,
                  "fromString": null,
                  "to": null,
                  "toString": "1"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "4",
                  "fromString": "Reopened",
                  "to": "4",
                  "toString": "Reopened"
               }
            ]
         },
         {
            "id": "1999247",
            "author": "mega_spud",
            "created": "2021-01-29T18:19:51.952+0200",
            "items": [
               {
                  "field": "resolution",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "4",
                  "toString": "Incomplete"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "4",
                  "fromString": "Reopened",
                  "to": "5",
                  "toString": "Resolved"
               }
            ]
         }
      ]
   }
}