Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Document browser and showing results of View queries not loading

8 replies [Last post]
  • Login or register to post comments
Wed, 08/08/2012 - 19:25
jpoloney
Offline
Joined: 07/03/2012
Groups: None

Hi,

I'm having an issue in an environment running a cluster of two Couchbase Server 2.0DP4 nodes. I just recently upgraded these server nodes from Couchbase Server 1.8.0 using the upgrade steps listed in the docs.

Through the admin console, I created a new bucket but when I click on the documents tab to see what's inside, it loads a page (http://mydomain.com:8091/index.html#sec=documents&bucketName=mybucketname) but never shows anything. It just shows a loading spinner and waits. It eventually shows a "lost connection to mydomain.com" message at the top and then says "Repeating failed XHR request...".

I'm also seeing the same problem when trying to view the results of a View query. I can create Views but when I click the "Show Results" button, the same loading spinner shows up and never actually completes.

This problem doesn't seem to occur when I remove one of the two server nodes and rebalance down to just one. Viewing documents and the results of Views works just fine. Any suggestions?

Thanks,

-- Joel

Top
  • Login or register to post comments
Tue, 08/14/2012 - 18:12
jpoloney
Offline
Joined: 07/03/2012
Groups: None

Any update to this? This is a pretty big issue.

-- Joel

Top
  • Login or register to post comments
Wed, 08/15/2012 - 09:25
dimashchepin
Offline
Joined: 06/21/2012
Groups: None

I have the same problem!

trying to run a view
http://url:8092/default/_design/dev_MYVIEW/_view/MYVIEW?connection_timeo...

my browser (Chrome) shows it cannot even connect to the page, it times out...
When I click on the "view results" inside edit page for the view - it does show up!
function I use is very simple, here it is :

function(doc) {
emit(doc.name, doc);
}

Top
  • Login or register to post comments
Wed, 08/22/2012 - 00:22
dipti
Offline
Joined: 11/02/2011
Groups:

Hey Folks,

I'll recommend using a recent build. Try 1495. http://www.couchbase.com/download-all. There are lots of major improvements between DP4 and these builds we have started posting, particularly CPU utilization (given the re-write of the storage engine), much better query latencies (improvements to view-engine) etc...

Build 1554 (just posted) has some API changes, so please do refer to the release notes before using it (http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-server-rn.html)

A couple of other comments. Your map function

function(doc) {
emit(doc.name, doc);
}

is not recommended. You are emitting the entire doc in the view. So you are doubling the size of your data. Since the document ID is always returned as a part of the view, I'd recommend emitting just null with the attribute you want to index on [ emit(doc.name, null) ] and then access the document using the standard client side APIs. Take a look at this link.

http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-views-writi...

You may be hitting a specific where CB seems to take a lot more CPU after coming out of hibernate (http://www.couchbase.com/issues/browse/MB-3321) is this the case ?

Hope this helps.

Top
  • Login or register to post comments
Wed, 08/22/2012 - 00:24
dipti
Offline
Joined: 11/02/2011
Groups:

BTW, how many buckets, design docs / bucket and documents / bucket do you have?

Which platform are you on?

Top
  • Login or register to post comments
Wed, 08/22/2012 - 11:26
jpoloney
Offline
Joined: 07/03/2012
Groups: None

dipti wrote:
I'll recommend using a recent build. Try 1495. http://www.couchbase.com/download-all. There are lots of major improvements between DP4 and these builds we have started posting, particularly CPU utilization (given the re-write of the storage engine), much better query latencies (improvements to view-engine) etc...

Build 1554 (just posted) has some API changes, so please do refer to the release notes before using it (http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-server-rn.html)

I've downgraded back to Couchbase 1.8 since I found 2.0 to be too unstable. I was running in to other issues with the Ruby library as well, so have decided to move back to something more stable. Has a launch date been confirmed yet?

dipti wrote:
BTW, how many buckets, design docs / bucket and documents / bucket do you have?

Which platform are you on?

I just had 1 bucket with 1 design doc in it. There were a few hundred documents in the bucket too. I'm running my cluster on Ubuntu.

Thanks,

-- Joel

Top
  • Login or register to post comments
Mon, 08/27/2012 - 04:35
dimashchepin
Offline
Joined: 06/21/2012
Groups: None

I tried to install version 1495
however, installing from rpm (I have redhat linux 64) could not proceed, because it showed a lot of conflicts with previous install (2.0.0 dp4)
so, should I uninstall it first, before installing 1495?

Top
  • Login or register to post comments
Mon, 08/27/2012 - 13:07
dipti
Offline
Joined: 11/02/2011
Groups:

dimashchepin ,

Upgrades are not supported pre-release. You will need to uninstall and re-install. HEre's a link to the docs. http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-uninstallin...

We are also working on backup and restore and will publish the docs soon for the newer builds so that you have a way to recover your data.
I'll post an update once that's available.

Top
  • Login or register to post comments
Wed, 09/12/2012 - 22:18
dipti
Offline
Joined: 11/02/2011
Groups:

Build 1672 is now available on the download page as well. http://www.couchbase.com/download?next=true

Backup and restore docs are also updated and can be found here:
http://www.couchbase.com/docs/couchbase-manual-2.0/couchbase-backup-rest...

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