Skip to content

sync gateway failed to start by using couchbase protocol in DI mode #2831

Description

@sridevi-15

Sync Gateway version

1.5.0-540

Operating system

centOS7

Config file

{
    "interface":":4984",
    "adminInterface": "0.0.0.0:4985",
    "maxIncomingConnections": 0,
    "maxCouchbaseConnections": 16,
    "maxFileDescriptors": 90000,
    "slowServerCallWarningThreshold": 500,
    "compressResponses": false,
    "log": ["CRUD+", "Cache+", "HTTP+", "Changes+"],
    "verbose":"true",
    "cluster_config": {
        "server":"couchbase://192.168.33.10",
        "data_dir":".",
        "bucket":"data-bucket",
        "username":"data-bucket",
        "password": "password"
    },
    "databases":{
        "db":{

            "server":"couchbase://192.168.33.10",
            "bucket":"data-bucket",
            "username":"data-bucket",
            "password": "password",
            "channel_index":{
                "num_shards":16,
                "server":"couchbase:://192.168.33.10",
                "bucket":"index-bucket",
                "username":"index-bucket",
                "password": "password",
                "writer":false
            }
        }
    }
}

Log output

2017-08-19T07:52:35.417Z requestedSoftFDLimit >= currentHardFdLimit (90000 >= 65535) capping at 65535
2017-08-19T07:52:35.417Z Configured process to allow 65535 open file descriptors
2017-08-19T07:52:35.417Z Opening db /db as bucket "data-bucket", pool "default", server <couchbase://192.168.33.10>
2017-08-19T07:52:35.417Z GoCBCustomSGTranscoder Opening Couchbase database data-bucket on <couchbase://192.168.33.10> as user "data-bucket"
2017-08-19T07:52:35.812Z GoCB Opening Couchbase database index-bucket on <couchbase:://192.168.33.10> as user "index-bucket"
2017-08-19T07:52:35.812Z Error opening sequence hash bucket "index-bucket", pool "default", server <couchbase:://192.168.33.10>
2017-08-19T07:52:35.812Z FATAL: Error opening database: bad scheme -- rest.RunServer() at config.go:769
2017-08-19T07:52:36.023Z Enabling logging: [CRUD+ Cache+ HTTP+ Changes+]
2017-08-19T07:52:36.023Z ==== Couchbase Sync Gateway/1.5.0(540;98a9915) ====
2017-08-19T07:52:36.023Z requestedSoftFDLimit >= currentHardFdLimit (90000 >= 65535) capping at 65535
2017-08-19T07:52:36.023Z Configured process to allow 65535 open file descriptors
2017-08-19T07:52:36.023Z Opening db /db as bucket "data-bucket", pool "default", server <couchbase://192.168.33.10>
2017-08-19T07:52:36.023Z GoCBCustomSGTranscoder Opening Couchbase database data-bucket on <couchbase://192.168.33.10> as user "data-bucket"
2017-08-19T07:52:36.310Z GoCB Opening Couchbase database index-bucket on <couchbase:://192.168.33.10> as user "index-bucket"
2017-08-19T07:52:36.310Z Error opening sequence hash bucket "index-bucket", pool "default", server <couchbase:://192.168.33.10>
2017-08-19T07:52:36.310Z FATAL: Error opening database: bad scheme -- rest.RunServer() at config.go:769
2017-08-19T07:52:36.521Z Enabling logging: [CRUD+ Cache+ HTTP+ Changes+]
2017-08-19T07:52:36.521Z ==== Couchbase Sync Gateway/1.5.0(540;98a9915) ====
2017-08-19T07:52:36.521Z requestedSoftFDLimit >= currentHardFdLimit (90000 >= 65535) capping at 65535
2017-08-19T07:52:36.521Z Configured process to allow 65535 open file descriptors
2017-08-19T07:52:36.521Z Opening db /db as bucket "data-bucket", pool "default", server <couchbase://192.168.33.10>
2017-08-19T07:52:36.521Z GoCBCustomSGTranscoder Opening Couchbase database data-bucket on <couchbase://192.168.33.10> as user "data-bucket"
2017-08-19T07:52:36.816Z GoCB Opening Couchbase database index-bucket on <couchbase:://192.168.33.10> as user "index-bucket"
2017-08-19T07:52:36.816Z Error opening sequence hash bucket "index-bucket", pool "default", server <couchbase:://192.168.33.10>
2017-08-19T07:52:36.816Z FATAL: Error opening database: bad scheme -- rest.RunServer() at config.go:769
2017-08-19T07:52:37.024Z Enabling logging: [CRUD+ Cache+ HTTP+ Changes+]
2017-08-19T07:52:37.024Z ==== Couchbase Sync Gateway/1.5.0(540;98a9915) ====
2017-08-19T07:52:37.024Z requestedSoftFDLimit >= currentHardFdLimit (90000 >= 65535) capping at 65535
2017-08-19T07:52:37.024Z Configured process to allow 65535 open file descriptors
2017-08-19T07:52:37.024Z Opening db /db as bucket "data-bucket", pool "default", server <couchbase://192.168.33.10>
2017-08-19T07:52:37.024Z GoCBCustomSGTranscoder Opening Couchbase database data-bucket on <couchbase://192.168.33.10> as user "data-bucket"
2017-08-19T07:52:37.336Z GoCB Opening Couchbase database index-bucket on <couchbase:://192.168.33.10> as user "index-bucket"
2017-08-19T07:52:37.337Z Error opening sequence hash bucket "index-bucket", pool "default", server <couchbase:://192.168.33.10>
2017-08-19T07:52:37.337Z FATAL: Error opening database: bad scheme -- rest.RunServer() at config.go:769
2017-08-19T07:52:37.523Z Enabling logging: [CRUD+ Cache+ HTTP+ Changes+]
2017-08-19T07:52:37.523Z ==== Couchbase Sync Gateway/1.5.0(540;98a9915) ====
2017-08-19T07:52:37.523Z requestedSoftFDLimit >= currentHardFdLimit (90000 >= 65535) capping at 65535
2017-08-19T07:52:37.523Z Configured process to allow 65535 open file descriptors
2017-08-19T07:52:37.523Z Opening db /db as bucket "data-bucket", pool "default", server <couchbase://192.168.33.10>
2017-08-19T07:52:37.523Z GoCBCustomSGTranscoder Opening Couchbase database data-bucket on <couchbase://192.168.33.10> as user "data-bucket"
2017-08-19T07:52:37.832Z GoCB Opening Couchbase database index-bucket on <couchbase:://192.168.33.10> as user "index-bucket"
2017-08-19T07:52:37.832Z Error opening sequence hash bucket "index-bucket", pool "default", server <couchbase:://192.168.33.10>
2017-08-19T07:52:37.832Z FATAL: Error opening database: bad scheme -- rest.RunServer() at config.go:769

Expected behavior

Should start sg-gateway without any issues

Actual behavior

Failed to start sg-gateway with and without port

Steps to reproduce

  1. Have couchbase server , sg and sg -accel vms set up.
  2. start couchbase server, sync-gateway with config as above (ssl disabled with couchbase protocol)
  3. Start the sg_gateway service

Result : Fail to start the service sg-gateway

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions