Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecated parameter and keycloak start error while using keycloak 26.0.5 #355

Open
dineshr93 opened this issue Nov 25, 2024 · 0 comments
Open

Comments

@dineshr93
Copy link

Description

keycloak 26.0.5 throws below error

when running

c4b75cf5/keycloak/README.md#L6

./kc.sh start --log="console,file" 
--hostname-strict-backchannel=false 
--http-enabled=true 
--http-port=8083 
--https-port=8533 
--hostname-strict=false 
--hostname-strict-https=false
Error details:
jakarta.persistence.PersistenceException: [PersistenceUnit: keycloak-default] Unable to build Hibernate SessionFactory
        at io.quarkus.hibernate.orm.runtime.boot.FastBootEntityManagerFactoryBuilder.persistenceException(FastBootEntityManagerFactoryBuilder.java:129)
        at io.quarkus.hibernate.orm.runtime.boot.FastBootEntityManagerFactoryBuilder.build(FastBootEntityManagerFactoryBuilder.java:89)
        at io.quarkus.hibernate.orm.runtime.FastBootHibernatePersistenceProvider.createEntityManagerFactory(FastBootHibernatePersistenceProvider.java:73)
        at jakarta.persistence.Persistence.createEntityManagerFactory(Persistence.java:80)
        at jakarta.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
        at io.quarkus.hibernate.orm.runtime.JPAConfig$LazyPersistenceUnit.get(JPAConfig.java:154)
        at io.quarkus.hibernate.orm.runtime.JPAConfig$1.run(JPAConfig.java:61)
        at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: io.quarkus.runtime.configuration.ConfigurationException: Persistence unit 'keycloak-default' was configured to run with a database version of at least '12.0.0', but the actual version is '10.23.0'. Consider upgrading your database. Alternatively, rebuild your application with 'quarkus.datasource.db-version=10.23.0' (but this may disable some features and/or impact performance negatively).
        at io.quarkus.hibernate.orm.runtime.service.QuarkusRuntimeInitDialectFactory.checkActualDbVersion(QuarkusRuntimeInitDialectFactory.java:70)
        at io.quarkus.hibernate.orm.runtime.observers.QuarkusSessionFactoryObserverForDbVersionCheck.sessionFactoryCreated(QuarkusSessionFactoryObserverForDbVersionCheck.java:15)
        at org.hibernate.internal.SessionFactoryObserverChain.sessionFactoryCreated(SessionFactoryObserverChain.java:35)
        at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:323)
        at io.quarkus.hibernate.orm.runtime.boot.FastBootEntityManagerFactoryBuilder.build(FastBootEntityManagerFactoryBuilder.java:87)
        ... 6 more
dira271641@denue6pr251:/opt/keycloak-26.0.5/bin$ bash kc.sh start --log="console,file" --hostname-backchannel-dynamic=false --http-enabled=true --http-port=8083 --https-port=8533 --hostname-strict=false --verbose

Also In keycloak 26.0.5
keycloak changes-25_0_0.adoc

parameter --hostname-strict-backchannel is replaced with hostname-backchannel-dynamic

parameter --hostname-strict-https is deprecated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant