shobhit-pathak / cs2-rcon-panel

A simple web panel to control CS2 servers using RCON
MIT License
51 stars 18 forks source link

Error with Pterodactyl #11

Open kessel-itde opened 1 year ago

kessel-itde commented 1 year ago

Good evening,

I tried to install the script with Pterodactyl. Installation and login work without problems, but the created container can not connect to the game server:

All servers in DB: [ { id: 1, serverIP: '193.142.41.162', serverPort: 26505, rconPassword: 'hidden' } ] CONNECTING RCON 1 193.142.41.162 26505 RCON Authentication failed 1 Error: connect ECONNREFUSED 193.142.41.162:26505 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '193.142.41.162', port: 26505 } Connection issue detected, reconnecting to the server: 1 starting disconnect 1 CONNECTING RCON 1 193.142.41.162 26505 RCON Authentication failed 1 Error: connect ECONNREFUSED 193.142.41.162:26505 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '193.142.41.162', port: 26505 } Unable to establish connection to the server id: 1, cannot execute command: hostname TypeError: Cannot read properties of undefined (reading 'trim') at /home/container/routes/server.js:83:65 at processTicksAndRejections (node:internal/process/task_queues:95:5)

But the game server is online and the rcon_password works. Someone got an idea?

shobhit-pathak commented 1 year ago

Since we are getting the error 'ECONNREFUSED', are you sure that your game server is reachable from the panel server? If you are on the same network, you can also try using internal IP address

kessel-itde commented 1 year ago

the server is reachable, i can not figure out the error. do you have discord?

shobhit-pathak commented 1 year ago

Hi, you can DM me on my discord: wdgodxd