grafana with litespeed (cyberpanel) not working

#1
I install cyberpanel with litespeed. It is working fine. When install grafana, grafana not working. Which means not loading. when go to http://X.X.X.X:3000/, browser shows ERR_CONNECTION_REFUSED error. I already added 3000 port in firewall. How to solve this issue?
 

Cold-Egg

Administrator
#2
It sounds like nothing to do with LiteSpeed since it running with its own service. If you curl it from the server with http(s)://127.0.0.1:3000, does it work?
 
#3
It sounds like nothing to do with LiteSpeed since it running with its own service. If you curl it from the server with http(s)://127.0.0.1:3000, does it work?
Yes. When I change it to 0.0.0.0 then root litespeed server page not loading. Also grafana is not loading. which means both are not working.

After I change grafana to 0.0.0.0. and then curl 127.0.0.1:3000 give me Litespeed 404 Not Found page.

HTML:
<!DOCTYPE html>
<html style="height:100%">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title> 404 Not Found
</title></head>
<body style="color: #444; margin:0;font: normal 14px/20px Arial, Helvetica, sans-serif; height:100%; background-color: #fff;">
<div style="height:auto; min-height:100%; ">     <div style="text-align: center; width:800px; margin-left: -400px; position:absolute; top: 30%; left:50%;">
        <h1 style="margin:0; font-size:150px; line-height:150px; font-weight:bold;">404</h1>
<h2 style="margin-top:20px;font-size: 30px;">Not Found
</h2>
<p>The resource requested could not be found on this server!</p>
</div></div><div style="color:#f0f0f0; font-size:12px;margin:auto;padding:0px 30px 0px 30px;position:relative;clear:both;height:100px;margin-top:-101px;background-color:#474747;border-top: 1px solid rgba(0,0,0,0.15);box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;">
<br>Proudly powered by  <a style="color:#fff;" href="http://www.litespeedtech.com/error-page">LiteSpeed Web Server</a><p>Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.</p></div></body></html>
 
#4
I went to /usr/local/lsws/conf/vhosts/Example and open vhconf.conf then I can see there is siteAliases 127.0.0.1 localhost. I change it to 0.0.0.0 localhost and restart it sudo /usr/local/lsws/bin/lswsctrl restart now LiteSpeed root page loading 404 Not Found Page but grafana not working.

I think litespeed and grafana servers will conflict.

Still curl 127.0.0.1:3000 give above HTML code which is LiteSpeed root page loading 404 Not Found Page

1694571520743.png
 
Last edited:
#5
I check 3000 port use service. I got following details.nghttpx run in port 30000.

1694574513265.png

Code:
tcp LISTEN 0 4096 127.0.0.1:3000 0.0.0.0:* users:(("nghttpx",pid=572,fd=5),("nghttpx",pid=540,fd=5))
 
Last edited:
Top