This forum has been archived. Please find the new support board at https://support.cubecoders.com/

AMP incompatible with Spigot/Paperspigot MC 1.12

  • 282 Views
  • Last Post 2 weeks ago
  • Topic Is Solved
Pawned posted this 10 June 2017

Hi There,

Just been troubleshooting an issue after upgrading my MC server to 1.12 whereby users were unable to craft and there were no recipes showing in the book.

I decided to try loading the server without AMP and found that crafting then worked fine.

Upon further inspection I found the following error when loading the server via AMP, which seems to be the cause of the issue - AMP is locking a critical file needed by Spigot/paper:

[23:57:03] [main/ERROR]: Couldn't get a list of all recipe files
java.nio.file.AccessDeniedException: C:\Users\Administrator\AppData\Local\CubeCoders\AMP\Instances\1-Pawncraft\Minecraft\cache\patched_1.12.jar
    at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) ~[?:1.8.0_131]
    at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) ~[?:1.8.0_131]
    at sun.nio.fs.WindowsLinkSupport.getRealPath(Unknown Source) ~[?:1.8.0_131]
    at sun.nio.fs.WindowsPath.toRealPath(Unknown Source) ~[?:1.8.0_131]
    at sun.nio.fs.WindowsPath.toRealPath(Unknown Source) ~[?:1.8.0_131]
    at com.sun.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:111) ~[zipfs.jar:1.8.0_131]
    at java.nio.file.FileSystems.newFileSystem(Unknown Source) ~[?:1.8.0_131]
    at java.nio.file.FileSystems.newFileSystem(Unknown Source) ~[?:1.8.0_131]
    at net.minecraft.server.v1_12_R1.CraftingManager.b(CraftingManager.java:84) [patched_1.12.jar:git-Paper-1110]
    at net.minecraft.server.v1_12_R1.CraftingManager.init(CraftingManager.java:49) [patched_1.12.jar:git-Paper-1110]
    at net.minecraft.server.v1_12_R1.DispenserRegistry.c(DispenserRegistry.java:689) [patched_1.12.jar:git-Paper-1110]
    at net.minecraft.server.v1_12_R1.MinecraftServer.main(MinecraftServer.java:964) [patched_1.12.jar:git-Paper-1110]
    at org.bukkit.craftbukkit.Main.main(Main.java:227) [patched_1.12.jar:git-Paper-1110]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_131]
    at com.destroystokyo.paperclip.Paperclip.main(Paperclip.java:276) [paperclip.jar:?]
[23:57:03] [main/ERROR]: Errors with built-in recipes!

  • Liked by
  • curtis07
11 Comments
Order By: Standard | Newest | Votes
Mike posted this 10 June 2017 - Last edited 10 June 2017

Is AMP running as a service? If so the problem is that you're using the Administrator user, so AMP won't have permission to use any files you placed manually. The guide specifically instructs you not to use Administrator for this very reason.

To get around this, delete the affected files and use AMPs file manager to place them there, or alternatively give the NETWORK SERVICE user access to them.

Pawned posted this 11 June 2017

Is AMP running as a service? If so the problem is that you're using the Administrator user, so AMP won't have permission to use any files you placed manually. The guide specifically instructs you not to use Administrator for this very reason.

To get around this, delete the affected files and use AMPs file manager to place them there, or alternatively give the NETWORK SERVICE user access to them.

Yeah AMP is running as a service and I am on an Administrator account. The file in question is a cache file which was downloaded automatically by the MC server, which I'm assuming would be running via the NETWORK SERVICE user as it was launched via AMP...

Anyway I have checked and the files have full access from the NETWORK SERVICE user and the AMP service is running via the NETWORK SERVICE user but this error is still happening when starting the server with AMP.

I've uninstalled the service and works fine now, so I guess I'll mark as resolved.

curtis07 posted this 28 June 2017

I'm having the exact same problem. I tried changing the owner of every single file to the local user, not administrator. I allowed full read/write access to the local user, admin, and network user. I uninstalled, reinstalled the service. Literally the only way to make it work is to delete the service and run it without the service. Minecraft 1.12 doesn't work with the AMP service.

curtis07 posted this 28 June 2017

Shoutout to crushdawg and Marellan in Discord for figuring it out. Apparently, having instances in AppData does not work anymore. All I had to do was transfer everything to C:\AMP\Instances, change the registry key, and update the Instances JSON file to the new location. It's weird, because I tried having it in the C:\ about a year ago and it refused to work, so I used the default AppData location. Now the default doesn't work, so I moved it back to C:\ where it now mysteriously works.

Anyway, should be an easy bug to fix; just change the default directory to anything other than in AppData! :)

Mike posted this 28 June 2017

AppData is normally fine to use except when you use the main Administrator user, which you're not supposed to do - unfortunately the setup process doesn't have a sane way to change this depending on who the user is.

curtis07 posted this 28 June 2017

Like I said, it isn't installed on an admin account. It is a limited, local user account that is definitely not named "Administrator". Over a year ago, I tried admin with AppData, admin without AppData, normal user without AppData, and normal user with AppData. The last of those is the only method that worked. Now it doesn't. Something happened with Minecraft 1.12 that made the Network Service user for AMP unable to access files that had full Network User read/write access. I can go through all the painful process of testing each scenario again and post screenshots if you like. It's a real thing.

Mike posted this 28 June 2017

Ah, the other thing that can cause it is if you use Windows Explorer to add/remove/edit files instead of using AMP, since when you make any changes that way NETWORK SERVICE looses its permissions. I'm guessing when you moved the files out of AppData you re-applied the permissions on the top level folder which will have fixed the issues. The on disk location doesn't matter in the slightest, only the permissions.

curtis07 posted this 28 June 2017

I also reapplied the permissions recursively from the top Instances folder down before I posted here (the local user, admin user, and Network User were among those with full permissions). I also changed the owner to the local user on all files the same way. The console spit out permissions errors, so those are the things I tested first.

curtis07 posted this 28 June 2017

I should also mention that despite always having the proper permissions, clicking "update" in AMP downloaded Spigot BuildTools with the correct permissions into the correct directory, but could not execute it due to improper permissions, according to error logs. I always have had to build it myself, transfer the built files, and fix permissions on the built files for every update.

Mr_Killer01 posted this 05 July 2017

I am stunned that you guys even get the option to use Spigot 1.12. All i got is Spigot 1.11.2... How do you do that?

Bi0Ph34r posted this 2 weeks ago

I also have the same issue and i can't fix it, using root account it worked fine in until 1.12 and I am using windows 2012 but I guess were stuck with the error it hasn't really affected me except massive lag.