AMP incompatible with Spigot/Paperspigot MC 1.12

  • 92 Views
  • Last Post 2 weeks ago
  • Topic Is Solved
Pawned posted this 2 weeks ago

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!

2 Comments
Order By: Standard | Newest | Votes
Mike posted this 2 weeks ago - Last edited 2 weeks ago

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 2 weeks ago

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.