couchbase / couchbase/docker

Sync Gateway does not start with docker-compose

Open
#187 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dockerfile
Stars
155
Forks
154
Avg merge
10h 45m
Merged PRs (30d)
2

Description

I have created this docker-compose.yml file:

version: '3.5'
            
networks:
    couchbase:

services:
    server:
        container_name: couchbase-server
        ports:
            - '8091-8096:8091-8096'
            - '11207-11211:11207-11211'
            - '18091-18093:18091-18093'
        networks:
            - couchbase
        image: couchbase
        volumes:
            - /root/docker/couchbase/server/data:/opt/couchbase/var
        ulimits:
            nofile:
                soft: 200000
                hard: 200000
            core:
                soft: 100000000
                hard: 100000000
            memlock:
                soft: 100000000
                hard: 100000000
    sync-gateway:
        networks:
            - couchbase
        ports:
            - '4984:4984'
        container_name: couchbase-sync-gateway
        volumes:
            - /root/docker/couchbase/sync-gateway/config:/tmp/config
            - /root/docker/couchbase/sync-gateway/data:/opt/couchbase-sync-gateway
        image: couchbase/sync-gateway
        command: '/tmp/config/sync-gateway-config.json'
        depends_on:
            - server

and this is my sync-gateway-config.json file:

{
    "bootstrap": {
        "server": "couchbases://couchbase-server:8091",
        "server_tls_skip_verify": true,
        "username": "...",
        "password": "..."
    },
    "logging": {
        "console": {
            "enabled": true,
            "log_level": "info",
            "log_keys": [
                "*"
            ]
        }
    }
}

When I run docker-compose up -d, the Server starts without any issues and I can set it up using the web interface, but the Sync Gateway is stopped with this error message:

/entrypoint.sh: line 7: exec: sync_gateway: not found

What could cause this issue and how can I resolve it?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the provided docker-compose.yml and sync-gateway-config.json, then inspect the image entrypoint named in the error, /entrypoint.sh, and how it resolves the sync_gateway executable. Confirm the expected image and command configuration, and consider the issue done when docker-compose starts Sync Gateway successfully with the supplied configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose
Domain
devops, infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.