Document browser and showing results of View queries not loading
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
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);
}
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.
BTW, how many buckets, design docs / bucket and documents / bucket do you have?
Which platform are you on?
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?
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
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?
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.
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...
Any update to this? This is a pretty big issue.
-- Joel