bandwidth after moving a account from other server

stubrud

Verified User
Joined
Apr 17, 2005
Messages
27
i moved one of my client from one server to another and used a backup from my other DA, now it doesnt show any bandwitdh anymore. still showing 0GB used . i tried to tally but still 0GB. dosent show any traffic at all after movement and thats over 2 weeks ago. webalizer doesnt show any stats at all either
ant suggestion what to do?
 
Last edited:
Hello,

I just tested this and went through the code.

Took a test user, added some data to his bandwidth.tally file, ran the tally, bandwidth showed up.

I then made a backup, deleted the user, then restored the backup.

The bandwidth.tally was restored.

I then went through the code to see what DA does for the restore.
If the filesize of bandwidth.tally in the backup is larger, only then will it be copied over. If the user already had a bandwidth.tally file that was larger than the one in the backup, then backed up bandwidth.tally will not be restored.

So check the /usr/local/directadmin/data/users/usernamebandwidth.tally to see if it already had data in it, as DA picks the larger of the 2 files to be used.

As for webalizer.. this one is trickier.. the webalizer data is stored as root, but the restore is done as the user, so the current webalizer stats can't be overwritten (doesn't have enough permisison). I probably won't alter the extraction permission for security reasons... but it would be possible to "chown -R username:username stats" to the webalizer files before the restore (possibly automatically).... let me know your comments/thoughts on this (don't think it would be too big of a deal to do).

John
 
that user didne exsist on that server when i added. then it was no tally in his account since there wasnt any account .
i tried to remove data from his tally and add som again but still no bandwitdh show for that user.
it show a big 0
 
now i noticed a thing i didnt notice before. that user dont show in reseller list of user but when i use show all users in admin it shows. why?
 
Ah, there's the problem.
Add him to /usr/local/directadmin/data/users/reseller/users.list

I'm not quite sure why he didn't get added.. might be something in the /var/log/directadmin/error*.log

John
 
I've run into this before too John...I'll try that fix next time...not that I really care all that much (unless it's a high bw users..lol)
 
this is a high BW user, thats the reason i wanted it up and running as it should :)
 
DirectAdmin Support said:
Ah, there's the problem.
Add him to /usr/local/directadmin/data/users/reseller/users.list

I'm not quite sure why he didn't get added.. might be something in the /var/log/directadmin/error*.log

John

We've encountered this issue several times ... not able to trace down the exact culprit tho
 
Back
Top