brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aled Sage <aled.s...@gmail.com>
Subject Re: "Getting Started" Blueprint error
Date Mon, 23 Mar 2015 19:27:51 GMT
Hi Sebastian,

A couple of things to check:

  * Which Java version are you using?
    (as I recall, the default JBoss AS 7.1.1 does not support Java 8)
  * Does the JBoss log file show anything useful?

The jboss entity will have a sensor named "log.location". Have a look at 
the file referred to by that path (and also the other files in the jboss 
run directory).

HTH, Aled



On 23/03/2015 18:21, Sebastian Caceres wrote:
> Hello,
>
> I'm trying to run the "Getting started" example, in order to create a basic
> web cluster with DB.
>
> This is the blueprint I'm using:
>
> name: My Web Cluster
> location: localhost
> services:
> - type: brooklyn.entity.webapp.ControlledDynamicWebAppCluster
>    name: My Web
>    brooklyn.config:
>      wars.root: http://search.maven.org/remotecontent?filepath=io/brooklyn/example/brooklyn-example-hello-world-sql-webapp/0.6.0/brooklyn-example-hello-world-sql-webapp-0.6.0.war
>      java.sysprops:
>        brooklyn.example.db.url: >
>          $brooklyn:formatString("jdbc:%s%s?user=%s\\&password=%s",
>          component("db").attributeWhenReady("datastore.url"),
>          "visitors", "brooklyn", "br00k11n")
> - type: brooklyn.entity.database.mysql.MySqlNode
>    id: db
>    name: My DB
>    brooklyn.config:
>      creationScriptUrl: https://bit.ly/brooklyn-visitors-creation-script
>
>
> I can get the Database running. However, the JBoss7Server won't start.
> Here's the error:
>
> Required entity not healthy: ControlledDynamicWebAppClusterImpl{id=gM6QRpgi}
> *Failure running task invoking start[locations] on 2 nodes (seGY34Aw)
> <http://127.0.0.1:8081/#/v1/applications/cz31Os4o/entities/cz31Os4o/activities/subtask/seGY34Aw>:
> *1
> of 2 parallel child tasks failed: 1 of 2 parallel child tasks failed: Error
> invoking start at DynamicWebAppClusterImpl{id=NYNoDm0p}: Node in cluster
> DynamicWebAppClusterImpl{id=NYNoDm0p} failed: Error invoking start at
> JBoss7ServerImpl{id=ou6Odbsg}: Timeout waiting for SERVICE_UP from
> JBoss7ServerImpl{id=ou6Odbsg}
>
> Finally, here's the complete log:
>
> "2015-03-23 17:47:18,751 INFO  Geo info lookup for 127.0.0.1/127.0.0.1
> returned: HostGeoInfo[COLT Technology Services Group Limited (GB):
> 127.0.0.1 at (51.5,-0.12999999523163)]
>
> 2015-03-23 17:48:34,016 INFO  Launched from YAML:
> io.brooklyn.camp.spi.AssemblyTemplate@79ef77eb[id=rTm2cc6c;
> type=AssemblyTemplate] -> BasicApplicationImpl{id=cz31Os4o}
> (Task[start:sXIJsOtm])
>
> 2015-03-23 17:48:34,112 INFO  Starting NginxControllerImpl{id=rjXgZPYH} on
> machine SshMachineLocation[LocalhostMachine:fues:
> 127.0.0.1/127.0.0.1:22@fues8bg1]
>
> 2015-03-23 17:48:34,139 INFO  Starting MySqlNodeImpl{id=DuonCtsw} on
> machine SshMachineLocation[LocalhostMachine:mItl:
> 127.0.0.1/127.0.0.1:22@mItl1gGN]
>
> 2015-03-23 17:48:34,158 INFO  Resize DynamicWebAppClusterImpl{id=NYNoDm0p}
> from 0 to 1
>
> 2015-03-23 17:48:34,261 INFO  Starting JBoss7ServerImpl{id=ou6Odbsg} on
> machine SshMachineLocation[LocalhostMachine:b0GT:
> 127.0.0.1/127.0.0.1:22@b0GTDuup]
>
> 2015-03-23 17:48:36,174 WARN  Error setting up sudo for octo@127.0.0.1
> (exit code 0, entity NginxControllerImpl{id=rjXgZPYH})
>
> 2015-03-23 17:48:36,434 INFO  JBoss7ServerImpl{id=ou6Odbsg} deploying
> http://search.maven.org/remotecontent?filepath=io/brooklyn/example/brooklyn-example-hello-world-sql-webapp/0.6.0/brooklyn-example-hello-world-sql-webapp-0.6.0.war
> to 127.0.0.1:
> /tmp/brooklyn-octo/apps/cz31Os4o/entities/JBoss7Server_ou6Odbsg/standalone/deployments/ROOT.war
>
> 2015-03-23 17:48:36,710 INFO  Added policy
> ServerPoolMemberTrackerPolicy{name=Controller targets tracker,
> running=true} to NginxControllerImpl{id=rjXgZPYH}
>
> 2015-03-23 17:48:36,710 INFO  Resetting NginxControllerImpl{id=rjXgZPYH},
> server pool targets {}
>
> 2015-03-23 17:48:38,018 INFO  Updating NginxControllerImpl{id=rjXgZPYH},
> server pool targets {}
>
> 2015-03-23 17:49:32,268 WARN  Read of
> JBoss7ServerImpl{id=ou6Odbsg}->Sensor: webapp.reqs.processingTime.max
> (java.lang.Integer) gave exception (grace period expired, occurring for 30s
> 131ms, no exception handler set for sensor):
> brooklyn.util.exceptions.PropagatedRuntimeException:
> org.apache.http.conn.HttpHostConnectException: Connection to
> http://127.0.0.1:9990 refused
>
> 2015-03-23 17:49:32,269 WARN  Read of
> JBoss7ServerImpl{id=ou6Odbsg}->Sensor: webapp.jboss.managementStatus
> (java.lang.Integer) gave exception (grace period expired, occurring for 30s
> 132ms, no exception handler set for sensor):
> brooklyn.util.exceptions.PropagatedRuntimeException:
> org.apache.http.conn.HttpHostConnectException: Connection to
> http://127.0.0.1:9990 refused
>
> 2015-03-23 17:49:32,271 WARN  Read of
> JBoss7ServerImpl{id=ou6Odbsg}->Sensor: webapp.reqs.bytes.sent
> (java.lang.Long) gave exception (grace period expired, occurring for 30s
> 134ms, no exception handler set for sensor):
> brooklyn.util.exceptions.PropagatedRuntimeException:
> org.apache.http.conn.HttpHostConnectException: Connection to
> http://127.0.0.1:9990 refused
>
> 2015-03-23 17:49:32,271 WARN  Read of
> JBoss7ServerImpl{id=ou6Odbsg}->Sensor: webapp.jboss.managementUp
> (java.lang.Boolean) gave exception (grace period expired, occurring for 30s
> 134ms): brooklyn.util.exceptions.PropagatedRuntimeException:
> org.apache.http.conn.HttpHostConnectException: Connection to
> http://127.0.0.1:9990 refused
>
> 2015-03-23 17:49:32,368 WARN  Read of
> JBoss7ServerImpl{id=ou6Odbsg}->Sensor: webapp.reqs.errors
> (java.lang.Integer) gave exception (grace period expired, occurring for 30s
> 231ms, no exception handler set for sensor):
> brooklyn.util.exceptions.PropagatedRuntimeException:
> org.apache.http.conn.HttpHostConnectException: Connection to
> http://127.0.0.1:9990 refused
>
> 2015-03-23 17:49:32,369 WARN  Read of
> JBoss7ServerImpl{id=ou6Odbsg}->Sensor: webapp.reqs.processingTime.total
> (java.lang.Integer) gave exception (grace period expired, occurring for 30s
> 232ms, no exception handler set for sensor):
> brooklyn.util.exceptions.PropagatedRuntimeException:
> org.apache.http.conn.HttpHostConnectException: Connection to
> http://127.0.0.1:9990 refused
>
> 2015-03-23 17:49:32,370 WARN  Read of
> JBoss7ServerImpl{id=ou6Odbsg}->Sensor: webapp.reqs.total
> (java.lang.Integer) gave exception (grace period expired, occurring for 30s
> 232ms, no exception handler set for sensor):
> brooklyn.util.exceptions.PropagatedRuntimeException:
> org.apache.http.conn.HttpHostConnectException: Connection to
> http://127.0.0.1:9990 refused
>
> 2015-03-23 17:49:32,371 WARN  Read of
> JBoss7ServerImpl{id=ou6Odbsg}->Sensor: webapp.reqs.bytes.received
> (java.lang.Long) gave exception (grace period expired, occurring for 30s
> 233ms, no exception handler set for sensor):
> brooklyn.util.exceptions.PropagatedRuntimeException:
> org.apache.http.conn.HttpHostConnectException: Connection to
> http://127.0.0.1:9990 refused
>
> 2015-03-23 17:49:44,828 WARN  Task[Error setting up sudo for octo@127.0.0.1
> (exit code 0, entity NginxControllerImpl{id=rjXgZPYH}):ZNerouRR] was never
> submitted; did the code create it and forget to run it? ('cancel' the task
> to suppress this message)
>
> 2015-03-23 17:51:02,209 WARN  Error invoking start at
> JBoss7ServerImpl{id=ou6Odbsg}: Timeout waiting for SERVICE_UP from
> JBoss7ServerImpl{id=ou6Odbsg}
>
> 2015-03-23 17:51:02,212 ERROR Cluster DynamicWebAppClusterImpl{id=NYNoDm0p}
> failed to start entity JBoss7ServerImpl{id=ou6Odbsg} (removing):
> java.lang.IllegalStateException: Timeout waiting for SERVICE_UP from
> JBoss7ServerImpl{id=ou6Odbsg}
>
> java.lang.IllegalStateException: Timeout waiting for SERVICE_UP from
> JBoss7ServerImpl{id=ou6Odbsg}
>
> at brooklyn.entity.basic.Entities.waitForServiceUp(Entities.java:1060)
> ~[brooklyn-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
>
> 2015-03-23 17:51:02,463 WARN  Service is not up when setting running on
> DynamicWebAppClusterImpl{id=NYNoDm0p}; delayed 205ms but Sensor:
> service.isUp (java.lang.Boolean) did not recover from false;
> not-up-indicators={service-not-up-indicators-from-children-and-members=No
> entities present}
>
> 2015-03-23 17:51:02,464 WARN  Setting DynamicWebAppClusterImpl{id=NYNoDm0p}
> on-fire due to problems when expected running, up=false, problems:
> {start=start failed with error: java.lang.IllegalStateException: Node in
> cluster DynamicWebAppClusterImpl{id=NYNoDm0p} failed: Error invoking start
> at JBoss7ServerImpl{id=ou6Odbsg}: Timeout waiting for SERVICE_UP from
> JBoss7ServerImpl{id=ou6Odbsg}}
>
> 2015-03-23 17:51:02,464 WARN  Setting DynamicWebAppClusterImpl{id=NYNoDm0p}
> on-fire due to problems when expected running, up=false, problems:
> {start=start failed with error: java.lang.IllegalStateException: Node in
> cluster DynamicWebAppClusterImpl{id=NYNoDm0p} failed: Error invoking start
> at JBoss7ServerImpl{id=ou6Odbsg}: Timeout waiting for SERVICE_UP from
> JBoss7ServerImpl{id=ou6Odbsg}}
>
> 2015-03-23 17:51:02,467 WARN  Error invoking start at
> DynamicWebAppClusterImpl{id=NYNoDm0p}: Node in cluster
> DynamicWebAppClusterImpl{id=NYNoDm0p} failed: Error invoking start at
> JBoss7ServerImpl{id=ou6Odbsg}: Timeout waiting for SERVICE_UP from
> JBoss7ServerImpl{id=ou6Odbsg}
>
> 2015-03-23 17:51:02,470 WARN  Error invoking start at
> DynamicWebAppClusterImpl{id=NYNoDm0p}: Error invoking start at
> DynamicWebAppClusterImpl{id=NYNoDm0p}: Node in cluster
> DynamicWebAppClusterImpl{id=NYNoDm0p} failed: Error invoking start at
> JBoss7ServerImpl{id=ou6Odbsg}: Timeout waiting for SERVICE_UP from
> JBoss7ServerImpl{id=ou6Odbsg}
>
> 2015-03-23 17:51:02,495 WARN  Error invoking start at
> ControlledDynamicWebAppClusterImpl{id=gM6QRpgi}: 1 of 2 parallel child
> tasks failed: Error invoking start at
> DynamicWebAppClusterImpl{id=NYNoDm0p}: Node in cluster
> DynamicWebAppClusterImpl{id=NYNoDm0p} failed: Error invoking start at
> JBoss7ServerImpl{id=ou6Odbsg}: Timeout waiting for SERVICE_UP from
> JBoss7ServerImpl{id=ou6Odbsg}
>
> 2015-03-23 17:51:02,496 WARN  Error invoking start at
> ControlledDynamicWebAppClusterImpl{id=gM6QRpgi}: 1 of 2 parallel child
> tasks failed: Error invoking start at
> DynamicWebAppClusterImpl{id=NYNoDm0p}: Node in cluster
> DynamicWebAppClusterImpl{id=NYNoDm0p} failed: Error invoking start at
> JBoss7ServerImpl{id=ou6Odbsg}: Timeout waiting for SERVICE_UP from
> JBoss7ServerImpl{id=ou6Odbsg}
>
> 2015-03-23 17:51:02,511 WARN  Setting BasicApplicationImpl{id=cz31Os4o}
> on-fire due to problems when expected running, up=true, problems:
> {service-lifecycle-indicators-from-children-and-members=Required entity not
> healthy: ControlledDynamicWebAppClusterImpl{id=gM6QRpgi}}
>
> 2015-03-23 17:51:02,511 WARN  Setting BasicApplicationImpl{id=cz31Os4o}
> on-fire due to problems when expected running, up=true, problems:
> {service-lifecycle-indicators-from-children-and-members=Required entity not
> healthy: ControlledDynamicWebAppClusterImpl{id=gM6QRpgi}}
>
> 2015-03-23 17:51:02,511 WARN  Error invoking start at
> BasicApplicationImpl{id=cz31Os4o}: 1 of 2 parallel child tasks failed: 1 of
> 2 parallel child tasks failed: Error invoking start at
> DynamicWebAppClusterImpl{id=NYNoDm0p}: Node in cluster
> DynamicWebAppClusterImpl{id=NYNoDm0p} failed: Error invoking start at
> JBoss7ServerImpl{id=ou6Odbsg}: Timeout waiting for SERVICE_UP from
> JBoss7ServerImpl{id=ou6Odbsg}
>
> 2015-03-23 17:51:02,512 WARN  Error invoking start at
> BasicApplicationImpl{id=cz31Os4o}: 1 of 2 parallel child tasks failed: 1 of
> 2 parallel child tasks failed: Error invoking start at
> DynamicWebAppClusterImpl{id=NYNoDm0p}: Node in cluster
> DynamicWebAppClusterImpl{id=NYNoDm0p} failed: Error invoking start at
> JBoss7ServerImpl{id=ou6Odbsg}: Timeout waiting for SERVICE_UP from
> JBoss7ServerImpl{id=ou6Odbsg}"
>
>
> I already configured the SSH localhost. I'm using OS X 10.10.2. I already
> enabled the remote login in the sharing part as well.
>
>
> I would really appreciate any help.
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message