I have deployed a newly created application to heroku successfully using yo jhipster:heroku. When I run heroku open command, webpage says Application error, when I watched the logs using heroku logs it shows errors with this stack trace.
2017-03-29T14:43:39.763842+00:00 app[web.1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-03-29T14:43:39.763843+00:00 app[web.1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2017-03-29T14:43:39.763843+00:00 app[web.1]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2017-03-29T14:43:39.763846+00:00 app[web.1]: at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)
2017-03-29T14:43:39.763847+00:00 app[web.1]:
2017-03-29T14:43:39.763845+00:00 app[web.1]: at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
2017-03-29T14:43:39.763846+00:00 app[web.1]: at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
2017-03-29T14:43:39.781966+00:00 app[web.1]: 2017-03-29 14:43:39.780 ERROR 4 --- [ main] o.s.boot.SpringApplication : Application startup failed
2017-03-29T14:43:39.781978+00:00 app[web.1]: at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
2017-03-29T14:43:39.781977+00:00 app[web.1]: at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:667)
2017-03-29T14:43:39.781980+00:00 app[web.1]: at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
2017-03-29T14:43:39.781970+00:00 app[web.1]:
2017-03-29T14:43:39.781975+00:00 app[web.1]: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.ryantenney.metrics.spring.config.annotation.DelegatingMetricsConfiguration': Unsatisfied dependency expressed through method 'setMetricsConfigurers' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'metricsConfiguration': Unsatisfied dependency expressed through method 'setHikariDataSource' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalArgumentException: URL must start with 'jdbc'
2017-03-29T14:43:39.781982+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
2017-03-29T14:43:39.781983+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
2017-03-29T14:43:39.781983+00:00 app[web.1]: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
2017-03-29T14:43:39.781981+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
2017-03-29T14:43:39.781981+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
2017-03-29T14:43:39.781986+00:00 app[web.1]: at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:372)
2017-03-29T14:43:39.781986+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173)
2017-03-29T14:43:39.781987+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067)
2017-03-29T14:43:39.781984+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
2017-03-29T14:43:39.781985+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
2017-03-29T14:43:39.781989+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
2017-03-29T14:43:39.781988+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
2017-03-29T14:43:39.781990+00:00 app[web.1]: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
2017-03-29T14:43:39.781988+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
2017-03-29T14:43:39.781991+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
2017-03-29T14:43:39.781993+00:00 app[web.1]: at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:702)
2017-03-29T14:43:39.781994+00:00 app[web.1]: at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:527)
2017-03-29T14:43:39.781991+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
2017-03-29T14:43:39.781992+00:00 app[web.1]: at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:235)
2017-03-29T14:43:39.782000+00:00 app[web.1]: at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
2017-03-29T14:43:39.782003+00:00 app[web.1]: at org.springframework.boot.SpringApplication.run(SpringApplication.java:314)
2017-03-29T14:43:39.782001+00:00 app[web.1]: at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737)
2017-03-29T14:43:39.782004+00:00 app[web.1]: at com.app.AngularSpringApp1App.main(AngularSpringApp1App.java:65)
2017-03-29T14:43:39.782002+00:00 app[web.1]: at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370)
2017-03-29T14:43:39.782004+00:00 app[web.1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-03-29T14:43:39.782006+00:00 app[web.1]: at java.lang.reflect.Method.invoke(Method.java:498)
2017-03-29T14:43:39.782007+00:00 app[web.1]: at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
2017-03-29T14:43:39.782005+00:00 app[web.1]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2017-03-29T14:43:39.782008+00:00 app[web.1]: at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
2017-03-29T14:43:39.782006+00:00 app[web.1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2017-03-29T14:43:39.782017+00:00 app[web.1]: Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'metricsConfiguration': Unsatisfied dependency expressed through method 'setHikariDataSource' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalArgumentException: URL must start with 'jdbc'
2017-03-29T14:43:39.782008+00:00 app[web.1]: at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
2017-03-29T14:43:39.782009+00:00 app[web.1]: at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)
2017-03-29T14:43:39.782018+00:00 app[web.1]: at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:667)
2017-03-29T14:43:39.782018+00:00 app[web.1]: at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
2017-03-29T14:43:39.782021+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
2017-03-29T14:43:39.782021+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
2017-03-29T14:43:39.782022+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
2017-03-29T14:43:39.782019+00:00 app[web.1]: at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366)
2017-03-29T14:43:39.782020+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264)
2017-03-29T14:43:39.782025+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
2017-03-29T14:43:39.782025+00:00 app[web.1]: at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
2017-03-29T14:43:39.782023+00:00 app[web.1]: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
2017-03-29T14:43:39.782026+00:00 app[web.1]: at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1309)
2017-03-29T14:43:39.782024+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
2017-03-29T14:43:39.782028+00:00 app[web.1]: at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1096)
2017-03-29T14:43:39.782029+00:00 app[web.1]: at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
2017-03-29T14:43:39.782027+00:00 app[web.1]: at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1275)
2017-03-29T14:43:39.782030+00:00 app[web.1]: at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:659)
2017-03-29T14:43:39.782027+00:00 app[web.1]: at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1180)
2017-03-29T14:43:39.782039+00:00 app[web.1]: at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
2017-03-29T14:43:39.782040+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173)
2017-03-29T14:43:39.782030+00:00 app[web.1]: ... 34 common frames omitted
2017-03-29T14:43:39.782040+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067)
2017-03-29T14:43:39.782038+00:00 app[web.1]: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalArgumentException: URL must start with 'jdbc'
2017-03-29T14:43:39.782043+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
2017-03-29T14:43:39.782043+00:00 app[web.1]: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
2017-03-29T14:43:39.782044+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
2017-03-29T14:43:39.782041+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
2017-03-29T14:43:39.782042+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
2017-03-29T14:43:39.782046+00:00 app[web.1]: at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
2017-03-29T14:43:39.782046+00:00 app[web.1]: at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066)
2017-03-29T14:43:39.782047+00:00 app[web.1]: at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:659)
2017-03-29T14:43:39.782044+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
2017-03-29T14:43:39.782045+00:00 app[web.1]: at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208)
2017-03-29T14:43:39.782050+00:00 app[web.1]: at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
2017-03-29T14:43:39.782051+00:00 app[web.1]: at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
2017-03-29T14:43:39.782052+00:00 app[web.1]: ... 62 common frames omitted
2017-03-29T14:43:39.782048+00:00 app[web.1]: ... 50 common frames omitted
2017-03-29T14:43:39.782050+00:00 app[web.1]: Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalArgumentException: URL must start with 'jdbc'
2017-03-29T14:43:39.782054+00:00 app[web.1]: at org.springframework.boot.jdbc.DatabaseDriver.fromJdbcUrl(DatabaseDriver.java:268)
2017-03-29T14:43:39.782055+00:00 app[web.1]: at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.determineDriverClassName(DataSourceProperties.java:238)
2017-03-29T14:43:39.782056+00:00 app[web.1]: at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.initializeDataSourceBuilder(DataSourceProperties.java:183)
2017-03-29T14:43:39.782053+00:00 app[web.1]: Caused by: java.lang.IllegalArgumentException: URL must start with 'jdbc'
2017-03-29T14:43:39.782053+00:00 app[web.1]: at org.springframework.util.Assert.isTrue(Assert.java:92)
2017-03-29T14:43:39.782058+00:00 app[web.1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-03-29T14:43:39.782056+00:00 app[web.1]: at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration.createDataSource(DataSourceConfiguration.java:42)
2017-03-29T14:43:39.782058+00:00 app[web.1]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2017-03-29T14:43:39.782057+00:00 app[web.1]: at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari.dataSource(DataSourceConfiguration.java:80)
2017-03-29T14:43:39.782059+00:00 app[web.1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2017-03-29T14:43:39.782061+00:00 app[web.1]: ... 63 common frames omitted
2017-03-29T14:43:39.782062+00:00 app[web.1]:
2017-03-29T14:43:39.782059+00:00 app[web.1]: at java.lang.reflect.Method.invoke(Method.java:498)
2017-03-29T14:43:39.782060+00:00 app[web.1]: at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
2017-03-29T14:43:39.993494+00:00 heroku[web.1]: State changed from starting to crashed
2017-03-29T14:43:39.968085+00:00 heroku[web.1]: Process exited with status 1
2017-03-29T14:43:41.769669+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=angular-spring-app-1.herokuapp.com request_id=119c60ce-edcb-408e-8a7c-aa516343b0a6 fwd="119.152.221.151" dyno= connect= service= status=503 bytes= protocol=https
2017-03-29T14:43:45.649287+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=angular-spring-app-1.herokuapp.com request_id=a187a285-60a8-4d9c-9759-c2805b505869 fwd="119.152.221.151" dyno= connect= service= status=503 bytes= protocol=https
This is a bug which is not allowing to run application in heroku server.
yo jhipsterJDL Studioyo jhipster:herokuheroku openheroku logsI could not find same issue in previous bugs.
This exception is causing the error. I don't know how to fix it.
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.ryantenney.metrics.spring.config.annotation.DelegatingMetricsConfiguration': Unsatisfied dependency expressed through method 'setMetricsConfigurers' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'metricsConfiguration': Unsatisfied dependency expressed through method 'setHikariDataSource' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalArgumentException: URL must start with 'jdbc'
generator-jhipster 4.1.0
{
"generator-jhipster": {
"promptValues": {
"packageName": "com.app"
},
"jhipsterVersion": "4.1.0",
"baseName": "AngularSpringApp1",
"packageName": "com.app",
"packageFolder": "com/app",
"serverPort": "8080",
"authenticationType": "jwt",
"hibernateCache": "ehcache",
"clusteredHttpSession": false,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"prodDatabaseType": "mysql",
"searchEngine": false,
"messageBroker": false,
"serviceDiscoveryType": false,
"buildTool": "maven",
"enableSocialSignIn": false,
"clientFramework": "angular1",
"useSass": false,
"clientPackageManager": "yarn",
"applicationType": "monolith",
"testFrameworks": [
"gatling",
"protractor"
],
"jhiPrefix": "jhi",
"enableTranslation": false,
"herokuAppName": "angular-spring-app-1"
}
}
entityName.json files generated in the .jhipster directoryAddress.json
{
"fluentMethods": true,
"relationships": [
{
"relationshipType": "many-to-one",
"relationshipName": "customer",
"otherEntityName": "customer",
"otherEntityField": "firstName"
}
],
"fields": [
{
"fieldName": "streetAddress",
"fieldType": "String"
},
{
"fieldName": "postalCode",
"fieldType": "String"
},
{
"fieldName": "city",
"fieldType": "String"
},
{
"fieldName": "stateProvince",
"fieldType": "String"
}
],
"changelogDate": "20170324072749",
"entityTableName": "address",
"dto": "no",
"pagination": "no",
"service": "no"
}
Customer.json
{
"fluentMethods": true,
"relationships": [
{
"relationshipType": "many-to-one",
"relationshipName": "user",
"otherEntityName": "user",
"otherEntityField": "login"
}
],
"fields": [
{
"fieldName": "firstName",
"fieldType": "String"
},
{
"fieldName": "lastName",
"fieldType": "String"
},
{
"fieldName": "email",
"fieldType": "String"
},
{
"fieldName": "phoneNumber",
"fieldType": "String"
}
],
"changelogDate": "20170324072749",
"entityTableName": "customer",
"dto": "no",
"pagination": "no",
"service": "no"
}
OS: Windows 10 ,
Browser: Google Chrome
2017-03-29T14:43:39.782053+00:00 app[web.1]: Caused by: java.lang.IllegalArgumentException: URL must start with 'jdbc'
It seems like your datasource configuration is wrong or incomplete.
Have you added a mysql or postgresql plugin to your heroku app?
Closing it as it is very unlikely a JHipster issue.
I did not configured anything. Everything is configured by Jhipster Generator. It runs on my machine without any error in dev mode. But when I deploy on heroku, it gives this error.
@MuhammadZaidSE can you check in your Heroku dashboard that your database was correctly created, and linked to your application? This should have been done automatically
Of course, it works in dev as you use h2 database not mysql.
When I tried heroku sub generator, I had to add JawsDB MySQL add-on to my app in Heroku dashboard to get a database.
@gmarziou this is now all automatic with the new version, there shouldn't be anything to do
It should work automatically, as shown in tutorial, but it does not.
And thanks @gmarziou I added JawsDB MySQL, And it is working fine now.
You probably had an error while the workflow was running, did you keep the log?
Yes!
These are the logs
Heroku configuration is starting
? Name to deploy as: AngularSpringApp1
? On which region do you want to deploy ? us
Using existing Git repository
Installing Heroku CLI deployment plugin
Creating Heroku application and setting up node environment
heroku create angular-spring-app-1
https://angular-spring-app-1.herokuapp.com/ | https://git.heroku.com/angular-spring-app-1.git
Provisioning addons
Created jawsdb:kitefin --as JAWSDB
Creating Heroku deployment files
identical src\main\resources\config\bootstrap-heroku.yml
identical src\main\resources\config\application-heroku.yml
identical Procfile
Building application
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Angular Spring App 1 3.0.0-RELEASE
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:copy-resources (default-resources) @ angular-spring-app-1 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 12 resources
[INFO] Copying 10 resources
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ angular-spring-app-1 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 12 resources
[INFO] Copying 10 resources
[INFO]
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-versions) @ angular-spring-app-1 ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-unit-tests) @ angular-spring-app-1 ---
[INFO] argLine set to "-javaagent:C:\\Users\\Muhammad\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.7.9\\org.jacoco.agent-0.7.9-runtime.jar=destfile=F:\\Zaid Study\\Programming\\CodeBase\\IntelliJ Idea Workspace\\Interview Test App 2\\target\\test-results\\coverage\\jacoco\\jacoco.exec" -Djava.security.egd=file:/dev/./urandom -Xmx256m
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.2.RELEASE:build-info (default) @ angular-spring-app-1 ---
[INFO]
[INFO] --- frontend-maven-plugin:1.3:install-node-and-yarn (install node and yarn) @ angular-spring-app-1 ---
[INFO] Node v6.10.0 is already installed.
[INFO] Yarn 0.21.3 is already installed.
[INFO]
[INFO] --- frontend-maven-plugin:1.3:yarn (yarn install) @ angular-spring-app-1 ---
[INFO] Running 'yarn install' in F:\Zaid Study\Programming\CodeBase\IntelliJ Idea Workspace\Interview Test App 2
[INFO] yarn install v0.21.3
[INFO] [1/4] Resolving packages...
[INFO] success Already up-to-date.
[INFO] $ webdriver-manager update
[INFO] [02:00:45] I/update - chromedriver: file exists F:\Zaid Study\Programming\CodeBase\IntelliJ Idea Workspace\Interview Test App 2\node_modules\webdriver-manager\selenium\chromedriver_2.26win32.zip
[INFO] [02:00:46] I/update - chromedriver: unzipping chromedriver_2.26win32.zip
[INFO] [02:00:47] I/update - chromedriver: v2.26 up to date
[INFO] [02:00:47] I/update - selenium standalone: file exists F:\Zaid Study\Programming\CodeBase\IntelliJ Idea Workspace\Interview Test App 2\node_modules\webdriver-manager\selenium\selenium-server-standalone-2.53.1.jar
[INFO] [02:00:47] I/update - selenium standalone: v2.53.1 up to date
[INFO] [02:00:48] I/update - geckodriver: file exists F:\Zaid Study\Programming\CodeBase\IntelliJ Idea Workspace\Interview Test App 2\node_modules\webdriver-manager\selenium\geckodriver-v0.11.1-win64.zip
[INFO] [02:00:48] I/update - geckodriver: unzipping geckodriver-v0.11.1-win64.zip
[INFO] [02:00:49] I/update - geckodriver: vv0.11.1 up to date
[INFO] Done in 28.60s.
[INFO]
[INFO] --- frontend-maven-plugin:1.3:bower (bower install) @ angular-spring-app-1 ---
[INFO] Running 'bower install --no-color' in F:\Zaid Study\Programming\CodeBase\IntelliJ Idea Workspace\Interview Test App 2
[INFO]
[INFO] --- frontend-maven-plugin:1.3:gulp (gulp build) @ angular-spring-app-1 ---
[INFO] Running 'gulp.js build --no-notification' in F:\Zaid Study\Programming\CodeBase\IntelliJ Idea Workspace\Interview Test App 2
[INFO] [02:02:02] Using gulpfile F:\Zaid Study\Programming\CodeBase\IntelliJ Idea Workspace\Interview Test App 2\gulpfile.js
[INFO] [02:02:02] Starting 'clean'...
[INFO] [02:02:02] Finished 'clean' after 446 ms
[INFO] [02:02:02] Starting 'build'...
[INFO] [02:02:02] Starting 'copy:fonts'...
[INFO] [02:02:02] Starting 'copy:common'...
[INFO] [02:02:02] Starting 'inject:vendor'...
[INFO] [02:02:03] Starting 'ngconstant:prod'...
[INFO] [02:02:04] Finished 'ngconstant:prod' after 270 ms
[INFO] [02:02:04] Finished 'copy:common' after 1.34 s
[INFO] [02:02:04] gulp-inject 18 files into index.html.
[INFO] [02:02:04] Finished 'inject:vendor' after 1.34 s
[INFO] [02:02:04] Finished 'copy:fonts' after 1.58 s
[INFO] [02:02:04] Starting 'copy'...
[INFO] [02:02:04] Finished 'copy' after 21 渭s
[INFO] [02:02:04] Starting 'inject:app'...
[INFO] [02:02:05] gulp-inject 103 files into index.html.
[INFO] [02:02:05] Finished 'inject:app' after 721 ms
[INFO] [02:02:05] Starting 'inject:troubleshoot'...
[INFO] [02:02:05] gulp-inject Nothing to inject into index.html.
[INFO] [02:02:05] Finished 'inject:troubleshoot' after 16 ms
[INFO] [02:02:05] Starting 'images'...
[INFO] [02:02:05] Starting 'styles'...
[INFO] [02:02:05] Starting 'html'...
[INFO] [02:02:05] Starting 'copy:swagger'...
[INFO] [02:02:05] Starting 'copy:images'...
[INFO] [02:02:05] Finished 'copy:images' after 20 ms
[INFO] [02:02:05] Finished 'styles' after 54 ms
[INFO] [02:02:09] Finished 'html' after 4.4 s
[INFO] [02:02:14] Finished 'copy:swagger' after 9.32 s
[INFO] [02:02:17] gulp-imagemin: Minified 3 images (saved 0 B - 0%)
[INFO] [02:02:17] Finished 'images' after 13 s
[INFO] [02:02:17] Starting 'assets:prod'...
[INFO] [02:02:53] Finished 'assets:prod' after 36 s
[INFO] [02:02:53] Finished 'build' after 51 s
[INFO]
[INFO] --- maven-compiler-plugin:3.6.0:compile (default-compile) @ angular-spring-app-1 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 76 source files to F:\Zaid Study\Programming\CodeBase\IntelliJ Idea Workspace\Interview Test App 2\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ angular-spring-app-1 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.6.0:testCompile (default-testCompile) @ angular-spring-app-1 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ angular-spring-app-1 ---
[INFO] Tests are skipped.
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.9:report (post-unit-test) @ angular-spring-app-1 ---
[INFO] Skipping JaCoCo execution due to missing execution data file.
[INFO]
[INFO] --- frontend-maven-plugin:1.3:gulp (gulp test) @ angular-spring-app-1 ---
[INFO] Skipping test phase.
[INFO]
[INFO] --- maven-war-plugin:2.6:war (default-war) @ angular-spring-app-1 ---
[INFO] Packaging webapp
[INFO] Assembling webapp [angular-spring-app-1] in [F:\Zaid Study\Programming\CodeBase\IntelliJ Idea Workspace\Interview Test App 2\target\angular-spring-app-1-3.0.0-RELEASE]
[INFO] Processing war project
[INFO] Copying webapp resources [F:\Zaid Study\Programming\CodeBase\IntelliJ Idea Workspace\Interview Test App 2\target\www]
[INFO] Webapp assembled in [4709 msecs]
[INFO] Building war: F:\Zaid Study\Programming\CodeBase\IntelliJ Idea Workspace\Interview Test App 2\target\angular-spring-app-1-3.0.0-RELEASE.war
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.2.RELEASE:repackage (default) @ angular-spring-app-1 ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 04:56 min
[INFO] Finished at: 2017-03-30T02:04:15+05:00
[INFO] Final Memory: 45M/130M
[INFO] ------------------------------------------------------------------------
Deploying application
Uploading your application code.
This may take several minutes depending on your connection speed...
Uploading angular-spring-app-1-3.0.0-RELEASE.war
-----> Packaging application...
- app: angular-spring-app-1
- including: target/angular-spring-app-1-3.0.0-RELEASE.war
-----> Creating build...
- file: slug.tgz
- size: 47MB
-----> Uploading build...
- success
-----> Deploying...
remote:
remote: -----> heroku-deploy app detected
remote: -----> Installing OpenJDK 1.8... done
remote: -----> Discovering process types
remote: Procfile declares types -> web
remote:
remote: -----> Compressing...
remote: Done: 95.8M
remote: -----> Launching...
remote: Released v4
remote: https://angular-spring-app-1.herokuapp.com/ deployed to Heroku
remote:
-----> Done
I think I figured out the reason. My credit card was not verified on heroku. Without credit card information heroku does not allow the installation of JawsDB MySQL add-on. After verification, I deployed it again. And now it is working fine.
Oh yes I confirm this! Problem solved :-)
This worked for me! Thank you @MuhammadZaidSE
Thank you. It also worked for me. Money makes the world go round!
Most helpful comment
I think I figured out the reason. My credit card was not verified on heroku. Without credit card information heroku does not allow the installation of JawsDB MySQL add-on. After verification, I deployed it again. And now it is working fine.