On Tue, Apr 11, 2017 at 3:26 PM, Anton <kurrent93@gmail.com> wrote:
Hi Summers

I'm having problems with unifiedpush-server.


Of particular interest is  Unable to get managed connection for java:jboss/datasources/KeycloakDS


So something that might be going on in your logs is that Wildfly deploys UPS before the databases wake up and there are errors.  In theory the pod should be destroyed and recreated.  Additionally, you may not have the service "keycloak" pointing to a mysql database, it may be your keycloak service that you mention below.
 
Now, I already have keycloak running in my cluster, so I would have expected that it could already connect to Keycloak, but the error suggests that unifiedpush-server is not trying to connect to Keycloak, but to the Keycloak database! If this is correct, this sounds like a very poor architecture. Keycloak has a very good API.
Why would unifiedpush-server connect to the keycloak database, instead of using the keycloak API


So way back in the dark ages of 2013/2014 Keycloak had this idea that it could be embedded in applications.  During this time UPS was written and we embedded Keycloak.  So the UPS deployment includes its own version of Keycloak and this needs its own datasource for its own keycloak.

Of course this is not ideal and we are planning on separating the two.
 
thanks

On 11 April 2017 at 20:28, Anton <kurrent93@gmail.com> wrote:
Thanks Summers!

This is greatly appreciated.

On 11 April 2017 at 16:42, Summers Pittman <supittma@redhat.com> wrote:


On Tue, Apr 11, 2017 at 8:00 AM, Anton <kurrent93@gmail.com> wrote:
Hello

Is there any existing documentation, or ideally openshift templates, for deploying the push server?


I've written a blog post for deploying UPS to OpenShift here : https://blog.sagaoftherealms.net/?p=644
I am also testing a UPS template for OpenShift.  You can find it here : github.com/secondsun/ups-docker-openshift-template ; feel free to send feedback.
 
Also, does need mysql, or can it using any hibernate supported database?

UPS supports mysql, postgres, and h2 and ships with the appropriate configuration for those.  You can probably get it to work with other HIbernate databases as well, but don't have any experience with those.
 

Thanks

_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users



_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users




_______________________________________________
Aerogear-users mailing list
Aerogear-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users