0

My son's Minecraft server is running as one of my Hyper-V Guest OS systems. It decided to have a meltdown this weekend. I was able to grab all of the data. However, I started having an interesting issue when I recovered everything and copied his Minecraft server folder.

Minecraft will now run under an elevated (Administrative) command prompt. Remember that these files were copied off the server and onto my NAS for storage during the issue. So far, I have done the following.

  1. Taken ownership of the entire game folder (to local Administrators group).
  2. Ensured local Administrators group can access the game folder.
  3. Ensured Domain Admins are in the local Administrators group.
  4. Of course, I am a domain admin.

The game will run perfectly in an elevated command prompt. The game will crash with an access denied on the world.lock file when running logged in as myself under a normal command prompt.

This smells like a permissions issue, so I ensured the permissions looked straight above and files weren't read-only. Next, it feels like a UAC issue. I temporarily disabled UAC and tested it, but it didn't help under a normal command prompt. Last, it feels like one of those attributes that get applied to files when they're copied to a network (off-system) location and are copied back, which labels them dangerous/non-executable. However, I can't find the unblock button on any of the files.

2
  • Provide the ACL for the file in question
    – Ramhound
    Commented Jun 30 at 18:32
  • 4
    I’m voting to close this question because OP ended up creating a new server, meaning the issue can no longer be replicated. Commented Jul 3 at 22:42

3 Answers 3

0

Likely, there is a file in another location that is being changed, perhaps in the root C:\ folder, which is verboten to non-admin changes (and should be kept that way).

Try running Minecraft as admin, while using a tool such as Nirsoft's FileActivityWatch to see what is being written. Compare with running it as a non-admin user, to see what files were not written.

FileActivityWatch

0
0

You have given the administrators rights to the Minecraft folder, but not the logged in user.

If you alter the permissions for the folder, and give the logged in user itself read/write access to this folder, you no longer need to run the game as administrator.

You can also set the rights for the Users group. Just know that if you use the administrators group, then you basically tell the system: This is fine if run elevated.

Make sure the changes propagate to all child folders too.

0

For anyone following up, my son worked on this a bit. He determined that neither of our Admin accounts were being used to run Minecraft. Therefore having the Administrators group with Full permissions to all of the files made no difference unless it was run in an Administrative command prompt. Due to the corruption from the VM meltdown, he decided to just start over. New Minecraft installation, plugins, world, everything. Then he ported over the contents of the world. This is what eventually worked. Even with everything brand new, if he dropped the entire old world into the new game, it would give world lock issues.

1
  • Glad this was resolved for you. I think this result negates any benefit this question (not a problem for you, just a problem for the benefit this question may have for anyone else in the future) has here, as the true problem can no longer be replicated. Commented Jul 3 at 22:41

Not the answer you're looking for? Browse other questions tagged .