A
Admincraft•6mo ago
Zuk

Bluemap on VPS pterodactyl panel, 2 paper servers with a velocity proxy

Hey I am trying to figure out the following: - Running bluemap only for one of the servers - Giving the map it's own address (without port) I am trying understand what is the correct setup (having all the server and proxy under the same node on pterodactyl) for bluemap to allow the port to run under it's own DNS record. Hopefully someone can guide me in the right direction, the docs are not referring this specific case and I am still learning 🙂
61 Replies
Admincraft Meta
Admincraft Meta•6mo ago
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by zuk8375#0
Torrent
Torrent•6mo ago
You need to reverse proxy it if you want to display it on a domain
Skullians
Skullians•6mo ago
^^
Zuk
ZukOP•6mo ago
Yes, but I seems to have issues evenly before that. I've set up the bluemap, it is running. I've allocate the port for it and updated rhe and config. But I cannot access the map from the public ip:port or the proxy dns-record:port
Torrent
Torrent•6mo ago
is your webserver enabled in webserver.conf?? when you reload bluemap/restart your server, the webserver should start. Something like "webserver started on port:<port you put in the config>" If it doesn't that means it's a misconfiguration of bluemap You also want to make sure that the port is open in pterodactyl as well as in your firewall
Zuk
ZukOP•6mo ago
These are the logs I am getting when starting the server
[20:22:13] [BlueMap-Plugin-Loading/INFO]: Loading BlueMap...
[20:22:13] [BlueMap-Plugin-Loading/INFO]: Loading resources...
[20:22:14] [BlueMap-Plugin-Loading/INFO]: Loading textures...
[20:22:15] [BlueMap-Plugin-Loading/INFO]: Baking resources...
[20:22:15] [BlueMap-Plugin-Loading/INFO]: Resources loaded.
[20:22:15] [BlueMap-Plugin-Loading/INFO]: Initializing Storage: 'file' (Type: 'bluemap:file')
[20:22:15] [BlueMap-Plugin-Loading/INFO]: Loading map 'world_the_end'...
[20:22:16] [BlueMap-Plugin-Loading/INFO]: Loading map 'world'...
[20:22:16] [BlueMap-Plugin-Loading/INFO]: Loading map 'world_the_nether'...
[20:22:16] [BlueMap-Plugin-Loading/INFO]: WebServer bound to all network interfaces on port 25568
[20:22:16] [Thread-6/INFO]: WebServer started.
[20:22:16] [BlueMap-Plugin-Loading/INFO]: BlueMap loaded!
[20:22:13] [BlueMap-Plugin-Loading/INFO]: Loading BlueMap...
[20:22:13] [BlueMap-Plugin-Loading/INFO]: Loading resources...
[20:22:14] [BlueMap-Plugin-Loading/INFO]: Loading textures...
[20:22:15] [BlueMap-Plugin-Loading/INFO]: Baking resources...
[20:22:15] [BlueMap-Plugin-Loading/INFO]: Resources loaded.
[20:22:15] [BlueMap-Plugin-Loading/INFO]: Initializing Storage: 'file' (Type: 'bluemap:file')
[20:22:15] [BlueMap-Plugin-Loading/INFO]: Loading map 'world_the_end'...
[20:22:16] [BlueMap-Plugin-Loading/INFO]: Loading map 'world'...
[20:22:16] [BlueMap-Plugin-Loading/INFO]: Loading map 'world_the_nether'...
[20:22:16] [BlueMap-Plugin-Loading/INFO]: WebServer bound to all network interfaces on port 25568
[20:22:16] [Thread-6/INFO]: WebServer started.
[20:22:16] [BlueMap-Plugin-Loading/INFO]: BlueMap loaded!
I have changed the config to the port I have allocated and on the firewall
Torrent
Torrent•6mo ago
Run netstat -tnlp | grep :25568
Zuk
ZukOP•6mo ago
It retruns nothing This the network map I have:
netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 13333/mariadbd
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 17259/nginx: master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 902/sshd: /usr/sbin
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/init
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 17259/nginx: master
tcp 0 0 172.18.0.1:25566 0.0.0.0:* LISTEN 60945/docker-proxy
tcp 0 0 172.18.0.1:25567 0.0.0.0:* LISTEN 29702/docker-proxy
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 11898/redis-server
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 794/systemd-resolve
tcp 0 0 10.0.0.18:25565 0.0.0.0:* LISTEN 60728/docker-proxy
tcp6 0 0 :::2022 :::* LISTEN 22129/wings
tcp6 0 0 :::22 :::* LISTEN 902/sshd: /usr/sbin
tcp6 0 0 :::111 :::* LISTEN 1/init
tcp6 0 0 :::8080 :::* LISTEN 22129/wings
tcp6 0 0 ::1:6379 :::* LISTEN 11898/redis-server
netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 13333/mariadbd
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 17259/nginx: master
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 902/sshd: /usr/sbin
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/init
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 17259/nginx: master
tcp 0 0 172.18.0.1:25566 0.0.0.0:* LISTEN 60945/docker-proxy
tcp 0 0 172.18.0.1:25567 0.0.0.0:* LISTEN 29702/docker-proxy
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 11898/redis-server
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 794/systemd-resolve
tcp 0 0 10.0.0.18:25565 0.0.0.0:* LISTEN 60728/docker-proxy
tcp6 0 0 :::2022 :::* LISTEN 22129/wings
tcp6 0 0 :::22 :::* LISTEN 902/sshd: /usr/sbin
tcp6 0 0 :::111 :::* LISTEN 1/init
tcp6 0 0 :::8080 :::* LISTEN 22129/wings
tcp6 0 0 ::1:6379 :::* LISTEN 11898/redis-server
Maybe that would give you a clue on what I did wrong?
Torrent
Torrent•6mo ago
Not really, this is a bluemap misconfig, I was just seeing if netstat showed the port was actually being used Run ufw status
Zuk
ZukOP•6mo ago
it's inactive This is the webserver.conf without comments:
enabled: true

webroot: "bluemap/web"

port: 25568

log: {
file: "bluemap/logs/webserver.log"
append: false
format: "%1$s \"%3$s %4$s %5$s\" %6$s %7$s"
}
enabled: true

webroot: "bluemap/web"

port: 25568

log: {
file: "bluemap/logs/webserver.log"
append: false
format: "%1$s \"%3$s %4$s %5$s\" %6$s %7$s"
}
Torrent
Torrent•6mo ago
this may be a silly question but is the port allocated to the server that bluemap is hosted on? in pterodactyl
Zuk
ZukOP•6mo ago
This is the current allocation. I have also tried to open 25568 for the public ip and priavte ip4v address, just in case I did not understand correctly (one at a time)
No description
Skullians
Skullians•6mo ago
You haven’t assigned port 25568 to any server?
Zuk
ZukOP•6mo ago
No, I have tried using that from the server on port 25566? is that the issue?
Skullians
Skullians•6mo ago
??? bluemap needs a port to use if bluemap is configured to use port 25568, you need to give that server port 25568 It cant use the same port as the Minecraft server is running on
Torrent
Torrent•6mo ago
^
Zuk
ZukOP•6mo ago
Sorry, I don't understand which server should be using this port
Torrent
Torrent•6mo ago
the server that hosts bluemap
Zuk
ZukOP•6mo ago
it's runs a webapp on from the same container as the mc server, right?
Skullians
Skullians•6mo ago
yes but it needs a port to run on so give whatever server that runs bluemap the 25568 port and configure bluemap to use 25568 in config
Zuk
ZukOP•6mo ago
How do I give the server the port of the bluemap?
Torrent
Torrent•6mo ago
click on the server in the admin panel -> allocations -> assign port, the click the port that you added to the node
Skullians
Skullians•6mo ago
^^ wait you can assign ports from ptero allocations?
Torrent
Torrent•6mo ago
yes, if you don't turn on auto allocations which I can't fucking figure out how to do LOL
Zuk
ZukOP•6mo ago
I do see the assign port on the page but I'll look around
Skullians
Skullians•6mo ago
oh
Zuk
ZukOP•6mo ago
What the purpose of auto allocation?
Torrent
Torrent•6mo ago
lets you add ports within the server, not in the admin panel
Skullians
Skullians•6mo ago
or just Admin Page -> Servers -> select the server running bluemap -> build configuration -> click on the ‘assign additional ports’ box, select the right port -> save
Zuk
ZukOP•6mo ago
I feel stupid
Torrent
Torrent•6mo ago
don't feel stupid, shit is complicated
Zuk
ZukOP•6mo ago
I mean, sure I have added a port for the internal ip, but why would it be related to the server
Skullians
Skullians•6mo ago
because In pterodactyl it needs access to the ports ptero runs in docker so docker has to have access to the ports if it isn’t given the port it’s not accessible Bluemap might say it is running on the port but you can’t access it
Zuk
ZukOP•6mo ago
ok now I can see the service with the port running in netstat Still can't accews it lol
Skullians
Skullians•6mo ago
how are you accessing it
Torrent
Torrent•6mo ago
try http://ip:port port being the port bluemap is running on, and ip being your server IP if it works, that means your webserver config is wrong (not in bluemap, the reverse proxy)
Skullians
Skullians•6mo ago
try set the 25568 allocation up address to 127.0.0.1 and ip alias 172.18.0.1
Zuk
ZukOP•6mo ago
I have not set it up yet, starting with getting bluemap to run first I'll try that
Skullians
Skullians•6mo ago
(You’ll have to unassign the existing allocation from your server first to delete it)
Torrent
Torrent•6mo ago
you mean 172?
Skullians
Skullians•6mo ago
nope
Torrent
Torrent•6mo ago
for the second one
Skullians
Skullians•6mo ago
oh yeah sorry good catch
Torrent
Torrent•6mo ago
I'm just using my public IP for the port but I'll probably reconfig everything to use ptero's passthrough IP idk what the purpose of it is for though
Skullians
Skullians•6mo ago
172.18.0.1 is the internal docker ip I think something like that
Torrent
Torrent•6mo ago
is it better to use the passthrough IP for allocated ports?
Zuk
ZukOP•6mo ago
This is the current allocation and network for the server
netstat -tnlp | grep :25568
tcp 0 0 172.18.0.1:25568 0.0.0.0:* LISTEN 70029/docker-proxy
netstat -tnlp | grep :25568
tcp 0 0 172.18.0.1:25568 0.0.0.0:* LISTEN 70029/docker-proxy
Any clue what I could be missing?
No description
No description
Skullians
Skullians•6mo ago
Set IP alias to 172.18.0.1 in allocation then you can try connect via http://port:ip if that doesn’t work, remake the allocation and make it like your network allocation (where it’s your private 10.0.0.xx address) Make sure you restart the server
Zuk
ZukOP•6mo ago
I get the current html from
curl http://172.18.0.1:25568
curl http://172.18.0.1:25568
if that's a sign for anything I'll try what you suggested
Skullians
Skullians•6mo ago
yeah well you’re running that on the same machine if you tried to run the same command externally it wouldn’t work You are connecting with the public IP right?
Zuk
ZukOP•6mo ago
no, I am using a domain but both does not work
Skullians
Skullians•6mo ago
send your current allocations (image)
Zuk
ZukOP•6mo ago
Haven't changed to the 172.18.0.1 alias yet
No description
Skullians
Skullians•6mo ago
set the ip address of that allocation to 10.0.0.18
Zuk
ZukOP•6mo ago
Heyyyy it working with that!
No description
Zuk
ZukOP•6mo ago
I appreciate the help so much!
Skullians
Skullians•6mo ago
sweet!
Zuk
ZukOP•6mo ago
I really do appreciate it! In the linux space there is a lot of gatekeeping and just telling you to go do some research
Skullians
Skullians•6mo ago
yeah, we’re always happy to help here though
Zuk
ZukOP•6mo ago
Tha't not obvious at all !solved
Admincraft Meta
Admincraft Meta•6mo ago
post closed!
The post/thread has been closed!
Requested by zuk8375#0

Did you find this page helpful?