[BlueOnyx:09112] Re: Unable to delete subdomains problem

Chris Gebhardt - VIRTBIZ Internet cobaltfacts at virtbiz.com
Fri Nov 25 15:16:28 -05 2011


Hi Michael,

Michael Stauber wrote:
> Hi Chris,
> 
>> This is on a 5106R.  I have a customer that wanted to delete some
>> subdomains.  He reports that when he logs in as a site admin, clicks to
>> Services > Sub Domains, then clicks to remove, it never goes away.
>>
>> This is what I get in /var/log/messages:
>> Nov 25 07:56:19 web cced(smd)[29534]: client 4083:[48:9727]: CREATE
>> "Subdomains" "webpath" "=" "/home/.sites/66/site39/vhosts/another1125"
>> "group" "=" "site39" "isUser" "=" "0" "hostname" "=" "another1125"
>> Nov 25 07:56:19 web cced(smd)[29534]: LOCKDEBUG: Locked file (null):
>> Success Nov 25 07:56:20 web cced(smd)[29534]: client 4083:[48:9727]:
>> CREATE Subdomains failed (-9)
>> Nov 25 07:56:20 web cced(smd)[29534]: LOCKDEBUG: Locked file y: No such
>> file or directory
>> Nov 25 07:56:20 web cced(smd)[29535]: client 4083:[48:26525]: SET  930 .
>> subdomains "max_subdomains" "=" "" "vsite_enabled" "=" ""
>> Nov 25 07:56:20 web cced(smd)[29535]: client 4083:[48:26525]: SET
>> 930.subdomains failed (-5)
> 
> Hmm. I see four problems at once:
> 
> 1.) The box is not fully YUM updated. It's still running a CCEd with the 
> "LOCKEDBUG" enabled. Which isn't bad by itself, but just saying ...

Well... not since October 5, but OK, I just ran a yum clean all / yum
update.

> 2.) We get an error -9, which is a permission problem.
> 
> 3.) We see CCED trying to access a non existing CODB database object, which 
> implies a CODB database corruption.
> 
> 4.) Finally we get -5 error message, which means an attempt to store incorrect 
> data into a CODB database field. Like in this case "max_subdomains" and 
> "vsite_enabled" were both empty, which probably shouldn't be the case.

 From a site-admin view, the "Enable Sub Domains" is checked and "Max #
of Sub Domains" is at 10.

If I perform the task as server admin, it will work without incident.

> Let us tackle the CODB database corruption first:
> 
> Please create a shell script on that box with this code in it:
SNIP

OK, here is the output of that script
1-5499,5501,5503,5505-5617,5619-5620,5622-5624,5630-5633
/usr/sausalito/codb/codb.oids reports:
1-5499,5501,5503,5505-5617,5619-5620,5622-5624,5630-5633

So it does not appear there are differences.

I restarted cced.init and now see these messages when attempting to
delete a subdomain:
Nov 25 14:10:40 web cced(smd)[23027]: client 2606:[48:23001]: DESTROY  2608
Nov 25 14:10:40 web cced(smd)[23027]: client 2606:[48:23001]: DESTROY
2608 failed (-9)

Creating a subdomain gives the same type of error as before:
Nov 25 14:11:43 web cced(smd)[23086]: client 2606:[48:9727]: CREATE
"Subdomains" "webpath" "=" "/home/.sites/4/site83/vhosts/testgoeshere"
"group" "=" "site83" "isUser" "=" "0" "hostname" "=" "testgoeshere"
Nov 25 14:11:43 web cced(smd)[23086]: LOCKDEBUG: Locked file (null): Success
Nov 25 14:11:43 web cced(smd)[23086]: client 2606:[48:9727]: CREATE
Subdomains failed (-9)
Nov 25 14:11:43 web cced(smd)[23086]: LOCKDEBUG: Locked file : No such
file or directory
Nov 25 14:11:43 web cced(smd)[23087]: client 2606:[48:9723]: SET  1943 .
subdomains "max_subdomains" "=" "" "vsite_enabled" "=" ""
Nov 25 14:11:43 web cced(smd)[23087]: client 2606:[48:9723]: SET
1943.subdomains failed (-5)



-- 
Chris Gebhardt
VIRTBIZ Internet Services
Access, Web Hosting, Colocation, Dedicated
www.virtbiz.com | toll-free (866) 4 VIRTBIZ



More information about the Blueonyx mailing list