<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title>Parallels knowledgebase (KB)</title>
<link>http://kb.parallels.com/</link>
<description>Parallels knowledgebase (KB)</description>
<language>en</language>
<copyright>Copyright 2008 Parallels</copyright>
<pubDate>Wed, 10 Sep 2008 00:00:00 +0600</pubDate>
<lastBuildDate>Wed, 10 Sep 2008 00:00:00 +0600</lastBuildDate>
<webMaster>rt-team@parallels.com</webMaster>

<item>
<title><![CDATA[Error "Unable to create Account object: Account: unable to select: no such row in the table" occurs when I try to remove domain through Plesk Control Panel.]]></title>
<link>http://kb.parallels.com/en/5493</link>
<description><![CDATA[<div id="article">
	




	<div id="kb" class="kb">
		<div class="article-container">
			<h2 class="title">Error "Unable to create Account object: Account: unable to select: no such row in the table" occurs when I try to remove domain through Plesk Control Panel.</h2>
			<div class="ab-frame"><div class="bl"><div class="br"><div class="tl"><div class="tr"><!-- frame -->
				<div class="articleProperty">
					<div>Article ID: 5493&nbsp;</div>
					<div>Last Review: Oct,27 2008</div>
					<tr>
						<td>Author: </td>
						<td>Bezborodova Anastasiya</td>
					</tr>
					<br/>
					<tr>
						<td>Last updated by: </td>
						<td>system</td>
					</tr>
					<strong>APPLIES TO:</strong>
					<div class="articleApplies">
						<ul>
							<li>Plesk 8.1 for Linux/Unix</li>
							<li>Plesk 8.2 for Linux/Unix</li>
							<li>Plesk 8.3 for Linux/Unix</li>
						</ul>
					</div>
				</div><!-- articleProperty -->
			</div></div></div></div></div><!-- frame -->

			<div class="article-internal-flag"></div>

			<div id="article-content">
				<div class="article-part">
					<h2>Symptoms</h2>
					When try to remove domain through Plesk Control Panel, the following error is occurs.<br /><br /><span style='font-family: courier new,courier;font-size: 12px;'>DomainUser::getAccount failed: Unable to create Account object: Account: unable to select: no such row in the table 	<br /> 0: /usr/local/psa/admin/plib/class.PhDomain.php:424<br />&nbsp;&nbsp;&nbsp;&nbsp;PhDomain-&gt;reset(integer '0', boolean true, boolean false)<br />1: /usr/local/psa/admin/plib/class.BsDomain.php:313<br />&nbsp;&nbsp;&nbsp;&nbsp;BsDomain-&gt;reset(integer '0')<br />2: /usr/local/psa/admin/plib/class.BsDomain.php:307<br />&nbsp;&nbsp;&nbsp;&nbsp;BsDomain-&gt;delete(integer '0')<br />3: /usr/local/psa/admin/plib/class.BsDomain.php:540<br />&nbsp;&nbsp;&nbsp;&nbsp;mdeleteDomains(array)<br />4: /usr/local/psa/admin/plib/class.Manager.php:352<br />&nbsp;&nbsp;&nbsp;&nbsp;Manager-&gt;removeDomains(array)<br />5: /usr/local/psa/admin/htdocs/domains/removeDomains.php3:50</span>
				</div>
				<div class="article-part">
					<h2>Cause</h2>
					The error means that configurations of account that is appropriate to domain administrator and card are missing in Plesk database, use the following commands to verify this:<br /><br /><div class="commandline"><code>mysql&gt; select dlu.* from dom_level_usrs dlu, domains d where dlu.dom_id=d.id and d.name='<strong>DOMAIN-NAME</strong>';<br />+--------+------------+-------+---------+---------+<br />| dom_id | account_id | state | card_id | perm_id |<br />+--------+------------+-------+---------+---------+<br />|&nbsp;&nbsp;&nbsp;&nbsp; 29 |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 106 | true&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5 |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 18 |<br />+--------+------------+-------+---------+---------+<br />1 row in set (0.00 sec)<br /><br />mysql&gt; select * from accounts where id=106;<br />Empty set (0.00 sec)<br /><br />mysql&gt; select * from Cards where id=5;<br />Empty set (0.00 sec)<br /><br />mysql&gt;</code></div><br />
				</div>
				<div class="article-part">
					<h2>Resolution</h2>
					You should update table <strong>psa.dom_level_usrs</strong> manually to remove the discrepancy:<br /><br /><div class="commandline"><code>mysql&gt; update dom_level_usrs set account_id=NULL where dom_id=29;<br />Query OK, 1 row affected (0.00 sec)<br />Rows matched: 1&nbsp; Changed: 1&nbsp; Warnings: 0<br /><br />mysql&gt; update dom_level_usrs set card_id=NULL where dom_id=29;<br />Query OK, 1 row affected (0.00 sec)<br />Rows matched: 1&nbsp; Changed: 1&nbsp; Warnings: 0<br /><br />mysql&gt;</code></div>
				</div>
				<div class="keywords"><strong>Keywords:</strong> no such row in the table; domain removal</div>
			</div>
		</div><!-- article-container -->


			<br/><br/>

			<div id="SubscriptionLink24Article" class="subscriptionLink2">
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=5493&ArticleLanguage=en&Product=&Category="><img src="http://kb.parallels.com/images/mail.png" width="15" height="15" alt="Subscription for changes to this article"></a>
<a href="http://kb.parallels.com/subscriptions/index.html?Type=Article&ArticleID=5493&ArticleLanguage=en&Product=&Category=">Subscription for changes to this article</a>

<script type="text/javascript">

$(document).ready(function() {
	$('#SubscriptionLink24Article a').each(function(){
		$(this).click(function(event) {
			event.preventDefault();
			MainPageContentHide();
			$('#subscription').html('');
			$.get('/Stuff/Subscription', {
													'Type' : 'Article',
													'ArticleID' : '5493',
													'ArticleLanguage' : 'en',
													'Product' : '',
													'Category' : ''
												}, function(data) {
																	$('#subscription').html(data);
																	$('#subscription').show();
																	SUBbuildsubmenus_product();
																});
		});
	});
});

</script>

</div>





	</div><!-- kb -->

</div><!-- article -->


]]></description>
<author>Bezborodova Anastasiya</author>
<guid isPermaLink="false">5126 LastUpdated: 2008-10-27 04:59:38</guid>
<pubDate>2008-07-24 00:11:49</pubDate>
</item>
</channel>
</rss>



