Authentication Issue Java

Hi, I’m running Couchbase server enterprise 7.2.0 on a docker on my local machine. I have the default Administrator user, and another user with full admin permissions. Both are not working while trying to connect to the cluster in my Java program.
I’m getting:
*

com.couchbase.client.core.error.AuthenticationFailureException: Authentication Failure - Potential causes: invalid credentials or if LDAP is enabled ensure PLAIN SASL mechanism is exclusively used on the PasswordAuthenticator (insecure) or TLS is used (recommended) {“bucket”:“travel-sample”,“circuitBreaker”:“DISABLED”,“coreId”:“0x82691e5600000001”,“remote”:“127.0.0.1:11210”,“status”:“UNKNOWN”,“type”:“KV”,“xerror”:{“ref”:“1971ec4f-9fd1-4387-d52f-6c9590e680d1”}}

SDK Doctor is useful for troubleshooting SDK connection issues.

^-- This is the most likely reason. Can you log into the web UI at http://127.0.0.1:8091 using those faress/faress credentials?

1 Like

Yes I can login with that and with Administrator/password, but same issue with both…

Tried it once without specifying the bucket and once with. When I did specify it, seems like the SDK doctor was able to connect.
Without specifying the bucket:

>sdk-doctor-windows diagnose couchbase://localhost -u faress -p faress
|====================================================================|
|          ___ ___  _  __   ___   ___   ___ _____ ___  ___           |
|         / __|   \| |/ /__|   \ / _ \ / __|_   _/ _ \| _ \          |
|         \__ \ |) | ' <___| |) | (_) | (__  | || (_) |   /          |
|         |___/___/|_|\_\  |___/ \___/ \___| |_| \___/|_|_\          |
|                                                                    |
|====================================================================|

Note: Diagnostics can only provide accurate results when your cluster
 is in a stable state.  Active rebalancing and other cluster configuration
 changes can cause the output of the doctor to be inconsistent or in the
 worst cases, completely incorrect.

12:10:44.765 INFO ▶ Parsing connection string `couchbase://localhost`
12:10:44.783 INFO ▶ Connection string was parsed as a potential DNS SRV record
12:10:44.800 INFO ▶ Connection string identifies the following CCCP endpoints:
12:10:44.800 INFO ▶   1. localhost:11210
12:10:44.801 INFO ▶ Connection string identifies the following HTTP endpoints:
12:10:44.803 INFO ▶   1. localhost:8091
12:10:44.804 INFO ▶ Connection string specifies bucket ``
12:10:44.812 WARN ▶ Your connection string specifies only a single host.  You should consider adding additional static nodes from your cluster to this list to improve your applications fault-tolerance
12:10:44.816 INFO ▶ Performing DNS lookup for host `localhost`
12:10:44.817 WARN ▶ Bootstrap host `localhost` has more than one single DNS entry associated.  While this is not neccessarily an error, it has been known to cause difficult-to-diagnose problems in the future when routing is changed or the cluster layout is updated.
12:10:44.818 INFO ▶ Bootstrap host `localhost` has IPv6 addresses associated. This is only supported in Couchbase Server 5.5 or later, and must be specifically enabled on the cluster.
12:10:44.819 INFO ▶ Attempting to connect to cluster via CCCP
12:10:44.819 INFO ▶ Attempting to fetch config via cccp from `localhost:11210`
12:10:44.832 ERRO ▶ Failed to fetch configuration via cccp from `localhost:11210` (error: failed to select bucket `` (status: 1))
12:10:44.832 INFO ▶ Attempting to connect to cluster via HTTP (Terse)
12:10:44.833 INFO ▶ Attempting to fetch terse config via http from `localhost:8091`
12:10:44.839 ERRO ▶ Failed to fetch terse configuration via http from `localhost:8091` (error: http error (status code: 404))
12:10:44.839 INFO ▶ Attempting to connect to cluster via HTTP (Full)
12:10:44.841 INFO ▶ Failed to connect via HTTP (Full), as it is not yet supported by the doctor
12:10:44.843 INFO ▶ Selected the following network type:
12:10:44.845 ERRO ▶ All endpoints specified by your connection string were unreachable, further cluster diagnostics are not possible
12:10:44.846 INFO ▶ Diagnostics completed

Summary:
←[33m[WARN]←[0m Your connection string specifies only a single host.  You should consider adding additional static nodes from your cluster to this list to improve your applications fault-tolerance
←[33m[WARN]←[0m Bootstrap host `localhost` has more than one single DNS entry associated.  While this is not neccessarily an error, it has been known to cause difficult-to-diagnose problems in the future when routing is changed or the cluster layout is updated.
←[31m[ERRO]←[0m Failed to fetch configuration via cccp from `localhost:11210` (error: failed to select bucket `` (status: 1))
←[31m[ERRO]←[0m Failed to fetch terse configuration via http from `localhost:8091` (error: http error (status code: 404))
←[31m[ERRO]←[0m All endpoints specified by your connection string were unreachable, further cluster diagnostics are not possible

Found multiple issues, see listing above.

With bucket:

sdk-doctor-windows diagnose couchbase://localhost/travel-sample -u faress -p faress
|====================================================================|
|          ___ ___  _  __   ___   ___   ___ _____ ___  ___           |
|         / __|   \| |/ /__|   \ / _ \ / __|_   _/ _ \| _ \          |
|         \__ \ |) | ' <___| |) | (_) | (__  | || (_) |   /          |
|         |___/___/|_|\_\  |___/ \___/ \___| |_| \___/|_|_\          |
|                                                                    |
|====================================================================|

Note: Diagnostics can only provide accurate results when your cluster
 is in a stable state.  Active rebalancing and other cluster configuration
 changes can cause the output of the doctor to be inconsistent or in the
 worst cases, completely incorrect.

12:07:43.055 INFO ▶ Parsing connection string `couchbase://localhost/travel-sample`
12:07:43.066 INFO ▶ Connection string was parsed as a potential DNS SRV record
12:07:43.078 INFO ▶ Connection string identifies the following CCCP endpoints:
12:07:43.078 INFO ▶   1. localhost:11210
12:07:43.078 INFO ▶ Connection string identifies the following HTTP endpoints:
12:07:43.078 INFO ▶   1. localhost:8091
12:07:43.078 INFO ▶ Connection string specifies bucket `travel-sample`
12:07:43.081 WARN ▶ Your connection string specifies only a single host.  You should consider adding additional static nodes from your cluster to this list to improve your applications fault-tolerance
12:07:43.081 INFO ▶ Performing DNS lookup for host `localhost`
12:07:43.083 WARN ▶ Bootstrap host `localhost` has more than one single DNS entry associated.  While this is not neccessarily an error, it has been known to cause difficult-to-diagnose problems in the future when routing is changed or the cluster layout is updated.
12:07:43.083 INFO ▶ Bootstrap host `localhost` has IPv6 addresses associated. This is only supported in Couchbase Server 5.5 or later, and must be specifically enabled on the cluster.
12:07:43.083 INFO ▶ Attempting to connect to cluster via CCCP
12:07:43.083 INFO ▶ Attempting to fetch config via cccp from `localhost:11210`
12:07:43.088 INFO ▶ Selected the following network type: default
12:07:43.088 INFO ▶ Identified the following nodes:
12:07:43.088 INFO ▶   [0] localhost
12:07:43.089 INFO ▶               backupGRPC:  9124,                 capi:  8092,              cbasSSL: 18095
12:07:43.089 INFO ▶            eventingDebug:  9140,            projector:  9999,              capiSSL: 18092
12:07:43.090 INFO ▶               indexHttps: 19102,            indexScan:  9101,              mgmtSSL: 18091
12:07:43.090 INFO ▶              eventingSSL: 18096,     indexStreamMaint:  9105,                kvSSL: 11207
12:07:43.090 INFO ▶                     mgmt:  8091,                 cbas:  8095,            indexHttp:  9102
12:07:43.090 INFO ▶                       kv: 11210,    eventingAdminPort:  8096,      indexStreamInit:  9103
12:07:43.090 INFO ▶                     n1ql:  8093,              n1qlSSL: 18093,   indexStreamCatchup:  9104
12:07:43.091 INFO ▶                backupAPI:  8097,       backupAPIHTTPS: 18097,              ftsGRPC:  9130
12:07:43.091 INFO ▶               indexAdmin:  9100,                  fts:  8094,           ftsGRPCSSL: 19130
12:07:43.091 INFO ▶                   ftsSSL: 18094
12:07:43.092 INFO ▶ Fetching config from `http://localhost:8091`
12:07:43.099 INFO ▶ Received cluster configuration, nodes list:
[
  {
    "addressFamily": "inet",
    "addressFamilyOnly": false,
    "clusterCompatibility": 458754,
    "clusterMembership": "active",
    "configuredHostname": "127.0.0.1:8091",
    "couchApiBase": "http://172.17.0.2:8092/",
    "couchApiBaseHTTPS": "https://172.17.0.2:18092/",
    "cpuCount": 8,
    "externalListeners": [
      {
        "afamily": "inet",
        "nodeEncryption": false
      }
    ],
    "hostname": "172.17.0.2:8091",
    "interestingStats": {
      "cmd_get": 0,
      "couch_docs_actual_disk_size": 64304060,
      "couch_docs_data_size": 48461004,
      "couch_spatial_data_size": 0,
      "couch_spatial_disk_size": 0,
      "couch_views_actual_disk_size": 0,
      "couch_views_data_size": 0,
      "curr_items": 63288,
      "curr_items_tot": 63288,
      "ep_bg_fetched": 0,
      "get_hits": 0,
      "index_data_size": 69038104,
      "index_disk_size": 66891368,
      "mem_used": 80253128,
      "ops": 0,
      "vb_active_num_non_resident": 0,
      "vb_replica_curr_items": 0
    },
    "mcdMemoryAllocated": 12554,
    "mcdMemoryReserved": 12554,
    "memoryFree": 12907106304,
    "memoryTotal": 16455344128,
    "nodeEncryption": false,
    "nodeHash": 111145392,
    "nodeUUID": "6cdf9f264a2fa68e68be0692c315dda1",
    "os": "x86_64-pc-linux-gnu",
    "otpNode": "ns_1@127.0.0.1",
    "ports": {
      "direct": 11210,
      "distTCP": 21100,
      "distTLS": 21150,
      "httpsCAPI": 18092,
      "httpsMgmt": 18091
    },
    "recoveryType": "none",
    "serverGroup": "Group 1",
    "services": [
      "backup",
      "cbas",
      "eventing",
      "fts",
      "index",
      "kv",
      "n1ql"
    ],
    "status": "healthy",
    "systemStats": {
      "allocstall": 0,
      "cpu_cores_available": 8,
      "cpu_stolen_rate": 0,
      "cpu_utilization_rate": 2.358422301099301,
      "mem_free": 12907106304,
      "mem_limit": 16455344128,
      "mem_total": 16455344128,
      "swap_total": 4294967296,
      "swap_used": 0
    },
    "thisNode": true,
    "uptime": "25560",
    "version": "7.2.0-5325-enterprise"
  }
]
12:07:43.104 INFO ▶ Successfully connected to Key Value service at `localhost:11210`
12:07:43.124 INFO ▶ Successfully connected to Management service at `localhost:8091`
12:07:43.144 INFO ▶ Successfully connected to Views service at `localhost:8092`
12:07:43.158 INFO ▶ Successfully connected to Query service at `localhost:8093`
12:07:43.163 INFO ▶ Successfully connected to Search service at `localhost:8094`
12:07:43.173 INFO ▶ Successfully connected to Analytics service at `localhost:8095`
12:07:43.182 INFO ▶ Memd Nop Pinged `localhost:11210` 10 times, 0 errors, 0ms min, 1ms max, 0ms mean
12:07:43.182 INFO ▶ Diagnostics completed

Summary:
←[33m[WARN]←[0m Your connection string specifies only a single host.  You should consider adding additional static nodes from your cluster to this list to improve your applications fault-tolerance
←[33m[WARN]←[0m Bootstrap host `localhost` has more than one single DNS entry associated.  While this is not neccessarily an error, it has been known to cause difficult-to-diagnose problems in the future when routing is changed or the cluster layout is updated.

Found multiple issues, see listing above.

Edit: This is interesting. Can you connect using 127.0.0.1?

12:07:43.083 WARN ▶ Bootstrap host `localhost` has more than one single DNS entry associated.  While this is not neccessarily an error, it has been known to cause difficult-to-diagnose problems in the future when routing is changed or the cluster layout is updated.
12:07:43.083 INFO ▶ Bootstrap host `localhost` has IPv6 addresses associated. This is only supported in Couchbase Server 5.5 or later, and must be specifically enabled on the cluster.

Original:

Looks like it should work. Can you post all the output from the Java SDK? Configuring logging at Debug will give more output that might help. Can you try running SDK Doctor and the client one right after the other? (to make sure that the server is running when both are executed). And - I assume that you are, but you’re running the client from the same host where the server is running so that couchbase://localhost works?

  • Mike

Could you try Administrator:password credentials? I wonder if this is a permissions issue with user “faress” not having enough permissions to access travel-sample bucket.

Less likely, but could you also post how you started the Docker container? I want to double-check all the correct ports are exposed.

Same issue for 127.0.0.1 and Administrator user.

Docker command I used:
docker run -t --name db -p 8091-8096:8091-8096 -p 11210-11211:11210-11211 couchbase/server:enterprise-7.2.0

I can’t upload the full debug log file because I’m a new user…
Adding here part of the log which repeats itself:

[main] DEBUG reactor.util.Loggers - Using Slf4j logging framework
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.ResourceLeakDetector - -Dcom.couchbase.client.core.deps.io.netty.leakDetection.level: simple
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.ResourceLeakDetector - -Dcom.couchbase.client.core.deps.io.netty.leakDetection.targetRecords: 4
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: com.couchbase.client.core.deps.io.netty.util.ResourceLeakDetector@3c0f93f1
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent0 - Java version: 17
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.storeFence: available
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent0 - direct buffer constructor: unavailable: Reflective setAccessible(true) disabled
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent0 - jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable: class com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent0$7 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @7f13d6e
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent0 - java.nio.DirectByteBuffer.(long, {int,long}): unavailable
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent - sun.misc.Unsafe: available
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent - -Dio.netty.tmpdir: C:\Users\FARESS~1\AppData\Local\Temp (java.io.tmpdir)
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent - -Dio.netty.bitMode: 64 (sun.arch.data.model)
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent - Platform: Windows
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent - -Dio.netty.maxDirectMemory: -1 bytes
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent - -Dio.netty.uninitializedArrayAllocationThreshold: -1
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.CleanerJava9 - java.nio.ByteBuffer.cleaner(): available
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent - -Dio.netty.noPreferDirect: false
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.PlatformDependent - com.couchbase.client.core.deps.org.jctools-core.MpscChunkedArrayQueue: available
[main] DEBUG com.couchbase.client.core.deps.io.netty.channel.MultithreadEventLoopGroup - -Dio.netty.eventLoopThreads: 16
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.concurrent.GlobalEventExecutor - -Dio.netty.globalEventExecutor.quietPeriodSeconds: 1
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.internal.InternalThreadLocalMap - -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
[main] DEBUG com.couchbase.client.core.deps.io.netty.channel.nio.NioEventLoop - -Dio.netty.noKeySetOptimization: false
[main] DEBUG com.couchbase.client.core.deps.io.netty.channel.nio.NioEventLoop - -Dio.netty.selectorAutoRebuildThreshold: 512
[cb-events] DEBUG com.couchbase.core - [com.couchbase.core][DnsSrvLookupDisabledEvent] DNS SRV lookup disabled (enabled on the env: true, valid host: false)
[cb-events] INFO com.couchbase.core - [com.couchbase.core][CoreCreatedEvent] {“clientVersion”:“3.5.3”,“clientGitHash”:“${buildNumber}”,“coreVersion”:“2.5.3”,“coreGitHash”:“${buildNumber}”,“userAgent”:“couchbase-java/3.5.3 (Windows 11 10.0 amd64; OpenJDK 64-Bit Server VM 17.0.8+7-adhoc…jdk17u)”,“maxNumRequestsInRetry”:32768,“ioEnvironment”:{“nativeIoEnabled”:true,“eventLoopThreadCount”:4,“eventLoopGroups”:[“NioEventLoopGroup”]},“ioConfig”:{“captureTraffic”:,“mutationTokensEnabled”:true,“networkResolution”:“auto”,“dnsSrvEnabled”:true,“tcpKeepAlivesEnabled”:true,“tcpKeepAliveTimeMs”:60000,“configPollIntervalMs”:2500,“kvCircuitBreakerConfig”:“disabled”,“queryCircuitBreakerConfig”:“disabled”,“viewCircuitBreakerConfig”:“disabled”,“searchCircuitBreakerConfig”:“disabled”,“analyticsCircuitBreakerConfig”:“disabled”,“managerCircuitBreakerConfig”:“disabled”,“eventingCircuitBreakerConfig”:“disabled”,“backupCircuitBreakerConfig”:“disabled”,“numKvConnections”:1,“maxHttpConnections”:12,“idleHttpConnectionTimeoutMs”:1000,“configIdleRedialTimeoutMs”:300000,“memcachedHashingStrategy”:“StandardMemcachedHashingStrategy”,“timerConfig”:{“numTimers”:1,“tickDurationMs”:10,“numBuckets”:512}},“compressionConfig”:{“enabled”:true,“minRatio”:0.83,“minSize”:32},“securityConfig”:{“tlsEnabled”:false,“nativeTlsEnabled”:true,“hostnameVerificationEnabled”:true,“trustCertificates”:null,“trustManagerFactory”:null,“ciphers”:},“timeoutConfig”:{“kvMs”:2500,“kvDurableMs”:10000,“kvScanMs”:75000,“managementMs”:75000,“queryMs”:75000,“viewMs”:75000,“searchMs”:75000,“analyticsMs”:75000,“connectMs”:10000,“disconnectMs”:10000,“eventingMs”:75000,“backupMs”:75000},“loggerConfig”:{“diagnosticContextEnabled”:false},“orphanReporterConfig”:{“emitIntervalMs”:10000,“sampleSize”:10,“queueLength”:1024,“enabled”:true},“thresholdLoggingTracerConfig”:{“enabled”:true,“emitIntervalMs”:10000,“sampleSize”:10,“queueLength”:1024,“kvThresholdMs”:500,“queryThresholdMs”:1000,“searchThresholdMs”:1000,“analyticsThresholdMs”:1000,“viewThresholdMs”:1000,“transactionsThresholdMs”:5000},“loggingMeterConfig”:{“enabled”:true,“emitIntervalMs”:600000},“retryStrategy”:“BestEffortRetryStrategy”,“requestTracer”:“ThresholdLoggingTracer”,“meter”:“LoggingMeter”,“numRequestCallbacks”:0,“scheduler”:“ParallelScheduler”,“schedulerThreadCount”:8,“transactionsConfig”:{“durabilityLevel”:“MAJORITY”,“timeoutMs”:15000,“cleanupConfig”:{“runLostAttemptsCleanupThread”:true,“runRegularAttemptsCleanupThread”:true,“cleanupWindowMs”:60000,“cleanupSet”:“”},“numAtrs”:1024,“metadataCollection”:“none”,“scanConsistency”:“none”}} {“connectionString”:“couchbase://127.0.0.1”,“coreId”:“0xe515de0a00000001”,“numCoreInstances”:1,“seedNodes”:[{“address”:“127.0.0.1”}]}
[cb-events] DEBUG com.couchbase.core - [com.couchbase.core][ReconfigurationCompletedEvent][12ms] Reconfiguration attempt completed. {“coreId”:“0xe515de0a00000001”}
[cb-events] DEBUG com.couchbase.transactions.cleanup.regular - [com.couchbase.transactions.cleanup.regular][LogEvent] Starting background cleanup thread to find transactions from this client
[cb-events] INFO com.couchbase.transactions - [com.couchbase.transactions][TransactionsStartedEvent] Transactions successfully initialised, regular cleanup enabled=true, lost cleanup enabled=true
[main] DEBUG com.couchbase.client.core.deps.io.netty.channel.DefaultChannelId - -Dio.netty.processId: 32600 (auto-detected)
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.NetUtil - -Djava.net.preferIPv4Stack: false
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.NetUtil - -Djava.net.preferIPv6Addresses: false
[cb-events] INFO com.couchbase.node - [com.couchbase.node][NodeCreatedEvent] Node created {“coreId”:“0xe515de0a00000001”,“managerPort”:“8091”,“remote”:“127.0.0.1”}
[cb-events] DEBUG com.couchbase.service - [com.couchbase.service][ServiceConnectInitiatedEvent] Starting to connect service with 1 minimum endpoints {“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:11210”,“type”:“KV”}
[cb-events] DEBUG com.couchbase.endpoint - [com.couchbase.endpoint][EndpointStateChangedEvent] Endpoint changed state from DISCONNECTED to CONNECTING {“circuitBreaker”:“DISABLED”,“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:11210”,“type”:“KV”}
[cb-events] DEBUG com.couchbase.service - [com.couchbase.service][ServiceStateChangedEvent] Service changed state from DISCONNECTED to CONNECTING {“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:11210”,“type”:“KV”}
[cb-events] DEBUG com.couchbase.node - [com.couchbase.node][NodeStateChangedEvent] Node changed state from DISCONNECTED to CONNECTING {“coreId”:“0xe515de0a00000001”,“managerPort”:“8091”,“remote”:“127.0.0.1”}
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.NetUtilInitializations - Loopback interface: lo (Software Loopback Interface 1, 127.0.0.1)
[main] DEBUG com.couchbase.client.core.deps.io.netty.util.NetUtil - Failed to get SOMAXCONN from sysctl and file \proc\sys\net\core\somaxconn. Default: 200
[main] DEBUG com.couchbase.client.core.deps.io.netty.channel.DefaultChannelId - -Dio.netty.machineId: 44:e5:17:ff:fe:49:b2:ea (auto-detected)
[main] DEBUG com.couchbase.client.core.deps.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numHeapArenas: 16
[main] DEBUG com.couchbase.client.core.deps.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.numDirectArenas: 16
[main] DEBUG com.couchbase.client.core.deps.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.pageSize: 8192
[main] DEBUG com.couchbase.client.core.deps.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxOrder: 9
[main] DEBUG com.couchbase.client.core.deps.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.chunkSize: 4194304
[main] DEBUG com.couchbase.client.core.deps.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.smallCacheSize: 256
[main] DEBUG com.couchbase.client.core.deps.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.normalCacheSize: 64
[main] DEBUG com.couchbase.client.core.deps.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
[main] DEBUG com.couchbase.client.core.deps.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimInterval: 8192
[main] DEBUG com.couchbase.client.core.deps.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.cacheTrimIntervalMillis: 0
[main] DEBUG com.couchbase.client.core.deps.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.useCacheForAllThreads: false
[main] DEBUG com.couchbase.client.core.deps.io.netty.buffer.PooledByteBufAllocator - -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023
[main] DEBUG com.couchbase.client.core.deps.io.netty.buffer.ByteBufUtil - -Dio.netty.allocator.type: pooled
[main] DEBUG com.couchbase.client.core.deps.io.netty.buffer.ByteBufUtil - -Dio.netty.threadLocalDirectBufferSize: 0
[main] DEBUG com.couchbase.client.core.deps.io.netty.buffer.ByteBufUtil - -Dio.netty.maxThreadLocalCharBufferSize: 16384
[main] DEBUG com.couchbase.client.core.deps.io.netty.bootstrap.ChannelInitializerExtensions - -Dio.netty.bootstrap.extensions: null
[cb-io-kv-5-1] DEBUG com.couchbase.client.core.deps.io.netty.util.Recycler - -Dio.netty.recycler.maxCapacityPerThread: 4096
[cb-io-kv-5-1] DEBUG com.couchbase.client.core.deps.io.netty.util.Recycler - -Dio.netty.recycler.ratio: 8
[cb-io-kv-5-1] DEBUG com.couchbase.client.core.deps.io.netty.util.Recycler - -Dio.netty.recycler.chunkSize: 32
[cb-io-kv-5-1] DEBUG com.couchbase.client.core.deps.io.netty.util.Recycler - -Dio.netty.recycler.blocking: false
[cb-io-kv-5-1] DEBUG com.couchbase.client.core.deps.io.netty.util.Recycler - -Dio.netty.recycler.batchFastThreadLocalOnly: true
[cb-io-kv-5-1] DEBUG com.couchbase.client.core.deps.io.netty.buffer.AbstractByteBuf - -Dcom.couchbase.client.core.deps.io.netty.buffer.checkAccessible: true
[cb-io-kv-5-1] DEBUG com.couchbase.client.core.deps.io.netty.buffer.AbstractByteBuf - -Dcom.couchbase.client.core.deps.io.netty.buffer.checkBounds: true
[cb-io-kv-5-1] DEBUG com.couchbase.client.core.deps.io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: com.couchbase.client.core.deps.io.netty.util.ResourceLeakDetector@17264bee
[cb-events] DEBUG com.couchbase.service - [com.couchbase.service][ServiceAddedEvent][326ms] Service added to Node {“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:11210”,“type”:“KV”}
[cb-events] DEBUG com.couchbase.request - [com.couchbase.request][RequestRetryScheduledEvent] Request CarrierGlobalConfigRequest retry scheduled per RetryStrategy (Reason: NODE_NOT_AVAILABLE) {“completed”:false,“coreId”:“0xe515de0a00000001”,“idempotent”:true,“requestId”:1,“requestType”:“CarrierGlobalConfigRequest”,“retried”:7,“retryReasons”:[“NODE_NOT_AVAILABLE”],“service”:{“opaque”:“0x0”,“target”:“127.0.0.1”,“type”:“kv”,“vbucket”:0},“timeoutMs”:10000}
[cb-events] DEBUG com.couchbase.request - [com.couchbase.request][RequestRetryScheduledEvent][1000us] Request CarrierGlobalConfigRequest retry scheduled per RetryStrategy (Reason: NODE_NOT_AVAILABLE) {“completed”:false,“coreId”:“0xe515de0a00000001”,“idempotent”:true,“requestId”:1,“requestType”:“CarrierGlobalConfigRequest”,“retried”:7,“retryReasons”:[“NODE_NOT_AVAILABLE”],“service”:{“opaque”:“0x0”,“target”:“127.0.0.1”,“type”:“kv”,“vbucket”:0},“timeoutMs”:10000}
[cb-events] DEBUG com.couchbase.request - [com.couchbase.request][RequestRetryScheduledEvent][2000us] Request CarrierGlobalConfigRequest retry scheduled per RetryStrategy (Reason: NODE_NOT_AVAILABLE) {“completed”:false,“coreId”:“0xe515de0a00000001”,“idempotent”:true,“requestId”:1,“requestType”:“CarrierGlobalConfigRequest”,“retried”:7,“retryReasons”:[“NODE_NOT_AVAILABLE”],“service”:{“opaque”:“0x0”,“target”:“127.0.0.1”,“type”:“kv”,“vbucket”:0},“timeoutMs”:10000}
[cb-events] DEBUG com.couchbase.core - [com.couchbase.core][BucketOpenInitiatedEvent] Starting to open bucket “travel-sample” {“coreId”:“0xe515de0a00000001”}
[cb-events] DEBUG com.couchbase.request - [com.couchbase.request][RequestRetryScheduledEvent][4000us] Request CarrierGlobalConfigRequest retry scheduled per RetryStrategy (Reason: NODE_NOT_AVAILABLE) {“completed”:false,“coreId”:“0xe515de0a00000001”,“idempotent”:true,“requestId”:1,“requestType”:“CarrierGlobalConfigRequest”,“retried”:7,“retryReasons”:[“NODE_NOT_AVAILABLE”],“service”:{“opaque”:“0x0”,“target”:“127.0.0.1”,“type”:“kv”,“vbucket”:0},“timeoutMs”:10000}
[cb-events] DEBUG com.couchbase.request - [com.couchbase.request][RequestRetryScheduledEvent][8000us] Request CarrierGlobalConfigRequest retry scheduled per RetryStrategy (Reason: NODE_NOT_AVAILABLE) {“completed”:false,“coreId”:“0xe515de0a00000001”,“idempotent”:true,“requestId”:1,“requestType”:“CarrierGlobalConfigRequest”,“retried”:7,“retryReasons”:[“NODE_NOT_AVAILABLE”],“service”:{“opaque”:“0x0”,“target”:“127.0.0.1”,“type”:“kv”,“vbucket”:0},“timeoutMs”:10000}
[cb-events] DEBUG com.couchbase.service - [com.couchbase.service][ServiceConnectInitiatedEvent] Starting to connect service with 1 minimum endpoints {“bucket”:“travel-sample”,“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:11210”,“type”:“KV”}
[cb-events] DEBUG com.couchbase.endpoint - [com.couchbase.endpoint][EndpointStateChangedEvent] Endpoint changed state from DISCONNECTED to CONNECTING {“bucket”:“travel-sample”,“circuitBreaker”:“DISABLED”,“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:11210”,“type”:“KV”}
[cb-events] DEBUG com.couchbase.service - [com.couchbase.service][ServiceStateChangedEvent] Service changed state from DISCONNECTED to CONNECTING {“bucket”:“travel-sample”,“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:11210”,“type”:“KV”}
[cb-events] DEBUG com.couchbase.service - [com.couchbase.service][ServiceAddedEvent][1798us] Service added to Node {“bucket”:“travel-sample”,“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:11210”,“type”:“KV”}
[cb-events] DEBUG com.couchbase.request - [com.couchbase.request][RequestRetryScheduledEvent][16ms] Request CarrierGlobalConfigRequest retry scheduled per RetryStrategy (Reason: NODE_NOT_AVAILABLE) {“completed”:false,“coreId”:“0xe515de0a00000001”,“idempotent”:true,“requestId”:1,“requestType”:“CarrierGlobalConfigRequest”,“retried”:7,“retryReasons”:[“NODE_NOT_AVAILABLE”],“service”:{“opaque”:“0x0”,“target”:“127.0.0.1”,“type”:“kv”,“vbucket”:0},“timeoutMs”:10000}
[cb-events] DEBUG com.couchbase.core.WaitUntilReady - [com.couchbase.core.WaitUntilReady][WaitUntilReadyDiagnostic] 853048e3-864f-4f39-a2e3-d6982a382ce0 Starting WaitUntilReady. serviceTypes=null, timeout=PT2S, desiredState=ONLINE, bucketName=Optional[travel-sample]
[cb-events] DEBUG com.couchbase.core.WaitUntilReady - [com.couchbase.core.WaitUntilReady][WaitUntilReadyDiagnostic] 853048e3-864f-4f39-a2e3-d6982a382ce0 Transitioning from stage INITIAL to stage WAIT_FOR_CONFIG. Total elapsed time since waiting started: PT0.011S
[cb-events] DEBUG com.couchbase.request - [com.couchbase.request][RequestRetryScheduledEvent][32ms] Request CarrierGlobalConfigRequest retry scheduled per RetryStrategy (Reason: NODE_NOT_AVAILABLE) {“completed”:false,“coreId”:“0xe515de0a00000001”,“idempotent”:true,“requestId”:1,“requestType”:“CarrierGlobalConfigRequest”,“retried”:7,“retryReasons”:[“NODE_NOT_AVAILABLE”],“service”:{“opaque”:“0x0”,“target”:“127.0.0.1”,“type”:“kv”,“vbucket”:0},“timeoutMs”:10000}
[cb-events] DEBUG com.couchbase.core.WaitUntilReady - [com.couchbase.core.WaitUntilReady][WaitUntilReadyDiagnostic] 853048e3-864f-4f39-a2e3-d6982a382ce0 Waiting because global config load is in progress
[cb-events] DEBUG com.couchbase.io - [com.couchbase.io][SaslMechanismsSelectedEvent] SASL Mechanism SCRAM_SHA512 selected. Allowed: [SCRAM_SHA1, SCRAM_SHA256, SCRAM_SHA512] {“bucket”:“travel-sample”,“coreId”:“0xe515de0a00000001”,“local”:“/127.0.0.1:65418”,“remote”:“/127.0.0.1:11210”}
[cb-events] DEBUG com.couchbase.io - [com.couchbase.io][SaslMechanismsSelectedEvent] SASL Mechanism SCRAM_SHA512 selected. Allowed: [SCRAM_SHA1, SCRAM_SHA256, SCRAM_SHA512] {“coreId”:“0xe515de0a00000001”,“local”:“/127.0.0.1:65417”,“remote”:“/127.0.0.1:11210”}
[cb-events] DEBUG com.couchbase.core.WaitUntilReady - [com.couchbase.core.WaitUntilReady][WaitUntilReadyDiagnostic] 853048e3-864f-4f39-a2e3-d6982a382ce0 Waiting because global config load is in progress
[cb-events] DEBUG com.couchbase.io - [com.couchbase.io][FeaturesNegotiatedEvent][55ms] Negotiated [MUTATION_SEQNO, XATTR, XERROR, SELECT_BUCKET, SNAPPY, JSON, DUPLEX, UNORDERED_EXECUTION, ALT_REQUEST, SYNC_REPLICATION, COLLECTIONS, PRESERVE_TTL, VATTR, CREATE_AS_DELETED] {“bucket”:“travel-sample”,“coreId”:“0xe515de0a00000001”,“local”:“/127.0.0.1:65418”,“remote”:“/127.0.0.1:11210”}
[cb-events] DEBUG com.couchbase.io - [com.couchbase.io][FeaturesNegotiatedEvent][74ms] Negotiated [MUTATION_SEQNO, XATTR, XERROR, SELECT_BUCKET, SNAPPY, JSON, DUPLEX, UNORDERED_EXECUTION, ALT_REQUEST, SYNC_REPLICATION, COLLECTIONS, PRESERVE_TTL, VATTR, CREATE_AS_DELETED] {“coreId”:“0xe515de0a00000001”,“local”:“/127.0.0.1:65417”,“remote”:“/127.0.0.1:11210”}
[cb-events] DEBUG com.couchbase.request - [com.couchbase.request][RequestRetryScheduledEvent][64ms] Request CarrierGlobalConfigRequest retry scheduled per RetryStrategy (Reason: NODE_NOT_AVAILABLE) {“completed”:false,“coreId”:“0xe515de0a00000001”,“idempotent”:true,“requestId”:1,“requestType”:“CarrierGlobalConfigRequest”,“retried”:8,“retryReasons”:[“NODE_NOT_AVAILABLE”],“service”:{“opaque”:“0x0”,“target”:“127.0.0.1”,“type”:“kv”,“vbucket”:0},“timeoutMs”:10000}
[cb-events] DEBUG com.couchbase.core.WaitUntilReady - [com.couchbase.core.WaitUntilReady][WaitUntilReadyDiagnostic] 853048e3-864f-4f39-a2e3-d6982a382ce0 Waiting because global config load is in progress
[cb-events] DEBUG com.couchbase.core.WaitUntilReady - [com.couchbase.core.WaitUntilReady][WaitUntilReadyDiagnostic] 853048e3-864f-4f39-a2e3-d6982a382ce0 Waiting because global config load is in progress
[cb-events] DEBUG com.couchbase.io - [com.couchbase.io][ErrorMapLoadedEvent][28ms] KV Error Map successfully loaded. Map Version: 2, Revision: 1 {“coreId”:“0xe515de0a00000001”,“local”:“/127.0.0.1:65417”,“remote”:“/127.0.0.1:11210”}
[cb-events] DEBUG com.couchbase.io - [com.couchbase.io][ErrorMapLoadedEvent][28ms] KV Error Map successfully loaded. Map Version: 2, Revision: 1 {“bucket”:“travel-sample”,“coreId”:“0xe515de0a00000001”,“local”:“/127.0.0.1:65418”,“remote”:“/127.0.0.1:11210”}
[cb-events] DEBUG com.couchbase.io - [com.couchbase.io][SaslMechanismsListedEvent][103ms] Listed SASL mechanisms: [SCRAM_SHA1, SCRAM_SHA512, PLAIN, SCRAM_SHA256] {“bucket”:“travel-sample”,“coreId”:“0xe515de0a00000001”,“local”:“/127.0.0.1:65418”,“remote”:“/127.0.0.1:11210”}
[cb-events] DEBUG com.couchbase.io - [com.couchbase.io][SaslMechanismsListedEvent][103ms] Listed SASL mechanisms: [SCRAM_SHA1, SCRAM_SHA512, PLAIN, SCRAM_SHA256] {“coreId”:“0xe515de0a00000001”,“local”:“/127.0.0.1:65417”,“remote”:“/127.0.0.1:11210”}
[cb-events] DEBUG com.couchbase.request - [com.couchbase.request][RequestRetryScheduledEvent][128ms] Request CarrierGlobalConfigRequest retry scheduled per RetryStrategy (Reason: NODE_NOT_AVAILABLE) {“completed”:false,“coreId”:“0xe515de0a00000001”,“idempotent”:true,“requestId”:1,“requestType”:“CarrierGlobalConfigRequest”,“retried”:9,“retryReasons”:[“NODE_NOT_AVAILABLE”],“service”:{“opaque”:“0x0”,“target”:“127.0.0.1”,“type”:“kv”,“vbucket”:0},“timeoutMs”:10000}
[cb-events] DEBUG com.couchbase.core.WaitUntilReady - [com.couchbase.core.WaitUntilReady][WaitUntilReadyDiagnostic] 853048e3-864f-4f39-a2e3-d6982a382ce0 Waiting because global config load is in progress
[cb-events] ERROR com.couchbase.io - [com.couchbase.io][SaslAuthenticationFailedEvent][216ms] Authentication Failure - Potential causes: invalid credentials or if LDAP is enabled ensure PLAIN SASL mechanism is exclusively used on the PasswordAuthenticator (insecure) or TLS is used (recommended) {“bucket”:“travel-sample”,“circuitBreaker”:“DISABLED”,“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:11210”,“status”:“UNKNOWN”,“type”:“KV”,“xerror”:{“ref”:“686b4396-660a-4749-dd64-94ed5cf5706c”}}
[cb-events] DEBUG com.couchbase.endpoint - [com.couchbase.endpoint][EndpointStateChangedEvent] Endpoint changed state from CONNECTING to DISCONNECTED {“bucket”:“travel-sample”,“circuitBreaker”:“DISABLED”,“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:11210”,“type”:“KV”}
[cb-events] DEBUG com.couchbase.service - [com.couchbase.service][ServiceStateChangedEvent] Service changed state from CONNECTING to DISCONNECTED {“bucket”:“travel-sample”,“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:11210”,“type”:“KV”}
[cb-events] DEBUG com.couchbase.io - [com.couchbase.io][SelectBucketFailedEvent] Select bucket failed because of an access error (bucket does not exist or insufficient privileges) - status code 0x24 {“bucket”:“travel-sample”,“coreId”:“0xe515de0a00000001”,“local”:“/127.0.0.1:65418”,“remote”:“/127.0.0.1:11210”}
[cb-events] DEBUG com.couchbase.service - [com.couchbase.service][ServiceAddedEvent][1452us] Service added to Node {“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:8091”,“type”:“MANAGER”}
[cb-events] ERROR com.couchbase.io - [com.couchbase.io][SaslAuthenticationFailedEvent][212ms] Authentication Failure - Potential causes: invalid credentials or if LDAP is enabled ensure PLAIN SASL mechanism is exclusively used on the PasswordAuthenticator (insecure) or TLS is used (recommended) {“circuitBreaker”:“DISABLED”,“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:11210”,“status”:“UNKNOWN”,“type”:“KV”,“xerror”:{“ref”:“b3295ee6-e0dd-4394-a93b-b3dd6cb014a6”}}
[cb-events] DEBUG com.couchbase.endpoint - [com.couchbase.endpoint][EndpointStateChangedEvent] Endpoint changed state from CONNECTING to DISCONNECTED {“circuitBreaker”:“DISABLED”,“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:11210”,“type”:“KV”}
[cb-events] DEBUG com.couchbase.service - [com.couchbase.service][ServiceStateChangedEvent] Service changed state from CONNECTING to DISCONNECTED {“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:11210”,“type”:“KV”}
[cb-events] DEBUG com.couchbase.node - [com.couchbase.node][NodeStateChangedEvent] Node changed state from CONNECTING to DISCONNECTED {“coreId”:“0xe515de0a00000001”,“managerPort”:“8091”,“remote”:“127.0.0.1”}
[cb-events] DEBUG com.couchbase.service - [com.couchbase.service][ServiceStateChangedEvent] Service changed state from IDLE to DISCONNECTED {“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:8091”,“type”:“MANAGER”}
[cb-events] WARN com.couchbase.endpoint - [com.couchbase.endpoint][EndpointConnectionFailedEvent][576ms] Connect attempt 1 failed because of AuthenticationFailureException: Authentication Failure - Potential causes: invalid credentials or if LDAP is enabled ensure PLAIN SASL mechanism is exclusively used on the PasswordAuthenticator (insecure) or TLS is used (recommended) {“circuitBreaker”:“DISABLED”,“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:11210”,“status”:“UNKNOWN”,“type”:“KV”,“xerror”:{“ref”:“b3295ee6-e0dd-4394-a93b-b3dd6cb014a6”}} {“circuitBreaker”:“DISABLED”,“coreId”:“0xe515de0a00000001”,“remote”:“127.0.0.1:11210”,“type”:“KV”}

Update: When I installed Couchbase using .msi and not docker, it worked.
Docker command I was using:

docker run -d --name db -p 8091-8096:8091-8096 -p 11210-11211:11210-11211 couchbase

@farespnx good to know you got it working outside of Docker. Your Docker ports look fine to me, so root cause remains unclear.