<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PRESOON.COM &#187; ensim</title>
	<atom:link href="http://presoon.com/blog/category/ensim/feed/" rel="self" type="application/rss+xml" />
	<link>http://presoon.com/blog</link>
	<description></description>
	<lastBuildDate>Sat, 20 Mar 2010 03:59:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ensim cannot exit post maintenance mode</title>
		<link>http://presoon.com/blog/2009/06/27/ensim-cannot-exit-post-maintenance-mode/</link>
		<comments>http://presoon.com/blog/2009/06/27/ensim-cannot-exit-post-maintenance-mode/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 12:42:31 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[ensim]]></category>
		<category><![CDATA[maintenance mode]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=95</guid>
		<description><![CDATA[maintenance mode issues with Ensim. The Ensim control panel won't start after running /usr/local/sbin/synchronizeFST -Sv]]></description>
			<content:encoded><![CDATA[<p>The error</p>
<p>Maintenance State is : 4</p>
<p>Upgrading complete, 1 domains skipped</p>
<p>If the start up shows that it has skipped any domains, it is sure that the services are not going to start.</p>
<p>The first thing to do is to take a new shell and tail the contents of /var/log/appliance/ensim_appliance.log or /var/log/messages</p>
<p>tail -f /var/log/appliance/ensim_appliance.log</p>
<p>In another shell restart epld.</p>
<p>/etc/init.d/epld restart</p>
<p>This will give your the exact error in the other shell.</p>
<p>The error which I received was</p>
<p>===============</p>
<p>Jun 27 06:35:46 ensim [13222]: UpgradeActiveVirtDomains: upgrading site76<br />
Jun 27 06:35:46 ensim [13222]: Pickle File does not exist &#8212; created<br />
Jun 27 06:35:46 ensim [13222]: mysql: Write service configuration failed<br />
Jun 27 06:35:46 ensim [13222]:  &#8211; (ERROR:   1600000000000001) field &#8216;dbaseadmin&#8217;: This database user name is already in use. P<br />
lease select another user name.</p>
<p>===============</p>
<p>Fix which I applied was just a try</p>
<p>================<br />
In file<br />
/etc/virtualhosting/mappings/mysql.usermap</p>
<p>added the entry given below (the name myonlytest is just any word)<br />
myonlytest = site76</p>
<p>then copied mysql file from another site which is working fine<br />
cp -pr /home/virtual/site77/info/current/mysql /home/virtual/site76/info/current/</p>
<p>I edited the contents as</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;<br />
[DEFAULT]<br />
dbaseadmin = myonlytest<br />
version = 10.3.0-rhel.4ES.11<br />
enabled = 1<br />
dbasenum = 1<br />
&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>================</p>
<p>Restarted epld. That fixed the issue. <img src='http://presoon.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2009/06/27/ensim-cannot-exit-post-maintenance-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Failed to add site to database. DBERR: error &#8216;ERROR: duplicate key violates unique constraint &#8220;domain_key&#8221; &#8216; in &#8216; INSERT INTO siteinfo ENSIM</title>
		<link>http://presoon.com/blog/2009/03/06/failed-to-add-site-to-database-dberr-error-error-duplicate-key-violates-unique-constraint-domain_key-in-insert-into-siteinfo-ensim/</link>
		<comments>http://presoon.com/blog/2009/03/06/failed-to-add-site-to-database-dberr-error-error-duplicate-key-violates-unique-constraint-domain_key-in-insert-into-siteinfo-ensim/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 04:00:24 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[Pgsql]]></category>
		<category><![CDATA[ensim]]></category>

		<guid isPermaLink="false">http://presoon.com/blog/?p=79</guid>
		<description><![CDATA[Hello guys, You might have come accross the following error
Failed to add site to database. DBERR: error &#8216;ERROR: duplicate key violates unique constraint &#8220;domain_key&#8221; &#8216; in &#8216; INSERT INTO siteinfo (site_id, domain, admin_user, email) VALUES (8, &#8216;domain.com&#8217;, &#8216;xxxx&#8217;, &#8216;xxx@domain.com&#8217;)&#8217;
=========================
Here is the fix.
Login to server via backend.
su postgres
Take a backup of the database&#8230;
pg_dump appldb &#62; appldb.dump.out
Now [...]]]></description>
			<content:encoded><![CDATA[<p>Hello guys, You might have come accross the following error</p>
<p>Failed to add site to database. DBERR: error &#8216;ERROR: duplicate key violates unique constraint &#8220;domain_key&#8221; &#8216; in &#8216; INSERT INTO siteinfo (site_id, domain, admin_user, email) VALUES (8, &#8216;domain.com&#8217;, &#8216;xxxx&#8217;, &#8216;xxx@domain.com&#8217;)&#8217;</p>
<p>=========================</p>
<p>Here is the fix.</p>
<p>Login to server via backend.</p>
<p>su postgres</p>
<p>Take a backup of the database&#8230;</p>
<p>pg_dump appldb &gt; appldb.dump.out</p>
<p>Now lets edit</p>
<p>psql</p>
<p>postgres=# \l</p>
<p>this will list all the databases. The Ensim database is &#8220;appldb&#8221;</p>
<p>postgres=# \c appldb<br />
You are now connected to database &#8220;appldb&#8221;.<br />
appldb=# \d</p>
<p>This will list all the tables in the database.</p>
<p>You can find the database siteinfo</p>
<p>appldb=# SELECT * FROM siteinfo WHERE domain=&#8217;domain.com&#8217;;</p>
<p>site_id |       domain       |        email        | admin_user<br />
&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+&#8212;&#8212;&#8212;&#8212;<br />
35 |domain.com | test@yahoo.com | dommn<br />
(1 row)<br />
it will list the entry. Now to fix  the issue, you need to delete that entry. Find the site_id for the domain. Here it is 35</p>
<p>DELETE FROM siteinfo WHERE site_id=35;</p>
<p>Now quit the database</p>
<p>appldb=# \q</p>
<p>bash-3.00$ exit</p>
<p>Restart services</p>
<p>/etc/rc.d/init.d/virtualhosting restart</p>
<p>/etc/rc.d/init.d/epld restart</p>
<p>Now try to add the domain from Control panel. <img src='http://presoon.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://presoon.com/blog/2009/03/06/failed-to-add-site-to-database-dberr-error-error-duplicate-key-violates-unique-constraint-domain_key-in-insert-into-siteinfo-ensim/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
