AwStats plugin for DA [Still in BETA]

upgraded on my test box and directadmin now says this on any page.

Program Error



Details

A segmentation fault has occurred

not good :(
 
fixed I went into /usr/local/directadmin/plugins and removed the awstats dir.

not sure what you did in v2 but it totally broke my directadmin.
 
ok now I took another chance and installed 2.0 on same server, this time directadmin still works. But clicking on the AwStats Statistics link shows this.

Select the users that can access the Awstats Plugin:

toggle none

There is nothing there to select it is just blank and the old awstats options I had before are gone, is there a way to downgrade back to 1.92 ?
 
Hmm where's you're users home dirs ?? /home/ ??

About the segmentation fault. This could happen if the download is corrupted..
 
spirit said:
Íts work great!!

much better then the webalizer stats:)

However, when I select a whole year as a period to produce stats for i get the following error:

Error 1:
Full year view has not been allowed from a browser (AllowFullYearView should be set to 3).

Setup ('/etc/awstats/awstats.mydomain.tld.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

is this something I can fix with one setting or do I have to adjust a .conf file for every domain after installing AW stats?

Hints anyone?

From the moment i have install de plugin i have an problem in the maillog


Error 2:
2004-12-20 19:00:11 1CgRpB-0001pW-0P User 0 set for local_delivery transport is on the never_users list
2004-12-20 19:00:11 1CgRpL-0001q4-Rn User 0 set for local_delivery transport is on the never_users list
2004-12-20 20:00:11 1CgSlE-0002IC-SF User 0 set for local_delivery transport is on the never_users list
2004-12-20 20:00:11 1CgSlP-0002Ir-KF User 0 set for local_delivery transport is on the never_users list
2004-12-20 21:00:11 1CgThI-0002QA-Jf User 0 set for local_delivery transport is on the never_users list
2004-12-20 21:00:11 1CgThT-0002Qi-2x User 0 set for local_delivery transport is on the never_users list
2004-12-20 22:00:11 1CgUdM-0002Xe-2N User 0 set for local_delivery transport is on the never_users list
2004-12-20 22:00:11 1CgUdX-0002Ym-1f User 0 set for local_delivery transport is on the never_users list
2004-12-20 23:00:11 1CgVZQ-0002mY-Id User 0 set for local_delivery transport is on the never_users list
2004-12-20 23:00:11 1CgVZb-0002nB-7I User 0 set for local_delivery transport is on the never_users list..

And

2004-12-20 23:00:11 1CgVZQ-0002mY-Id <= [email protected] U=root P=local S=10874 T="Cron <root@marnix> /usr/local/directadmin/plugins/awstats/hooks/cgi-bin/awstats_updateall.pl now -aw" from <[email protected]> for root
2004-12-20 23:00:11 1CgVZQ-0002mY-Id User 0 set for local_delivery transport is on the never_users list
2004-12-20 23:00:11 1CgVZQ-0002mY-Id == [email protected] R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list
2004-12-20 23:00:11 1CgVZQ-0002mY-Id ** [email protected]: retry timeout exceeded
2004-12-20 23:00:11 1CgVZb-0002nB-7I <= <> R=1CgVZQ-0002mY-Id U=mail P=local S=11873 T="Mail delivery failed: returning message to sender" from <> for [email protected]
2004-12-20 23:00:11 1CgVZb-0002nB-7I User 0 set for local_delivery transport is on the never_users list
2004-12-20 23:00:11 1CgVZb-0002nB-7I == [email protected] R=localuser T=local_delivery defer (-29): User 0 set for local_delivery transport is on the never_users list
2004-12-20 23:00:11 1CgVZb-0002nB-7I ** [email protected]: retry timeout exceeded
2004-12-20 23:00:11 1CgVZb-0002nB-7I [email protected]: error ignored
 
Last edited:
Completely fubar'd one of my servers (didn't run the upgrade on the others thankfully).

Warning: fopen(/usr/local/directadmin/plugins/awstats/hooks/permissions.txt): failed to open stream: Permission denied in /usr/local/directadmin/plugins/awstats/admin/index.html on line 19 Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/directadmin/plugins/awstats/admin/index.html on line 20

This error appears for EACH username on the server (150+).

Also, it now requires a checkbox for every user that is allowed to run awstats. 18 servers, 150 accts per server, thats a LOT of individual checkboxes - isn't there a way to by default have them all ON - or a "Toggle All" function?

We also notice a new administrator panel spot in the DA main screen - that with the original skin, does not have a graphic attached. I haven't run it on a box with Enhanced, or any other skin, so I can't comment on that yet.

So far, the last version was problem free... this one hopefully will be just as easy to use - just needs some tweaking.

Joe
 
Last edited:
spirit In the hooks dir there's an awstats.none.conf, this configuration file is used on creation (hooks/cgi-bin dir).

The mail errors are normal, these don't appear because of the plugin. These always appear.

hostpc.com Looks like this install.sh didn't set the permissions correctly and didn't touch the permissions.txt.

Although the error shoudln't appear. You probaly updated before I had finished setting the latest changes. Solution: Remove the plugin and install it again. (You should have a toggle button!!)

If still not working, do a chmod 777 on the permissions.txt in the hooks/permissions.txt (if not created, create it)
 
users are in /home yes but on FreeBSD /home is a symlink to /usr/home, perhaps your script is incompatible with symlinks?
 
Chrysalis

Downgrading isn't needed :p Just at all you're users to the permissions.txt in the hooks dir ;)

Could you give me an example line of you're /etc/passwd ;)

I think the format is different from CentOS/RH9/FC 1

So I gues the script can't read it or the format is different.
 
Removed the plugin, re-installed with a new install at 9:45am ET today.

Same error - can't write to permissions.txt -

Checked the filetree, no file named permissions.txt.

touch permissions.txt
chmod permissions.txt 755
-didn't work
chmod permissions.txt 777
-worked, but refreshed to a 404 error page.

At this point, all clients /awstats are offline for this particular server, but they're aware we're working on it.

As for the "toggle" button - it existed before this mornings upgrade, just didn't work in Mozilla Firefox Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3 Gecko/20041001 Firefox/0.10.1

it just didn't toggle - strange stuff. Moved over to an IE machine, worked fine.
 
hostpc.com said:
Removed the plugin, re-installed with a new install at 9:45am ET today.

Same error - can't write to permissions.txt -

Checked the filetree, no file named permissions.txt.

touch permissions.txt
chmod permissions.txt 755
-didn't work
chmod permissions.txt 777
-worked, but refreshed to a 404 error page.

At this point, all clients /awstats are offline for this particular server, but they're aware we're working on it.

As for the "toggle" button - it existed before this mornings upgrade, just didn't work in Mozilla Firefox Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3 Gecko/20041001 Firefox/0.10.1

it just didn't toggle - strange stuff. Moved over to an IE machine, worked fine.

/awstats shoudln't be offline ??! Looks like the plugin isn't installed right. (Installation of awstats is still the same!)

Only added option in the install.sh = touch permissions.txt and chmod 777 permissions.txt

the permissions.txt should be located in the hooks/permissions.txt
 
If it worked before it should still work. Nothing changed in awstats, one dir added admin + html files in there and a change in the hooks dir.

Remove the plugin and it's directory. Install the plugin and check the permissions and especially the hooks/cgi-bin (awstats files).

Maybe the install.sh isn't running correctly.
 
Update 2.0.1

- Added an extra lookup for usernames that exists in /usr/home (FreeBSD)
- Added a script "correct.sh" in the scripts directory of the plugin. To manually run the install script to set permissions.


Hopefully with this, the problems will be corrected.
 
Hi all :)

Fusion, is there a chance you manage to do an update so whe can add subdomain ?

Because i treid to follow what you said before, i added the sub.domain.tld.conf, modified inside the LOG= to LOG=sub.domain.tld.conf

But, how do i look at them?
Wen i tri sub.domain.tld/awstats/
of course, it does not exist... so, what do i have to copu there?

Thx for your help :)

Sky
 
Back
Top