I have set up a fresh couchbase server in VirtualBox (Community Edition, 5.1.1), but got a problem authenticating.
I tried to authenticate via the nodeJS SDK (cluster.authenticate), but always get an invalid username/password combination.
Then I checked with sdk-doctor and get an error on fetching the config, but everything else is working fine:
| ___ ___ _ __ ___ ___ ___ _____ ___ ___ |
| / | | |/ /| \ / _ \ / | / _ | _ \ |
| _ \ |) | ’ <| |) | () | (_ | || () | / |
| |//||_\ |/ _/ _| || _/||\ |
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.
18:20:00.967 INFO Parsing connection string
18:20:00.972 INFO Connection string identifies the following CCCP endpoints:
18:20:00.972 INFO 1. 192.168.56.101:11210
18:20:00.972 INFO Connection string identifies the following HTTP endpoints:
18:20:00.972 INFO 1. 192.168.56.101:8091
18:20:00.972 INFO Connection string specifies bucket
18:20:00.972 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
18:20:00.972 INFO Performing DNS lookup for host
18:20:00.972 INFO Attempting to connect to cluster via CCCP
18:20:00.972 INFO Attempting to fetch config via cccp from
18:20:00.981 INFO Selected the following network type: default
18:20:00.981 INFO Identified the following nodes:
18:20:00.981 INFO  192.168.56.101
18:20:00.981 INFO mgmt: 8091, capi: 8092, projector: 9999
18:20:00.981 INFO kv: 11210, moxi: 11211
18:20:00.981 INFO Fetching config from
18:20:00.992 INFO Failed to retreive cluster information (status code: 401)
18:20:00.993 INFO Successfully connected to KV service at
18:20:01.008 INFO Successfully connected to MGMT service at
18:20:01.057 INFO Successfully connected to CAPI service at
18:20:01.061 INFO Memd Nop Pinged
192.168.56.101:11210 10 times, 0 errors, 0ms min, 0ms max, 0ms mean
18:20:01.061 INFO Diagnostics completed
[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
The user (users) got all rights including Admin and Bucket Full Access and if I change the password on the sdk-doctor just for checking if the password is correct, I get an additional (error: invalid bucket name/password) error. So the username / password combination is correct.
Do you got any hints on what might be the issue here?
Thanks for your help!