BillyGalbreath / Pl3xMap

Pl3xMap is a minimalistic and lightweight world map viewer for Minecraft servers using the vanilla Minecraft rendering style
https://modrinth.com/plugin/pl3xmap
MIT License
3 stars 4 forks source link

Error with custom web location #168

Closed Hundr closed 1 year ago

Hundr commented 1 year ago

Using latest Spigot server on a Linux distro. with a custom location for the internal web server, I keep getting these kinds of error messages for files in that directory (markers). The directory has full read/write permission for everyone as well. Otherwise the plugin is running okay from what I can tell.

[XNIO-1 task-4/WARN]: java.nio.file.NoSuchFileException: /path_to_custom_location/web/tiles/HarMine3/markers/pl3xmap_players.json [XNIO-1 task-4/WARN]: at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92) [XNIO-1 task-4/WARN]: at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106) [XNIO-1 task-4/WARN]: at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111) [XNIO-1 task-4/WARN]: at java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55) [XNIO-1 task-4/WARN]: at java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:148) [XNIO-1 task-4/WARN]: at java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99) [XNIO-1 task-4/WARN]: at java.base/java.nio.file.Files.readAttributes(Files.java:1851) [XNIO-1 task-4/WARN]: at net.pl3x.map.core.httpd.HttpdServer.lambda$startServer$0(HttpdServer.java:59) [XNIO-1 task-4/WARN]: at libs.io.undertow.server.handlers.resource.PathResourceManager.getFileResource(PathResourceManager.java:416) [XNIO-1 task-4/WARN]: at libs.io.undertow.server.handlers.resource.PathResourceManager.getResource(PathResourceManager.java:240) [XNIO-1 task-4/WARN]: at libs.io.undertow.server.handlers.resource.DefaultResourceSupplier.getResource(DefaultResourceSupplier.java:39) [XNIO-1 task-4/WARN]: at libs.io.undertow.server.handlers.resource.ResourceHandler$1.handleRequest(ResourceHandler.java:205) [XNIO-1 task-4/WARN]: at libs.io.undertow.server.Connectors.executeRootHandler(Connectors.java:393) [XNIO-1 task-4/WARN]: at libs.io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:859) [XNIO-1 task-4/WARN]: at libs.org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18) [XNIO-1 task-4/WARN]: at libs.org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513) [XNIO-1 task-4/WARN]: at libs.org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538) [XNIO-1 task-4/WARN]: at libs.org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1282) [XNIO-1 task-4/WARN]: at java.base/java.lang.Thread.run(Thread.java:833)

BillyGalbreath commented 1 year ago

Can you provide the actual log output and your config file?

Hundr commented 1 year ago

This is from a restart latest.log

BillyGalbreath commented 1 year ago

That log doesn't show what you are reporting, but it does show a different bug that I've just fixed in build 450.

Hundr commented 1 year ago

config_copy.txt

Hundr commented 1 year ago

2023-06-21-1.log

Hundr commented 1 year ago

2023-06-20-1.log

BillyGalbreath commented 1 year ago

Give build 450 a try

Hundr commented 1 year ago

Hope those help better

Hundr commented 1 year ago

Give build 450 a try

I do not see that build on modrinth yet

Hundr commented 1 year ago

and got this error on stopping the server latest - Copy.log

Hundr commented 1 year ago

450 seems to have fixed the WARN file error. Thank you.

BillyGalbreath commented 1 year ago

Ok, the last error is with Pl3xMap-Signs. I went ahead and tested all the addons to make sure they work with Spigot. I fixed both the Signs and Banners addons, so update the ones you use to get rid of those last errors

Hundr commented 1 year ago

Awesome! Thank you for your help, its very much appreciated.