<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sun Jan 12 12:00:27 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>[MC-3208] Command /save-off does not turn off autosaving on server shutdown</title>
                <link>https://bugs.mojang.com/browse/MC-3208</link>
                <project id="10400" key="MC">Minecraft: Java Edition</project>
                    <description>&lt;h3&gt;&lt;a name=&quot;Thebug&quot;&gt;&lt;/a&gt;The bug&lt;/h3&gt;
&lt;p&gt;While auto-save is turned off (&lt;tt&gt;/save-off&lt;/tt&gt; command), the server still saves the inventories and position of players and ender chests, as well as the world and chest inventories. When the server is stopped, player positions and the world are saved.&lt;/p&gt;

&lt;h3&gt;&lt;a name=&quot;Howtoreproduce&quot;&gt;&lt;/a&gt;How to reproduce&lt;/h3&gt;
&lt;ol&gt;
	&lt;li&gt;Start your SMP server&lt;/li&gt;
	&lt;li&gt;Run the &lt;tt&gt;/save-off&lt;/tt&gt; command&lt;/li&gt;
	&lt;li&gt;Move around, edit the world, place items in your chests and ender chests&lt;/li&gt;
	&lt;li&gt;Stop the server with the &lt;tt&gt;/stop&lt;/tt&gt; command&lt;/li&gt;
	&lt;li&gt;Reboot the server normally&lt;br/&gt;
&#8594; Your position and items in your inventory, as well as your changes to the world, remain&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="15172">MC-3208</key>
            <summary>Command /save-off does not turn off autosaving on server shutdown</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="4" iconUrl="https://bugs.mojang.com/images/icons/statuses/reopened.png" description="This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.">Reopened</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="snofox">Josh Johnson</reporter>
                        <labels>
                    </labels>
                <created>Fri, 16 Nov 2012 23:02:47 +0100</created>
                <updated>Fri, 27 Oct 2023 08:55:48 +0200</updated>
                                            <version>Minecraft 1.4.4</version>
                    <version>Minecraft 1.4.7</version>
                    <version>Minecraft 1.5</version>
                    <version>Minecraft 1.5.1</version>
                    <version>Minecraft 1.7.4</version>
                    <version>Minecraft 14w02c</version>
                    <version>Minecraft 1.8.1</version>
                    <version>Minecraft 1.10.2</version>
                    <version>Minecraft 16w32a</version>
                    <version>Minecraft 16w32b</version>
                    <version>Minecraft 16w33a</version>
                    <version>Minecraft 1.11.2</version>
                    <version>Minecraft 1.12.2</version>
                    <version>Minecraft 17w50a</version>
                    <version>1.19.3</version>
                    <version>23w05a</version>
                                                                        <votes>17</votes>
                                    <watches>15</watches>
                                                                            <comments>
                            <comment id="782062" author="JIRAUSER334703" created="Thu, 6 Aug 2020 22:18:28 +0200"  >&lt;p&gt;Still present throughout 1.16.&lt;/p&gt;</comment>
                            <comment id="604127" author="fuzzyweapon" created="Tue, 19 Nov 2019 03:54:23 +0100"  >&lt;p&gt;Re: Stabel, this is confusing.&lt;/p&gt;

&lt;p&gt;Most players who want their changes saved will not invoke /save-off, except in the course of a backup.&#160; If they forget to re-enable saving then...the backup process is doing it wrong and already jeopardizing loss of data given there are tons of ways that a process can be killed.&#160; It seems like you&apos;re advocating for a safety net in case these kinds of processes are not tidying up as they should be?&#160; But consider a backup that hasn&apos;t turned saving back on and the following circumstances...&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;host machine is rebooted&lt;/li&gt;
	&lt;li&gt;host machine loses power&lt;/li&gt;
	&lt;li&gt;etc, etc&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;These are the equivalent of a SIGKILL, and will be problems for backups no matter what.&#160; Backup processes should do the right commands.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;It&apos;s not good form to have another command having magic, undocumented functionality to guard against behavior like forgetting to turn saving back on.&#160; At the very least, the documentation for /save-off should be amended.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Best?&#160; /save-off works as described and has no side-effects.&#160; There&apos;s actual use cases for this like running a pvp day on a server that is normally pve and letting people go wild on each other&apos;s creations or loading up special mods for an event day that no one wants persisted to disk.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I shouldn&apos;t have to login to my host (which I may not have access to a shell to do) and send a SIGKILL.&#160; Instances where someone may not have access are due to hosting provider or someone is an operator level 4 but doesn&apos;t have shell access to the host.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;As someone managing a cloud VPS for a server, I would /never/ give shell access to anyone but myself, period, but I do want to allow other operators who might be throwing events while I&apos;m unavailable, etc to do the above.&lt;/p&gt;</comment>
                            <comment id="376279" author="tomylobo" created="Wed, 5 Apr 2017 18:51:31 +0200"  >&lt;p&gt;&lt;a href=&quot;https://bugs.mojang.com/secure/ViewProfile.jspa?name=snofox&quot; class=&quot;user-hover&quot; rel=&quot;snofox&quot;&gt;snofox&lt;/a&gt; If you don&apos;t want to stop your server without saving your changes, use SIGKILL(forcekill).&lt;br/&gt;
This causes the OS to simply remove the server from memory without giving it a chance to save the map.&lt;/p&gt;

&lt;p&gt;That being said, this is a narrow special case which should not endanger the maps of the 99% of players who want their changes saved.&lt;/p&gt;</comment>
                            <comment id="376277" author="tomylobo" created="Wed, 5 Apr 2017 18:46:53 +0200"  >&lt;p&gt;&lt;a href=&quot;https://bugs.mojang.com/secure/ViewProfile.jspa?name=Turaiel&quot; class=&quot;user-hover&quot; rel=&quot;Turaiel&quot;&gt;Turaiel&lt;/a&gt; I must disagree.&lt;br/&gt;
/stop, SIGINT(Ctrl-C) and SIGTERM need to save the world or people will lose changes.&lt;/p&gt;

&lt;p&gt;Don&apos;t force people to go through this. There is no need to.&lt;/p&gt;</comment>
                            <comment id="326052" author="banana478" created="Fri, 19 Aug 2016 02:35:02 +0200"  >&lt;p&gt;Reopened and edited.&lt;/p&gt;</comment>
                            <comment id="326047" author="turaiel" created="Fri, 19 Aug 2016 01:58:07 +0200"  >&lt;p&gt;Agreed. If player data is still being saved at all with auto-saving off (and I have confirmed that it is also saving while the server is running), this bug is not fixed. I do not know whether the world saved on server termination with auto-saving off prior to 1.10, but I believe it should not.&lt;/p&gt;

&lt;p&gt;The wiki indicates that the `save-off` command &quot;Disables the server writing to the world files. All changes will temporarily be queued.&quot; This does not specify that this functionality is limited to while the server is running and would lead a reasonable person to believe that the data should also not be saved on termination.&lt;/p&gt;</comment>
                            <comment id="326033" author="snofox" created="Fri, 19 Aug 2016 00:15:17 +0200"  >&lt;p&gt;I&apos;d argue that it&apos;s not fixed; in fact, it&apos;s made worse.&lt;/p&gt;

&lt;p&gt;As &lt;a href=&quot;https://bugs.mojang.com/secure/ViewProfile.jspa?name=__null&quot; class=&quot;user-hover&quot; rel=&quot;__null&quot;&gt;__null&lt;/a&gt; said, If saving is turned off, shutting down the server now saves both the world and player inventories; basically rendering /save-off useless.&lt;/p&gt;

&lt;p&gt;Perhaps reopen with an updated title? Or does this warrant a new JIRA?&lt;/p&gt;</comment>
                            <comment id="326020" author="banana478" created="Thu, 18 Aug 2016 22:52:56 +0200"  >&lt;p&gt;I can&apos;t reproduce in 16w33a either.&lt;/p&gt;</comment>
                            <comment id="323426" author="__null" created="Fri, 5 Aug 2016 19:54:01 +0200"  >&lt;p&gt;Does this still happen on 1.10.2? I can&apos;t seem to reproduce it with the steps in the description &amp;#8211; both &lt;tt&gt;/stop&lt;/tt&gt; and &lt;tt&gt;^C&lt;/tt&gt; seem to save the world and inventories.&lt;/p&gt;</comment>
                            <comment id="262976" author="turaiel" created="Sun, 8 Nov 2015 04:34:25 +0100"  >&lt;p&gt;This is affecting my backup as well. For the time being I&apos;m just going to remove write permissions from the playerdata directory while saving is turned off (i.e. while my backup script is running).&lt;/p&gt;</comment>
                            <comment id="222329" author="julian sivertsen" created="Wed, 18 Mar 2015 18:22:59 +0100"  >&lt;p&gt;&lt;del&gt;Thank you. Sorry for being a bit edgy, this bug almost made me lose several hours of game play on a server I manage, Good backup routines saved the day, though I&apos;m going to be very careful about save-off in the future.&lt;/del&gt;&lt;/p&gt;

&lt;p&gt;Wot, I posted this on another issue.&lt;/p&gt;</comment>
                            <comment id="221570" author="julian sivertsen" created="Tue, 10 Mar 2015 23:15:00 +0100"  >&lt;p&gt;Can confirm that this is still an issue in Minecraft 1.8.1.&lt;/p&gt;</comment>
                            <comment id="131075" author="snofox" created="Mon, 13 Jan 2014 02:05:31 +0100"  >&lt;p&gt;Still affects the latest versions of Minecraft.&lt;/p&gt;</comment>
                            <comment id="58036" author="naolas" created="Sat, 30 Mar 2013 22:22:20 +0100"  >&lt;p&gt;Some more detail.&lt;/p&gt;

&lt;p&gt;On save-off the player.dat files continue to be written. As a result, doing a backup will result in player files (player inventory, ender chests, position, ...) to be out of sync with the world region files. This can lead to items disappearing or duplicated items on server restore.&lt;/p&gt;

&lt;p&gt;I would also be grateful for a any info on a workaround until this can be addressed.&lt;/p&gt;</comment>
                            <comment id="55745" author="dsohler" created="Wed, 20 Mar 2013 05:28:33 +0100"  >&lt;p&gt;Confirmed for 1.5.1-pre server with 1.5.1-pre client.&lt;/p&gt;

&lt;p&gt;World edits and chests of all types are disappearing. Player position and inventory gets saved, contents of Enderchest gets saved, too (if you place a new Enderchest you get all the items you put in it the last time).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10102">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="28255">MC-13282</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10103">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="418221">MC-217729</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                    <customfield id="customfield_12800" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Area</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="12602"><![CDATA[Platform]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10701" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>CHK</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 18 Aug 2016 17:21:00 +0200</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11901" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Category</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11608"><![CDATA[Commands]]></customfieldvalue>
    <customfieldvalue key="12206"><![CDATA[Save Data]]></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>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12200" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Mojang Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11703"><![CDATA[Low]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i06itz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12201" key="com.atlassian.jira.plugin.system.customfieldtypes:datetime">
                        <customfieldname>Triaged Time</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 27 May 2021 09:20:11 +0200</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                </customfields>
    </item>
</channel>
</rss>