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.06k stars 421 forks source link

Unable to Connect #2677

Closed perschip closed 4 years ago

perschip commented 4 years ago

Ok so I installed dynmap on one of my servers. I have a dedicated machine. The console states that the webserver was started on address 0.0.0.0:8123 but when I go to http://:8123 I get Unable to Connect page. The port 8123 is open on my machine as well.

Thank you in advance

Tsoccerguy3 commented 4 years ago

you need to edit the IP and port you are using in the config , search for lines and change

perschip commented 4 years ago

you need to edit the IP and port you are using in the config , search for lines and change

The IP i have set to 0.0.0.0 for all networks and the port I have changed. Still unable to access the map

fihovi commented 4 years ago

you need to edit the IP and port you are using in the config , search for lines and change

The IP i have set to 0.0.0.0 for all networks and the port I have changed. Still unable to access the map

How are you accessing the map?

perschip commented 4 years ago

How are you acessing the map?

you need to edit the IP and port you are using in the config , search for lines and change

The IP i have set to 0.0.0.0 for all networks and the port I have changed. Still unable to access the map

How are you accessing the map?

Through my machine's IP address and the port that I have specified in the config

fihovi commented 4 years ago

Could you post log? To be sure your webserver started

perschip commented 4 years ago

[20:56:49 INFO]: [dynmap] Enabling dynmap v3.0-beta-5-218* [20:56:49 WARN]: Enabled plugin with unregistered PluginClassLoader dynmap v3.0-beta-5-218 [20:56:49 INFO]: [dynmap] Starting Scheduled Write Job (markerAPI). [20:56:49 INFO]: [dynmap] Using Bukkit Permissions (superperms) for access control [20:56:49 INFO]: [dynmap] Web interface permissions only available for online users [20:56:49 INFO]: [dynmap] Mod Support processing completed [20:56:50 INFO]: [dynmap] Loaded 25 shaders. [20:56:50 INFO]: [dynmap] Loaded 82 perspectives. [20:56:50 INFO]: [dynmap] Loaded 14 lightings. [20:56:50 INFO]: [dynmap] Web server started on address 0.0.0.0:25600 [20:56:50 INFO]: [dynmap] version 3.0-beta-5-218 is enabled - core version 3.0-beta-5-218 [20:56:50 INFO]: [dynmap] For support, visit https://forums.dynmap.us [20:56:50 INFO]: [dynmap] To report or track bugs, visit https://github.com/webbukkit/dynmap/issues [20:56:50 INFO]: [dynmap] Loaded 3 maps of world 'world'. [20:56:50 INFO]: [dynmap] Loaded 2 maps of world 'world_nether'. [20:56:50 INFO]: [dynmap] Loaded 2 maps of world 'world_the_end'. [20:56:50 INFO]: [dynmap] Enabled

fihovi commented 4 years ago

I guess you set up other port and not testing port 8123, right?

Web server started on address 0.0.0.0:25600

fihovi commented 4 years ago

Did you try to connect from dedicated machine? so http://localhost:25600

fihovi commented 4 years ago

If you can't connect from dedicated machine, be sure about open firewall/iptables port. Depends on OS & distro

perschip commented 4 years ago

Did you try to connect from dedicated machine? so http://localhost:25600

You can't connect to localhost from a remote pc to a server. The firewall and Iptables ports are open

fihovi commented 4 years ago

If you connect to remote pc via remote desktop/VNC, then head into web browser on localhost... Unless you got linux machine without desktop environment.

Try adding iptables/firewall rule to be sure..

Could you try running it on your computer? Can you access the map? Maybe you got something wrong in dynmap configuration file.

perschip commented 4 years ago

I'm trying to do it on a standalone server on my machine now. When ever I start dynmap I get this in console [19:25:46 INFO]: [dynmap] Enabling dynmap v3.0-beta-5-218* [19:25:49 INFO]: [dynmap] Using Bukkit Permissions (superperms) for access control [19:25:49 INFO]: [dynmap] Web interface permissions only available for online users [19:25:50 WARN]: [dynmap] Could not create directory for tiles ('/var/www/html/tiles'). [19:25:56 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/heart.png - unable to write - failed [19:26:00 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/minecart.png - unable to write - failed [19:26:08 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/camera.png - unable to write - failed [19:26:11 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/gear.png - unable to write - failed [19:26:15 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/factory.png - unable to write - failed [19:26:18 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/flower.png - unable to write - failed [19:26:21 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/right.png - unable to write - failed [19:26:24 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/diamond.png - unable to write - failed [19:26:27 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/sun.png - unable to write - failed [19:26:30 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/cutlery.png - unable to write - failed [19:26:34 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/key.png - unable to write - failed [19:26:37 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/compass.png - unable to write - failed [19:26:40 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/redflag.png - unable to write - failed [19:26:43 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/cake.png - unable to write - failed [19:26:46 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/church.png - unable to write - failed [19:26:49 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/pinkflag.png - unable to write - failed [19:26:52 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/bighouse.png - unable to write - failed [19:26:56 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/goldstar.png - unable to write - failed [19:26:59 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/shield.png - unable to write - failed [19:27:02 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/beer.png - unable to write - failed [19:27:05 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/truck.png - unable to write - failed [19:27:08 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/silvermedal.png - unable to write - failed [19:27:11 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/left.png - unable to write - failed [19:27:15 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/tree.png - unable to write - failed [19:27:18 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/drink.png - unable to write - failed [19:27:21 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/pirateflag.png - unable to write - failed [19:27:24 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/lighthouse.png - unable to write - failed [19:27:27 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/tower.png - unable to write - failed [19:27:30 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/house.png - unable to write - failed [19:27:33 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/bookshelf.png - unable to write - failed [19:27:37 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/pointright.png - unable to write - failed [19:27:40 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/skull.png - unable to write - failed [19:27:43 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/temple.png - unable to write - failed [19:27:46 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/purpleflag.png - unable to write - failed [19:27:49 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/comment.png - unable to write - failed [19:27:52 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/wrench.png - unable to write - failed [19:27:56 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/lock.png - unable to write - failed [19:27:59 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/dog.png - unable to write - failed [19:28:02 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/basket.png - unable to write - failed [19:28:05 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/construction.png - unable to write - failed [19:28:08 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/cross.png - unable to write - failed [19:28:11 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/king.png - unable to write - failed [19:28:14 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/world.png - unable to write - failed [19:28:18 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/cart.png - unable to write - failed [19:28:21 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/tornado.png - unable to write - failed [19:28:24 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/walk.png - unable to write - failed [19:28:27 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/fire.png - unable to write - failed [19:28:30 INFO]: [dynmap] Image file /var/www/html/tiles/_markers_/queen.png - unable to write - failed

Permission are set correctly. IDK if me using pterdactyl panel has anything to with in on ubunut 18.04

fihovi commented 4 years ago

Did you set permissions right?

"chown -R user:user www/" - own all files and folders "chmod -R 755 www/ give permissions to owner and others to read

or run server as root

perschip commented 4 years ago

If you connect to remote pc via remote desktop/VNC, then head into web browser on localhost... Unless you got linux machine without desktop environment.

Try adding iptables/firewall rule to be sure..

Could you try running it on your computer? Can you access the map? Maybe you got something wrong in dynmap configuration file.

When I try to access the LocalHost:port through the desktop environment it's still unable to connect

mikeprimm commented 4 years ago

99% likely to be a firewall setup issue on your server, and opening up the port in the firewall is outside the scope of the application (it depends on your OS, specific firewall software, and/or possibly your hosting and network firewall and routing). The simple answer is 'you need to do the same think that it took to get your Minecraft server port to be accessible' - if that was done by someone else (e.g. your hosting company), then the answer is likely that you need to engage them to do it. Otherwise, if you did it yourself, just follow the same procedures for the port number you selected for Dynmap - TCP/IP port are TCP/IP ports: nothing distinctive about the port of an MC server or a web server (whether dynmap's internal one or an external one)

perschip commented 4 years ago

99% likely to be a firewall setup issue on your server, and opening up the port in the firewall is outside the scope of the application (it depends on your OS, specific firewall software, and/or possibly your hosting and network firewall and routing). The simple answer is 'you need to do the same think that it took to get your Minecraft server port to be accessible' - if that was done by someone else (e.g. your hosting company), then the answer is likely that you need to engage them to do it. Otherwise, if you did it yourself, just follow the same procedures for the port number you selected for Dynmap - TCP/IP port are TCP/IP ports: nothing distinctive about the port of an MC server or a web server (whether dynmap's internal one or an external one)

The ports are open. I opened them when I installed my machine.

mikeprimm commented 4 years ago

Well, as soon as Dynmap reported that it was bound to that port, it stopped being part of the problem: everything about being able to access or not access that port is external to the app. That's basically the bottom line - and everything about the rest of it is particular to your OS, firewall software, NAT gateway, hosting, routing, DNS, etc. If you swap the port you are using for your MC server with the port that you are using for Dynmap, can you still get to your MC server (just using hostname:the-formerly-dynmap-port as the server) from the same client as you are trying to browse? If you cannot, then you've got something different between your network setup for that port vs the other port, and they ultimately have the same requirements in order to be accessed.