dinger1986 / TRMM-Grafana

Grafana Dashboards setup and preconfigured to work with Tactical RMM
30 stars 17 forks source link

ERR_CONNECTION_REFUSED after install #30

Closed verticalhost closed 1 year ago

verticalhost commented 1 year ago

Hi ,

after installing i got this on website

ERR_CONNECTION_REFUSED

It give me the action address but unable to acces on website with :3000

dinger1986 commented 1 year ago

What errors do you get in the logs?

verticalhost commented 1 year ago

I dont see on documentation i can get's logs. It's just installed on my server but never give me error.

dinger1986 commented 1 year ago

run the install script again and it should work fine, you will need to follow the troubleshooting steps to reset the postgres details but its just a step by step

verticalhost commented 1 year ago

I have re-downloaded and re-installed and got the same result but again no logs appear as error.

I double checked and got this.

./installg.sh: ligne 1076: data : commande introuvable ./installg.sh: ligne 1076: root_url : commande introuvable ./installg.sh: ligne 1076: 0 : commande introuvable ./installg.sh: ligne 1076: lax : commande introuvable ./installg.sh: ligne 1076: grafana_environment_info : commande introuvable

dinger1986 commented 1 year ago

yeah those errors always come up but do nothing.

can you show the output of ls -l /etc/grafana/

verticalhost commented 1 year ago

tactical@debian:~$ ls -l /etc/grafana/ total 64 -rw-r--r-- 1 root grafana 1834 4 jan 10:27 cert.pem -rw-r--r-- 1 root grafana 3749 4 jan 10:27 chain.pem -rw-r--r-- 1 root grafana 5583 4 jan 10:27 fullchain.pem -rw-r--r-- 1 tactical tactical 33905 4 jan 10:27 grafana.ini -rw-r----- 1 root grafana 2594 3 jan 14:34 ldap.toml -rw------- 1 root grafana 1704 4 jan 10:27 privkey.pem drwxr-xr-x 8 root grafana 4096 3 jan 14:34 provisioning

dinger1986 commented 1 year ago

ok, can you check grafana.ini that its using /etc/grafana/fullchain.pem as the certificate address? If not maybe just need to change that.

also you can do sudo tail /var/log/grafana.grafana.log

verticalhost commented 1 year ago

Yup it's supposed image image

Can i switch to this be cause it's used by T-RMM

/etc/letsencrypt/live/MYWEBSITE.ca/

verticalhost commented 1 year ago

grafana.log

dinger1986 commented 1 year ago

it was using the TRMM certs and that didnt work, its a strange grafana quirk and I built a trmm/grafana server from scratch last night to test and found the only way to do it was to move the certs and change the permissions

If you can provide the output of the logs that would help

dinger1986 commented 1 year ago

please try chmod 644 /etc/grafana/privkey.pem

Then systemctl restart grafana-server

verticalhost commented 1 year ago

After i got that.

Client sent an HTTP request to an HTTPS server.**** Never mind

verticalhost commented 1 year ago

The username and password i need it's same as T-RMM ?

dinger1986 commented 1 year ago

no its admin/admin

verticalhost commented 1 year ago

Yeah lol i forgot it saying on install progress lol Thanks everythings is set :D

dinger1986 commented 1 year ago

if you have installed again you might need to reset the db login details https://github.com/dinger1986/TRMM-Grafana#troubleshooting