<?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>mongodb Archives - mirmirik.net</title>
	<atom:link href="http://mirmirik.net/tag/mongodb/feed/" rel="self" type="application/rss+xml" />
	<link>http://mirmirik.net/tag/mongodb/</link>
	<description>...bir başka kedi günlüğü</description>
	<lastBuildDate>Sat, 17 Jan 2015 00:29:44 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.2</generator>
	<item>
		<title>Couchbase 2.0 &#8211; Cannot connect to localhost</title>
		<link>http://mirmirik.net/2013/couchbase-2-0-cannot-connect-to-localhost/</link>
					<comments>http://mirmirik.net/2013/couchbase-2-0-cannot-connect-to-localhost/#respond</comments>
		
		<dc:creator><![CDATA[mirmirik]]></dc:creator>
		<pubDate>Sun, 24 Mar 2013 20:33:01 +0000</pubDate>
				<category><![CDATA[Düşünce - Bilim]]></category>
		<category><![CDATA[couchbase]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[nosql]]></category>
		<category><![CDATA[solved]]></category>
		<category><![CDATA[solving]]></category>
		<guid isPermaLink="false">http://mirmirik.com/?p=1151</guid>

					<description><![CDATA[<p>We&#8217;ve been analysing noSQL world for a while to be able use it in a new project of Nexum. I&#8217;ve seen that could be a good opportunity to go back to the &#8220;software world&#8221; which I loved most in the past and tried to do my own research. First of all, I&#8217;ve downloaded and setup [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://mirmirik.net/2013/couchbase-2-0-cannot-connect-to-localhost/">Couchbase 2.0 &#8211; Cannot connect to localhost</a> appeared first on <a rel="nofollow" href="http://mirmirik.net">mirmirik.net</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>We&#8217;ve been analysing <a title="noSQL Databases" href="http://nosql-database.org/">noSQL world</a> for a while to be able use it in a new project of <a title="neXum Bogazici" href="http://www.nexumbogazici.com.tr/">Nexum</a>. I&#8217;ve seen that could be a good opportunity to go back to the &#8220;software world&#8221; which I loved most in the past and tried to do my own research. First of all, I&#8217;ve downloaded and setup <a title="MongoDB" href="http://www.mongodb.org/">MongoDB</a> on my personal computer running <a title="Ubuntu" href="http://www.ubuntu.com/">Ubuntu</a>(on VM) to see if it fulfills our needs. I did couple of POC by creating test data and trying to play with it via .NET client. After all these years passed by experience on relational database, I&#8217;ve got a little bit confused but that just made me more curious on noSQL(to be honest, somehow, I loved it). After reading couple of best practices online, I gave a shot to <a title="Couchbase" href="http://www.couchbase.com">Couchbase</a>. I&#8217;ve downloaded Windows version from the site and set it up without any problem. But when I tried to connect to server, I&#8217;ve seen the famous -but not as welcoming as it should be- UI of Chrome:</p>
<p><a href="http://mirmirik.com/mirmirFiles/2013/01/cannot_connect.jpg"><img decoding="async" class="aligncenter size-medium wp-image-1103" src="http://mirmirik.com/mirmirFiles/2013/01/cannot_connect-300x90.jpg" alt="Cannot connect to localhost:8091" width="300" height="90" srcset="http://mirmirik.net/mirmirFiles/2013/01/cannot_connect-300x90.jpg 300w, http://mirmirik.net/mirmirFiles/2013/01/cannot_connect.jpg 909w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>See? Not an expected response&#8230; I followed the steps to resolve this issue.</p>
<p>1. Probably, there should be a service, and probably it has to be running(Yes, indeed, there is a service and it is running):</p>
<p><a href="http://mirmirik.com/mirmirFiles/2013/01/service_is-_running.jpg"><img decoding="async" class="aligncenter size-medium wp-image-1104" src="http://mirmirik.com/mirmirFiles/2013/01/service_is-_running-300x31.jpg" alt="Service is running" width="300" height="31" srcset="http://mirmirik.net/mirmirFiles/2013/01/service_is-_running-300x31.jpg 300w, http://mirmirik.net/mirmirFiles/2013/01/service_is-_running.jpg 639w" sizes="(max-width: 300px) 100vw, 300px" /></a>2. Logically, service listener should be running on a port. I&#8217;ve found <a title="Couchbase portları" href="http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-network-ports.html">related ports</a> from Couchbase&#8217;s site.</p>
<p>3. Is there any service/deamon running on the port(8091 should have to be busy related with my problem. Only 8092 is being listened at the moment)?</p>
<p><a href="http://mirmirik.com/mirmirFiles/2013/01/ports.jpg"><img decoding="async" class="aligncenter size-medium wp-image-1105" src="http://mirmirik.com/mirmirFiles/2013/01/ports-300x102.jpg" alt="Computer active ports" width="300" height="102" srcset="http://mirmirik.net/mirmirFiles/2013/01/ports-300x102.jpg 300w, http://mirmirik.net/mirmirFiles/2013/01/ports.jpg 457w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>P.S.: You can check your active ports by entering following command on DOS command line(Microsoft Windows only)</p>
<p><code>netstat -an -p tcp</code></p>
<p>4. &#8220;localhost&#8221; that I was using is correctly defined as &#8220;127.0.0.1&#8221;. Nothing was wrong with that. I&#8217;ve restarted windows service and checked event viewer. there was no error.</p>
<p>5. I&#8217;ve checked the directory and the files under that Couchbase installed(default is &#8220;C:\Program Files\Couchbase\&#8221; if you&#8217;re using Microsoft Windows). I&#8217;ve found the batch files(.bat) under &#8220;Server\bin&#8221; folder:</p>
<p><code>service_register.bat<br />
service_reregister.bat<br />
service_unregister.bat<br />
service_start.bat<br />
service_stop.bat<br />
</code><br />
6. I&#8217;ve opened &#8220;service_register.bat&#8221;. I was really suprised(and upset with myself) when I see the advanced batch file codes in that file (after 20 years, they seemed really advanced). There was a line in that file as following: <em>for /f &#8220;tokens=1* delims=&#8221; %%a in (&#8216;cmd /q/c &#8220;type bin\ipaddr.out&#8221;&#8216;) do set <strong>IP_ADDR</strong>=%%a</em>. Probably IP_ADDR variable is being set to &#8220;%%a&#8221; according to these weird codes. I figured out that the line just before that is somehow involved to set &#8220;%%a&#8221; variable which is related with the &#8220;ipaddr.out&#8221; file. I&#8217;ve opened in my text editor.</p>
<p>7. The happy ending&#8230; In the file, address was given as &#8220;169.254.252.63&#8221;. I&#8217;ve changed it to &#8220;127.0.0.1&#8221; and saved the file(If you get &#8220;read only error&#8221; or something like that, just run your text editor with administrator rights).</p>
<p><a href="http://mirmirik.com/mirmirFiles/2013/01/wrong_ip.jpg"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-1106" src="http://mirmirik.com/mirmirFiles/2013/01/wrong_ip-300x111.jpg" alt="Wrong IP Adress" width="300" height="111" srcset="http://mirmirik.net/mirmirFiles/2013/01/wrong_ip-300x111.jpg 300w, http://mirmirik.net/mirmirFiles/2013/01/wrong_ip.jpg 315w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>&nbsp;</p>
<p>8. I&#8217;ve runned &#8220;service_unregister.bat&#8221; file and &#8220;service_register.bat&#8221; files consecutively.</p>
<p>9. Final: Couchbase 2.0 is working as expected.</p>
<p><a href="http://mirmirik.com/mirmirFiles/2013/01/running.jpg"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-1107" src="http://mirmirik.com/mirmirFiles/2013/01/running-300x155.jpg" alt="Running" width="300" height="155" srcset="http://mirmirik.net/mirmirFiles/2013/01/running-300x155.jpg 300w, http://mirmirik.net/mirmirFiles/2013/01/running-1024x530.jpg 1024w, http://mirmirik.net/mirmirFiles/2013/01/running.jpg 1194w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p><a href="http://mirmirik.com/mirmirFiles/2013/01/done.jpg"><img loading="lazy" decoding="async" class="aligncenter size-medium wp-image-1108" src="http://mirmirik.com/mirmirFiles/2013/01/done-285x300.jpg" alt="Done" width="285" height="300" srcset="http://mirmirik.net/mirmirFiles/2013/01/done-285x300.jpg 285w, http://mirmirik.net/mirmirFiles/2013/01/done.jpg 718w" sizes="(max-width: 285px) 100vw, 285px" /></a></p>
<p>The post <a rel="nofollow" href="http://mirmirik.net/2013/couchbase-2-0-cannot-connect-to-localhost/">Couchbase 2.0 &#8211; Cannot connect to localhost</a> appeared first on <a rel="nofollow" href="http://mirmirik.net">mirmirik.net</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://mirmirik.net/2013/couchbase-2-0-cannot-connect-to-localhost/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
