Cant connect to remote server
Hello for the first time. I want to try your product but have first main problem , connecting to db. I installed couchbase 1.8 on my remote server and i can access it from my pc. Port 8091 is opened but i cant connect. My web.config code is ( http://prntscr.com/bbd1w ) and my C# code is ( http://prntscr.com/bbd3x ). My isstored bool is always false and my somevalue is always null. What i miss?
both ports are opened according to http://www.yougetsignal.com/tools/open-ports/ I also open both ports in my firewall. When i open web.config URL i get result like http://prntscr.com/bbic0 Also why my server node name have 'Server Name: 169.254.111.89:8091'? Is this important? This is not my IP and i don`t know how this server node got that name.
Ok here i also posted my question, there is all config screen shots. Check it!
http://stackoverflow.com/questions/11378512/install-and-connect-couchbas...
The server name is the ip address of the server that Couchbase is running on. In terms of your connection issues nothing jumps out at me, but I will forward this post to our .NET developer in case you are doing something incorrectly in your code. Also, I noticed that the ip address in your config is set to 127.0.0.1, but you mention that the the server is on a remote host. Can you double check that the ip address in the config is correct?
No no man, when i first write this post, it was on remote server. Now i tried on localhost.
As u say that server name is *SERVER IP ADDRESS*, then both on local (it not 127.0.0.1) and also on my remote machine installation it wasn't my server ip.
How this value is assigned when installing? How to change or why at least on remote machine i dont get real IP address?
Since i uninstalled on my remote machine, ill try to install now and post some images here.
Regards
I just installed 1.8.1 Enterprise Windows 64bit and again my server name is ** Server Name: 169.254.111.89:8091 **
That is not my server ip address... so? Any help?
Just one more info, when i type from my pc ** http://MyRealServerIP:8091/pools/default ** looks like its working, i got that json result..
If that's working, then it should be working for the client library. Some firewalls prevent untrusted programs from making a connection though, so that could be related. It looks like you've tried nearly everything else-- you may want to see what a tool like wireshark says when you try to connect with the client library.
Oh, but on re-reading your comment... is it working now?
Oh that Wireshark looks like an advanced network loger to me..
And also i don`t need to test with Wireshark when i also cant make it work localy.
On your question ** Oh, but on re-reading your comment... is it working now? **
- No its not working in C#, but when i type that address in my browser i get some json result like
{"storageTotals":{"ram":{"quotaUsed":1048576000,"usedByData":68831752,"total":10725466112.0,"quotaTotal":1048576000,"used":8315363328.0},"hdd":{"usedByData":2538496,"total":145758351360.0,"quotaTotal":145758351360.0,"used":106403596492.0,"free":39354754868.0}},"name":"default","alerts":[],"alertsSilenceURL":"/controller/resetAlerts?token=0","nodes":[{"systemStats":{"cpu_utilization_rate":0.5884562413922624,"swap_total":21449043968.0,"swap_used":8701878272.0},"interestingStats":
There is a known issue with the Windows installer that leads it to incorrectly assign a 169.XXX IP address. To remedy that problem, there is a workaround below:
http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-bestpractic...
You could enable logging to get detailed information.
http://www.couchbase.com/docs/couchbase-sdk-net-1.1/couchbase-sdk-net-lo...
Logging Assemblies: http://packages.couchbase.com/clients/net/1.1/Couchbase-Net-Client-Loggi...
or get the logging package on Nuget.
You could also try ExecuteStore or ExecuteGet and check the StatusCode properties or Message properties.
See Handling Failures at http://www.couchbase.com/wiki/display/couchbase/Couchbase+.NET+Client+Li....
I fixed my server IP address as u told me.
I install nLog and now i get this error.
2012-07-09 18:27:05.3404|WARN|Couchbase.MessageStreamListener|Current node 'http://127.0.0.1:8091/pools/default/bucketsStreaming/default' has failed.
2012-07-09 18:27:05.3464|WARN|Couchbase.MessageStreamListener|Could not found a working node.
2012-07-09 18:27:05.3464|WARN|Couchbase.MessageStreamListener|All nodes are dead, sleeping for a while.
My server name now is *Server Name: 127.0.0.1:8091*, up and running.
My bucket is :
Bucket Name: default
Bucket Type: Couchbase
Access Control: None
Replication: disabled
Active: yes, green DOT
I created new Bucket name: test and again same error
2012-07-09 18:31:31.5636|WARN|Couchbase.MessageStreamListener|Current node 'http://127.0.0.1:8091/pools/default/bucketsStreaming/test' has failed.
What`s next step ? :)
If you browse to http://127.0.0.1:8091/pools/default/bucketsStreaming/default or http://127.0.0.1:8091/pools/default/bucketsStreaming/test are you getting a response?
How about? http://127.0.0.1:8091/pools/
In the same application, if you try to use a WebClient instance to download the data, what do you get?
var wc = new WebClient();
var response = wc.DownloadString("http://127.0.0.1:8091/pools");
Wha is response?
C# code for WebClient DownloadString is same response as on browser.
for 127.0.0.1:8091/pools
Response: http://prntscr.com/by1b9
for 127.0.0.1:8091/pools/test and 127.0.0.1:8091/pools/default
Response: http://prntscr.com/by1cc
for
http://127.0.0.1:8091/pools/default/bucketsStreaming/default or
http://127.0.0.1:8091/pools/default/bucketsStreaming/test
Response: My browser is loading - something like connection timeout
SS: http://prntscr.com/by1ev
My Error log: http://prntscr.com/by1fy
My Couchbase admin ss : http://prntscr.com/by1gz
Hardware/Software
Asus P8Z68-V LX
I5 2500
Corsair RAM
Mushkin SSD
Windows 7 Premium
Tried also on
IBM system Xeon E5520
Windows 2008
Can you verify that you can telnet to port 11211 and pot 8091 from a remote machine? If you can't then your firewall might be preventing you from connecting.