DirectAdmin Forums

Go Back   DirectAdmin Forums > Technical Discussion > General Technical Discussion & Troubleshooting

Reply
 
Thread Tools Display Modes
  #1  
Old 08-27-2007, 01:44 AM
Dirk Jan Dirk Jan is offline
Verified User
 
Join Date: Aug 2007
Posts: 6
Webalizer doesnt update. (FreeBSD)

Hi,

First, i have search the forum, but doesn't come to an ansfer
The problem: Webalizer doesn't update.
I'm running 200+ domains...
I have try the command webalizer, the output:


Webalizer V2.01-10 (FreeBSD 6.2-RELEASE) English
Using logfile STDIN (clf)
Creating output in current directory
Hostname for reports is 'web01.I]domain[/I].nl'
History file not found...

Then hang te server, and when i'm push ENTER, see i this error:
Warning: Truncating oversized hostname
Skipping bad record (1)
Warning: Truncating oversized username
Skipping bad record (2)
Warning: Truncating oversized username
Skipping bad record (3)
Warning: Truncating oversized username
Skipping bad record (4)
Warning: Truncating oversized username
Skipping bad record (5)
Warning: Truncating oversized username
Skipping bad record (6)

And:

/usr/bin/webalizer -p -n domain.com -o /home/user/domains/domain.com/stats /var/log/httpd/domains/domain.com.log
/usr/bin/webalizer: Command not found.

web01# echo "action=tally&value=all" >> /usr/local/directadmin/data/task.queue
(no output)

cd /usr/local/directadmin/customapache
./build webalizer
Does'nt work...

/usr/local/bin/webalizer : Command not found.


And as last: Direct admin says:


File does not exist



Details

You must wait for the stats to be computed. This will only happen *after* logs exist (domain must resolve and be used).

Info for Admins: Downloading a new webalizer binary


And this have i tried many times...

Edit: I found an new strange error, /usr/bin/webalizer, says:
ELF binary type "0" not known.
/usr/local/bin/webalizer: Exec format error. Binary file not executable.

Last edited by Dirk Jan; 08-27-2007 at 03:32 AM.
Reply With Quote
  #2  
Old 09-25-2007, 06:42 AM
knoll knoll is offline
Verified User
 
Join Date: Sep 2005
Location: Belgium
Posts: 55
i have the same problem how to fix this?
Reply With Quote
  #3  
Old 09-25-2007, 10:32 AM
jlasman's Avatar
jlasman jlasman is offline
NoBaloney
 
Join Date: Jun 2003
Location: Riverside, Calif., USA
Posts: 20,706
elf binaries are used by linux. Generally not for FreeBSD.

Hmmmmm...

Install did something wrong? Or you did, when you used a new binary?

Jeff
__________________

Jeff Lasman <directadmin@nobaloney.net> +1 951 643-5345
Third-Party DirectAdmin administration and support
Dedicated Servers, Dedicated Reseller Accounts
NoBaloney Internet Services
P.O. Box 52200
Riverside, Calif. 92517
Reply With Quote
  #4  
Old 09-25-2007, 10:49 AM
knoll knoll is offline
Verified User
 
Join Date: Sep 2005
Location: Belgium
Posts: 55
my webalizer does'nt work totaly:

server1# webalizer
Webalizer V2.01-10 (FreeBSD 6.2-STABLE) English
Using logfile STDIN (clf)
Creating output in current directory
Hostname for reports is 'server1.*.be'
History file not found...

Name Creator Bandwidth Disk Usage # of Domains Suspended IP Domain(s) Select
historics alex 0 / 15000 212.5 / 1000 1 / unlimited No 86.39.128.91 opelhistorics.be

bandwidth is not counted:

in juni it stopped counting ...

anyone knows a solution

Greets,
Alex
Reply With Quote
  #5  
Old 09-25-2007, 01:18 PM
DirectAdmin Support DirectAdmin Support is offline
Administrator
 
Join Date: Feb 2003
Posts: 6,693
Hello,

Firstly, if you type "webalizer", and you see the following:
Code:
server1# webalizer
Webalizer V2.01-10 (FreeBSD 6.2-STABLE) English
Using logfile STDIN (clf)
Creating output in current directory
Hostname for reports is 'server1.*.be'
History file not found...
then your binary is working fine, don't recompile

DirectAdmin doesn't just run "webalizer", it runs a whole series of command line options to tell webalizer what to do. Just running "webalizer" only tells us that it's there, is responding and should work when DA calls it.

Possible causes of not seeing any webalizer stats:
- the most common, crond not installed/working, thus preventing the task.queue from being processed, in turn preventing tallies/stats updates:
http://help.directadmin.com/item.php?id=107

- if the task.queue is being processed, then make sure that your domains actually resolve to your sever. Webalizer needs something to work on.
Check:
/var/log/httpd/domains/domain.com.log
to ensure that it's being filled with log data (look inside the log). If not, either the domain doesn't resolve there, or maybe the CustomLog option is not in your virtualhost in your httpd.conf file.

- a less common cause is if the use is not present in his creators users.list file, so DA doesn't know he exists, thus he doesn't get tallied.
Check:
/usr/local/directadmin/data/users/creator/users.list
where creator can be admin, or the name of the reseller that created the user.

- Make sure the webalizer binary is in the correct spot:
Freebsd: /usr/local/bin/webalizer
Debian/Redhat: /usr/bin/webalizer

- If you get weird binary errors when you run "webalizer" (and you don't see the above output), then before trying to recompile, you'd want to download a new binary:
http://help.directadmin.com/item.php?id=63
They're all from http://files.directadmin.com/services in the related OS folder.

- If you still get binary errors, even after downloading a new binary, then it's possible the binaries just dont get along with your system. You can either use a package system like "yum install webalizer" to install it, or compile your own with the build script. Note that the build script only compiles webalizer if the binary does not exists, so if you've got a broken binary there, delete it first before running "./build webalizer".

- Try running the webalizer command manually to compute the stats to check for any errors:
Code:
webalizer -p -n domain.com -o /home/username/domains/domain.com/stats /var/log/httpd/domains/domain.com.log
- the least common problem, but that has happend is when the admin tries to get too fancy with the custom templates and breaks webalizer.
If you have:
/usr/local/directadmin/data/templates/custom/webalizer.conf
try deleting it, then run the tally again. It's likely you've added an option that webalizer chokes on.


That about covers all possible things that can prevent you from seeing your webalizer stats

John
Reply With Quote
  #6  
Old 09-25-2007, 08:44 PM
knoll knoll is offline
Verified User
 
Join Date: Sep 2005
Location: Belgium
Posts: 55
hey,

thanks for that great post

i found out some more info

- a less common cause is if the use is not present in his creators users.list file, so DA doesn't know he exists, thus he doesn't get tallied.
Check:
/usr/local/directadmin/data/users/creator/users.list
where creator can be admin, or the name of the reseller that created the user.

this is the problem i see logins where webalizer works and users where it doesn't work

is there a way to fix this problem?

Greets,
Alex
Reply With Quote
  #7  
Old 09-25-2007, 08:46 PM
DirectAdmin Support DirectAdmin Support is offline
Administrator
 
Join Date: Feb 2003
Posts: 6,693
Simply add the missing user to his creator's users.list file.

John
Reply With Quote
  #8  
Old 09-25-2007, 09:01 PM
knoll knoll is offline
Verified User
 
Join Date: Sep 2005
Location: Belgium
Posts: 55
is'nt there another solution?

because i have to find out who added thoes users etc
Greets,
Alex
Reply With Quote
  #9  
Old 09-25-2007, 09:38 PM
DirectAdmin Support DirectAdmin Support is offline
Administrator
 
Join Date: Feb 2003
Posts: 6,693
The creator of the user is stored in the user's user.conf file.
Look for "creator=name", where name is the username of the creator, eg "admin" or the Reseller, etc.

John
Reply With Quote
  #10  
Old 09-26-2007, 06:10 AM
knoll knoll is offline
Verified User
 
Join Date: Sep 2005
Location: Belgium
Posts: 55
ok thanks

Greets
Reply With Quote
  #11  
Old 09-30-2007, 01:30 PM
knoll knoll is offline
Verified User
 
Join Date: Sep 2005
Location: Belgium
Posts: 55
ok it works thanks ;-)

Greets,
Reply With Quote
  #12  
Old 02-11-2008, 08:15 PM
philmcdonnell philmcdonnell is offline
Verified User
 
Join Date: Jan 2004
Location: New York
Posts: 170
Ok, I am having the same issue where I can get webalizer to build the stats if I run it manually via SSH

/usr/bin/webalizer -p -n domain -o /home/user/domains/domain.com/stats /var/log/httpd/domains/domain.com.log

This works but it is not doing it automatically?!

Also how do I get the users to see the /stats folder if it is one up from the public_html folder?

Thanks,
Phil
__________________
---
Philip M. McDonnell
Black Cat Technologies
www.blackcattech.com
Reply With Quote
  #13  
Old 02-11-2008, 08:28 PM
DirectAdmin Support DirectAdmin Support is offline
Administrator
 
Join Date: Feb 2003
Posts: 6,693
see post #5 above, it covers pretty much everything.
Also, check to see if the tally is actually being processed for each user in the /var/log/directadmin/system.log. (would be related to the users.list bit)

As for making it show up in public_html/stats, go to:
User Level -> Site Summary/Stats/Logs
Check the domain and create the /stats link in the table.

John
Reply With Quote
  #14  
Old 05-14-2008, 04:26 AM
pera's Avatar
pera pera is offline
Verified User
 
Join Date: Jul 2004
Location: Sweden / Varberg
Posts: 82
no log files and webalizer data

I have one user, good one.... but for him (not for all users) no log files are created, they are zero. Have been looking at this post, but everything seen to be ok. Its old user so his stat worked until 28 mars and then just stop, everything zero. I can not find anything special that happened on that date....
__________________

Pera


WinStart webbhotell

Reply With Quote
  #15  
Old 09-15-2008, 10:57 AM
qosai qosai is offline
Verified User
 
Join Date: Aug 2007
Posts: 8
I solved mine this way :

well ... I've tried every thing posted but nothing helped.
so I went to "log" folder on each domain and deleted the log file with the creation date which Webalizer stopped working on.
in my case it was Sep 13 2008
I removed it
then updated webalizer : http://help.directadmin.com/item.php?id=63
and walla .. worked
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:33 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
DirectAdmin © 2007 JBMC Software