Closed delverdev closed 7 years ago
There's a timeout because the app is waiting to connect to the registry: I don't know how you configured your registry, but the app cannot access it.
This is configured in your bootstrap-prod.yml
and your application-prod.yml
files -> don't send them as your password is there.
You could also put your Eureka logs (in logback-spring.xml
) in debug mode, it will tell you what's failing.
I created the registry with this URL, so I don't know how could I misconfigured it. Maybe because I deployed the gateway right after it was created (without editing at all). Is generator able to deploy a gateway "out of the box"?
P.S. as mentioned here, if an URL of my app is https://registry.herokuapp.com
, than JHipster Registry URL
is registry
. Because I answered registry
in "What is the URL of your JHipster Registry?" (I tried registry.herokuapp.com
as well).
Yes with that URL your registry should work, are you able to access it and log in? If yes, then you need to have the same URL, login and password in your JHipster configuration
Did you follow the referenced full Heroku documentation? https://jhipster.github.io/heroku/ The Heroku docs at the bottom of the microservice page are a little old (fixed https://github.com/jhipster/jhipster.github.io/pull/388).
I created a registry with the auto-deploy URL (https://admin:admin@registry-2.herokuapp.com/) and deployed a gateway (https://herokugway.herokuapp.com/#/). You need to handle the authentication like Julien said.
You can update the config variable without redeploying by running heroku config:set JHIPSTER_REGISTRY_URL="https://admin:admin@registry-2.herokuapp.com"
change the application-prod.yml and bootstrap-prod.yml to reflect the heroku registry location and add -Dserver.port=$PORT to the Proc file after the $JAVA_OPTS , then relaunch! :)
Overview of the issue
I deployed JHipster Registry to Heroku by clicking the purple button from JHipster's website. Then I created a gateway application (I tried microservice application too) and tried to deploy it. After deplot, app starts with the following logs:
Then it tries to restart the app one more time and doesn't respond.
Full stack trace of
yo jhipster:heroku
:Reproduce the error
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folderEntity configuration(s)
entityName.json
files generated in the.jhipster
directoryls: no such file or directory: .jhipster/*.json
Browsers and Operating System
java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
git version 2.11.1.windows.1
node: v6.9.5
npm: 3.10.10
yarn: 0.19.1