techark

Well-Known Member
May 22, 2002
277
0
316
Twice in the last 2 weeks on different servers this has happened when one of my resellers deleted an account and then recreated and deleted it again. Apache crashes, the the entire Vitrual host is left in httpd.conf but the home/username/public-html gets deleted so Apache bites the dust.

Anyone else seen this problem or has a sure fire cure?
 

idn

Well-Known Member
Aug 18, 2001
61
0
306
I have this problem too on a clients Server. Id love to find a resolution
 

Jodi

Registered
Jul 1, 2002
1
0
151
Exact same problem here. In fact, I was just coming to post about it when I saw your thread...
 

DaveUsedToWorkHere

Well-Known Member
Dec 28, 2001
686
1
318
[quote:c6dd7cf80b][i:c6dd7cf80b]Originally posted by techark[/i:c6dd7cf80b]

Twice in the last 2 weeks on different servers this has happened when one of my resellers deleted an account and then recreated and deleted it again. Apache crashes, the the entire Vitrual host is left in httpd.conf but the home/username/public-html gets deleted so Apache bites the dust.

Anyone else seen this problem or has a sure fire cure?

[/quote:c6dd7cf80b]

Is this a RedHat server? Run: tail -f /usr/local/apache/logs/error_log to see if you are getting a user does not exist error. If so, use userdel to remove the user from your system.
 

techark

Well-Known Member
May 22, 2002
277
0
316
Yes I know what is happening

But why is WHM not removing the user from Apache? That is what I am trying to get at, I can fix the problem in about 2 minutes and get Apache rebooted but I am looking for someway to stop Apache from crashing by getting Cpanel to remove it properly so it does not happen again.
 

rastoma

Well-Known Member
Aug 27, 2001
158
0
316
this is also happenging to a lot of my customers.

also we'll see an account that got deleted like 2 weeks prior just now causing a problem in that the virtual entry was still in or got readded to httpd.conf
 

steven

Active Member
Sep 9, 2001
39
0
306
We had this problem as well, luckily by the second time it happened we caught it. We had the user does not exist error so we simply decided to not give resellers the ability to terminate accounts, and if they wanted to term an account they need to contact us. Then a couple updates later it appears the problem is resolved. **keeping fingers crossed**

I also would like to know when the terminate account feature isn't properly terminating accounts. This was on a RH 7.2 server and it happened a while back for us at least.

-Steven
 

techark

Well-Known Member
May 22, 2002
277
0
316
I would

have to hire a full time tech to do nothing but delete accounts for resellers if I took that ability away from them. :p

Gotta be a better answer than that.
 

steven

Active Member
Sep 9, 2001
39
0
306
the answer is that upgraded to the latest build at the time, and that seemed to cure it.

-Steven
 

jsnape

Well-Known Member
Mar 11, 2002
174
0
316
I had it happen last night on WHM 5.0.0
Cpanel 5.0.0-50
RedHat 7.2

The customer said she tried changing the username, saw that it wouldn't work so deleted the account. Here is the exact account:

&quote&
Yes, I tried to change the username. I realized that when I created the ******.com domain, I had put admin as the username, and that got translated into domain directory. There was an option in WHM that allows one to change usernames. When I tried it, it said that the feature was not available at this time. I then deleted the domain, and parked it at *****.com domain.
&/quote&

Well while she was parking the domain, I was removing the account from httpd.conf manually and trying to get apache restarted. Luckily I was sitting right at a terminal window when it happened.

For rthe posts above, I don't think it has been cured, I think it just hasn't happened again (yet).
 
B

bdraco

Guest
Is this a predictable behavior ?

Does anybody have a list of steps to reproduce it ?
 

jsnape

Well-Known Member
Mar 11, 2002
174
0
316
I think I do but don't want to try it on my live servers. This happened again to me yesterday. I have a theory that it only happens if it is the last account in httpd.conf being deleted. So if a client creates an account and immediately deletes it or no other accounts get created before it is deleted Apache crashes.
 

portman

Well-Known Member
May 23, 2002
70
0
306
We are assuming since this happens to us on one of our servers with only one of our resellers. We are predicting that the reseller is not waiting for the script to complete before moving to another page.

It is only a theory at this point. But we find that if we delete teh accounts and wait for the completion we have no issues.
 

MrHits

Well-Known Member
Oct 31, 2001
92
0
306
Not sure if this is it..but, It happened to me when I double clicked the terminate button.

It ended up deleted the accoutn from teh system, but it left the apache config.

And, since suexec is enabled apache won't start because the username is bad.

Thanks
 
B

bdraco

Guest
[quote:21a07a75b4][i:21a07a75b4]Originally posted by MrHits[/i:21a07a75b4]

Not sure if this is it..but, It happened to me when I double clicked the terminate button.

It ended up deleted the accoutn from teh system, but it left the apache config.

And, since suexec is enabled apache won't start because the username is bad.

Thanks

[/quote:21a07a75b4]

Changed the order of deleting.. if this happens again apache should still start, but the user will still be there