In your config settings I did not see a setting for username. I am not familiar with couchbase but it seems to me a username should also be set in the cas properties.
On Tue, Mar 20, 2018 at 4:47 PM, Scott Green <[email protected]> wrote: > I am trying to setup an HA environment and use Couchbase as the ticket > registry, but I am getting authentication errors when deploying the .war > files. > > Settings from cas.properties > > cas.ticket.registry.couchbase.timeout:10 > cas.ticket.registry.couchbase.nodeSet:localhost > cas.ticket.registry.couchbase.password=test1234 > cas.ticket.registry.couchbase.queryEnabled=true > cas.ticket.registry.couchbase.bucket=cas > > I have tried the nodeSet as both localhost:8091 and localhost without the > :port > > Here are the entries from the cas.log > > 2018-03-20 14:40:44,602 DEBUG [com.couchbase.client.core.endpoint.Endpoint] > - <Using a connectCallbackGracePeriod of 2000 on Endpoint 127.0.0.1:8091> > 2018-03-20 14:40:44,647 DEBUG [com.couchbase.client.core.endpoint.Endpoint] > - <[/127.0.0.1:8091][ConfigEndpoint]: Connected Endpoint.> > 2018-03-20 14:40:44,687 DEBUG > [com.couchbase.client.core.endpoint.AbstractGenericHandler] > - <[/127.0.0.1:8091][ConfigEndpoint]: Channel Active.> > 2018-03-20 14:40:44,695 DEBUG > [com.couchbase.client.core.endpoint.kv.KeyValueFeatureHandler] > - <Requesting supported features: [TCPNODELAY, XATTR, SELECT_BUCKET, > XERROR]> > 2018-03-20 14:40:44,700 DEBUG > [com.couchbase.client.core.endpoint.kv.KeyValueFeatureHandler] > - <Negotiated supported features: [TCPNODELAY]> > 2018-03-20 14:40:44,705 WARN [com.couchbase.client.core.endpoint.Endpoint] > - <[null][KeyValueEndpoint]: Authentication Failure.> > 2018-03-20 14:40:44,705 WARN [com.couchbase.client.core.endpoint.Endpoint] > - <Error during reconnect: > > com.couchbase.client.core.endpoint.kv.AuthenticationException: > Authentication Failure > at com.couchbase.client.core.endpoint.kv.KeyValueAuthHandler. > checkIsAuthed(KeyValueAuthHandler.java:288) ~[core-io-1.5.1.jar:?] > at > com.couchbase.client.core.endpoint.kv.KeyValueAuthHandler.channelRead0(KeyValueAuthHandler.java:173) > ~[core-io-1.5.1.jar:?] > at > com.couchbase.client.core.endpoint.kv.KeyValueAuthHandler.channelRead0(KeyValueAuthHandler.java:52) > ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel.SimpleChannelInboundHandler. > channelRead(SimpleChannelInboundHandler.java:105) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel. > AbstractChannelHandlerContext.invokeChannelRead( > AbstractChannelHandlerContext.java:356) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel. > AbstractChannelHandlerContext.invokeChannelRead( > AbstractChannelHandlerContext.java:342) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel. > AbstractChannelHandlerContext.fireChannelRead( > AbstractChannelHandlerContext.java:335) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.handler.codec. > MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102) > ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel. > AbstractChannelHandlerContext.invokeChannelRead( > AbstractChannelHandlerContext.java:356) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel. > AbstractChannelHandlerContext.invokeChannelRead( > AbstractChannelHandlerContext.java:342) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel. > AbstractChannelHandlerContext.fireChannelRead( > AbstractChannelHandlerContext.java:335) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel. > CombinedChannelDuplexHandler$DelegatingChannelHandlerContex > t.fireChannelRead(CombinedChannelDuplexHandler.java:438) > ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.handler.codec.ByteToMessageDecoder. > fireChannelRead(ByteToMessageDecoder.java:312) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.handler.codec.ByteToMessageDecoder. > channelRead(ByteToMessageDecoder.java:286) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel. > CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:253) > ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel. > AbstractChannelHandlerContext.invokeChannelRead( > AbstractChannelHandlerContext.java:356) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel. > AbstractChannelHandlerContext.invokeChannelRead( > AbstractChannelHandlerContext.java:342) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel. > AbstractChannelHandlerContext.fireChannelRead( > AbstractChannelHandlerContext.java:335) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.handler.timeout. > IdleStateHandler.channelRead(IdleStateHandler.java:286) > ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel. > AbstractChannelHandlerContext.invokeChannelRead( > AbstractChannelHandlerContext.java:356) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel. > AbstractChannelHandlerContext.invokeChannelRead( > AbstractChannelHandlerContext.java:342) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel. > AbstractChannelHandlerContext.fireChannelRead( > AbstractChannelHandlerContext.java:335) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel.DefaultChannelPipeline$ > HeadContext.channelRead(DefaultChannelPipeline.java:1302) > ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel. > AbstractChannelHandlerContext.invokeChannelRead( > AbstractChannelHandlerContext.java:356) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel. > AbstractChannelHandlerContext.invokeChannelRead( > AbstractChannelHandlerContext.java:342) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel.DefaultChannelPipeline. > fireChannelRead(DefaultChannelPipeline.java:919) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel.nio.AbstractNioByteChannel$ > NioByteUnsafe.read(AbstractNioByteChannel.java:131) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop. > processSelectedKey(NioEventLoop.java:646) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop. > processSelectedKeysOptimized(NioEventLoop.java:581) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel.nio.NioEventLoop. > processSelectedKeys(NioEventLoop.java:498) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.channel.nio. > NioEventLoop.run(NioEventLoop.java:460) ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.util.concurrent. > SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131) > ~[core-io-1.5.1.jar:?] > at com.couchbase.client.deps.io.netty.util.concurrent. > DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138) > ~[core-io-1.5.1.jar:?] > at java.lang.Thread.run(Unknown Source) [?:1.8.0_121] > > > Here are the log entries that I have from Couchbase. > > [ns_server:info,2018-03-20T14:40:44.795-07:00,[email protected] > :<0.79.0>:ns_port_server:log:210]memcached<0.79.0>: > 2018-03-20T14:40:44.546306-07:00 WARNING 808: Invalid username/password > combination > memcached<0.79.0>: 2018-03-20T14:40:44.704321-07:00 WARNING 808: Invalid > username/password combination > memcached<0.79.0>: 2018-03-20T14:40:44.771326-07:00 WARNING 808: Invalid > username/password combination > > > Any help is much appreciated. > > Thanks, > > Scott > > > -- > - Website: https://apereo.github.io/cas > - Gitter Chatroom: https://gitter.im/apereo/cas > - List Guidelines: https://goo.gl/1VRrw7 > - Contributions: https://goo.gl/mh7qDG > --- > You received this message because you are subscribed to the Google Groups > "CAS Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/a/ > apereo.org/d/msgid/cas-user/d3721db5-2244-4892-b2d5- > 4a17b3dc438b%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/d3721db5-2244-4892-b2d5-4a17b3dc438b%40apereo.org?utm_medium=email&utm_source=footer> > . > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAAh8Pk%2B_HW5Siz%2BZB4U_0M1-CE2Mz5OB9TB%2B0_6p1aLVPYrHjg%40mail.gmail.com.
