<?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>Tommy Chheng &#187; couchdb</title>
	<atom:link href="http://tommy.chheng.com/index.php/tag/couchdb/feed/" rel="self" type="application/rss+xml" />
	<link>http://tommy.chheng.com</link>
	<description>All Things Programming!</description>
	<lastBuildDate>Wed, 11 Aug 2010 05:58:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>OS Process Timed out CouchDB error and fix</title>
		<link>http://tommy.chheng.com/index.php/2009/07/os-process-timed-out-couchdb-error-and-fix/</link>
		<comments>http://tommy.chheng.com/index.php/2009/07/os-process-timed-out-couchdb-error-and-fix/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 18:25:00 +0000</pubDate>
		<dc:creator>tommy</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[couchdb]]></category>

		<guid isPermaLink="false">http://tommy.chheng.com/?p=133</guid>
		<description><![CDATA[If you come across an OS Process Timed out using a view in CouchDB, you can adjust the os_process_timeout setting in the couchdb futon utility. [Tue, 21 Jul 2009 23:57:45 GMT] [error] [&#60;0.2804.0&#62;] Uncaught error in HTTP request: {exit, {{bad_return_value, {os_process_error,"OS process timed out."}}, {gen_server,call, [&#60;0.2808.0&#62;, {prompt, [&#60;&#60;"reduce"&#62;&#62;, [&#60;&#60;"function(keys, values, rereduce) {\n return sum(values);\n }"&#62;&#62;], [...]]]></description>
			<content:encoded><![CDATA[<p>If you come across an OS Process Timed out using a view in CouchDB, you can adjust the os_process_timeout setting in the couchdb futon utility.</p>
<p><img src="http://tommy.chheng.com/wp-content/uploads/2009/07/os_process_timeout.png" alt="os_process_timeout" title="os_process_timeout" width="687" height="455" class="alignnone size-full wp-image-134" /></p>
<pre>[Tue, 21 Jul 2009 23:57:45 GMT] [error] [&lt;0.2804.0&gt;] Uncaught error in HTTP request: {exit,
                                {{bad_return_value,
                                  {os_process_error,"OS process timed out."}},
                                 {gen_server,call,
                                  [&lt;0.2808.0&gt;,
                                   {prompt,
                                    [&lt;&lt;"reduce"&gt;&gt;,
                                     [&lt;&lt;"function(keys, values, rereduce) {\n     return sum(values);\n   }"&gt;&gt;],
                                     [[[[&lt;&lt;"0832603"&gt;&gt;,&lt;&lt;"and"&gt;&gt;],
                                        &lt;&lt;"0832603"&gt;&gt;],
                                       1],
                                      [[[&lt;&lt;"0832603"&gt;&gt;,&lt;&lt;"and"&gt;&gt;],
                                        &lt;&lt;"0832603"&gt;&gt;],
                                       1],
                                      [[[&lt;&lt;"0832603"&gt;&gt;,&lt;&lt;"and"&gt;&gt;],
                                        &lt;&lt;"0832603"&gt;&gt;],
                                       1],
                                      [[[&lt;&lt;"0832603"&gt;&gt;,&lt;&lt;"and"&gt;&gt;],
                                        &lt;&lt;"0832603"&gt;&gt;],
                                       1],
                                      [[[&lt;&lt;"0832603"&gt;&gt;,&lt;&lt;"and"&gt;&gt;],
                                        &lt;&lt;"0832603"&gt;&gt;],
                                       1],
                                      [[[&lt;&lt;"0832603"&gt;&gt;,&lt;&lt;"and"&gt;&gt;],
                                        &lt;&lt;"0832603"&gt;&gt;],
                                       1],
                                      [[[&lt;&lt;"0832603"&gt;&gt;,&lt;&lt;"and"&gt;&gt;],
                                        &lt;&lt;"0832603"&gt;&gt;],
                                       1]]]},
                                   infinity]}}}</pre>
<p>Thanks to Dustin on the couchdb user mailing list for pointing this out.</p>
]]></content:encoded>
			<wfw:commentRss>http://tommy.chheng.com/index.php/2009/07/os-process-timed-out-couchdb-error-and-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing CouchDB on Ubuntu: Problems and fixes</title>
		<link>http://tommy.chheng.com/index.php/2009/07/installing-couchdb-on-ubuntu-problems-and-fixes/</link>
		<comments>http://tommy.chheng.com/index.php/2009/07/installing-couchdb-on-ubuntu-problems-and-fixes/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 20:56:22 +0000</pubDate>
		<dc:creator>tommy</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[couchdb]]></category>

		<guid isPermaLink="false">http://tommy.chheng.com/?p=120</guid>
		<description><![CDATA[Got around to install CouchDB from source on a Ubuntu VM. CouchDB is schemaless &#8220;document&#8221; database server with a RESTful HTTP/JSON API. I&#8217;m mostly experimenting it with because of the schemaless design. The map/reduce views took a bit to get used to after being so well acustomed to SQL queries in the past, but I [...]]]></description>
			<content:encoded><![CDATA[<p>Got around to install <a href="http://couchdb.apache.org">CouchDB</a> from source on a Ubuntu VM. CouchDB is schemaless &#8220;document&#8221; database server with a RESTful HTTP/JSON API.  I&#8217;m mostly experimenting it with because of the schemaless design. The map/reduce views took a bit to get used to after being so well acustomed to SQL queries in the past, but I like what I see so far.</p>
<p>While installing it, I ran into a few problems:</p>
<p>Install Erlang(I was having trouble with the 64-bit erlang and openssl package, i ended up just using the 32 bit version):</p>
<pre>
sudo apt-get install build-essential erlang
</pre>
<p>First error message: </p>
<pre>
configure: error: Could not find the js library.
Is the Mozilla SpiderMonkey library installed?
</pre>
<p>Uh oh, let&#8217;s install spidermonkey:</p>
<pre>
sudo apt-get install libmozjs-dev
</pre>
<p>Another error pops up:</p>
<pre>
checking for icu-config... no
*** The icu-config script could not be found. Make sure it is
*** in your path, and that taglib is properly installed.
*** Or see http://ibm.com/software/globalization/icu/
configure: error: Library requirements (ICU) not met.
</pre>
<p>Oh no, international character support needed, install icu:</p>
<pre>
sudo apt-get install libicu-dev
</pre>
<p>And then another error appears:</p>
<pre>
checking for curl-config... no
*** The curl-config script could not be found. Make sure it is
*** in your path, and that curl is properly installed.
*** Or see http://curl.haxx.se/
configure: error: Library requirements (curl) not met.
</pre>
<p>Hmm, curl needed: </p>
<pre>
sudo apt-get install libcurl4-openssl-dev
</pre>
<p>Now for Couchdb install commands (stolen from the couchdb wiki)</p>
<pre>
svn co http://svn.apache.org/repos/asf/couchdb/trunk couchdb
cd couchdb
./bootstrap
./configure
make
sudo make install
make clean
make distclean
sudo -i
adduser --system --home /usr/local/var/lib/couchdb --no-create-home --shell /bin/bash --group --gecos "CouchDB Administrator" couchdb
chown -R couchdb:couchdb /usr/local/var/lib/couchdb
chown -R couchdb:couchdb /usr/local/var/log/couchdb
chown -R couchdb:couchdb /usr/local/var/run
chown -R couchdb:couchdb /usr/local/etc/couchdb
chmod -R 0770 /usr/local/var/lib/couchdb
chmod -R 0770 /usr/local/var/log/couchdb
chmod -R 0770 /usr/local/var/run
chmod -R 0770 /usr/local/etc/couchdb
cp /usr/local/etc/init.d/couchdb /etc/init.d/
update-rc.d couchdb defaults
</pre>
<p>Start it up with:</p>
<pre>
sudo /etc/init.d/couchdb start
</pre>
<p>CouchDB has a really great development community behind it. Subscribe to the <a href="http://couchdb.apache.org/community/lists.html">mailing list</a>, read the <a href="http://wiki.apache.org/couchdb/">wiki</a>, follow the <a href="http://twitter.com/couchdb">couchdb twitter</a> and <a href="http://oreilly.com/catalog/9780596158163/">read the book</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tommy.chheng.com/index.php/2009/07/installing-couchdb-on-ubuntu-problems-and-fixes/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
