#Pterodactyl

1 messages · Page 1 of 1 (latest)

iron cedar
#

Hello,

Sorry to bother you but I'm new with all of this. Do you know where I could find the steps to make this bot work on pterodactyl ?

Thank you very much

pastel foxBOT
iron cedar
#

I guess I should create 2 nodes for 2 different servers (Music Bot and Dashboard) but I'm a bit confused about the ports I need to assign to those nodes.

clear nexus
#

i think you need 3 containers if you also self-hosting lavalink server

#

for dashboard is a bit difficult in Pterodactyl because Pterodactyl is not designed for website hosting

iron cedar
#

Thank you! You're right, I need 3 nodes. Where can I find the ports I need to assign to those 3 nodes though?

Why is it difficult for the dashboard ? Because you have to use nginx to redirect https to the website container or for a different reason ?

clear nexus
clear nexus
elder viper
#

and random ports

elder viper
clear nexus
iron cedar
elder viper
elder viper
#

ip alias public node ip

#

ports what port u need

#

u can do

#

4000-4999

iron cedar
#

Oh I see, nice

elder viper
#

u can use 2 node for proxy traffic

#

129.124.30.7:4000 -> 202.74.23.5:80 or 443

iron cedar
clear nexus
elder viper
#

with cloudflared

#

register

#

and back

elder viper
clear nexus
#

If your dashboard and bot are on the same node, I recommend using the local IP address 127.0.0.1 for the bot container.

clear nexus
#

yes, but you can allow it in firewall

elder viper
clear nexus
elder viper
iron cedar
clear nexus
#

yes and you will able to access another container with 172.18.0.1:<PORT>

elder viper
#

after that you need to create a tunnel

elder viper
#

if everything went well

#

then your car should appear here

#

I think it's clear here

#

url: u can use public ip, and local with ports

iron cedar
#

Thank you very much, I'll try it later, time to sleep a bit

iron cedar
# clear nexus yes and you will able to access another container with `172.18.0.1:<PORT>`

Thank you, I managed to have the Lavalink and the Vocard bot working. However now I'm struggling to have the web app working on Pterodactyl. The Vocard server uses 127.0.0.1:4000 on pterodactyl and I put 0.0.0.0:30127 for the Web server. I also did ufw allow in on pterodactyl0 to 172.18.0.1 port 30127 proto tcp for both UDP and TCP. When I go on mydomain.com:30127 I have this error {"client_id": ["Value \"None\" is not snowflake."]}

#

On the terminal I have this

clear nexus
iron cedar
clear nexus
#

To connect ipc_server from dashboard you should edit the IPCClient in webapp.py

clear nexus
#

Yes but you should pass the value into the IPCClient instead of changing the code in the class

iron cedar
clear nexus
#

Yea you should do in this way

ipc_client = IPCClient(host="172.18.0.1", port=8000, secret_key=app.secret_key, callback=message_handler)

#

socketio.run is for the web application not for the connected the ipc server

iron cedar
#

So I should use 8000 for the port ?

#

To replace my 30127 ?

clear nexus
#

Yes replaced it with your ipc server port

iron cedar
#

I'll try that. Also I still have this error on the Vocard script

clear nexus
#

Is your dashboard also using port 30127?

iron cedar
#

You mean the web dashboard or pterodactyl ?

clear nexus
#

Vocard dashboard

iron cedar
#

Yes I use this adress for my server 0.0.0.0:30127

clear nexus
#

Yes you are not allowed to do this

iron cedar
#

Oh

#

I'll start again from scratch I think

#

When I create my pterodactyl server, which adress should I choose ?

#

My Vocard server is running 127.0.0.1:4000

clear nexus
#

You can select any port that is not used

iron cedar
#

With 0.0.0.0?

clear nexus
#

Vocard server means the bot or dashboard?

iron cedar
#

The bot

#

I'm creating again the server for the dashboard

#

wondering what I should use as server IP

#

as you said I'm not allowed to use 0.0.0.0:30127 for the dashboard server

clear nexus
#

127.0.0.1

iron cedar
#

Is there an easy port I can use like 5000 or 8000?

clear nexus
iron cedar
#

I see

clear nexus
iron cedar
#

Okay I'll stay with 30127 then

clear nexus
#

Yea then you have to change the port in the dashboard

#

Because you can't use the same port on different server

iron cedar
#

Okay so I have the dashboard server running in 127.0.0.1:30127. In webapp.py I should modify ipc_client = IPCClient(host="172.18.0.1", port=30127, secret_key=app.secret_key, callback=message_handler)```` , socketio.run(app, host="127.0.0.1", port=5000) to socketio.run(app, host="127.0.0.1", port=30127, ```REDIRECT_URI = 'http://127.0.0.1:5000/callback' to REDIRECT_URI = 'http://mydomain.com:30127/callback'```. And in settings.json there is only ``` "ipc_server": { "host": "172.18.0.1", "port": 30127, "enable": true }, to change right ?

clear nexus
#

Otherwise you won't able to access the page from another pc

iron cedar
clear nexus
#

If it is set to 127.0.0.1, the dashboard can only be accessed on the same computer as the hosting server

iron cedar
#

I see, so I now have this IP for my dashboard server. So I should changesocketio.run(app, host="127.0.0.1", port=5000) to socketio.run(app, host="0.0.0.0", port=30127 right ?

clear nexus
#

Yea

#

But you should use another port

iron cedar
#

Oh, if I use 30127 for the server in Pterodactyl, I should use 30128 for the dashboard for example ?

clear nexus
#

Yea

iron cedar
#

I see

#

In settings.json, I think I put this wrongly btw, I have this error

clear nexus
#

Have you restarted the dashboard?

iron cedar
#

Not yet, I'm changing to 30128 in all config files, I'll tell you

clear nexus
iron cedar
iron cedar
#

I'll try that

iron cedar
elder viper
#

docker can bind 172

iron cedar
elder viper
#

u need go to web/ipc

#

and change all 172 to 0.0.0.0 and port 30128

#

no bro

#

screen

iron cedar
#

you mean this ?

elder viper
#

u need dublicate your bot

#

full archive

#

and paste in web

elder viper
iron cedar
elder viper
iron cedar
#

In the dashboard docker server or the bot server ?

#

as I have 3 servers (Lavalink, Bot and Dashboard)

elder viper
#

u need copy all bot to dashboard

#

and change in startup web/webapp.py

iron cedar
#

Okay i'll try that

elder viper
#

all files who have connect to ipc

iron cedar
#

So I extract all the bot content here right ? It will also contain Web folder and I'm already in Web folder

elder viper
#

unpack arc

#

go to startup

#

and change python file

#

to web/wepapp.py

#

and change all ips:ports in /ipc

iron cedar
#

Okay so I delete all content of my dashboard server, and extract the bot arc in thr root folder right ?

iron cedar
elder viper
#

no 127

#

only 0.0.0.0

iron cedar
#

I've got the same errors with 0.0.0.0 :/

elder viper
#

ipc server?

#

in bot

iron cedar
#

yeah both

elder viper
#

send bot console

#

and setting ipcserver

iron cedar
elder viper
#

hm

#

this works for me

#

u can change ipc connect in web local to public

#

Choco do not recommend using it, but you can try

iron cedar
#

in wich file is ipc connect ?

iron cedar
#

I don't find anything named ipc connect or local in those files

elder viper
#

bro

#

this is ip:port

iron cedar
#

I'm not sure what should I change to public here?

elder viper
#

yes

iron cedar
#

Like that? Seems weird to me

elder viper
#

no

#

to text public

#

public ip node

iron cedar
#

So I need to find a public ipc server ?

#

I don't get it

#

I'm new with all this sorry :/

#

Oh I should put my vps ip?

elder viper
iron cedar
#

I still have the same result

elder viper
#

hm idk how help u

#

I said everything that helped me

iron cedar
#

Yeah thank you a lot bro, I guess no dashboard for me x)

#

Could it be due to the ports in pterodactyl ? Like I have one server running on port 4000 wich is the bot, and one server running in 30127 and 30128 for the dashboard

iron cedar
#

This is for the bot

#

And this is for the dashboard

elder viper
#

bro

#

ipc server in bot

#

have port 30128?

iron cedar
#

yes

elder viper
#

and network not have

#

remove frob dash 30128

#

and add to bot

iron cedar
#

I thought the server was hosted on the dashboard

elder viper
#

network port

iron cedar
#

I'll try that ty

#

Now I can't access to the dashboard anymore

elder viper
#

your bot displays the ipc server at 30128

#

and the panel is trying to connect to a non-existent ipc

#

Now everything should work locally

iron cedar
#

When I go to those ips, there is nothing

#

previously there was the dashboard

elder viper
#

can u give me acces

#

to panel

#

i setup

#

in pm

iron cedar
#

Sure

elder viper
#

solved

iron cedar
#

Thank you so much guys for your patience and your help @clear nexus @elder viper love

#

Do you know if there is a way to make the panel https easily ? If not don't bother

elder viper
#

Choco will answer when she is free

#

@clear nexus help this Samoritan

iron cedar
#

No rush don't worry if she is busy, you both already helped me so much imhere

clear nexus
iron cedar
clear nexus
#

yea if you are not familiar with nginx then you should go for cloudflare