/vstats suddenly stopped working

when I go to domain.com/vstats

What’s the issue here? there is no file /tmp/lock

The lock should be /tmp/awstats.YourDomain.lock

First check whether awstats is running:

ps -ef | grep '[a]wstats'

If awstats is not running, try to find the lock file.

find /tmp -type f -name "awstats*lock"

If the file is not there, try to find it from /

find / -type f -name "awstats*lock"

Not running

I found it and I removed it.
I found it has this contnet:

AWStats update started by process 365976 at 2025-03-22 03:38:06

I tried to access the /vstats again and still the same message apear, I can access old months stats from that dropdown but when I choose this month’s stats I get that error again.

by the way this is what i get when i run awstats command

➜  public_html awstats -version
awstats 7.8 (build 20200416)

Run again the stats process (replace YourUser and YourDomain by the actual data).

v-update-web-domain-stat YourUser YourDomain

I did it nothing happened, it gave no output just hang for a while then exited. I dont know where is the log file to see what went wrong.

The lock file apeared again and the process does not exist.

I have removed the lock file again and went to the panel and deactivated awstats and then reactivated it again now it seems working, but previous stats data was lost.

Then maybe the stats files and dirs had the wrong owner/group or perms… it’s a bit weird.

If you have a backup of the user, the old stats should be there.