<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Thu May 23 13:52:23 CDT 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.couchbase.com/issues/si/jira.issueviews:issue-xml/MB-6995/MB-6995.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Couchbase</title>
    <link>http://www.couchbase.com/issues</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.4</version>
        <build-number>845</build-number>
        <build-date>26-12-2012</build-date>
    </build-info>

<item>
            <title>[MB-6995] set_db_and_ix_paths and ns_server:restart are raceful which may cause couch_db to fail to start</title>
                <link>http://www.couchbase.com/issues/browse/MB-6995</link>
                <project id="10010" key="MB">Couchbase Server</project>
                        <description>&lt;br/&gt;
Installing couchbase on a node after uninstalling previous installation with non-default data path gives error &amp;quot;Got no response from save request&amp;quot;&lt;br/&gt;
Screenshot attached.&lt;br/&gt;
&lt;br/&gt;
Steps to reproduce:&lt;br/&gt;
&lt;br/&gt;
On a CentOS VM:&lt;br/&gt;
1. rm -Rf /opt/couchbase/*&lt;br/&gt;
2. rm -Rf /data/*&lt;br/&gt;
3. sudo rpm -i couchbase-server-community_x86_64_2.0.0-beta.rpm&lt;br/&gt;
4. Setup the cluster with data/index path set to /data and create default bucket&lt;br/&gt;
5. Create a couple of documents&lt;br/&gt;
6. sudo rpm -e couchbase-server-2.0.0-1723&lt;br/&gt;
7. sudo rpm -i couchbase-server-community_x86_64_2.0.0-1888-rel.rpm&lt;br/&gt;
8. Setting up the cluster again with data/index path set to /data gives error and couchdb fails to initialize with below crash report&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
=========================CRASH REPORT=========================&lt;br/&gt;
&amp;nbsp;&amp;nbsp;crasher:&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;initial call: couch_db:init/1&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pid: &amp;lt;0.5333.0&amp;gt;&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;registered_name: []&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;exception exit: {function_clause,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[{couch_server,&amp;#39;-terminate/2-fun-0-&amp;#39;,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[{&amp;lt;&amp;lt;&amp;quot;_replicator&amp;quot;&amp;gt;&amp;gt;,&amp;lt;0.693.0&amp;gt;}]},&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{lists,foreach,2},&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{gen_server,terminate,6},&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{proc_lib,init_p_do_apply,3}]}&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;in function  gen_server:terminate/6&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ancestors: [couch_server,couch_primary_services,couch_server_sup,&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cb_couch_sup,ns_server_cluster_sup,&amp;lt;0.58.0&amp;gt;]&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;messages: []&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;links: []&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dictionary: []&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;trap_exit: true&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;status: running&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;heap_size: 610&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;stack_size: 24&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;reductions: 376&lt;br/&gt;
&amp;nbsp;&amp;nbsp;neighbours:&lt;br/&gt;
&lt;br/&gt;
Diagnostics attached.</description>
                <environment>build 1888</environment>
            <key id="20391">MB-6995</key>
            <summary>set_db_and_ix_paths and ns_server:restart are raceful which may cause couch_db to fail to start</summary>
                <type id="1" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10011">Public</security>
                        <assignee username="Aliaksey Artamonau">Aliaksey Artamonau</assignee>
                                <reporter username="deepkaran.salooja">Deepkaran Salooja</reporter>
                        <labels>
                    </labels>
                <created>Wed, 24 Oct 2012 10:27:54 -0500</created>
                <updated>Thu, 6 Dec 2012 17:02:55 -0600</updated>
                    <resolved>Thu, 25 Oct 2012 15:19:07 -0500</resolved>
                            <version>recent-builds-2.0</version>
                                <fixVersion>2.0</fixVersion>
                                <component>ns_server</component>
                                <votes>0</votes>
                        <watches>0</watches>
                                                    <comments>
                    <comment id="42395" author="steve" created="Wed, 24 Oct 2012 11:38:14 -0500"  >first guess assignment on this one</comment>
                    <comment id="42422" author="farshid" created="Wed, 24 Oct 2012 15:31:39 -0500"  >&lt;br/&gt;
we dont support offline or online upgrade of 2.0 beta to 2.0 server.</comment>
                    <comment id="42423" author="steve" created="Wed, 24 Oct 2012 15:31:55 -0500"  >It seems the user&amp;#39;s missing step 6.5 -- rm -rf /opt/couchbase/*</comment>
                    <comment id="42447" author="Aliaksey Artamonau" created="Wed, 24 Oct 2012 17:12:37 -0500"  >As far as I can tell from the logs it has nothing to do with upgrade. It&amp;#39;s a genuine race condition that can happen whenever database and index paths are set up.</comment>
                    <comment id="42565" author="thuan" created="Thu, 25 Oct 2012 19:40:29 -0500"  >Integrated in github-couchdb-preview #526 (See [&lt;a href=&quot;http://qa.hq.northscale.net/job/github-couchdb-preview/526/&quot;&gt;http://qa.hq.northscale.net/job/github-couchdb-preview/526/&lt;/a&gt;])&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-6995&quot; title=&quot;set_db_and_ix_paths and ns_server:restart are raceful which may cause couch_db to fail to start&quot;&gt;&lt;strike&gt;MB-6995&lt;/strike&gt;&lt;/a&gt; Don&amp;#39;t restart couch_{server,set_view} on dir changes. (Revision 18bce935e8cf0d31316495b5462ed9429801a84e)&lt;br/&gt;
&lt;a href=&quot;http://www.couchbase.com/issues/browse/MB-6995&quot; title=&quot;set_db_and_ix_paths and ns_server:restart are raceful which may cause couch_db to fail to start&quot;&gt;&lt;strike&gt;MB-6995&lt;/strike&gt;&lt;/a&gt; Stop related apps when couchdb application is stopped. (Revision a5a033c9edc81ed7a1acfd3c0d05745215973dca)&lt;br/&gt;
&lt;br/&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Result = SUCCESS&lt;br/&gt;
Farshid Ghods : &lt;br/&gt;
Files : &lt;br/&gt;
* src/couch_set_view/src/couch_set_view.erl&lt;br/&gt;
* src/couchdb/couch_server.erl&lt;br/&gt;
* src/couchdb/couch_view.erl&lt;br/&gt;
&lt;br/&gt;
Farshid Ghods : &lt;br/&gt;
Files : &lt;br/&gt;
* src/couchdb/couch_app.erl&lt;br/&gt;
</comment>
                    <comment id="42573" author="deepkaran.salooja" created="Fri, 26 Oct 2012 04:10:14 -0500"  >Verified with build 1901</comment>
                    <comment id="45610" author="kzeller" created="Thu, 6 Dec 2012 17:02:55 -0600"  >Added to RN as:&lt;br/&gt;
&lt;br/&gt;
In the past if you set the disk path for data to be the same path as that for index files, &lt;br/&gt;
Couchbase Server would fail to start. This is fixed.</comment>
                </comments>
                    <attachments>
                    <attachment id="15543" name="collect_info.gz" size="833590" author="deepkaran.salooja" created="Wed, 24 Oct 2012 10:27:54 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                        <customfield id="customfield_10180" key="com.atlassian.jira.ext.charting:firstresponsedate">
                <customfieldname>Date of First Response</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>Wed, 24 Oct 2012 11:38:14 -0500</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>3681</customfieldvalue>
                </customfieldvalues>
            </customfield>
                                                                                                                                                                                        <customfield id="customfield_10181" key="com.atlassian.jira.ext.charting:timeinstatus">
                <customfieldname>Time In Status</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                </customfields>
    </item>
</channel>
</rss>