[coldbox-4.0.0-BE] [cfcouchbase-1.1.0.00074] CFCouchbase Sample App - beer-sample bucket empty

Hi,

I’m a little stumped here. This may be more of a Couchbase issue than a SDK or Coldbox issue, but I figured you guys may have some ideas on things to try to get the sample app up and running.

I have copied the sample app coldbox-sample into my webroot and then dropped the cfcouchbase folder into the sample coldbox apps module folder. I updated the cfcouchbase/config/CouchbaseConfig.cfc with my node’s hostname:port which in this case I have a local entry setup in my hosts file for http://ea1.local mapped to my CF11/IIS server.

When I run the app I receive the following error: http://pastebin.com/999Gt82t

From what I can tell from the error the issue is that beer-sample was not found in Couchbase’s pools.

`
Caused by: com.couchbase.client.vbucket.ConfigurationException: Configuration for bucket “beer-sample” was not found in server list ([http://ea1.local:8091/pools]).

`

I’m a little unsure why the bucket doesn’t show in the available pools and why the sample buckets weren’t populated the the sample documents/views (see attached screenshots of my Couchbase console)

Buckets List -> http://picpaste.com/Buckets-uHONiFIm.png

No Documents in beer-sample -> http://picpaste.com/Beer-Sample-NoDocuments-iVe4SR9J.PNG

I even deleted the bucket via the CLI then re-created the bucket via Sample Buckets section under settings in the Couchbase console.

`

C:\Program Files\Couchbase\Server\bin>couchbase-cli.exe bucket-delete -c ea1.loc
al:8091 --bucket=beer-sample -u Administrator -p MyPasswordHere

`

I even uninstalled / re-installed Couchbase and the sample buckets were not populated.

Environment / Setup Info:

Couchbase:

Version: 3.0.1 Community Edition (build-1444) installed on Windows 7
CF / Webserver:

Coldfusion 11 + IIS 7.5 on Windows Server 2008 R2 running on VirtualBox
Coldbox: downloaded just now
http://integration.staging.ortussolutions.com/artifacts/ortussolutions/coldbox/4.0.0/coldbox-standalone-4.0.0.zip

Does my hostname of the cluster node have anything to do with this issue since it’s not registered as localhost:8091 with the Couchbase cluster?

Any thoughts on how to get this up and running would be great so I can see the sample app in action and get started writing my own handlers and modeling my documents.

Thanks!

~Tim

I guess there is this Jira ticket that I came across after posting that says this issue is fixed/resolved, but doesn’t appear that’s the case (https://issues.couchbase.com/browse/MB-11567)

~Tim

Tim,

It probably is in the latest source. Did you try installing the module via CommandBox, while clearing your artifacts first?

Example to do so with an artifacts clean beforehand:

rm -rf modules/cfcouchbase && box artifacts clean —force && box install cfcouchbase

Jon

Is that more bleeding edge than the GitHub repo? I’ll give it a try here in a bit…

-tim

Yes, the GitHub repos are usually out of date. :frowning: The Forgebox entries are always up to date, though.

[Note: Typo assistance courtesy of iPhone]

This is most likely a Couchbase server issue and not anything you are doing wrong. I’ve never seen the beer sample bucket empty before-- but I have had it take a while to populate since it’s all async. Is your machine showing a lot of hard drive usage? My laptop used to be a dog with Couchbase until I put SSDs in it.

Also, just to confirm, you’re specifying the correct server hostname in your config when creating the SDK right?

I would reach out on the Couchbase community support (or via their professional channels if you purchased a license) and see if this is a known bug in 3.0.
http://forums.couchbase.com/c/couchbase-server

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

It looks like Matt reopened that ticket today. Did you contact them already, or was it just a coincidence?

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Jon, if you’re saying the CFCouchbase code is more up to date on ForgeBox than GitHub, I’m not sure how that would be possible since our integration servers pull straight from GitHub :slight_smile:

If you’re looking for bleeding edge on GitHub, make sure you choose the “development” branch. Default is master.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Call me incorrect, then. :slight_smile: I didn’t know you were using GitHub as your primary source repo for that one. I know some of the Coldbox projects have their upstream masters on GitHub and some always seem to be behind.

All of our open source projects are hosted on GitHub. The only time they’re behind is when Luis hasn’t pushed changes from his local machine yet :slight_smile:

If you see something that seems “behind” let me know though I’m not sure what else you’d be comparing it to.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Yeah I had posted on a forum thread there as well (Sample data fails to load Couchbase 3.0.2 on Windows - Couchbase Server - Couchbase Forums) and referenced the ticket.

Installing the 3.0.2 enterprise edition populated the sample buckets for me. It took a minute or so to load the documents create the views etc., but it worked.

Removed the cfcouchbase module, removed artifacts and installed via commandbox. My /config/Coldbox.cfc has the following configuration

`

couchbase = {
servers = “http://ea1.local:8091”,
bucketname = “beer-sample”,
viewTimeout = “1000”
};

`

Still get the same error as in the paste bin earlier in the thread about the bucket not being in the available pools. I can find the bucket info via the rest API call, but it seems like the SDK is expecting the beer-sample to be it’s own pool. Again, I’m completely new to how couchbase handles the buckets and what not so maybe it’s nothing, but with messing with the couchbase API calls I was able get this URI to return meta data about the bucket.

http://ea1.local:8091/pools/default/buckets/beer-sample

Since this is a “remote” server, check the ports you have open between your web server and Couchbase. There are a ton of odd-numbered high ports that are required for all sorts of communications that happen. A lot of stuff like bucket status and such happen on dedicated ports to clear up the main ports that are used for basic data transfer.

http://docs.couchbase.com/admin/admin/Install/install-networkPorts.html

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Hi Brad,

Since this was a “remote” server you were exactly right. I had made the entries in the firewall to allow my local desktop to talk to my other desktop that is running Couchbase, but I hadn’t opened the ports on my virutal windows server. I also had to make an entry in my virtual windows server’s host file that pointed my node’s host name to the local IP so the couchbase client could resolve the host.

So the lesson learned here is to confirm whether or not the boxes running your webserver / CF engine can access the console and the other HIGH ports you linked to.

Once I did that every loaded up just fine.

Thanks for all of your help!

~Tim

That’s great, Tim. Couchbase away!

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com