oddlama / vane

Immersive and lore friendly enhancements for vanilla Minecraft
MIT License
250 stars 31 forks source link

Vane "Permission Denied" Error #234

Closed Wingdingderp closed 5 months ago

Wingdingderp commented 5 months ago

I am currently making a 1.20.4 Paper Minecraft Server, and I am attempting to install Vane. I have installed ProtocolLib and I don't believe there are any conflicting plugins.

Here is the error for one of the Vane plugins: [19:27:26 ERROR]: [DirectoryProviderSource] Error loading plugin: Directory 'plugins/vane-permissions-1.14.0.jar' failed to load! java.lang.RuntimeException: Directory 'plugins/vane-permissions-1.14.0.jar' failed to load! at io.papermc.paper.plugin.provider.source.FileProviderSource.registerProviders(FileProviderSource.java:59) ~[paper-1.20.4.jar:git-Paper-393] at io.papermc.paper.plugin.provider.source.DirectoryProviderSource.lambda$registerProviders$1(DirectoryProviderSource.java:34) ~[paper-1.20.4.jar:git-Paper-393] at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) ~[?:?] at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) ~[?:?] at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) ~[?:?] at java.util.Iterator.forEachRemaining(Unknown Source) ~[?:?] at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Unknown Source) ~[?:?] at java.util.stream.AbstractPipeline.copyInto(Unknown Source) ~[?:?] at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) ~[?:?] at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source) ~[?:?] at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source) ~[?:?] at java.util.stream.AbstractPipeline.evaluate(Unknown Source) ~[?:?] at java.util.stream.ReferencePipeline.forEach(Unknown Source) ~[?:?] at io.papermc.paper.plugin.provider.source.DirectoryProviderSource.registerProviders(DirectoryProviderSource.java:32) ~[paper-1.20.4.jar:git-Paper-393] at io.papermc.paper.plugin.provider.source.DirectoryProviderSource.registerProviders(DirectoryProviderSource.java:14) ~[paper-1.20.4.jar:git-Paper-393] at io.papermc.paper.plugin.util.EntrypointUtil.registerProvidersFromSource(EntrypointUtil.java:14) ~[paper-1.20.4.jar:git-Paper-393] at io.papermc.paper.plugin.PluginInitializerManager.load(PluginInitializerManager.java:100) ~[paper-1.20.4.jar:git-Paper-393] at net.minecraft.server.Main.main(Main.java:131) ~[paper-1.20.4.jar:git-Paper-393] at org.bukkit.craftbukkit.Main.main(Main.java:325) ~[paper-1.20.4.jar:git-Paper-393] at io.papermc.paperclip.Paperclip.lambda$main$0(Paperclip.java:42) ~[app:?] at java.lang.Thread.run(Unknown Source) ~[?:?] Caused by: java.io.FileNotFoundException: plugins/vane-permissions-1.14.0.jar (Permission denied) at java.io.RandomAccessFile.open0(Native Method) ~[?:?] at java.io.RandomAccessFile.open(Unknown Source) ~[?:?] at java.io.RandomAccessFile.<init>(Unknown Source) ~[?:?] at java.io.RandomAccessFile.<init>(Unknown Source) ~[?:?] at java.util.zip.ZipFile$Source.<init>(Unknown Source) ~[?:?] at java.util.zip.ZipFile$Source.get(Unknown Source) ~[?:?] at java.util.zip.ZipFile$CleanableResource.<init>(Unknown Source) ~[?:?] at java.util.zip.ZipFile.<init>(Unknown Source) ~[?:?] at java.util.zip.ZipFile.<init>(Unknown Source) ~[?:?] at java.util.jar.JarFile.<init>(Unknown Source) ~[?:?] at io.papermc.paper.plugin.provider.source.FileProviderSource.registerProviders(FileProviderSource.java:51) ~[paper-1.20.4.jar:git-Paper-393]  ... 20 more

It does this for all of the Vane Plugins, such as, Core, Admin, Permissions, etc.

oddlama commented 5 months ago

Sounds like you copied the files with the root user (or at least another user than the user running the actual server), making them inaccessible to minecraft. Running ls -la plugins/ should show that the permissions are not correct.

Depending on the exact problem, either give the files to the correct user with chown or adjust the mode with chmod.

Wingdingderp commented 5 months ago

So, what would be the command for this situation?

image

oddlama commented 5 months ago

chmod 644 plugins/*.jar should suffice

Wingdingderp commented 5 months ago

That worked! Thanks for your help!