You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brooklyn.apache.org by "Hok Shun Poon (JIRA)" <ji...@apache.org> on 2014/12/24 20:41:13 UTC

[jira] [Created] (BROOKLYN-110) Sync Gateway component doesn't report error correctly

Hok Shun Poon created BROOKLYN-110:
--------------------------------------

             Summary: Sync Gateway component doesn't report error correctly
                 Key: BROOKLYN-110
                 URL: https://issues.apache.org/jira/browse/BROOKLYN-110
             Project: Brooklyn
          Issue Type: Bug
    Affects Versions: 0.7.0
            Reporter: Hok Shun Poon


When you specify an invalid bucket name in YAML, Brooklyn doesn't tell you what's wrong.

Reproduction:

 - YAML used:

{code:title=app.yaml|borderStyle=solid}
name: Couchbase DB Cluster + Sync Gateway node
location: wherever
services:
- type: brooklyn.entity.nosql.couchbase.CouchbaseCluster
  id: db-cluster
  initialSize: 3
  adminUsername: Administrator
  adminPassword: passw0rd
  createBuckets:
  - bucket: myproj-app
  - bucket: myproj-app-shadow
- type: brooklyn.entity.nosql.couchbase.CouchbaseSyncGateway
  version: 1.0.3
  downloadUrl: "http://packages.couchbase.com/releases/couchbase-sync-gateway/1.0.3/couchbase-sync-gateway-enterprise_1.0.3_x86_64.deb",
  couchbaseServer: $brooklyn:component("db-cluster")
  couchbaseServerBucket: myproj-app-shadow
{code}

 - Error shown: 
brooklyn.util.exceptions.PropagatedRuntimeException: Error invoking start at CouchbaseSyncGatewayImpl{id=rgUnVQ7y}: Software process entity CouchbaseSyncGatewayImpl{id=rgUnVQ7y} did not pass is-running check within the required 2m limit (2m 3s elapsed)

 - actual error by executing ~/brooklyn-managed-processes/apps/eN9czpYb/entities/CouchbaseSyncGateway_rgUnVQ7y$ cat err.log:

{code}
user@ip-xx.xx.xx.xx:~/brooklyn-managed-processes/apps/eN9czpYb/entities/CouchbaseSyncGateway_rgUnVQ7y$ cat err.log 
18:36:24.960553 ==== Couchbase Sync Gateway/1.0.3(81;fa9a6e7) ====
18:36:24.960698 Opening db /myproj-app-shadow as bucket "myproj-app-shadow", pool "default", server <http://Administrator:passw0rd@ec2-yy-yy-yy-yy.eu-west-1.compute.amazonaws.com:8091>
18:36:24.960795 Opening Couchbase database myproj-app-shadow on <http://Administrator:passw0rd@ec2-yy-yy-yy-yy.eu-west-1.compute.amazonaws.com:8091>
18:36:25.377488 FATAL: Error opening database: 502 Unable to connect to server: No bucket named myproj-app-shadow -- rest.RunServer() at config.go:415
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)