<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Upgrading data from 0.5 to 0.8 Not Working</title>
		<link>http://wikipbx.subwiki.com/forum/t-220509/upgrading-data-from-0-5-to-0-8-not-working</link>
		<description>Posts in the discussion thread &quot;Upgrading data from 0.5 to 0.8 Not Working&quot; - Migration instructions not clear enough?</description>
				<copyright></copyright>
		<lastBuildDate>Sun, 05 Sep 2010 03:57:29 +0000</lastBuildDate>
		
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-220509#post-709331</guid>
				<title>Re: Upgrading data from 0.5 to 0.8 Not Working</title>
				<link>http://wikipbx.subwiki.com/forum/t-220509/upgrading-data-from-0-5-to-0-8-not-working#post-709331</link>
				<description></description>
				<pubDate>Thu, 25 Feb 2010 18:49:21 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <blockquote> <p>you should add a domain name for your account (tenant). It's possible to use the ip as the domain name, but that's discouraged.</p> </blockquote> <p>By the way this can/should be done <em>after</em> the successful import</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-220509#post-708842</guid>
				<title>Re: Upgrading data from 0.5 to 0.8 Not Working</title>
				<link>http://wikipbx.subwiki.com/forum/t-220509/upgrading-data-from-0-5-to-0-8-not-working#post-708842</link>
				<description></description>
				<pubDate>Thu, 25 Feb 2010 06:12:34 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>OK it looks like the export had a bug and didn't include the userprofile attribute for one endpoint.</p> <p>The easiest thing would be to delete this endpoint:</p> <div class="code"> <pre> <code>&lt;endpoint account="MyAccountNameHere" password="1234" userid="8775550199"/&gt;</code> </pre></div> <p>or hack in a userprofile, eg:</p> <div class="code"> <pre> <code>&lt;endpoint account="MyAccountNameHere" password="1234" userid="8775550199" userprofile="barry@example.com"/&gt;</code> </pre></div> <p>Does that fix it?</p> <p>Also don't miss this warning — "Warning: no domain for profile, using name. You will need to fix this" — you should add a domain name for your account (tenant). It's possible to use the ip as the domain name, but that's discouraged.</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-220509#post-708645</guid>
				<title>Re: Upgrading data from 0.5 to 0.8 Not Working</title>
				<link>http://wikipbx.subwiki.com/forum/t-220509/upgrading-data-from-0-5-to-0-8-not-working#post-708645</link>
				<description></description>
				<pubDate>Thu, 25 Feb 2010 01:24:27 +0000</pubDate>
				<wikidot:authorName>steffler</wikidot:authorName>				<wikidot:authorUserId>323481</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hi again,</p> <p>Sorry for the delay. I updated to svn r251 now.</p> <p>Here is the new log snip. I believe it is not liking the endpoints that I have that do not have a web user associated with them. It goes through with the import and dies with the following:</p> <div class="code"> <pre> <code>[Fri Feb 19 08:38:56 2010] [error] Will use sip profile: sip profile: MY.IP.IS.HERE:5060 [Fri Feb 19 08:38:56 2010] [error] elt: wikipbx [Fri Feb 19 08:38:56 2010] [error] account: &lt;account accept_blind_reg="False" domain="" enabled="True" ext_rtp_ip="MY.IP.IS.HERE" ext_sip_ip="MY.IP.IS.HERE" name="MyAccountNameHere"/&gt; [Fri Feb 19 08:38:56 2010] [error] account name: MyAccountNameHere [Fri Feb 19 08:38:56 2010] [error] Warning: no domain for profile, using name. You will need to fix this [Fri Feb 19 08:38:56 2010] [error] userprofile: &lt;userprofile account="MyAccountNameHere" email="info@example.com" first_name="MyName" is_account_admin="False" is_active="True" is_superuser="False" last_name="MyLast" password="sha1$hashishere"/&gt; [Fri Feb 19 08:38:56 2010] [error] email: info@example.com [Fri Feb 19 08:38:56 2010] [error] account: MyAccountNameHere [Fri Feb 19 08:38:56 2010] [error] userprofile: &lt;userprofile account="MyAccountNameHere" email="steffler@example.com" first_name="Steve" is_account_admin="True" is_active="True" is_superuser="False" last_name="Steffler" password="sha1$hashishere"/&gt; [Fri Feb 19 08:38:56 2010] [error] email: steffler@example.com [Fri Feb 19 08:38:56 2010] [error] account: MyAccountNameHere [Fri Feb 19 08:38:56 2010] [error] userprofile: &lt;userprofile account="MyAccountNameHere" email="barry@example.com" first_name="barry" is_account_admin="True" is_active="True" is_superuser="False" last_name="kat" password="sha1$hashishere"/&gt; [Fri Feb 19 08:38:56 2010] [error] email: barry@example.com [Fri Feb 19 08:38:56 2010] [error] account: MyAccountNameHere [Fri Feb 19 08:38:56 2010] [error] endpoint: &lt;endpoint account="MyAccountNameHere" password="pwhere" userid="1005" userprofile="steffler@example.com"/&gt; [Fri Feb 19 08:38:56 2010] [error] account: MyAccountNameHere [Fri Feb 19 08:38:56 2010] [error] endpoint: &lt;endpoint account="MyAccountNameHere" password="pwhere" userid="7805551212" userprofile="steffler@example.com"/&gt; [Fri Feb 19 08:38:56 2010] [error] account: MyAccountNameHere [Fri Feb 19 08:38:56 2010] [error] endpoint: &lt;endpoint account="MyAccountNameHere" password="pwhere" userid="4035551212" userprofile="info@example.com"/&gt; [Fri Feb 19 08:38:56 2010] [error] account: MyAccountNameHere [Fri Feb 19 08:38:56 2010] [error] endpoint: &lt;endpoint account="MyAccountNameHere" password="1234" userid="8775550199"/&gt; [Fri Feb 19 08:38:56 2010] [error] account: MyAccountNameHere [Fri Feb 19 08:38:56 2010] [error] User matching query does not exist. [Fri Feb 19 08:38:56 2010] [error] Got exception, rolling back [Fri Feb 19 08:44:26 2010] [notice] caught SIGTERM, shutting down</code> </pre></div> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-220509#post-704331</guid>
				<title>Re: Upgrading data from 0.5 to 0.8 Not Working</title>
				<link>http://wikipbx.subwiki.com/forum/t-220509/upgrading-data-from-0-5-to-0-8-not-working#post-704331</link>
				<description></description>
				<pubDate>Sat, 20 Feb 2010 02:57:08 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>If you were already using the 0.8 branch, then you'll just need to svn up to r251</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-220509#post-704330</guid>
				<title>Re: Upgrading data from 0.5 to 0.8 Not Working</title>
				<link>http://wikipbx.subwiki.com/forum/t-220509/upgrading-data-from-0-5-to-0-8-not-working#post-704330</link>
				<description></description>
				<pubDate>Sat, 20 Feb 2010 02:56:14 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Please switch to the 0.8 branch using these instructions: <a href="http://wikipbx.subwiki.com/zip2branch">zip2branch</a></p> <p>Then retry your test and post the log output. Hopefully from that it will be apparent.</p> <p>Are there any statements that say: "looking up user with email: x" with no corresponding<br /> statements: "creating user with email: x" (eg, user with email x was never created and so lookups fail).</p> <p>The "creating user with email" statements should appear earlier in the log file</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-220509#post-703307</guid>
				<title>Re: Upgrading data from 0.5 to 0.8 Not Working</title>
				<link>http://wikipbx.subwiki.com/forum/t-220509/upgrading-data-from-0-5-to-0-8-not-working#post-703307</link>
				<description></description>
				<pubDate>Thu, 18 Feb 2010 22:38:39 +0000</pubDate>
				<wikidot:authorName>tleyden</wikidot:authorName>				<wikidot:authorUserId>230690</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Ah … here's the key line:</p> <div class="code"> <pre> <code>Got exception, rolling back</code> </pre></div> <p>I think we should have made that a little louder ;)</p> <p>Give us credit though .. everything was done in a transaction, and so when it encountered an error, it rolled back the transaction and did NOT leave you in a half-upgraded, half-working state. Instead everything got rolled back so its as if the failed import attempt had never happened. (Why don't more coders do this?)</p> <p>And thank you for posting the installation log! It's nice having smart users, sure makes our job easier. I have to say, having such a heinous installation process has such a nice side effect!</p> <p>Anyway .. to get to the bottom of this error we will need to update the code to print out the detailed error message. How did you install the code?</p> <ul> <li>0.8 zip file</li> <li>0.8 branch</li> <li>Other branch (trunk?)</li> </ul> <p>Let me know and we'll go from there</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://wikipbx.subwiki.com/forum/t-220509#post-703071</guid>
				<title>Upgrading data from 0.5 to 0.8 Not Working</title>
				<link>http://wikipbx.subwiki.com/forum/t-220509/upgrading-data-from-0-5-to-0-8-not-working#post-703071</link>
				<description></description>
				<pubDate>Thu, 18 Feb 2010 17:25:40 +0000</pubDate>
				<wikidot:authorName>ssteffler</wikidot:authorName>				<wikidot:authorUserId>441521</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>After a lengthy difficult process upgrading my WikiPBX to 0.8, I have finally gotten the new version working with a lot of help from tleyden and stas_shtin. Thanks guys! :)</p> <p>I now see the WikiPBX [ ADD ROOT ] option on the main page of WikiPBX after I load it in my browser. I click Add Root, and I fill in all the information required. I use the same info I had on my root login on the old version of WikiPBX.</p> <p>I'm confused about the migration instructions from here onward. The website says "Create a sip profile if you have not done so already". Does this mean I create a SIP Profile which matches the information of the profiles from the old WikiPBX I need to import? Should I name it the same? Because I did name it the same as my old profile in WikiPBX 0.5, and it seems to work correctly to do so, with no complaints.</p> <p>However, after I select the XML file I put into /tmp, and select the new profile I created, then click the Initiate Import button, it says "Import Successful" or something like that, and that I should be able to see the information in the GUI now. However, I don't see any information at all, and WikiPBX is still blank of other users (that were in the XML export) as well as blank of the stuff I imported (either as a new profile or as part of the one that I created).</p> <p>Dialplan, users, etc, all seem to be blank as if they are new, without any info successfully imported. Here is what I saw in the Apache logfile during the import process (edited for privacy concerns):</p> <div class="code"> <pre> <code>[Thu Feb 18 16:55:47 2010] [notice] Apache/2.2.11 (FreeBSD) mod_ssl/2.2.11 OpenSSL/0.9.8e mod_wsgi/3.1 Python/2.5.4 PHP/5.2.9 configured -- resuming normal operations [Thu Feb 18 16:56:54 2010] [error] restart_profiles called [Thu Feb 18 16:56:54 2010] [error] get_fs_connections() [Thu Feb 18 16:56:54 2010] [error] no eventsockets [Thu Feb 18 16:56:54 2010] [error] get_fs_connections() done [Thu Feb 18 16:57:20 2010] [error] restart_profiles called [Thu Feb 18 16:57:20 2010] [error] get_fs_connections() [Thu Feb 18 16:57:20 2010] [error] 1 eventsockets [Thu Feb 18 16:57:20 2010] [error] creating eslconnection [Thu Feb 18 16:57:58 2010] [error] Will use sip profile: sip profile: MY.IP.IS.HERE:5060 [Thu Feb 18 16:57:58 2010] [error] elt: wikipbx [Thu Feb 18 16:57:58 2010] [error] account: &lt;account accept_blind_reg="False" domain="" enabled="True" ext_rtp_ip="MY.IP.IS.HERE" ext_sip_ip="MY.IP.IS.HERE" name="MYPROFILENAME"/&gt; [Thu Feb 18 16:57:58 2010] [error] account name: MYPROFILENAME [Thu Feb 18 16:57:58 2010] [error] Warning: no domain for profile, using name. You will need to fix this [Thu Feb 18 16:57:58 2010] [error] userprofile: &lt;userprofile account="MYPROFILENAME" email="email@address.here" first_name="MyFirst" is_account_admin="False" is_active="True" is_superuser="False" last_name="MyLast" password="sha1$ENCRYPTEDSTRINGHERE"/&gt; [Thu Feb 18 16:57:58 2010] [error] email: email@address.here [Thu Feb 18 16:57:58 2010] [error] account: MYPROFILENAME [Thu Feb 18 16:57:58 2010] [error] userprofile: &lt;userprofile account="MYPROFILENAME" email="myname@admin.account.com" first_name="ME" is_account_admin="True" is_active="True" is_superuser="False" last_name="MINE" password="sha1$ENCRYPTEDSTRINGHERE"/&gt; [Thu Feb 18 16:57:58 2010] [error] email: myname@admin.account.com [Thu Feb 18 16:57:58 2010] [error] account: MYPROFILENAME [Thu Feb 18 16:57:58 2010] [error] userprofile: &lt;userprofile account="MYPROFILENAME" email="friend@gmail.com" first_name="FRIENDNAME" is_account_admin="True" is_active="True" is_superuser="False" last_name="LASTNAME" password="sha1$ENCRYPTEDSTRINGHERE"/&gt; [Thu Feb 18 16:57:58 2010] [error] email: friend@gmail.com [Thu Feb 18 16:57:58 2010] [error] account: MYPROFILENAME [Thu Feb 18 16:57:58 2010] [error] endpoint: &lt;endpoint account="MYPROFILENAME" password="pass" userid="1000" userprofile="myname@admin.account.com"/&gt; [Thu Feb 18 16:57:58 2010] [error] account: MYPROFILENAME [Thu Feb 18 16:57:58 2010] [error] endpoint: &lt;endpoint account="MYPROFILENAME" password="pass" userid="USERIDHERE" userprofile="myname@admin.account.com"/&gt; [Thu Feb 18 16:57:58 2010] [error] account: MYPROFILENAME [Thu Feb 18 16:57:58 2010] [error] endpoint: &lt;endpoint account="MYPROFILENAME" password="pass" userid="USERIDHERE"/&gt; [Thu Feb 18 16:57:58 2010] [error] account: MYPROFILENAME [Thu Feb 18 16:57:58 2010] [error] User matching query does not exist. [Thu Feb 18 16:57:58 2010] [error] Got exception, rolling back [Thu Feb 18 16:59:04 2010] [error] restart_profiles called [Thu Feb 18 16:59:04 2010] [error] get_fs_connections() [Thu Feb 18 16:59:04 2010] [error] 1 eventsockets [Thu Feb 18 16:59:04 2010] [error] creating eslconnection [Thu Feb 18 17:00:30 2010] [error] restart_profiles called [Thu Feb 18 17:00:30 2010] [error] get_fs_connections() [Thu Feb 18 17:00:30 2010] [error] 1 eventsockets [Thu Feb 18 17:00:30 2010] [error] creating eslconnection [Thu Feb 18 17:00:46 2010] [notice] caught SIGTERM, shutting down</code> </pre></div> <p>Is there yet another glaring thing I am doing wrong here? :-) I have confirmed that the export file does in fact contain the XML from the old installation, and it is in the correct location. Furthermore, I receive no errors or complaints during the import procedure except if I turn Apache debug logging on, just blank end results. Help would be greatly appreciated.</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>