Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

Custom Port Configuration

2 replies [Last post]
  • Login or register to post comments
Tue, 03/06/2012 - 06:41
petervl
Offline
Joined: 03/06/2012
Groups: None

We have a situation where certain Clients can only access a range of Ports 5200-5230, I want them to still be able to access the couchbase server.

I have successfully changed the console to port 5208.
I also have a Non SASL bucket configured on Port 5209.

Using the .Net Client I connect to http://XXX.XXX.XXX.XXX:5208/pools/default with MyBucketName and no Password
but still can't retrieve any data.

Any Suggestions?

Regards
Peter

Top
  • Login or register to post comments
Fri, 03/09/2012 - 15:04
alkondratenko
alkondratenko's picture
Offline
Joined: 12/01/2010
Groups: None

Can you provide more details? It sends you back error message? Exception? How exactly it can't retrieve any data?

Your answers may prove very helpful in finding out what's wrong in your case.

Top
  • Login or register to post comments
Sat, 03/10/2012 - 00:44
petervl
Offline
Joined: 03/06/2012
Groups: None

After Connect it returns successful & connected = True but when I call retrieve the first time it will wait 10s and return null after that all other calls return null immediately. We don't get any exceptions.
If I browse to the URI http://xxx.xxx.xxx.xxx:5208/pools/default I get the following returned
{"storageTotals":{"ram":{"quotaUsed":209715200,"usedByData":54101738,"total":0,"quotaTotal":536870912,"used":54101738},"hdd":{"usedByData":9434680,"total":0,"quotaTotal":0,"used":9434680,"free":0}},"name":"default","alerts":[],"nodes":[{"systemStats":{"cpu_utilization_rate":0.20027537864563774,"swap_total":34507681792.0,"swap_used":5158969344.0},"interestingStats":{"curr_items":2998,"curr_items_tot":2998,"vb_replica_curr_items":0},"uptime":"331777","memoryTotal":0,"memoryFree":0,"mcdMemoryReserved":0,"mcdMemoryAllocated":0,"clusterMembership":"active","status":"healthy","hostname":"10.4.153.10:5208","clusterCompatibility":1,"version":"1.8.0r-55-g80f24f2-enterprise","os":"windows","ports":{"proxy":11211,"direct":11210}}],"buckets":{"uri":"/pools/default/buckets?v=58581514"},"controllers":{"addNode":{"uri":"/controller/addNode"},"rebalance":{"uri":"/controller/rebalance"},"failOver":{"uri":"/controller/failOver"},"reAddNode":{"uri":"/controller/reAddNode"},"ejectNode":{"uri":"/controller/ejectNode"},"testWorkload":{"uri":"/pools/default/controller/testWorkload"}},"balanced":true,"failoverWarnings":["hardNodesNeeded"],"rebalanceStatus":"none","rebalanceProgressUri":"/pools/default/rebalanceProgress","stopRebalanceUri":"/controller/stopRebalance","nodeStatusesUri":"/nodeStatuses","stats":{"uri":"/pools/default/stats"},"counters":{}}

and if you look at the ports entry they are still 11211 & 11210 which I can't access outside the firewall. Inside the firewall all works 100% so I suspect that although I managed to change both the engine port to 5208 and the bucket port to 5209 there is still something accessing ports outside the 5200 - 5230 range. It unfortunately is not an option to open other ports.

As from external all that is needed is retrieve,So if I can't go via the server is there any api that I can use to access the bucket directly, I don't need any authentication at all.

Regards
Peter

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker