User count not ok

calimero1505

Verified User
Joined
Jan 4, 2004
Messages
74
The administrator panel shows me more users then there are present.

The server has been reinstalled. There are only 2 users at the moment, but the stats show me 189 :-(

How can i reset this?
 
Hello,

The number of users is stored in:
/usr/local/directadmin/data/admin/admin.usage

Note that it's updated daily with the tally, so if you delete 187 of your 189 user accounts, it won't be updated instantly.

Also note that it's only counting the number of *Users* .. Admin and Reseller accounts are not counted. They have their own field.

John
 
Same problem here, the user count seemed to have doubled although the admin interface shows the correct amount. I fixed it manually in the usage file for the reseller who has to add another user today, but I'll wait with the other resellers.

I'll check tomorrow if the tally fixes the problem itself. My guess is that it's a bug in the script John which counts the amount of users resulting in doing the loop twice.

Using DA 1.32.0
 
Hello,

This is a bug, which I've fixed in the code, so I'll be making a release with the fix within the next few days, if not sooner.

John
 
It looks like there's still a bug in the tally, or I'm getting some numbers wrong. :)

When I'm in admin level, the counter on the right says "Users 1120". When I look at "Show All Users", I get 23 pages with 50 users and 1 page with 15 users. Therefor 1165 users.
Also, when I count how many homedirectories there are, I get the following:
# ls /home/ |wc -l
1172

Now, I can explain a difference of 7, with quota files and a few unix-users. But how can the counter on the sidebar be so off? No users have been added since the tally has run. So how can this be? And this isn't the only server I see this on.
 
Back
Top