User suspended with no reason

SeLLeRoNe

Super Moderator
Joined
Oct 9, 2004
Messages
6,516
Location
A Coruña, Spain
Hi,

since two weeks a customer of mine get suspended during day (so no during tally) without reason, without notice and without panel update.

Let me explain.

The website show the page user has been suspnded but when i log into directadmin cp the user is not suspended.. and i need to suspend it and un-suspend back to get his domain active again

When i suspend manually the error on error.log is:
Code:
2011:09:16-17:08:52: Unable to suspend domain: domain.it : /etc/virtual/domain.it doesn't exist

and no other error/notice of suspend are in any logs.

Anyone got any idea? What should i do? Remove the user and re-import the backup should work?

Thanks

Regards
 
Since it says:
/etc/virtual/domain.it doesn't exist
I presume you already checked if this directory does exist and has the correct rights? And the files in there are not corrupted in any way? Hostname/domainname does not have any uppercase letters?

If all is oke then normally I also would try to remove the user and domain and restore the backup again, see if that helps.
Have a look at this thread tho:
http://www.directadmin.com/forum/showthread.php?t=40493

Could be before restoring that you would have to remove /etc/virtual/domain.it manually when I read the last post correctly.
 
Actually i suppose that directory wasnt existing cause domain was suspended.

Ive checked and now (that domain work) directory exist but this morning it happend again...

now im going to backup and restore the account...
 
Oke, just to be sure, take care directory exists before you delete it and after that restore the backup again.
I think you can best check if all is gone after the account deletion. And if yes restore.

Hopefully this will fix the problem for you, I will hold my thumbs up for you.
 
Ive backuped-deleted-restored the account... lets see if happend again.. the nice question is.. why it happen?

Hope John will notice this post.

Regards
 
I had one time a user was suspended and did not get unsuspended on unsuspend. So I suspended him again and then unsuspended for the second time. That worked.
So why do such things happen? I have no clue, maybe a hickup on the harddisk or whatever.....

I also hope John notices and maybe has some idea's about it. Let's hope it won't happen again.
 
Hello,

What I'm guessing happened, is the User manually suspended his own domain.
User Level -> Domain Administration

When that is done, the User isn't suspended, only the domain.

When you went to suspend the User, DA tried to suspend the domain (but it already was), which would have generated the /etc/virtual/domain.com error (since DA renames it to domain.com_off when suspended).

You can check for this in your:
/var/log/directadmin/2011-Sep-19.log (or whichever day it was)
Code:
POST /CMD_DOMAIN HTTP/1.1 [b]username[/b]
as the CMD_DOMAIN is what is post'ed to when a domain is suspended by a User.

John
 
I doubt on it cause the customer is the first one noticed the problem (happend in the middle of the night aswell with no reason).

Code:
cat 2011-Sep-16.log | grep "POST /CMD_DOMAIN HTTP/1.1 lobai"

Result nothing, but, as i sayd, now seems to be fixed...

But is not a solution, just a workaround.

Regards
 
Back
Top