webbukkit / dynmap

A set of Minecraft mods that provide a real time web-based map system for various Minecraft server implementations.
https://www.reddit.com/r/Dynmap/
Apache License 2.0
2.05k stars 419 forks source link

Dynmap Standalone Black Screen Issue #4138

Open LightNabz opened 1 month ago

LightNabz commented 1 month ago

Hello everyone,

I’m having trouble getting Dynmap to work with Apache on my Minecraft server. I’ve been struggling with a black screen issue when trying to serve the Dynmap web interface through Apache. I’ve tried various troubleshooting steps, but I’m still stuck.

Here’s what I’ve done so far:

  1. Setup:

    • Dynmap Location: /home/user/server/plugins/dynmap/web
    • Apache Configuration File: /etc/apache2/sites-available/dynmap.conf
    • Apache Listening Port: 8081
  2. Apache Configuration: My Apache configuration looks like this:

apache
   <VirtualHost *:8081>
       ServerAdmin webmaster@localhost
       DocumentRoot /home/user/server/plugins/dynmap/web

       <Directory /home/user/server/plugins/dynmap/web>
           Options Indexes FollowSymLinks
           AllowOverride All
           Require all granted
       </Directory>

       ErrorLog ${APACHE_LOG_DIR}/dynmap_error.log
       CustomLog ${APACHE_LOG_DIR}/dynmap_access.log combined
   </VirtualHost>
  1. Troubleshooting Steps Taken:

    • Checked file permissions (ruled out as the cause).
    • Verified Apache and Dynmap configuration files for correctness.
    • Restarted Apache after making changes.
    • Verified the setup with a simple index.html file, which loads correctly.
    • Reviewed Apache error logs (/var/log/apache2/dynmap_error.log).
  2. Current Issue: When I navigate to http://localhost:8081, I get a black screen with no content. The Dynmap web interface doesn’t load, and there are no visible errors in the browser console or Apache logs. image_2024-07-27_132021386

Any help or insights would be greatly appreciated. Thank you in advance!

ProffFate commented 1 month ago

try uncomment this line in config #dbfile: dynmap.db