Real-time stats is Blank?

#1
Okay I have 2 issues...

Real-time stats is blank. I had 5.0RC3 installed earlier and then I used download/upgrade to 4.2.23.

Issue # 1... Real-time stats is still blank!


Issue # 2.
I can't move back to 5.0RC3, whenever I use SwitchTo option after automatic graceful restart I am back to 4.2.23 screen.
 

Pong

Administrator
Staff member
#3
5.0 released and not RC3 anymore.

Try the following to switch to it.

/usr/local/lsws/admin/misc/lsup.sh -f -v 5.0


Real time stats only shows when you site running with traffic at the time when you check it.
 

Pong

Administrator
Staff member
#5
Just ensure requests are coming in at the time of checking stats, not before or after.

I would suggest you upgraded to the latest version. then check again.
/usr/local/lsws/admin/misc/lsup.sh -f -v 5.0

Use command line to check php process
ps -ef | grep php

check how many php process are running, which may give you hint that the users are visiting and hitting the PHP.

Also check this wiki to see if any info useful.

https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:config:real-time-stats
 
#6
Yes all of them are hitting PHP and the whole website is made in PHP. but first please look at these logs that I am getting on Home on Webadmin console:

Time Level Message
2015-05-12 02:57:08.134 ERROR HttpListener::start(): Can't listen at address [::]:80: Address already in use!
2015-05-12 02:57:08.134 ERROR HttpServer::addListener([::]:80) failed to create new listener
2015-05-12 02:57:08.435 ERROR HttpListener::start(): Can't listen at address 127.0.0.1:443: Address already in use!
2015-05-12 02:57:08.437 ERROR HttpServer::addListener(127.0.0.1:443) failed to create new listener
2015-05-12 02:57:08.738 ERROR HttpListener::start(): Can't listen at address XXX.XXX.XX.250:443: Address already in use!
2015-05-12 02:57:08.738 ERROR HttpServer::addListener(XXX.XXX.XX.250:443) failed to create new listener
2015-05-12 02:57:09.039 ERROR HttpListener::start(): Can't listen at address XXX.XXX.XX.251:443: Address already in use!
2015-05-12 02:57:09.039 ERROR HttpServer::addListener(XXX.XXX.XX.251:443) failed to create new listener
2015-05-12 02:57:09.339 ERROR HttpListener::start(): Can't listen at address XXX.XXX.XX.252:443: Address already in use!
2015-05-12 02:57:09.339 ERROR HttpServer::addListener(XXX.XXX.XX.252:443) failed to create new listener

(intentionally hidden IP with XXX.XXX.XX)
 

NiteWave

Administrator
#7
>2015-05-12 02:57:08.134 ERROR HttpListener::start(): Can't listen at address [::]:80: Address already in use!
is there any other web server running ? like apache, nginx ?

if no, only litespeed is running, then do a full stop and start, instead of gracefull restart.
#/usr/local/lsws/bin/lswsctrl stop
#/usr/local/lsws/bin/lswsctrl start

>Issue # 2.
>I can't move back to 5.0RC3, whenever I use SwitchTo option after automatic graceful restart I am back to 4.2.23 screen.
first, update to latest 5.0 as Pong's post

if still fail to switch between 4.x and 5.x in web admin, here's a command line way to force switch:
#/usr/local/lsws/admin/mgr_ver.sh 4.2.23 (or 5.0)
#/usr/local/lsws/bin/lswsctrl stop
#/usr/local/lsws/bin/lswsctrl start
 
#8
I was able to move back to 5.0 using SSH command earlier :)

however, I dont think any other service is running on port 80


also I am certain that real time stats infact used to work fine but now it doesnt.
 
Last edited:
#9
I also have reverse proxy setup in External Apps section.. however I am not sure if its working all good anymore since I can't monitor anything in real-time stats.

Please help :(((
 
#10
the real-time stat is a known issue for 5.0, since the format has changed --- /tmp/lshttpd/.rtreport*

you can force update to latest build 9. maybe or may not be fixed --- depending on the develop progress -- I haven't tested it yet.
 
#11
But it wasn't working when I switched it to 4.x few hour ago (just to test this)

also any other way to check my external app is working as it should?
 

Pong

Administrator
Staff member
#13
If you want to verify the real stats, please ensure requests are coming in at the time of checking stats, not before or after. You can even browse the website yourself for testing purpose to check what happens. Please provide more details on this for us to narrow down the problem.

If you just want to verify if your external application is running or not. Just use top command or ps command to check the process. No need real stats at all.

Not sure what "reverse proxy" you means. Things looks a little complicated.

I would suggest you take only one step each to verify:

1.To test real time stats: remove or just disable your complicated external app, use only the external app approved to be working before, and make sure it is running, verify if the real time stats working or not. Report us back with detailed steps, we will have a further investigation.

2. To test your external app, setup your external app and top or ps to verify the process.
 
Top