<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 11, 2017 at 3:26 PM, Anton <span dir="ltr">&lt;<a href="mailto:kurrent93@gmail.com" target="_blank">kurrent93@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Summers<div><br></div><div>I&#39;m having problems with unifiedpush-server.</div><div><br></div><div>The logs are viewable at <a href="https://pastebin.com/pFKSXsQ5" target="_blank">https://pastebin.co&#39;t work for because I didn&#39;t have the image already pulled. I think it&#39;s pulling it from openshift/mysql:5.7, becam/<wbr>pFKSXsQ5</a></div><div><br></div><div>Of particular interest is <span style="background-color:rgb(16,18,20);color:rgb(209,209,209);font-family:menlo,monaco,consolas,monospace;font-size:12px;white-space:pre-wrap"> Unable to get managed connection for java:jboss/datasources/<wbr>KeycloakDS</span></div><div><span style="background-color:rgb(16,18,20);color:rgb(209,209,209);font-family:menlo,monaco,consolas,monospace;font-size:12px;white-space:pre-wrap"><br></span></div></div></blockquote><div><br></div><div>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 &quot;keycloak&quot; pointing to a mysql database, it may be your keycloak service that you mention below.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span style="background-color:rgb(16,18,20);color:rgb(209,209,209);font-family:menlo,monaco,consolas,monospace;font-size:12px;white-space:pre-wrap"></span></div>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.<div>Why would unifiedpush-server connect to the keycloak database, instead of using the keycloak API<br><br></div></div></blockquote><div><br></div><div>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.</div><div><br></div><div>Of course this is not ideal and we are planning on separating the two.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div>thanks</div></div><div class="gmail-HOEnZb"><div class="gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On 11 April 2017 at 20:28, Anton <span dir="ltr">&lt;<a href="mailto:kurrent93@gmail.com" target="_blank">kurrent93@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks Summers!<div><br></div><div>This is greatly appreciated.</div></div><div class="gmail-m_-2671078402497515237HOEnZb"><div class="gmail-m_-2671078402497515237h5"><div class="gmail_extra"><br><div class="gmail_quote">On 11 April 2017 at 16:42, Summers Pittman <span dir="ltr">&lt;<a href="mailto:supittma@redhat.com" target="_blank">supittma@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span>On Tue, Apr 11, 2017 at 8:00 AM, Anton <span dir="ltr">&lt;<a href="mailto:kurrent93@gmail.com" target="_blank">kurrent93@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello<div><br></div><div>Is there any existing documentation, or ideally openshift templates, for deploying the push server?</div><div><br></div></div></blockquote><div><br></div></span><div>I&#39;ve written a blog post for deploying UPS to OpenShift here : <a href="https://blog.sagaoftherealms.net/?p=644" target="_blank">https://blog.sagaoftherealms<wbr>.net/?p=644</a></div><div>I am also testing a UPS template for OpenShift.  You can find it here : <a href="http://github.com/secondsun/ups-docker-openshift-template" target="_blank">github.com/secondsun/ups-docke<wbr>r-openshift-template</a> ; feel free to send feedback.</div><span><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div></div><div>Also, does <i>need </i>mysql, or can it using any hibernate supported database?</div></div></blockquote><div><br></div></span><div>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&#39;t have any experience with those.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>Thanks</div></div>
<br>______________________________<wbr>_________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/aerogear-users</a><br>
<br></blockquote></div><br></div></div>
<br>______________________________<wbr>_________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/mailma<wbr>n/listinfo/aerogear-users</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/aerogear-<wbr>users</a><br>
<br></blockquote></div><br></div></div>