Hello, The bucket name must match the login name regarding this pull request : https://github.com/apereo/cas/pull/3227
Olivier On Wed, Mar 21, 2018 at 6:28 PM, Scott Green <[email protected]> wrote: > Michael, > > Here are the relevant CAS Properties according to the documentation > > # cas.ticket.registry.couchbase.timeout=10 > # cas.ticket.registry.couchbase.nodeSet=localhost:8091 > # cas.ticket.registry.couchbase.password= > # cas.ticket.registry.couchbase.queryEnabled=true > # cas.ticket.registry.couchbase.bucket=default# > cas.ticket.registry.couchbase.crypto.signing.key= > # cas.ticket.registry.couchbase.crypto.signing.keySize=512 > # cas.ticket.registry.couchbase.crypto.encryption.key= > # cas.ticket.registry.couchbase.crypto.encryption.keySize=16 > # cas.ticket.registry.couchbase.crypto.alg=AES > # cas.ticket.registry.couchbase.crypto.enabled=false > > > > There is no setting for username in that field. Couchbase itself is > configured to use the bucket settings which simply list a password, not a > username. I'm guessing that the URI is incorrect in some way, but I have > not been able to determine why. > > Thank you > > Scott > > On Wednesday, March 21, 2018 at 6:37:59 AM UTC-7, Michael Peterson wrote: >> >> 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.end >>> point.kv.KeyValueFeatureHandler] - <Requesting supported features: >>> [TCPNODELAY, XATTR, SELECT_BUCKET, XERROR]> >>> 2018-03-20 14:40:44,700 DEBUG [com.couchbase.client.core.end >>> point.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.ch >>> eckIsAuthed(KeyValueAuthHandler.java:288) ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.core.endpoint.kv.KeyValueAuthHandler.ch >>> annelRead0(KeyValueAuthHandler.java:173) ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.core.endpoint.kv.KeyValueAuthHandler.ch >>> annelRead0(KeyValueAuthHandler.java:52) ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.SimpleChannelInbo >>> undHandler.channelRead(SimpleChannelInboundHandler.java:105) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.AbstractChannelHa >>> ndlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.AbstractChannelHa >>> ndlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.AbstractChannelHa >>> ndlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.handler.codec.MessageToMe >>> ssageDecoder.channelRead(MessageToMessageDecoder.java:102) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.AbstractChannelHa >>> ndlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.AbstractChannelHa >>> ndlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.AbstractChannelHa >>> ndlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.CombinedChannelDu >>> plexHandler$DelegatingChannelHandlerContext.fireChannelRead( >>> CombinedChannelDuplexHandler.java:438) ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.handler.codec.ByteToMessa >>> geDecoder.fireChannelRead(ByteToMessageDecoder.java:312) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.handler.codec.ByteToMessa >>> geDecoder.channelRead(ByteToMessageDecoder.java:286) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.CombinedChannelDu >>> plexHandler.channelRead(CombinedChannelDuplexHandler.java:253) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.AbstractChannelHa >>> ndlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.AbstractChannelHa >>> ndlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.AbstractChannelHa >>> ndlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.handler.timeout.IdleState >>> Handler.channelRead(IdleStateHandler.java:286) ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.AbstractChannelHa >>> ndlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.AbstractChannelHa >>> ndlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.AbstractChannelHa >>> ndlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.DefaultChannelPip >>> eline$HeadContext.channelRead(DefaultChannelPipeline.java:1302) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.AbstractChannelHa >>> ndlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.AbstractChannelHa >>> ndlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.DefaultChannelPip >>> eline.fireChannelRead(DefaultChannelPipeline.java:919) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.channel.nio.AbstractNioBy >>> teChannel$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.SingleThr >>> eadEventExecutor$2.run(SingleThreadEventExecutor.java:131) >>> ~[core-io-1.5.1.jar:?] >>> at com.couchbase.client.deps.io.netty.util.concurrent.DefaultTh >>> readFactory$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,babysitter_of_ >>> [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/ap >>> ereo.org/d/msgid/cas-user/d3721db5-2244-4892-b2d5-4a17b3dc43 >>> 8b%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/4c839ea0-b0e3-4cac-ab6a- > af7c04919f05%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/4c839ea0-b0e3-4cac-ab6a-af7c04919f05%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/CACm-OXcKyzCjYNLVDNC8Z%2BgD6WLxPJ3WgyE6RbGoVx%3DPS_AO6A%40mail.gmail.com.
