Migration keycloak 19.0.2

587 views
Skip to first unread message

David Milaveau

unread,
Sep 28, 2022, 5:02:16 AM9/28/22
to Keycloak User
Hello all,

Actually we have keycloak 16.1.1 and we want migrate to 19.0.2.
To do that i can migrate directly to 19.0.2 or i need migrate to 17,18 and 19 ?

Best regards

C R

unread,
Sep 28, 2022, 5:32:31 AM9/28/22
to David Milaveau, Keycloak User
Le mer. 28 sept. 2022 à 11:02, David Milaveau
<david.m...@gmail.com> a écrit :
>
> Hello all,
>
> Actually we have keycloak 16.1.1 and we want migrate to 19.0.2.
> To do that i can migrate directly to 19.0.2 or i need migrate to 17,18 and 19 ?

Hi David,

I migrated from 16 to 19 without any issues (using the official
containers). Of course, you need to backup your DB just in case. I
also migrated to the quarkus distribution, so I had the redo the
complete build and deployment flow.

Regards,

C.

David Milaveau

unread,
Sep 28, 2022, 5:49:18 AM9/28/22
to Keycloak User
Hi,

Thanks for your feedback it's good news for us.
I have try to deploy on K8S context (without operator) we have legacy yaml files to declare deploy, ingress ...
I build image with documentation : https://www.keycloak.org/server/containers like you i thing.

I have an issue when container running on K8S:

ERROR: Build failure: Build failed due to errors
...
 Caused by: java.nio.file.AccessDeniedException: /opt/keycloak/lib/quarkus/generated-bytecode.jar                                                                                                                                   │
│     at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)                                                                                                                                            │
│     at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)                                                                                                                                             │
│     at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)                                                                                                                                             │
│     at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:249)                                                                                                                                     │
│     at java.base/sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:105)                                                                                                                                 │
│     at java.base/java.nio.file.Files.delete(Files.java:1142)                                                                                                                                                                       │
│     at io.quarkus.bootstrap.util.IoUtils.createOrEmptyDir(IoUtils.java:114)                                                                                                                                                        │
│     at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildThinJar(JarResultBuildStep.java:574)                                                                                                                                │
│     at io.quarkus.deployment.pkg.steps.JarResultBuildStep.buildRunnerJar(JarResultBuildStep.java:218)                                                                                                                              │
│     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                                                                                              │
│     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)                                                                                                                            │
│     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                                                                                                                    │
│     at java.base/java.lang.reflect.Method.invoke(Method.java:566)                                                                                                                                                                  │
│     at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:882)


I don't understand why keycloak want  to 'Build' and why it failed.
I try to launch locally docker image on my laptop and i don't have this  behavious. 

Thank's for your help.

David.

C R

unread,
Sep 28, 2022, 6:08:05 AM9/28/22
to David Milaveau, Keycloak User
Le mer. 28 sept. 2022 à 11:49, David Milaveau
<david.m...@gmail.com> a écrit :
>
I use Nomad instead of Kubernetes, so I don't inmediately see where is
goes wrong.
Did you use a multi-stage build like the documentation example and did
you copy the build result to the next stage? Is Kubernetes trying to
build it again?

C.

David Milaveau

unread,
Sep 28, 2022, 6:20:42 AM9/28/22
to Keycloak User
Yes, i use multi-stage build like documentation.
In my yaml file (deployment) i have added args 'start' to start keycloak on production mode and in this case k8s try to build again (and failed).

I testing new option to launch with args : 'start --optimized' and now i have an issue because hostname isn't define, i thing that it's better i continue to search.

David.

Reply all
Reply to author
Forward
0 new messages