[Hawkular-dev] Alpha7 startup problem

Van Dillon vandillon at gmail.com
Thu Nov 19 19:23:35 EST 2015


Thanks for the quick reply John.

I did the following:

1) Disabled the agent
2) Started the server successfully
3) Created a user with the Hawkular UI
4) Stopped the server
5) Enabled the agent and added the credentials for the newly created user
6) Started the server again

Now all seems to be working.


On Thu, Nov 19, 2015 at 6:38 PM, John Mazzitelli <mazz at redhat.com> wrote:

> There is a problem in Alpha7 (fixed already in master, didn't make it in
> release) where the agent will cause the entire server to die if the agent
> was not configured with proper credentials.
>
> That is the cause of this most likely:
>
> > Thread) WFLYCTL0002: Error booting the container:
> java.lang.RuntimeException: Cannot get tenant ID
>
> To fix, you can either
>
> 1) disable the agent running in your Hawkular Server by setting
> enabled="false" in the hawkular agent <subsystem> - if you do this, your
> agent will just not run (it won't collect and store metrics and inventory)
>
> or
>
> 2) put proper credentials in the agent's <storage-adapter> configuration
> (username, password attributes) - I think it shipped with "jdoe" and
> "password" but those are credentials for the test user in dev builds.
> You'll need to put your own credentials in there - when you do and you
> restart, the agent will be able to store metrics and inventory
>
> As for the other issues, I do know you'll get some ugly startup exceptions
> that are really nothing more than components polling Cassandra to see if
> its up. If you are running with an embedded Cassandra, you'll get a bunch
> of ugly exceptions until Cassandra has fully initialized.
>
> ----- Original Message -----
> > Hi,
> >
> > I'm running into a problem trying to start Alpha7 AIO on both Windows 7
> and
> > Docker.
> >
> > In Windows I set 'org.hawkular.data.dir' before trying to run. This
> worked
> > well in Alpha6. When I run I get a lot of WARN entries:
> >
> > 2015-11-19 17:01:16,780 WARN [com.datastax.driver.core.Connection]
> > (cluster4-nio-worker-0) Error closing channel:
> > io.netty.channel.ChannelException: java.net.SocketException: Socket is
> > closed
> >
> >
> > Then I get one or more of these FATAL entries:
> >
> > 2015-11-19 17:01:32,351 FATAL [org.hawkular.accounts.common.internal]
> > (EE-ManagedExecutorService-default-Thread-2) HAWKACC150005: Could not
> > connect to Cassandra after enough attempts. Giving up. Reason:
> > com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s)
> > tried for query failed (tried: / 127.0.0.1:9042
> > (com.datastax.driver.core.TransportException: [/ 127.0.0.1:9042 ] Cannot
> > connect))
> >
> >
> > Finally the server shuts down with:
> >
> > 2015-11-19 17:02:07,987 WARN [org.keycloak.events] (default task-3)
> > type=LOGIN_ERROR, realmId=hawkular-realm,
> > clientId=hawkular-accounts-backend, userId=null, ipAddress=127.0.0.1,
> > error=invalid_user_credentials, auth_method=openid-connect,
> > response_type=token, client_auth_method=client-secret, username=jdoe
> > 2015-11-19 17:02:08,038 WARN [org.keycloak.events] (default task-6)
> > type=LOGIN_ERROR, realmId=hawkular-realm,
> > clientId=hawkular-accounts-backend, userId=null, ipAddress=127.0.0.1,
> > error=invalid_user_credentials, auth_method=openid-connect,
> > response_type=token, client_auth_method=client-secret, username=jdoe
> > 2015-11-19 17:02:08,086 INFO [org.hawkular.nest.extension.log] (MSC
> service
> > thread 1-6) HAWKBUS130002: Nest service stopping
> > 2015-11-19 17:02:08,100 INFO [org.hawkular.nest.extension.log] (MSC
> service
> > thread 1-6) HAWKBUS130003: Nest service stopped
> > 2015-11-19 17:02:08,116 INFO [org.jboss.as.connector.deployment] (MSC
> service
> > thread 1-3) WFLYJCA0011: Unbound JCA AdminObject
> > [java:/topic/HawkularAccountsEvents]
> > 2015-11-19 17:02:08,125 ERROR [org.jboss.as.controller] (Controller Boot
> > Thread) WFLYCTL0002: Error booting the container:
> > java.lang.RuntimeException: Cannot get tenant ID
> > at
> >
> org.hawkular.agent.monitor.service.MonitorService.buildRuntimeConfiguration(MonitorService.java:205)
> > at
> >
> org.hawkular.agent.monitor.service.MonitorService.startMonitorService(MonitorService.java:413)
> > at
> >
> org.hawkular.agent.monitor.service.MonitorService$1.propertyChange(MonitorService.java:391)
> > at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
> > at
> >
> java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
> > at
> >
> java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
> > at
> >
> org.jboss.as.controller.ControlledProcessStateService.stateChanged(ControlledProcessStateService.java:114)
> > at
> >
> org.jboss.as.controller.ControlledProcessState.setRunning(ControlledProcessState.java:115)
> > at
> >
> org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:277)
> > at java.lang.Thread.run(Thread.java:745)
> > Caused by: java.lang.Exception: status-code=[401], reason=[Unauthorized],
> > url=[ http://127.0.0.1:8080/hawkular/accounts/personas/current ]
> > at
> >
> org.hawkular.agent.monitor.service.MonitorService.buildRuntimeConfiguration(MonitorService.java:189)
> > ... 9 more
> >
> >
> > In Docker the log has the same FATAL and ERROR entries but does not have
> the
> > WARN entries.
> >
> > Any help would be much appreciated.
> >
> >
> > Thanks,
> >
> > Van
> >
> >
> > _______________________________________________
> > hawkular-dev mailing list
> > hawkular-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/hawkular-dev
> >
> _______________________________________________
> hawkular-dev mailing list
> hawkular-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hawkular-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hawkular-dev/attachments/20151119/18e7595e/attachment-0001.html 


More information about the hawkular-dev mailing list