Return connection refused and panic error occurs on Couchbase server

I use go1.8, gocb and Couchbase 4.5.1CE on docker.

connection refused returns from the Couchbase server. When I check query.log and indexer.log, binaries of go have occurred panic error.
I attached query.log and indexer.log.

error log (Application server)

[5000] dial tcp 127.0.0.1:9101: connection refused from 127.0.0.1:9101 - cause: dial tcp 127.0.0.1:9101: connection refused from 127.0.0.1:9101

couchbase_log.zip (25.8 KB)

@usk, both Query and Index service are unable to connect to the 8091 port(which is the port for the cluster manager). Looks like there is some configuration issue. Please follow the installation instructions here.

@deepkaran.salooja Thanks for reply!

I think it probably is not configuration issue.

  • It ran normally from several minutes to several hours after launching this container.
  • In this forum I got advice from Couchbase staff and made dockerfile and config file

I think that persist data may has been broken.

docker-compose.yml:

version: '2'
services:
    couchbase:
        container_name: 'couch'
        command: "/opt/couchbase/init.sh"
        build:
            context: ./couchbase
            dockerfile: Dockerfile
        volumes:
          - ./couchbase/export/var/node1:/opt/couchbase/var
        ports:
          - 8091:8091
          - 8092:8092
          - 8093:8093
          - 8094:8094
          - 11207:11207
          - 11210:11210
          - 11211:11211
          - 18091:18091
          - 18092:18092
          - 18093:18093
        networks:
            - datastore
networks:
    datastore: