glenndehaan / csgo-rcon-nodejs

A web panel to control a CS:GO server
MIT License
47 stars 8 forks source link

Live score isn't working #2

Open kyoto44 opened 5 years ago

kyoto44 commented 5 years ago

In web interface livescore doesn't works.

glenndehaan commented 5 years ago

Hi,

I need a little more information.

kyoto44 commented 5 years ago

I haven't updated the baseUrl in config.json Thanks a lot! One more question: is it possible to made live round panel like on hltv scoreboard for example: player1 killed player2 with ak47 player4 killed player3 with m4a1

glenndehaan commented 5 years ago

No problem!

In theorie it would be possible to get that data from SourceMod en then send it to the panel. But then the question remains how would that look like on the panel? If you need this I can have a look if itś possible to implement

imenergie commented 2 years ago

hello guys, i am new with this. Can help me to install csgo-rcon-nodejs? i have linux. thx

imenergie commented 2 years ago

Hello again, i install all and when i execut command for start like npm run dev the web it's working but can't connect to rcon.

ERROR [RCON INIT][192.168.100.3:27015] Failed to connect to rcon: Error: connect ECONNREFUSED 192.168.100.3:27015

glenndehaan commented 2 years ago

This means that the Panel can't connect to that address. Are the devices able to communicate to each other? For example does a simple ping work? Because this could be firewall related. And are these devices on the same network?

imenergie commented 2 years ago

i dont have firewall active on the linux and the web panel is installed where the cs go server is

imenergie commented 2 years ago

I tried with 127.0.0.1 or localhost, but the same error. yes these devices are in the same network

glenndehaan commented 2 years ago

If the csgo server is on the same machine as the panel then 127.0.0.1:27015 can be used. However if that already does not work then it means the csgo server maybe has rcon disabled. Are you running a dedicated csgo server of are you just launching a session from your csgo client?

glenndehaan commented 2 years ago

Have you tried setting up rcon first: https://shockbyte.com/billing/knowledgebase/355/How-to-enable-RCON-on-your-CSGO-Server.html ?

imenergie commented 2 years ago

i set the rcon_password in server.cfg also i set the rcon in console server but nothing.

imenergie commented 2 years ago

Unable to connect to remote server (192.168.100.3:27015): (9) retries left :(

glenndehaan commented 2 years ago

But thats a public ip. So now we are going 2 steps further. Because if it doesn't work locally then it will never work externally

glenndehaan commented 2 years ago

Can you try this: telnet 127.0.0.1 27015

imenergie commented 2 years ago

in ssh connection: telnet: Unable to connect to remote host: Connection refused

imenergie commented 2 years ago

i dont understand :/

glenndehaan commented 2 years ago

Yeah oke if that is not working then there is something wrong with your server. Because this should reply with the server name if the connection is working

imenergie commented 2 years ago

ok. thx for answare bro!

glenndehaan commented 2 years ago

How is your network topology and system configuration. Because sometimes you mention it is running locally. And on the last message you mention a ssh connection?

imenergie commented 2 years ago

i have 2 pc one is the server on linux and my pc on windows. i mentioned the server cs go and web panel is install on the same pc and i connect with putty from 192.168.100.3. but the server it's working my site it's working.... everithing it's working, but one day I wanted to install an smtp server, and when I got to a test of telnet connection to the smtp server it worked once, and the second time it didn't work ... I don't know what happened but then it doesn't work anymore.

imenergie commented 2 years ago

sorry for my english:/

imenergie commented 2 years ago

i have ubuntu 20.04.. sorry i dont understand all you say

glenndehaan commented 2 years ago

mmm That is really strange, but it sounds like something is then indeed blocking the network flow on the server itself. My suggestion would be to try to setup an empty virtual machine maybe locally on your Windows PC to see if that fixes the connection issues. But other then that I think there is nothing I can try from my side, I have the exact same setup as you but then on Ubuntu 18.04.

imenergie commented 2 years ago

i search on google and i find this: sudo apt-get install telnetd now telnet it's work but not telnet 127.0.0.1 27015 same error

imenergie commented 2 years ago

anyway thx for trying to help me. I'll look to see what I can do, maybe I'll find a solution .. if I don't reinstall ubuntu: /

imenergie commented 2 years ago

i found the problem :)). The problem was that I didn't start the server with the ip given by the router ... it worked, the world could connect, but I couldn't connect to the rcon. I added + ip 192.168.100.3 + port 27015 and now everything is fine

imenergie commented 2 years ago

I have one more question. how to add in crontab to start at startup npm run webpack and npm run dev?

glenndehaan commented 2 years ago

Great to hear. No you can't use the crontab for that. The crontab is only used for running commands on specified times. What you what is a service file for systemd. With that you can setup a service that keeps de program running. An example on how to create such a file can be found here: https://www.shellhacks.com/systemd-service-file-example/