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

UAA not working #13386

Closed
oulfr opened this issue Dec 29, 2020 · 4 comments
Closed

UAA not working #13386

oulfr opened this issue Dec 29, 2020 · 4 comments

Comments

@oulfr
Copy link

oulfr commented Dec 29, 2020

scenario: https://start.jhipster.tech/generate-application

  • create jhipster UAA server with oauth 2
  • mysql database
  • maven
  • angular

then run :

  1. ./mvnw -Pprod verify jib:dockerBuild
  2. docker-compose -f src/main/docker/app.yml up -d

error:

The application will start in 30s...

Picked up _JAVA_OPTIONS: -Xmx512m -Xms256m

██╗ ██╗ ██╗ ████████╗ ███████╗ ██████╗ ████████╗ ████████╗ ███████╗

██║ ██║ ██║ ╚══██╔══╝ ██╔═══██╗ ██╔════╝ ╚══██╔══╝ ██╔═════╝ ██╔═══██╗

██║ ████████║ ██║ ███████╔╝ ╚█████╗ ██║ ██████╗ ███████╔╝

██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║

╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗

╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝

:: JHipster 🤓 :: Running Spring Boot 2.2.7.RELEASE ::

:: https://www.jhipster.tech ::

2020-12-29 20:34:49.189 INFO 1 --- [ main] com.test.uaa.UaaApp : The following profiles are active: prod,swagger

2020-12-29 20:34:51.667 WARN 1 --- [ main] o.s.boot.actuate.endpoint.EndpointId : Endpoint ID 'service-registry' contains invalid characters, please migrate to a valid format.

2020-12-29 20:34:52.527 WARN 1 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.RuntimeException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'webConfigurer' defined in file [/app/classes/com/test/uaa/config/WebConfigurer.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.boot.context.properties.ConfigurationPropertiesBindException: Error creating bean with name 'io.github.jhipster.config.JHipsterProperties': Could not bind properties to 'JHipsterProperties' : prefix=jhipster, ignoreInvalidFields=false, ignoreUnknownFields=false; nested exception is org.springframework.boot.context.properties.bind.BindException: Failed to bind properties under 'jhipster' to io.github.jhipster.config.JHipsterProperties

2020-12-29 20:34:52.554 ERROR 1 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :


APPLICATION FAILED TO START


Description:

Binding to target [Bindable@9ae0794 type = io.github.jhipster.config.JHipsterProperties, value = 'provided', annotations = array[@org.springframework.boot.context.properties.ConfigurationProperties(ignoreInvalidFields=false, ignoreUnknownFields=false, prefix=jhipster, value=jhipster)]] failed:

Property: jhipster.cache.authentication.jwt.token-validity-in-seconds

Value: 300

Origin: class path resource [config/application-prod.yml]:119:36

Reason: The elements [jhipster.cache.authentication.jwt.token-validity-in-seconds,jhipster.cache.authentication.jwt.token-validity-in-seconds-for-remember-me] were left unbound.

Property: jhipster.cache.authentication.jwt.token-validity-in-seconds-for-remember-me

Value: 252000

Origin: class path resource [config/application-prod.yml]:121:52

Reason: The elements [jhipster.cache.authentication.jwt.token-validity-in-seconds,jhipster.cache.authentication.jwt.token-validity-in-seconds-for-remember-me] were left unbound.

Action:

Update your application's configuration

which conf ??

@avdev4j
Copy link
Contributor

avdev4j commented Jan 4, 2021

Hi @oulfr

Could you please provide more information about the JHipster version you used?

To provide all information we need, you should run jhipster info in the project root folder, and
copy/paste the result here.
The .yo-rc.json file generated in the root folder is mandatory for bug reports. This will help us to replicate the scenario.
You should remove any sensitive information like the rememberMe key or the jwtSecretKey key.

thanks

@pascalgrimaud
Copy link
Member

See #13081

@MR-Os1
Copy link

MR-Os1 commented Jan 8, 2021

If You mean Which Configuration File You have to Update To get This work it's the application-prod.yml and By default both of these options exist on the dev and prod profiles configuration in JHipster version 6.10.5 with i have used.
so you probably messed up the prod configuration profile.

@pascalgrimaud
Copy link
Member

let's track here : #13081

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

No branches or pull requests

4 participants