{
   "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
   "id": "283712",
   "self": "https://bugs.mojang.com/rest/api/2/issue/283712",
   "key": "BDS-2733",
   "fields": {
      "issuetype": "1",
      "project": "11700",
      "fixVersions": [],
      "resolution": "5",
      "customfield_10500": {
         "self": "https://bugs.mojang.com/rest/api/2/customFieldOption/10303",
         "value": "Confirmed",
         "id": "10303",
         "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-12-09T10:14:03.000+0200",
      "customfield_12607": null,
      "customfield_12609": null,
      "workratio": -1,
      "lastViewed": null,
      "watches": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-2733/watchers",
         "watchCount": 64,
         "isWatching": false
      },
      "created": "2020-01-09T20:50:20.000+0200",
      "customfield_12000": null,
      "customfield_12201": null,
      "customfield_12600": null,
      "labels": [],
      "customfield_11700": "{}",
      "versions": [
         "18746",
         "18821",
         "18823",
         "19001",
         "19545"
      ],
      "issuelinks": [],
      "assignee": null,
      "updated": "2022-08-20T02:58:59.000+0300",
      "status": "5",
      "description": "During Save Hold the MANIFEST and .log files from the db folder do not unlock as they should and can not be copied.\n\nI have tried this on 3 separate windows 10 systems on several different worlds including brand new worlds created by the server.\n\nThis means we cannot take a working backup of the world without completely shutting down the server.\n\nI have checked permissions and this is not a permissions issue.\nSee screenshots attached.\n\nThis started happening since BDS 1.14.1.4\nThe Bug tracker will not let me choose this version as it is only showing 1.14.0.9\n\nVery worrying! Requires URGENT attention.",
      "customfield_11100": 0.0,
      "customfield_11300": null,
      "customfield_11500": "311770",
      "customfield_12503": null,
      "customfield_12700": null,
      "customfield_12502": null,
      "customfield_12504": null,
      "attachment": [
         "260295",
         "260294"
      ],
      "summary": "Cannot copy MANIFEST and .log during Save Hold.  Files are open by bedrock_server.exe",
      "creator": "foxynotail",
      "reporter": "foxynotail",
      "customfield_10002": null,
      "customfield_12501": null,
      "customfield_12500": null,
      "customfield_11601": null,
      "customfield_11600": "0|i16ta7:",
      "environment": "Windows 10 Home and Windows 10 Pro",
      "customfield_11801": null,
      "customfield_11800": null,
      "customfield_11602": null,
      "customfield_11802": null,
      "comment": {
         "comments": [
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/632173",
               "id": "632173",
               "author": "ionicecko",
               "body": "Affects 1.14.21.0",
               "updateAuthor": "ionicecko",
               "created": "2020-02-11T01:36:09.153+0200",
               "updated": "2020-02-11T01:36:09.153+0200"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/633235",
               "id": "633235",
               "author": "ionicecko",
               "body": "Affects 1.14.30\nWindows Server 2019 also affected.",
               "updateAuthor": "ionicecko",
               "created": "2020-02-13T04:32:30.207+0200",
               "updated": "2020-02-13T04:37:00.494+0200"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/636300",
               "id": "636300",
               "author": "ionicecko",
               "body": "Spoke to a hosted server provider who mentioned it doesn\u2019t appear to happen for them on Linux so likely a Windows only bug. ",
               "updateAuthor": "ionicecko",
               "created": "2020-02-19T16:05:32.367+0200",
               "updated": "2020-02-19T16:05:32.367+0200"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/638564",
               "id": "638564",
               "author": "lastcathode",
               "body": "I can confirm this is still an issue in 1.14.30.2 with BDS holding an exclusive lock on the log and manifest files, breaking backups:\n\nThe process cannot access the file '<path>\\db\\005880.log' because it is being used by another process.\n\n\nThe process cannot access the file '<path>\\db\\MANIFEST-005878' because it is being used by another process.\n\n\u00a0",
               "updateAuthor": "lastcathode",
               "created": "2020-02-24T00:28:44.496+0200",
               "updated": "2020-02-24T00:28:44.496+0200"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/651676",
               "id": "651676",
               "author": "ashermaximum@gmail.com",
               "body": "I can also confirm this does not affect Linux, only Windows - I ran my server on Linux first before another bug forced me to switch to Windows. On Linux I did not have this issue, on Windows I do.",
               "updateAuthor": "ashermaximum@gmail.com",
               "created": "2020-03-22T07:33:39.752+0200",
               "updated": "2020-03-22T07:33:39.752+0200"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/742943",
               "id": "742943",
               "author": "JIRAUSER493039",
               "body": "Hello!\u00a0 \r\nAny updates on this ticket? It is now clear that, unfortunately, a fix was not include with 1.16. Maybe I ask if it will be included in a future hotfix?\u00a0",
               "updateAuthor": "JIRAUSER493039",
               "created": "2020-06-25T00:07:07.887+0300",
               "updated": "2020-06-25T00:07:07.887+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/748301",
               "id": "748301",
               "author": "jaydeewetwork",
               "body": "Can confirm i'm having this issue as well\r\n\r\n\u00a0",
               "updateAuthor": "jaydeewetwork",
               "created": "2020-06-28T18:29:50.387+0300",
               "updated": "2020-06-28T18:29:50.387+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/749011",
               "id": "749011",
               "author": "ionicecko",
               "body": "Hi VouLT,\r\n\r\nThe bug tracker is predominantly manned by community volunteers so we have no more information than you do.\r\n\r\nIt has been forwarded to the developers, when and how this is resolved is up to them. We have no way of providing updates unfotunately.\r\n\r\nIonic",
               "updateAuthor": "ionicecko",
               "created": "2020-06-29T08:20:37.512+0300",
               "updated": "2020-06-29T08:20:37.512+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/763894",
               "id": "763894",
               "author": "JIRAUSER526196",
               "body": "Maybe try to run a Linux version on Windows using Windows Subsystem for Linux?",
               "updateAuthor": "JIRAUSER526196",
               "created": "2020-07-14T08:44:30.686+0300",
               "updated": "2020-07-14T08:45:15.095+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/763910",
               "id": "763910",
               "author": "ionicecko",
               "body": "I'd heavily caution against that due to BDS-2574. Linux has seen significant performance issues since 1.16 so admins would be switching one issue for another (imo) worse one.",
               "updateAuthor": "ionicecko",
               "created": "2020-07-14T09:45:19.450+0300",
               "updated": "2020-07-14T09:46:14.012+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/886717",
               "id": "886717",
               "author": "JIRAUSER590513",
               "body": "Running a 1.16.201.02 server and the problem is not happening for me",
               "updateAuthor": "JIRAUSER590513",
               "created": "2020-12-30T15:49:12.824+0200",
               "updated": "2020-12-30T15:55:35.689+0200"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/980961",
               "id": "980961",
               "author": "JIRAUSER638647",
               "body": "Why is this being ignored? It would be very helpful if this was fixed!",
               "updateAuthor": "JIRAUSER638647",
               "created": "2021-04-27T02:15:54.697+0300",
               "updated": "2021-04-27T02:15:54.697+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/1106202",
               "id": "1106202",
               "author": "goldenhelmet",
               "body": "I am hearing that this bug is fixed in the current version. Is anyone still having problems with save hold not copying all files?",
               "updateAuthor": "goldenhelmet",
               "created": "2021-11-11T14:22:21.809+0200",
               "updated": "2021-11-11T14:22:39.413+0200"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/1118660",
               "id": "1118660",
               "author": "JIRAUSER656552",
               "body": "if this wasn't fixed the problem could be that it tries to backup while the server is being saved",
               "updateAuthor": "JIRAUSER656552",
               "created": "2021-12-01T15:32:08.548+0200",
               "updated": "2021-12-01T15:32:08.548+0200"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/1123472",
               "id": "1123472",
               "author": "JIRAUSER601130",
               "body": "Closing as per request on [slack.|https://mojangab.slack.com/archives/G3AJRKGCS/p1639021298346100]\u00a0",
               "updateAuthor": "JIRAUSER601130",
               "created": "2021-12-09T10:14:03.414+0200",
               "updated": "2021-12-09T10:14:03.414+0200",
               "visibility": {
                  "type": "group",
                  "value": "staff"
               }
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/1139677",
               "id": "1139677",
               "author": "JIRAUSER639813",
               "body": "I have been using a BDS since 1.18 and have been able to copy the files (via Windows file copy) even when the server is online.\r\n\r\nI have seen the issue in BDS \"manager clients\" that are trying to do online backups. I played around with this myself and found that the issue has to do with an order of operations on how the backup files are being trimmed.\u00a0\u00a0\r\n\r\nThe user flow that causes the error is specifically:\r\n * Issue the 'save hold' command\r\n * Issue the 'save query' command (waiting for the file list to appear)\r\n * Copy the affected bytes (per the file list) to the backup location\r\n ** Essentially a File.Open is being done and then trying to just File.WriteBytes based on the size from the file list (using C# nomencalture)\r\n\r\nThis will cause the problem every time, in my experience, because the files are restricting read access because BDS is still reading and writing the files.\r\n\r\nThe user flow that I found that works is:\r\n * Issue the 'save hold' command\r\n * Issue the 'save query' command (waiting for the file list to appear)\r\n * Copy the ENTIRE file (per the file list) to the backup location\r\n ** I used File.Copy via a C# program to move the file, but a manual Windows file copy should work as well.\r\n * Now trim each file to the appropriate length (per the file list)\r\n ** Using File.Open and then SetLength on the opened file.\r\n\r\n\u00a0",
               "updateAuthor": "JIRAUSER639813",
               "created": "2022-02-06T02:35:29.869+0200",
               "updated": "2022-02-06T02:35:29.869+0200"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/283712/comment/1194238",
               "id": "1194238",
               "author": "eldarmike3",
               "body": "could the issue be with your software you made for the sever and not the Mojang software",
               "updateAuthor": "eldarmike3",
               "created": "2022-08-20T02:58:59.566+0300",
               "updated": "2022-08-20T02:58:59.566+0300"
            }
         ],
         "maxResults": 17,
         "total": 17,
         "startAt": 0
      },
      "votes": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-2733/votes",
         "votes": 134,
         "hasVoted": false
      }
   },
   "changelog": {
      "startAt": 0,
      "maxResults": 10,
      "total": 10,
      "histories": [
         {
            "id": "1425763",
            "author": "xiiph",
            "created": "2020-02-05T21:27:42.262+0200",
            "items": [
               {
                  "field": "Comment",
                  "fieldtype": "jira",
                  "from": "I believe this bug was introduced in 1.14.",
                  "fromString": null,
                  "to": null,
                  "toString": null
               }
            ]
         },
         {
            "id": "1432131",
            "author": "ionicecko",
            "created": "2020-02-11T09:25:58.837+0200",
            "items": [
               {
                  "field": "Version",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "18821",
                  "toString": "1.14.21.0"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "1",
                  "fromString": "Open",
                  "to": "1",
                  "toString": "Open"
               }
            ]
         },
         {
            "id": "1433853",
            "author": "ionicecko",
            "created": "2020-02-13T04:32:39.648+0200",
            "items": [
               {
                  "field": "Version",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "18823",
                  "toString": "1.14.30"
               }
            ]
         },
         {
            "id": "1441085",
            "author": "mega_spud",
            "created": "2020-02-19T16:15:31.095+0200",
            "items": [
               {
                  "field": "ADO",
                  "fieldtype": "custom",
                  "from": null,
                  "fromString": null,
                  "to": null,
                  "toString": "311770"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "1",
                  "fromString": "Open",
                  "to": "1",
                  "toString": "Open"
               }
            ]
         },
         {
            "id": "1455941",
            "author": "ionicecko",
            "created": "2020-03-04T13:55:56.662+0200",
            "items": [
               {
                  "field": "Version",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "19001",
                  "toString": "1.14.32.1"
               }
            ]
         },
         {
            "id": "1480460",
            "author": "ionicecko",
            "created": "2020-03-25T11:53:13.084+0200",
            "items": [
               {
                  "field": "Confirmation Status",
                  "fieldtype": "custom",
                  "from": null,
                  "fromString": null,
                  "to": "10303",
                  "toString": "Confirmed"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "1",
                  "fromString": "Open",
                  "to": "1",
                  "toString": "Open"
               }
            ]
         },
         {
            "id": "1492435",
            "author": "JIRAUSER441968",
            "created": "2020-04-02T22:54:11.279+0300",
            "items": [
               {
                  "field": "Comment",
                  "fieldtype": "jira",
                  "from": "Can confirm on retail version 1.14.3. This bug should be elevated to a higher priority because of how many players, and servers this affects.",
                  "fromString": null,
                  "to": null,
                  "toString": null
               }
            ]
         },
         {
            "id": "1678851",
            "author": "ionicecko",
            "created": "2020-06-25T10:37:40.464+0300",
            "items": [
               {
                  "field": "Version",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "19545",
                  "toString": "1.16.0"
               }
            ]
         },
         {
            "id": "2437262",
            "author": "arisabot",
            "created": "2021-11-11T14:22:30.553+0200",
            "items": [
               {
                  "field": "Linked",
                  "fieldtype": "custom",
                  "from": null,
                  "fromString": null,
                  "to": null,
                  "toString": "0"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "1",
                  "fromString": "Open",
                  "to": "1",
                  "toString": "Open"
               }
            ]
         },
         {
            "id": "2479315",
            "author": "JIRAUSER601130",
            "created": "2021-12-09T10:14:03.420+0200",
            "items": [
               {
                  "field": "resolution",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "5",
                  "toString": "Cannot Reproduce"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "1",
                  "fromString": "Open",
                  "to": "5",
                  "toString": "Resolved"
               }
            ]
         }
      ]
   }
}