AWstats broken

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

AWstats broken

Unread post by Highland »

I updated to the latest ART release of awstats and no stat pages were updated last night. Logs are full of this
Feb 29 04:03:11 server1 statistics: Unable to execute /usr/share/awstats/awstats_buildstaticpages.pl -awstatsprog=/var/www/cgi-bin/awstats/awstats.pl -confiigdir=/usr/local/psa/etc/awstats -config=domain.com-http -dir=/var/www/vhosts/domain.com/statistics/webstat/current
Any ideas?
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

Unread post by Highland »

So I've got two things now...

First, the path being called seems to be wrong. It's calling

Code: Select all

/usr/share/awstats/awstats_buildstaticpages.pl
And the actual path is

Code: Select all

/usr/bin/awstats_buildstaticpages.pl
And the path to AWStats is wrong

Code: Select all

/var/www/cgi-bin/awstats/awstats.pl
Actual

Code: Select all

/var/www/awstats/awstats.pl
I've added symbolic links to fix that up.

The second problem is that I fixed the paths and ran it manually and I still don't get the missing data from yesterday. Is this due to the fact that the previous day's logs are zipped? Is it due to the conf files still being 6.6?

Also, all the images for awstats graphs now seem to be missing.
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

Unread post by Highland »

I've figured out that if I add -update to my command line run that seems to do it. I get fresh stats that way (although I can't seem to rebuild the missing last 2 days).

I've tried downgrading but no good. Without -upgrade in the command, it won't do anything now. How do I get this fixed? I can't manually run this for 150 domains and no stats were generated last night. I've been searching for a while now and I can't tell what cron job runs this so I can modify it to use -update.
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

Unread post by Highland »

Well I don't know what to think now. I ran the stat update script Plesk has and it seems to have worked. Will know for sure tomorrow but it's odd that all domains had a "no update" notice and 0 traffic (even in the dead of night we get some traffic on some sites still).

Still, the ART package needs to create the symlinks I outlined above to make it work. And the graph images are still broken.
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

Unread post by Highland »

One final symlink to make the whole thing work properly and bring back the images. Hopefull save someone some headache down the road.
#cd /var/www/html
#ln -s /var/www/awstats/icon awstats
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Think you can make me a patch? The awstats src.rpm is here:
http://3es.atomicrocketturtle.com/packages/awstats/
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

Unread post by Highland »

Well I'm embarrassed. I thought it was an ART file. Turns out it was an rpmforge release of 6.7 :oops:

If you want, I can modify his src.rpm to do this. Once I made the symlinks it worked fine with Plesk
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

I'd let the RPMforge folks know, they have a very excellent mailinglist for this kind of thing.
bibliopegist
Forum User
Forum User
Posts: 24
Joined: Sat Feb 16, 2008 7:22 am

awstats graphs and icons not showing

Unread post by bibliopegist »

I am having no luck with the graph images or the logo showing on awstats, not that it bothers me much but I still would like the colors, I have plesk 8.3 on a fc6 1and1 server, it happened only when the icon folder was renamed awstats-icon.
The awstats.conf file points to the awstats-icon folder, I tried to change the command to point to icon, still no go. I copied the icon folder and renamed it awstats-icon, still nothing.
Furthermore, there is no trace of an awstats-icon folder in the awstats 6.6-1.fc6.art package, should it be there?
Right clicking on the missing logo indicates that the images is in the awstats-icon folder: /awstats-icon/other/awstats_logo6.png
One strange thing is that the outline of the graphs are visible in firefox but not in explorer, I don't think it has anything to do with the problem, just anecdotal.
:?:
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

My package is based on the fedora design, if that helps at all.
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

Unread post by Highland »

Yeah, that's pretty much what the RF AWstats package did. All the awstats stuff was moved but symlinking fixed it. What you should do is find out where the images reside and where Plesk is looking for them and symlink the two. That's what symlinks are for, after all, is to support all these programs that look in different places for the same file (so much so that MS Vista now has them).

As a side note, I'm not sure what awstats.conf is for but Plesk doesn't use it. If you go into your conf/httpd.include file you'll see how Plesk creates the plesk-stat alias and other aliases.
bibliopegist
Forum User
Forum User
Posts: 24
Joined: Sat Feb 16, 2008 7:22 am

thanks!

Unread post by bibliopegist »

Thanks, it works, the awstat symlink was pointing to a dead end, I directed it to /usr/share/awstats/wwwroot/awstats-icon, I now see colors and icons, flashback to the 70's......
Great help, cannot thank you enough :lol:
bibliopegist
Forum User
Forum User
Posts: 24
Joined: Sat Feb 16, 2008 7:22 am

prior months stats not showing

Unread post by bibliopegist »

Image

The prior months stats are not showing as they should, they only show when called from the drop down menu for select period.
So the stats are there, they are just not parsed into the page, any idea where I should start looking to fix this?

Thanks
Highland
Forum Regular
Forum Regular
Posts: 674
Joined: Mon Apr 10, 2006 12:55 pm

Unread post by Highland »

Unfortunately Plesk only does month-by-month parsing. If you want to do a year-to-year the only option I know of off the top of my head is the 4psa stats program which will also generate PDFs of your awstats for you.
bibliopegist
Forum User
Forum User
Posts: 24
Joined: Sat Feb 16, 2008 7:22 am

Unread post by bibliopegist »

alas, no repo for my server :?
Post Reply