Backup Restored, no reseller in the list?

Manie

Verified User
Joined
Jul 18, 2006
Messages
121
Location
Utrecht / Netherlands
Hi all,

I needed to restore a box from backups (don't do this to often)
Now I restored the user called "x" and various other account which were created underneed "x"

However, "x" is not listed under "list resellers" and thus I can not assaign an IP to it :-/

How can i make "x" a reseller again?
 
Restore just the reseller user, then make changes such as giving it it's own IP#, then restore the rest of the users.

Jeff
 
mmm, guess I started with the admin, then a "user account" and then noticed it's creator was "x" so tried restoring "x" account, but never becomes a reseller.

Since the machine is running now.
Anyway in directadmin confs to define a user to be a reseller?
 
Hope someone can help me here.
I added the original reseller user to the reseller list in:
/usr/local/direcadmin/data/admin/reseller.list

so "x" does now appear on the "list resellers" page.

I also gave him his shared IP. However on the IP Management page I do not see the users that are running under that IP, cause it is still 0. However if I check a particular user they are asaigned to that IP.
Is there some kind of cleaning up to be done after a restore?
 
There shouldn't be after a normal restore, but if there was some problem, yes. I believe this has been discussed previously but I can't find it right now :(.

Jeff
 
Hello,

If you have DA 1.36.0 or newer, the count of User on an IP is updated nightly. If it's 0, no worries, it's only cosmetic and will be updated with the next tally.

As for the original issue, make sure he was actually restored as a Reseller.
Check the file:
/usr/local/directadmin/data/users/x/user.conf

for:
usertype=reseller

and for the reseller.conf, reseller.usage and users.list in the same directory.

John
 
Those are all their :-)

Looks like the restore does not check for these values, and does not add the user to:
/usr/local/directadmin/data/admin/reseller.list

Maybe a bug? (Can not say it should be required or not.)
Or is there an other criteria when restore does this yes or no?
 
Hello,

It's possible it was a locking issue where 2 processes are trying to access the file at the same time. I've just tested it out to ensure it's working, and DA does add the reseller to the reseller.list on our build system. I used the "Admin Backup/Transfer" tool, and the backup tar.gz was in the format "reseller.admin.resellername.tar.gz".

Also, if the Reseller was in the format resellername.tar.gz or user.admin.resellername.tar.gz, or the tar.gz was restored from Reseller Level -> Manage User Backups, that would have restored the account as a User instead of an Admin. If this happened, the account would be in /usr/local/directadmin/data/users/admin/users.list

John
 
Back
Top