So I did a bunch of things:
-i updated to 1.20.5/6 (Spigot) from 1.20.1 (Spigot)
-i moved minecraft server and world into a subdirectory (from /minecraft/ to /minecraft/aerium/) along with it's own /plugins/ folder
-i downloaded the lasted dynmap jar and put it in the new location (/minecraft/aerium/plugins)
-i COPIED the /minecraft/plugins/dynmap/ folder to /minecraft/aerium/plugins/dynmap/
-i am now running minecraft server in a docker container (it's running/healthy)
-i also happened to migrate mysql to mariadb
-i think that is the extent of the changes
#Dynmap not working (with a mess of possible reasons)
1 messages · Page 1 of 1 (latest)
Before we get started, please tell us a bit about your server setup:
when i launch minecraft from the docker container i get the following errors related to dynmap:
[15:37:52] [Server thread/INFO]: [dynmap] Enabling dynmap v3.7-beta-5-943
[15:37:52] [Server thread/INFO]: [dynmap] Added 20 custom biome mappings
[15:37:52] [Server thread/INFO]: [dynmap] Using Bukkit Permissions (superperms) for access control
[15:37:52] [Server thread/INFO]: [dynmap] Web interface permissions only available for online users
[15:37:52] [Server thread/WARN]: [dynmap] Could not create directory for tiles ('/srv/internum/www/minecraft.locutus.site/html/dynmap/tiles').
[15:37:52] [Server thread/INFO]: [dynmap] Opening MySQL database localhost:3306/DynmapDatabase as map store
[15:37:52] [Server thread/INFO]: [dynmap] Initializing database schema
[15:37:52] [Server thread/ERROR]: [dynmap] SQLException: Error creating tables
[15:37:52] [Server thread/ERROR]: [dynmap] ErrorCode: 0, SQLState=08S01
[15:37:52] [Server thread/ERROR]: [dynmap] Message: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
[15:37:52] [Server thread/ERROR]: [dynmap] ConnectionString: jdbc:mysql://localhost:3306/DynmapDatabase?allowReconnect=true
[15:37:52] [Server thread/ERROR]: [dynmap] CausedBy: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
[15:37:52] [Server thread/ERROR]: [dynmap] CausedBy: Connection refused
[15:37:52] [Server thread/ERROR]: [dynmap] Map storage initialization failure
[15:37:52] [Server thread/INFO]: [dynmap] Unloaded 0 components.
[15:37:52] [Server thread/INFO]: [dynmap] Disabled
Also when i view minecraft.locutus.site in the browser, dynmap appears to be running just fine but appears to be running the OLD dynamp (at /minecraft/ location, rather than the new location /minecraft/aerium/ as evidenced by it still showing all the worlds that i have included the /minecraft/ folder which are NOT included in the /minecraft/aerium/ folder (only one world got copied to the new location).
Possible reasons I am thinking:
- the old dynmap is indeed still 'running' and preventing the new one from working and i dont know how to shut the old one off! (it seems to run independently of the minecraft server)
-the docker container isn't properly configured to access the database (docker and mysql are running on the same machine. i tried adding port 3306 to the container but it gives an error "port in use", i tried adding privilege to dynmapuser in mysql and specifying the docker container's ip 172.17.0.6 rather than simply localhost)
i hope that the solution is easy to spot for someone here, i apologize for all the confounding factors.
Thank you! Please provide any errors you are experiencing and upload your configuration.txt. Someone from our <@&801354402010628138> team will respond to help shortly. As a general reminder, everyone on our support team is a volunteer, please be kind!
Configuration.txt link: https://pastebin.com/Umwx7dz1
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
dynmap does not start because it cannot connect to the mysql server on localhost:3306
How do i fix this?
I tried changing hostname to 192.168.1.24 in the configuration.txt
and then i get:
[16:46:43] [Server thread/ERROR]: [dynmap] Message: null, message from server: "Host '172.17.0.2' is not allowed to connect to this MariaDB server"
so i tried adding this line to mariadb:
MariaDB [(none)]> GRANT ALL PRIVILEGES ON DynmapDatabase.* TO 'dynmapwebserver'@'172.17.0.*' IDENTIFIED BY '[password removed]';
the 'no allowed' error persists, though.
i may be making progress. I added the following:
MariaDB [(none)]> GRANT ALL PRIVILEGES ON DynmapDatabase.* TO 'dynmapwebserver'@'172.17.0.2' IDENTIFIED BY '[password removed]';
specified '2' instead of ''
now i get these errors:
[16:57:06] [Server thread/INFO]: [dynmap] Added 20 custom biome mappings
[16:57:06] [Server thread/INFO]: [dynmap] Using Bukkit Permissions (superperms) for access control
[16:57:06] [Server thread/INFO]: [dynmap] Web interface permissions only available for online users
[16:57:06] [Server thread/WARN]: [dynmap] Could not create directory for tiles ('/srv/internum/www/minecraft.locutus.site/html/dynmap/tiles').
[16:57:06] [Server thread/INFO]: [dynmap] Opening MySQL database 192.168.1.24:3306/DynmapDatabase as map store
[16:57:06] [Server thread/INFO]: [dynmap] Connected to MySQL v5.5
[16:57:06] [Server thread/INFO]: [dynmap] Schema version = 6
[16:57:06] [Server thread/ERROR]: [dynmap] Error writing MySQL_config.php
java.io.FileNotFoundException: /srv/internum/www/minecraft.locutus.site/html/dynmap/standalone/MySQL_config.php (No such file or directory)
....
at java.base/java.io.FileOutputStream.open0(Native Method) ~[?:?]
at java.base/java.io.FileOutputStream.open(Unknown Source) ~[?:?]
at java.base/java.io.FileOutputStream.<init>(Unknown Source) ~[?:?]
at java.base/java.io.FileOutputStream.<init>(Unknown Source) ~[?:?]
at java.base/java.io.FileWriter.<init>(Unknown Source) ~[?:?]
at org.dynmap.storage.mysql.MySQLMapStorage.writeConfigPHP(MySQLMapStorage.java:350) ~[?:?]
at org.dynmap.storage.mysql.MySQLMapStorage.init(MySQLMapStorage.java:326) ~[?:?]
at org.dynmap.DynmapCore.initConfiguration(DynmapCore.java:467) ~[?:?]
at org.dynmap.bukkit.DynmapPlugin.onEnable(DynmapPlugin.java:985) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:266) ~[spigot-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:342) ~[spigot-api-1.20.6-R0.1-SNAPSHOT.jar:?] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:491) ~[spigot-api-1.20.6-R0.1-SNAPSHOT.jar:?]
at org.bukkit.craftbukkit.v1_20_R4.CraftServer.enablePlugin(CraftServer.java:541) ~[spigot-1.20.6-R0.1-SNAPSHOT.jar:4149-Spigot-e2c1eee-4e7d749]
at org.bukkit.craftbukkit.v1_20_R4.CraftServer.enablePlugins(CraftServer.java:455) ~[spigot-1.20.6-R0.1-SNAPSHOT.jar:4149-Spigot-e2c1eee-4e7d749]
at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:634) ~[spigot-1.20.6-R0.1-SNAPSHOT.jar:4149-Spigot-e2c1eee-4e7d749]
at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:419) ~[spigot-1.20.6-R0.1-SNAPSHOT.jar:4149-Spigot-e2c1eee-4e7d749]
at net.minecraft.server.dedicated.DedicatedServer.e(DedicatedServer.java:265) ~[spigot-1.20.6-R0.1-SNAPSHOT.jar:4149-Spigot-e2c1eee-4e7d749]
at net.minecraft.server.MinecraftServer.y(MinecraftServer.java:1010) ~[spigot-1.20.6-R0.1-SNAPSHOT.jar:4149-Spigot-e2c1eee-4e7d749]
....
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:311) ~[spigot-1.20.6-R0.1-SNAPSHOT.jar:4149-Spigot-e2c1eee-4e7d749]
at java.base/java.lang.Thread.run(Unknown Source) [?:?]
[16:57:06] [Server thread/ERROR]: [dynmap] Map storage initialization failure
[16:57:06] [Server thread/INFO]: [dynmap] Unloaded 0 components.
[16:57:06] [Server thread/INFO]: [dynmap] Disabled
note:
/srv/internum/www/minecraft.locutus.site/html/dynmap/standalone$ ls
config.js MySQL_access.php MySQL_getlogin.php MySQL_sendmessage.php PostgreSQL_configuration.php PostgreSQL_markers.php register.php tiles.php
configuration.php MySQL_config.php MySQL_login.php MySQL_tiles.php PostgreSQL_funcs.php PostgreSQL_sendmessage.php sendmessage.php update.php
login.php MySQL_configuration.php MySQL_markers.php MySQL_update.php PostgreSQL_getlogin.php PostgreSQL_tiles.php SQLite_markers.php
markers.php MySQL_funcs.php MySQL_register.php PostgreSQL_access.php PostgreSQL_login.php PostgreSQL_update.php SQLite_tiles.php
now dynmap has no write permissions to that folder
This support thread has been archived due to inactivity. Click the button below to reopen it.
This support thread has been archived due to inactivity. Click the button below to reopen it.
This support thread has been archived due to inactivity. Click the button below to reopen it.