Thomas Diesler created CAMEL-15259: -------------------------------------- Summary: Cannot connet to couchbase server Key: CAMEL-15259 URL: https://issues.apache.org/jira/browse/CAMEL-15259 Project: Camel Issue Type: Bug Affects Versions: 3.4.0 Reporter: Thomas Diesler
The couchbase component seem broken or out of date So far we used docker image couchbase:community-3.1.3 which is quite outdated and does not run on Docker Desktop for MacOS. A recent version of the community server (e.g. couchbase:community-6.5.1) runs fine and I can do a setup like this ... Run the community couchbase server image {code} docker run --detach \ --name couchbase \ -p 8091:8091 \ -p 8092:8092 \ -p 8093:8093 \ -p 8094:8094 \ -p 11210:11210 \ couchbase:community-6.5.1 {code} Setup a new cluster https://docs.couchbase.com/server/current/cli/cbcli/couchbase-cli-cluster-init.html {code} docker exec couchbase \ couchbase-cli cluster-init -c 127.0.0.1 --cluster-username Administrator --cluster-password password \ --cluster-name default --cluster-ramsize 1024 \ --services data,index,query {code} Load the beer sample data https://docs.couchbase.com/server/current/cli/cbdocloader-tool.html {code} docker exec couchbase \ cbdocloader -c couchbase://127.0.0.1 -u Administrator -p password \ -v -m 1024 -b beer-sample -d /opt/couchbase/samples/beer-sample.zip {code} The camel component also uses an outdated client, which I cannot get to work with any of the later community servers that I tried. Simple code like this (which is used by the couchbase endpoint) fails with 401 {code} List<URI> hosts = Arrays.asList(new URI("http://127.0.0.1:8091/pools")); String username = "Administrator"; String password = "password"; String bucket = "beer-sample"; CouchbaseConnectionFactoryBuilder cfb = new CouchbaseConnectionFactoryBuilder(); CouchbaseClient client = new CouchbaseClient(cfb.buildCouchbaseConnection(hosts, bucket, username, password)); {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)