Closed er2 closed 2 years ago
Did you start the registry/service discovery?
:facepalm: I had not. Trying that now.
I got the JHipster registry running. I downloaded the jar off github and ran it with these parameters
--spring.profiles.active=dev
--spring.security.user.password=admin
--jhipster.security.authentication.jwt.secret=<copied this from .yo-rc.json>
--spring.cloud.config.server.composite.0.type=git
--spring.cloud.config.server.composite.0.uri=https://github.com/jhipster/jhipster-registry-sample-config
It started and I was able to log in. AFAICT I have the same error message.
Is this the root cause? Unable to resolve Configuration with the provided Issuer of "http://localhost:9080/auth/realms/jhipster"
logs-with-jhipster-registry-running.txt
Also, I'm curious about this line in the output
Initializing Eureka in region us-east-1
Is that right? I don't have awscli
set up so where is it getting aws credentials from?
Did you start Keycloak? That should be running on localhost:9080 based on your authentication choice https://www.jhipster.tech/security/#oauth2
To start it, run docker-compose -f src/main/docker/keycloak.yml up -d
Is that right? I don't have
awscli
set up so where is it getting aws credentials from?
I think that's just logged by default, not positive
I don't have a keycloak.yml
.
Needing to start keycloak should probably be mentioned in the root README like the section about JHipster-Registry. Maybe it would be if not for whatever bug prevented me from having keycloak.yml
I was poking around and I found the settings in jhipster-registry.yml
. The local config there sounded like a better idea than pulling them off of github like was mentioned here: https://www.jhipster.tech/jhipster-registry/#using-the-pre-packaged-jar-file
Except the path mentioned there looks incorrect. It's
- SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_TYPE=native
- SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_SEARCH_LOCATIONS=file:./central-config/localhost-config/
but I think it should be
- SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_TYPE=native
- SPRING_CLOUD_CONFIG_SERVER_COMPOSITE_0_SEARCH_LOCATIONS=file:./central-server-config/localhost-config/
This issue is stale because it has been open 30 days with no activity. Our core developers tend to be more verbose on denying. If there is no negative comment, possibly this feature will be accepted. We are accepting PRs :smiley:. Comment or this will be closed in 7 days
I didn't get a reply to my last comment. Seems like a bug that I didn't get a keycloak.yml
file. Should I make a new issue for that?
For microservices, we expect you to access them through a gateway. That's where the keycloak.yml
file should reside.
We might change this behavior for micro frontends because it'd be cool to develop them in isolation. See #15311 for more information.
This issue is stale because it has been open 30 days with no activity. Our core developers tend to be more verbose on denying. If there is no negative comment, possibly this feature will be accepted. We are accepting PRs :smiley:. Comment or this will be closed in 7 days
Overview of the issue
logs
Reproduce the error
run
jhipster
with provided.yo-rc.json
JHipster Version(s)
7.0.1
JHipster configuration
jhipster info INFO! Using JHipster version installed locally in current project's node_modules Welcome to the JHipster Information Sub-Generator
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
openjdk version "11.0.10" 2021-01-19 OpenJDK Runtime Environment GraalVM CE 21.0.0.2 (build 11.0.10+8-jvmci-21.0-b06) OpenJDK 64-Bit Server VM GraalVM CE 21.0.0.2 (build 11.0.10+8-jvmci-21.0-b06, mixed mode, sharing)
git version 2.31.1
node: v12.20.1
npm: 6.14.10
No change to package.json was detected. No package manager install will be executed. Congratulations, JHipster execution is complete! Sponsored with ❤️ by @oktadev.
Browsers and Operating System
Ubuntu 20.04.2 LTS x86_64
logs.txt