<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sat Jan 11 07:22:44 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[BDS-2733] Cannot copy MANIFEST and .log during Save Hold.  Files are open by bedrock_server.exe</title>
                <link>https://bugs.mojang.com/browse/BDS-2733</link>
                <project id="11700" key="BDS">Bedrock Dedicated Server</project>
                    <description>&lt;p&gt;During Save Hold the MANIFEST and .log files from the db folder do not unlock as they should and can not be copied.&lt;/p&gt;

&lt;p&gt;I have tried this on 3 separate windows 10 systems on several different worlds including brand new worlds created by the server.&lt;/p&gt;

&lt;p&gt;This means we cannot take a working backup of the world without completely shutting down the server.&lt;/p&gt;

&lt;p&gt;I have checked permissions and this is not a permissions issue.&lt;br/&gt;
See screenshots attached.&lt;/p&gt;

&lt;p&gt;This started happening since BDS 1.14.1.4&lt;br/&gt;
The Bug tracker will not let me choose this version as it is only showing 1.14.0.9&lt;/p&gt;

&lt;p&gt;Very worrying! Requires URGENT attention.&lt;/p&gt;</description>
                <environment>Windows 10 Home and Windows 10 Pro</environment>
        <key id="283712">BDS-2733</key>
            <summary>Cannot copy MANIFEST and .log during Save Hold.  Files are open by bedrock_server.exe</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="5">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="foxynotail">Foxy No-Tail</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 Jan 2020 19:50:20 +0100</created>
                <updated>Sat, 20 Aug 2022 01:58:59 +0200</updated>
                            <resolved>Thu, 9 Dec 2021 09:14:03 +0100</resolved>
                                    <version>1.14.0.9</version>
                    <version>1.14.21.0</version>
                    <version>1.14.30</version>
                    <version>1.14.32.1</version>
                    <version>1.16.0</version>
                                                            <votes>134</votes>
                                    <watches>64</watches>
                                                                            <comments>
                            <comment id="1194238" author="eldarmike3" created="Sat, 20 Aug 2022 01:58:59 +0200"  >&lt;p&gt;could the issue be with your software you made for the sever and not the Mojang software&lt;/p&gt;</comment>
                            <comment id="1139677" author="JIRAUSER639813" created="Sun, 6 Feb 2022 01:35:29 +0100"  >&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;I have seen the issue in BDS &quot;manager clients&quot; 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.&#160;&#160;&lt;/p&gt;

&lt;p&gt;The user flow that causes the error is specifically:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Issue the &apos;save hold&apos; command&lt;/li&gt;
	&lt;li&gt;Issue the &apos;save query&apos; command (waiting for the file list to appear)&lt;/li&gt;
	&lt;li&gt;Copy the affected bytes (per the file list) to the backup location
	&lt;ul&gt;
		&lt;li&gt;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)&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This 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.&lt;/p&gt;

&lt;p&gt;The user flow that I found that works is:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Issue the &apos;save hold&apos; command&lt;/li&gt;
	&lt;li&gt;Issue the &apos;save query&apos; command (waiting for the file list to appear)&lt;/li&gt;
	&lt;li&gt;Copy the ENTIRE file (per the file list) to the backup location
	&lt;ul&gt;
		&lt;li&gt;I used File.Copy via a C# program to move the file, but a manual Windows file copy should work as well.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;Now trim each file to the appropriate length (per the file list)
	&lt;ul&gt;
		&lt;li&gt;Using File.Open and then SetLength on the opened file.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="1118660" author="JIRAUSER656552" created="Wed, 1 Dec 2021 14:32:08 +0100"  >&lt;p&gt;if this wasn&apos;t fixed the problem could be that it tries to backup while the server is being saved&lt;/p&gt;</comment>
                            <comment id="1106202" author="goldenhelmet" created="Thu, 11 Nov 2021 13:22:21 +0100"  >&lt;p&gt;I am hearing that this bug is fixed in the current version. Is anyone still having problems with save hold not copying all files?&lt;/p&gt;</comment>
                            <comment id="980961" author="JIRAUSER638647" created="Tue, 27 Apr 2021 01:15:54 +0200"  >&lt;p&gt;Why is this being ignored? It would be very helpful if this was fixed!&lt;/p&gt;</comment>
                            <comment id="886717" author="JIRAUSER590513" created="Wed, 30 Dec 2020 14:49:12 +0100"  >&lt;p&gt;Running a 1.16.201.02 server and the problem is not happening for me&lt;/p&gt;</comment>
                            <comment id="763910" author="ionicecko" created="Tue, 14 Jul 2020 08:45:19 +0200"  >&lt;p&gt;I&apos;d heavily caution against that due to &lt;a href=&quot;https://bugs.mojang.com/browse/BDS-2574&quot; title=&quot;1.14+ Linux Performance Degradation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;BDS-2574&quot;&gt;&lt;del&gt;BDS-2574&lt;/del&gt;&lt;/a&gt;. Linux has seen significant performance issues since 1.16 so admins would be switching one issue for another (imo) worse one.&lt;/p&gt;</comment>
                            <comment id="763894" author="JIRAUSER526196" created="Tue, 14 Jul 2020 07:44:30 +0200"  >&lt;p&gt;Maybe try to run a Linux version on Windows using Windows Subsystem for Linux?&lt;/p&gt;</comment>
                            <comment id="749011" author="ionicecko" created="Mon, 29 Jun 2020 07:20:37 +0200"  >&lt;p&gt;Hi VouLT,&lt;/p&gt;

&lt;p&gt;The bug tracker is predominantly manned by community volunteers so we have no more information than you do.&lt;/p&gt;

&lt;p&gt;It has been forwarded to the developers, when and how this is resolved is up to them. We have no way of providing updates unfotunately.&lt;/p&gt;

&lt;p&gt;Ionic&lt;/p&gt;</comment>
                            <comment id="748301" author="jaydeewetwork" created="Sun, 28 Jun 2020 17:29:50 +0200"  >&lt;p&gt;Can confirm i&apos;m having this issue as well&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="742943" author="JIRAUSER493039" created="Wed, 24 Jun 2020 23:07:07 +0200"  >&lt;p&gt;Hello!&#160; &lt;br/&gt;
Any 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?&#160;&lt;/p&gt;</comment>
                            <comment id="651676" author="ashermaximum@gmail.com" created="Sun, 22 Mar 2020 06:33:39 +0100"  >&lt;p&gt;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.&lt;/p&gt;</comment>
                            <comment id="638564" author="lastcathode" created="Sun, 23 Feb 2020 23:28:44 +0100"  >&lt;p&gt;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:&lt;/p&gt;

&lt;p&gt;The process cannot access the file &apos;&amp;lt;path&amp;gt;\db\005880.log&apos; because it is being used by another process.&lt;/p&gt;


&lt;p&gt;The process cannot access the file &apos;&amp;lt;path&amp;gt;\db\MANIFEST-005878&apos; because it is being used by another process.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="636300" author="ionicecko" created="Wed, 19 Feb 2020 15:05:32 +0100"  >&lt;p&gt;Spoke to a hosted server provider who mentioned it doesn&#8217;t appear to happen for them on Linux so likely a Windows only bug. &lt;/p&gt;</comment>
                            <comment id="633235" author="ionicecko" created="Thu, 13 Feb 2020 03:32:30 +0100"  >&lt;p&gt;Affects 1.14.30&lt;br/&gt;
Windows Server 2019 also affected.&lt;/p&gt;</comment>
                            <comment id="632173" author="ionicecko" created="Tue, 11 Feb 2020 00:36:09 +0100"  >&lt;p&gt;Affects 1.14.21.0&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="260295" name="BDSSaveIssue.PNG" size="193021" author="foxynotail" created="Thu, 9 Jan 2020 19:49:02 +0100"/>
                            <attachment id="260294" name="BDSSaveIssueLOG.PNG" size="140290" author="foxynotail" created="Thu, 9 Jan 2020 19:49:02 +0100"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_11500" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>ADO</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>311770</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10500" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Confirmation Status</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10303"><![CDATA[Confirmed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_11100" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Linked</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i16ta7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>