<div dir="ltr">Hi Vivek ! <div>The KeyCloak jsut gave me some directions for the migration, I copy paste it here :</div><div><br></div><div><pre>Make sure Keycloak 1.0.0.RC1 is not running and run:

 # bin/standalone.sh -Dkeycloak.migration.action=export -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=&lt;ADD A NAME FOR THE EXPORT FILE&gt;

Then you need to manually edit the exported file:

1. Rename &quot;auditEnabled&quot; to &quot;eventsEnabled&quot;
2. Rename &quot;auditExpiration&quot; to &quot;eventsExpiration&quot;
3. Rename &quot;auditListeners&quot; to &quot;eventsListeners&quot;
4. Under &quot;master&quot; realm to all applications that ends with &quot;-realm&quot; add roles &quot;view-events&quot; and &quot;manage-events&quot; (you don&#39;t need to specify an id)
5. To &quot;admin&quot; composite role in master realm add &quot;view-events&quot; and &quot;manage-events&quot;
6. For each additional realm to &quot;realm-management&quot; application add roles &quot;view-events&quot; and &quot;manage-events&quot;
7. To &quot;realm-admin&quot; composite role in other realms add &quot;view-events&quot; and &quot;manage-events&quot;

Steps 1-3 are required, otherwise the import will fail. If steps 4-7 are not done Keycloak will throw a NPE if you try to access events log through the admin console, you can also do these steps afterwards through the admin console. 

Before starting Keycloak 1.0.1.Final clear the database, then run:

 # bin/standalone.sh -Dkeycloak.migration.action=import -Dkeycloak.migration.provider=singleFile -Dkeycloak.migration.file=&lt;PATH TO ABOVE EXPORT FILE&gt;</pre><pre><br></pre><pre>Please let us know if that helps.</pre><pre><br></pre><pre>Sebi</pre></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 6, 2014 at 11:34 AM, Sebastien Blanc <span dir="ltr">&lt;<a href="mailto:scm.blanc@gmail.com" target="_blank">scm.blanc@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Mon, Oct 6, 2014 at 10:41 AM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hello Vivek,<div><br></div><div>looks like a database migration problem from our Keycloak SSO layer. I will follow up with them.</div><div><br></div><div>That said, sounds like we may also have some higher priority for an export of the device metadata (and perhaps apps/variants), to allow an import on newer versions</div></div></blockquote></span><div>+1 and indeed maybe consider apps/variants as well</div><div>We have a ticket for that <a href="https://issues.jboss.org/browse/AGPUSH-978" target="_blank">https://issues.jboss.org/browse/AGPUSH-978</a></div><div><br></div><div>@vivek In the mean time, I will ping the Keycloak team to see if they have some kind of migration script available or tips.</div><div><div class="h5"><div>  <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>-Matthias</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Mon, Oct 6, 2014 at 7:40 AM, Vivek Pandey <span dir="ltr">&lt;<a href="mailto:vivek.pandey@pinelabs.com" target="_blank">vivek.pandey@pinelabs.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">UPS team,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I was trying to upgrade to UPS 1.0.0 to UPS 1.0.1. When I started jboss after upgrading the wars, I found following errors in log<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">11:00:06,999 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/auth]] (MSC service thread 1-4) Servlet /auth threw load() exception: java.lang.IllegalArgumentException: Can not set boolean field org.keycloak.models.jpa.entities.RealmEntity.eventsEnabled to null value<u></u><u></u></p><p class="MsoNormal">        at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164) [rt.jar:1.7.0_51]<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">It seems that I missed some database migration script. Can you point me to that script?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Thanks,<u></u><u></u></p><p class="MsoNormal">Vivek<u></u><u></u></p></div>
<br><hr>This message may contain privileged and confidential information and is solely for the use of intended recipient. The views expressed in this email are those of the sender and not of Pine Labs. The recipient should check this email and attachments for the presence of viruses / malwares etc. Pine Labs accepts no liability for any damage caused by any virus transmitted by this email. Pine Labs may monitor and record all emails.<hr>

<br></div><br></div></div>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><span><font color="#888888"><br></font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</font></span></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div></div></div><br></div></div>
</blockquote></div><br></div>