Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple servers setup failing with Pl3xmap and Dynmap, working with squaremap and Overviewer #634

Open
Roan-V opened this issue Oct 8, 2023 · 1 comment

Comments

@Roan-V
Copy link

Roan-V commented Oct 8, 2023

In the progress of setting up a Multiple Servers instance, followed the instructions at https://github.com/JLyne/LiveAtlas/wiki/Configuring-Multiple-Servers

Have a Pl3xmap, squaremap, Overviewer and Dynmap server that I'm trying to also show on a LiveAtlas instance.
I run a Caddy webserver that hosts all files for the individual maps and the LiveAtlas instance, all of the individual maps are publicly accessible (through https)

Got it mostly set up, LiveAtlas is accessible and server switching works, squaremap and Overviewer are accessible without issues.
But am currently stuck on specifically Pl3xmap and Dynmap having issues.

Pl3xmap throws a Failed to load server configuration for 'Pl3xMap' No current world error.
and Dynmap a Failed to load server configuration for 'Dynmap' Error: Request returned invalid json error
Skimming through the browser console it looks like Pl3xmap is also failing on loading its json files.

I'm thinking there is something misconfigured in my webserver forwarding specifically those files, the gz encoding by Pl3xmap for example?
Grasping at straws here, and I made it harder for myself by using Caddy which is not included in the example on the wiki :P

LiveAtlas url: https://map.roanv.nl/LiveAtlas
Individual maps are accessible through this page: https://map.roanv.nl/

The multiserver part of the LiveAtlas index.html:
            servers: {
                Pl3xMap: {
                    label: 'Pl3xMap',
                    pl3xmap: 'https://map.roanv.nl/pl3xmap/'
                },
                squaremap: {
                    label: 'squaremap',
                    squaremap: 'https://map.roanv.nl/squaremap/'
                },
                Overviewer: {
                    label: 'Overviewer',
                    overviewer: 'https://map.roanv.nl/overviewer/'
                },
                Dynmap: {
                    label: 'Dynmap',
                    dynmap: {
                        configuration: 'https://map.roanv.nl/dynmap/standalone/MySQL_configuration.php',
                        update: 'https://map.roanv.nl/dynmap/standalone/MySQL_update.php?world={world}&ts={timestamp}',
                        sendmessage: 'https://map.roanv.nl/dynmap/standalone/MySQL_sendmessage.php',
                        login: 'https://map.roanv.nl/dynmap/standalone/MySQL_login.php',
                        register: 'https://map.roanv.nl/dynmap/standalone/MySQL_register.php',
                        tiles: 'https://map.roanv.nl/dynmap/standalone/MySQL_tiles.php?tile=',
                        markers: 'https://map.roanv.nl/dynmap/standalone/MySQL_markers.php?marker='
                    }
                }
            },
Caddyfile part pertaining to LiveAtlas:
    handle_path /LiveAtlas/* {
        root * /mnt/data/LiveAtlas/
        try_files {uri} /index.html
        file_server
    }
@Roan-V
Copy link
Author

Roan-V commented Nov 14, 2023

I tried running Pl3xmap with a normal LiveAtlas gui today (non multiple servers)

Apparently Pl3xmap V2 just doesn't work at all with LiveAtlas currently, so that explains the Failed to load server configuration for 'pl3xmap' No current world error for Pl3xmap.
Question for Dynmap still stands though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant