Coldbox 3.7.0 - Couchbase Provider Freezes in Cachebox Monitor Profile Too

Hi
I have set up template cache to use couchbase provider and it mostly seems fine.

I tried to use the CacheBox Monitoring tool and upon choosing the template from the drop down it freezes until i get a page timeout after 50 secs.

It could be that the Monitoring tool is not yet Couchbase savvy so to speak but thought i would report it anyway.

There is only a few items in my couchbase cache and its pretty close (i.e. on our lan) so i doubt latency is the issue.

`

Railo 4.1.1.003 Error (expression)
Message request (path: C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\index.cfm (C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc):1) has run into a timeout (50 seconds) and has been stopped.
Stacktrace The Error Occurred in
C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc: line 397

395: // This should only error the first time and will run successfully every time after.
396: try {
397: getCouchbaseClient().getDesignDocument( local.designDocumentName );
398: }
399: catch(‘com.couchbase.client.protocol.views.InvalidViewException’ e) {

called from C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc: line 346

344: any function getKeys() output=“false” {
345:
346: ensureViewExists(“allKeys”);
347:
348: // The only reason I’m try/catching this is that the Java exception has an object for the 'type

called from C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc: line 314

312: any function getStoreMetadataReport() output=“false” {
313: var md = {};
314: var keys = getKeys();
315: var item = “”;
316:

called from C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\cache\report\ReportHandler.cfc: line 131

129:
130: // Cache Data
131: cacheMetadata = cacheProvider.getStoreMetadataReport();
132: cacheMDKeyLookup = cacheProvider.getStoreMetadataKeyMap();
133: cacheKeys = cacheProvider.getKeys();

called from C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\cache\report\skins\default\CacheReport.cfm: line 118

116:
117:


118: #renderCacheContentReport(arguments.cacheName)#
119:

120:

called from C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\cache\report\ReportHandler.cfc: line 109

107:
108: <!— Generate Debugging —>
109:
110:
111:

called from C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\cache\report\monitor.cfm: line 78

76:
77:
78: <cfset report = reportHandler.renderCacheReport(cacheName=url.cbox_cacheName)>
79:
80:

called from C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\Coldbox.cfc: line 197

195:
196: <cfmodule template=“/coldbox/system/cache/report/monitor.cfm”
197: cacheFactory=“#cbController.getCacheBox()#”>
198:
199:

called from C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\Application.cfc: line 44

42: <cfset reloadChecks()>
43: <!— Process Request —>
44: <cfset processColdBoxRequest()>
45:
46:

Java Stacktrace request (path: C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\index.cfm (C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc):1) has run into a timeout (50 seconds) and has been stopped.
at sun.misc.Unsafe.park(Native Method):-2
at java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source):-1
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(Unknown Source):-1
at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(Unknown Source):-1
at java.util.concurrent.CountDownLatch.await(Unknown Source):-1
at com.couchbase.client.internal.HttpFuture.waitForAndCheckOperation(HttpFuture.java:80):80
at com.couchbase.client.internal.HttpFuture.get(HttpFuture.java:74):74
at com.couchbase.client.internal.HttpFuture.get(HttpFuture.java:64):64
at com.couchbase.client.CouchbaseClient.getDesignDocument(CouchbaseClient.java:538):538
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method):-2
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source):-1
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source):-1
at java.lang.reflect.Method.invoke(Unknown Source):-1
at railo.runtime.reflection.pairs.MethodInstance.invoke(MethodInstance.java:37):37
at railo.runtime.reflection.Reflector.callMethod(Reflector.java:820):820
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:721):721
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1494):1494
at coldbox.couchbase.couchbaseprovider_cfc$cf._3(C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc:397):397
at coldbox.couchbase.couchbaseprovider_cfc$cf.udfCall(C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1494):1494
at coldbox.couchbase.couchbaseprovider_cfc$cf._3(C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc:346):346
at coldbox.couchbase.couchbaseprovider_cfc$cf.udfCall(C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1494):1494
at coldbox.couchbase.couchbaseprovider_cfc$cf._3(C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc:314):314
at coldbox.couchbase.couchbaseprovider_cfc$cf.udfCall(C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
at railo.runtime.ComponentImpl._call(ComponentImpl.java:612):612
at railo.runtime.ComponentImpl._call(ComponentImpl.java:495):495
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1708):1708
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1494):1494
at coldbox.system.cache.report.reporthandler_cfc$cf.udfCall(C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\cache\report\ReportHandler.cfc:131):131
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1494):1494
at coldbox.system.cache.report.skins._default.cachereport_cfm$cf.call(C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\cache\report\skins\default\CacheReport.cfm:118):118
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:833):833
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:780):780
at coldbox.system.cache.report.reporthandler_cfc$cf.udfCall(C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\cache\report\ReportHandler.cfc:109):109
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:198):198
at railo.runtime.ComponentImpl._call(ComponentImpl.java:613):613
at railo.runtime.ComponentImpl._call(ComponentImpl.java:495):495
at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1725):1725
at railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:738):738
at railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1504):1504
at coldbox.system.cache.report.monitor_cfm$cf.call(C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\cache\report\monitor.cfm:78):78
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:833):833
at railo.runtime.tag.CFTag.doInclude(CFTag.java:303):303
at railo.runtime.tag.CFTag.cfmlStartTag(CFTag.java:225):225
at railo.runtime.tag.CFTag.doStartTag(CFTag.java:157):157
at coldbox.system.coldbox_cfc$cf._1(C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\Coldbox.cfc:197):197
at coldbox.system.coldbox_cfc$cf.udfCall(C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\Coldbox.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1494):1494
at application_cfc$cf.udfCall(C:\Users\Blacka\Dropbox\Code\CFWorkspace\mcwr_ii.l\Application.cfc:44):44
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
at railo.runtime.ComponentImpl._call(ComponentImpl.java:612):612
at railo.runtime.ComponentImpl._call(ComponentImpl.java:495):495
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1708):1708
at railo.runtime.listener.ModernAppListener.call(ModernAppListener.java:373):373
at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:109):109
at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:18):18
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2149):2149
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2116):2116
at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:318):318
at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728):728
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305):305
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222):222
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123):123
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472):472
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171):171
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99):99
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118):118
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407):407
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200):200
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589):589
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310):310
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source):-1
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source):-1
at java.lang.Thread.run(Unknown Source):-1

Timestamp 27/09/13 14:21:07 BST

`

`

CacheBox Monitor

Refresh Monitor:
CacheBox ID
596211302
Configured Caches
default,template
Scope Registration
{ENABLED={false}, KEY={cachebox}, SCOPE={server}}

My first thought is how many items you have in the bucket, but you’ve said it’s not that many. Check the out logs for your servlet container. Given that location in the stack trace, I had a similar issue and it turned out I didn’t have all the right ports open between by Couchbase and CF server. 8092 specifically. I figured it out when I looked in the out log and saw a bunch of messages about timeouts trying to connect on port 8092.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

Ade, did you ever get a resolution to this? I forgot to mention it in my first reply, but the CacheBox monitor does work with Couchbase. You just have to be careful if you hit it with a very large number of items in the cache since it tries to list them all.

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
Unfortunately not.
I am getting timeouts but its not saying anything about a port. I can get to 8092 in my browser, so not entirely sure why. I also times out when cf and couchbase are on the same box.

In the logs i get the below. So im not sure what the lock is attached too. I am on Railo, has that been verified that it works?

One thing is the error is occuring

`

// Couchbase doesn’t provide a way to check for DesignDocuments, so try to retrieve it and catch the error.
// This should only error the first time and will run successfully every time after.
try {
getCouchbaseClient().getDesignDocument( local.designDocumentName );
}
catch(‘com.couchbase.client.protocol.views.InvalidViewException’ e) {

`
with the bucket i created, i set it up as a memcached bucket. Should it be the document type bucket. Memcache buckets dont have design views i believe.

Thanks

`

“ERROR”,“web-0”,“10/01/2013”,“22:06:47”,"","request (path: C:\Users\Adrian\Dropbox\Code\CFWorkspace\mcwr_ii.l\index.cfm (C:\Users\Adrian\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc):1) has run into a timeout (50 seconds) and has been stopped.
at sun.misc.Unsafe.park(Native Method):-2
at java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source):-1
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(Unknown Source):-1
at java.util.concurrent.locks.AbstractQueueSynchronizer.tryAcquireSharedNanos(Unknown Source):-1
at java.util.concurrent.CountDownLatch.await(Unknown Source):-1
at com.couchbase.client.internal.HttpFuture.waitForAndCheckOperation(HttpFuture.java:80):80
at com.couchbase.client.internal.HttpFuture.get(HttpFuture.java:74):74
at com.couchbase.client.internal.HttpFuture.get(HttpFuture.java:64):64
at com.couchbase.client.CouchbaseClient.getDesignDocument(CouchbaseClient.java:538):538
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method):-2
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source):-1
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source):-1
at java.lang.reflect.Method.invoke(Unknown Source):-1
at railo.runtime.reflection.pairs.MethodInstance.invoke(MethodInstance.java:37):37
at railo.runtime.reflection.Reflector.callMethod(Reflector.java:820):820
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:721):721
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1494):1494
at coldbox.couchbase.couchbaseprovider_cfc$cf._3(C:\Users\Adrian\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc:397):397
at coldbox.couchbase.couchbaseprovider_cfc$cf.udfCall(C:\Users\Adrian\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1494):1494
at coldbox.couchbase.couchbaseprovider_cfc$cf._3(C:\Users\Adrian\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc:346):346
at coldbox.couchbase.couchbaseprovider_cfc$cf.udfCall(C:\Users\Adrian\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1494):1494
at coldbox.couchbase.couchbaseprovider_cfc$cf._3(C:\Users\Adrian\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc:314):314
at coldbox.couchbase.couchbaseprovider_cfc$cf.udfCall(C:\Users\Adrian\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\couchbase\CouchbaseProvider.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
at railo.runtime.ComponentImpl._call(ComponentImpl.java:612):612
at railo.runtime.ComponentImpl._call(ComponentImpl.java:495):495
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1708):1708
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1494):1494
at coldbox.system.cache.report.reporthandler_cfc$cf.udfCall(C:\Users\Adrian\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\cache\report\ReportHandler.cfc:131):131
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1494):1494
at coldbox.system.cache.report.skins._default.cachereport_cfm$cf.call(C:\Users\Adrian\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\cache\report\skins\default\CacheReport.cfm:118):118
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:833):833
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:780):780
at coldbox.system.cache.report.reporthandler_cfc$cf.udfCall(C:\Users\Adrian\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\cache\report\ReportHandler.cfc:109):109
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
at railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:198):198
at railo.runtime.ComponentImpl._call(ComponentImpl.java:613):613
at railo.runtime.ComponentImpl._call(ComponentImpl.java:495):495
at railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1725):1725
at railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:738):738
at railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:1504):1504
at coldbox.system.cache.report.monitor_cfm$cf.call(C:\Users\Adrian\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\cache\report\monitor.cfm:78):78
at railo.runtime.PageContextImpl.doInclude(PageContextImpl.java:833):833
at railo.runtime.tag.CFTag.doInclude(CFTag.java:303):303
at railo.runtime.tag.CFTag.cfmlStartTag(CFTag.java:225):225
at railo.runtime.tag.CFTag.doStartTag(CFTag.java:157):157
at coldbox.system.coldbox_cfc$cf._1(C:\Users\Adrian\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\Coldbox.cfc:197):197
at coldbox.system.coldbox_cfc$cf.udfCall(C:\Users\Adrian\Dropbox\Code\CFWorkspace\mcwr_ii.l\coldbox\system\Coldbox.cfc):-1
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
at railo.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:700):700
at railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:712):712
at railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1494):1494
at application_cfc$cf.udfCall(C:\Users\Adrian\Dropbox\Code\CFWorkspace\mcwr_ii.l\Application.cfc:44):44
at railo.runtime.type.UDFImpl.implementation(UDFImpl.java:94):94
at railo.runtime.type.UDFImpl._call(UDFImpl.java:307):307
at railo.runtime.type.UDFImpl.call(UDFImpl.java:211):211
at railo.runtime.ComponentImpl._call(ComponentImpl.java:612):612
at railo.runtime.ComponentImpl._call(ComponentImpl.java:495):495
at railo.runtime.ComponentImpl.call(ComponentImpl.java:1708):1708
at railo.runtime.listener.ModernAppListener.call(ModernAppListener.java:373):373
at railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:109):109
at railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:18):18
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2149):2149
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:2116):2116
at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:318):318
at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:29):29
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728):728
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305):305
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210):210
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222):222
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123):123
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472):472
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171):171
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99):99
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118):118
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407):407
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200):200
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589):589
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310):310
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source):-1
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source):-1
at java.lang.Thread.run(Unknown Source):-1
"

`

Have you checked your servlet containers “out” logs. They can be very useful for this kind of stuff. Yes, we have tested this on Railo. In fact, most of my Couchbase usage and development has all been on Railo.

Please try re-creating the bucket as a Couchbase bucket. There should be no need to create the bucket as memcached, and in fact I’ve never even used that, so I’m not sure if it even works. For what it’s worth, you can still connect to a Couchbase bucket with a memcached client. Of course, in this case you’re using a Couchbase client so that’s moot.

The easy way to see if the correct ports are open is to telnet to that port from the web server. I don’t remember if I sent this to you, but scroll down a but on this link to see a full list of all the network ports that need to be open for the Couchbase client to communicate with the server correctly. http://docs.couchbase.com/couchbase-manual-2.0/#preparationhttp://docs.couchbase.com/couchbase-manual-2.0/#preparation

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

In my std err railo log i am getting

013-10-02 22:44:49.223 INFO com.couchbase.client.http.AsyncConnectionManager: Opening new Couchbase HTTP connection
2013-10-02 22:44:49.339 INFO com.couchbase.client.http.AsyncConnectionManager$ConnRequestCallback: /192.168.3.39:8092 - Session request successful
2013-10-02 22:44:56.752 ERROR com.couchbase.client.ViewNode$EventLogger: Connection timed out: [192.168.3.39/192.168.3.39:8092]

which seems to confirm your previous statement, but if this is the main client port why can i a) telnet to it, b) are keys and data getting put into the server from my coldbox site? Doesnt couchbase use this port to put and get data?

I have deleted the memcache bucket and created a couchbase one with no effect. I switched off my firewall too.

I have attached the log file if it is any help.

Thanks Brad for you time on this.

railo-stderr.2013-10-02.log.zip (16.6 KB)

Couchbase uses different ports for different things. This is from their documentation:

8091 Web Administration Port
8092 Couchbase API Port
11209 Internal Cluster Port
11210 Internal Cluster Port
11211 Client interface (proxy)
4369 Erlang Port Mapper ( epmd )
21100 to 21199 (inclusive) Node data exchange

What do you get when you telnet into 8092 from the web server? I see the following:

root@hostname:/# telnet cacheServer 8092

Trying 123.123.123.123…
Connected to cacheServer.
Escape character is ‘^]’.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

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

Telnet on Cygwin and Mac OS we get the same output. Windows telnet just shows nothing till you break out, then i get the below

`

HTTP/1.1 400 Bad Request
Server: MochiWeb/1.0 (Any of you quaids got a smint?)
Content-Length: 0

`