postgresql - Heroku H14 (no web processes running) + Spring-boot -


sorry if question repeated cannot find solution in other questions.

i'm trying deploy spring-boot application on heroku. i'm hosting database, when try deploy i'm getting error on logs in heroku.

2016-01-29t05:08:05.730937+00:00 heroku[router]: at=error code=h14 desc="no web processes running" method=get path="/" h     ost=naturaapp.herokuapp.com request_id=39586950-d3fb-463c-9b21-458ae41b2f36 fwd="190.139.xx.xxx" dyno= connect= service=      status=503 bytes=     2016-01-29t05:08:06.641002+00:00 heroku[router]: at=error code=h14 desc="no web processes running" method=get path="/fav     icon.ico" host=naturaapp.herokuapp.com request_id=75e51dfb-58f1-4524-9a66-52605573097e fwd="190.139.xx.xxx" dyno= connec     t= service= status=503 bytes= 

i don't know i'm doing wrong, can explain me do?

i use command heroku ps:scale web still getting same error.

if need code, please tell me!

thank you!

update

after adding procfile web: java -dserver.port=$port -jar target/*.jar

i'm getting following errors on log:

    ps c:\users\paulo> heroku logs --tail --app naturaapp 2016-01-29t23:59:37.000435+00:00 app[web.1]:    @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) 2016-01-29t23:59:36.950259+00:00 app[web.1]: 2016-01-29 23:59:36.950  info 3 --- [           main] o.apache.catalina.core.standardservice   : stopping service tomcat 2016-01-29t23:59:37.000476+00:00 app[web.1]:    @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) 2016-01-29t23:59:37.000281+00:00 app[web.1]: java.lang.reflect.invocationtargetexception 2016-01-29t23:59:37.000644+00:00 app[web.1]:    @ java.lang.thread.run(thread.java:745) 2016-01-29t23:59:37.000899+00:00 app[web.1]:    @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1578) 2016-01-29t23:59:37.000537+00:00 app[web.1]:    @ java.lang.reflect.method.invoke(method.java:498) 2016-01-29t23:59:37.000841+00:00 app[web.1]: caused by: org.springframework.beans.factory.beancreationexception: error creating bean name 'entitymanagerfactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/hibernatejpaautoconfiguration.class]: invocation of init method failed; nested exception org.hibernate.hibernateexception: access dialectresolutioninfo cannot null when 'hibernate.dialect' not set 2016-01-29t23:59:37.000981+00:00 app[web.1]:    @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:545) 2016-01-29t23:59:37.001276+00:00 app[web.1]:    @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:302) 2016-01-29t23:59:37.000592+00:00 app[web.1]:    @ org.springframework.boot.loader.mainmethodrunner.run(mainmethodrunner.java:53) 2016-01-29t23:59:37.001057+00:00 app[web.1]:    @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:482) 2016-01-29t23:59:37.001206+00:00 app[web.1]:    @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230) 2016-01-29t23:59:37.001422+00:00 app[web.1]:    @ org.springframework.context.support.abstractapplicationcontext.getbean(abstractapplicationcontext.java:1054) 2016-01-29t23:59:37.001603+00:00 app[web.1]:    @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.refresh(embeddedwebapplicationcontext.java:118) 2016-01-29t23:59:37.001134+00:00 app[web.1]:    @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:306) 2016-01-29t23:59:37.001349+00:00 app[web.1]:    @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:197) 2016-01-29t23:59:37.001717+00:00 app[web.1]:    @ org.springframework.boot.springapplication.dorun(springapplication.java:357) 2016-01-29t23:59:37.001512+00:00 app[web.1]:    @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:829) 2016-01-29t23:59:37.001860+00:00 app[web.1]:    @ org.springframework.boot.springapplication.run(springapplication.java:1113) 2016-01-29t23:59:37.001810+00:00 app[web.1]:    @ org.springframework.boot.springapplication.run(springapplication.java:305) 2016-01-29t23:59:37.001812+00:00 app[web.1]:    @ org.springframework.boot.springapplication.run(springapplication.java:1124) 2016-01-29t23:59:37.001661+00:00 app[web.1]:    @ org.springframework.boot.springapplication.refresh(springapplication.java:764) 2016-01-29t23:59:37.002285+00:00 app[web.1]:    @ org.hibernate.engine.jdbc.internal.jdbcservicesimpl.configure(jdbcservicesimpl.java:205) 2016-01-29t23:59:37.002345+00:00 app[web.1]:    @ org.hibernate.boot.registry.internal.standardserviceregistryimpl.configureservice(standardserviceregistryimpl.java:111) 2016-01-29t23:59:37.001914+00:00 app[web.1]:    @ com.arg.juy.natura.naturaapplication.main(naturaapplication.java:19) 2016-01-29t23:59:37.001987+00:00 app[web.1]:    ... 6 more 2016-01-29t23:59:37.002119+00:00 app[web.1]: caused by: org.hibernate.hibernateexception: access dialectresolutioninfo cannot null when 'hibernate.dialect' not set 2016-01-29t23:59:37.001543+00:00 app[web.1]:    @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:538) 2016-01-29t23:59:37.002217+00:00 app[web.1]:    @ org.hibernate.engine.jdbc.dialect.internal.dialectfactoryimpl.determinedialect(dialectfactoryimpl.java:104) 2016-01-29t23:59:37.002479+00:00 app[web.1]:    @ org.hibernate.service.internal.abstractserviceregistryimpl.getservice(abstractserviceregistryimpl.java:206) 2016-01-29t23:59:37.002615+00:00 app[web.1]:    @ org.hibernate.cfg.configuration.buildsessionfactory(configuration.java:1845) 2016-01-29t23:59:37.002671+00:00 app[web.1]:    @ org.hibernate.jpa.boot.internal.entitymanagerfactorybuilderimpl$4.perform(entitymanagerfactorybuilderimpl.java:857) 2016-01-29t23:59:37.002221+00:00 app[web.1]:    @ org.hibernate.engine.jdbc.dialect.internal.dialectfactoryimpl.builddialect(dialectfactoryimpl.java:71) 2016-01-29t23:59:37.002409+00:00 app[web.1]:    @ org.hibernate.service.internal.abstractserviceregistryimpl.initializeservice(abstractserviceregistryimpl.java:234) 2016-01-29t23:59:37.002556+00:00 app[web.1]:    @ org.hibernate.cfg.configuration.buildtyperegistrations(configuration.java:1887) 2016-01-29t23:59:37.002737+00:00 app[web.1]:    @ org.hibernate.jpa.boot.internal.entitymanagerfactorybuilderimpl$4.perform(entitymanagerfactorybuilderimpl.java:850) 2016-01-29t23:59:37.002806+00:00 app[web.1]:    @ org.hibernate.boot.registry.classloading.internal.classloaderserviceimpl.withtccl(classloaderserviceimpl.java:425) 2016-01-29t23:59:37.003012+00:00 app[web.1]:    @ org.springframework.orm.jpa.localcontainerentitymanagerfactorybean.createnativeentitymanagerfactory(localcontainerentitymanagerfactorybean.java:343) 2016-01-29t23:59:37.003082+00:00 app[web.1]:    @ org.springframework.orm.jpa.abstractentitymanagerfactorybean.afterpropertiesset(abstractentitymanagerfactorybean.java:318) 2016-01-29t23:59:37.002864+00:00 app[web.1]:    @ org.hibernate.jpa.boot.internal.entitymanagerfactorybuilderimpl.build(entitymanagerfactorybuilderimpl.java:849) 2016-01-29t23:59:37.002959+00:00 app[web.1]:    @ org.springframework.orm.jpa.vendor.springhibernatejpapersistenceprovider.createcontainerentitymanagerfactory(springhibernatejpapersistenceprovider.java:60) 2016-01-29t23:59:37.003136+00:00 app[web.1]:    @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.invokeinitmethods(abstractautowirecapablebeanfactory.java:1637) 2016-01-29t23:59:37.003239+00:00 app[web.1]:    ... 22 more 2016-01-29t23:59:37.003194+00:00 app[web.1]:    @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1574) 2016-01-29t23:59:36.895820+00:00 app[web.1]: 2016-01-29 23:59:36.895  warn 3 --- [           main] ationconfigembeddedwebapplicationcontext : exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.beancreationexception: error creating bean name 'entitymanagerfactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/hibernatejpaautoconfiguration.class]: invocation of init method failed; nested exception org.hibernate.hibernateexception: access dialectresolutioninfo cannot null when 'hibernate.dialect' not set 2016-01-29t23:59:36.957188+00:00 app[web.1]:  java.lang.object.wait(native method) 2016-01-29t23:59:36.957183+00:00 app[web.1]: 2016-01-29 23:59:36.957  warn 3 --- [ost-startstop-1] o.a.c.loader.webappclassloaderbase       : web application [root] appears have started thread named [abandoned connection cleanup thread] has failed stop it. create memory leak. stack trace of thread: 2016-01-29t23:59:36.957190+00:00 app[web.1]:  java.lang.ref.referencequeue.remove(referencequeue.java:143) 2016-01-29t23:59:36.957191+00:00 app[web.1]:  com.mysql.jdbc.abandonedconnectioncleanupthread.run(abandonedconnectioncleanupthread.java:43) 2016-01-29t23:59:36.989715+00:00 app[web.1]: 2016-01-29 23:59:36.988 error 3 --- [           main] o.s.boot.springapplication               : application startup failed 2016-01-29t23:59:36.989720+00:00 app[web.1]: 2016-01-29t23:59:36.989722+00:00 app[web.1]: org.springframework.beans.factory.beancreationexception: error creating bean name 'entitymanagerfactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/hibernatejpaautoconfiguration.class]: invocation of init method failed; nested exception org.hibernate.hibernateexception:access dialectresolutioninfo cannot null when 'hibernate.dialect' not set 2016-01-29t23:59:36.989724+00:00 app[web.1]:    @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1578) ~[spring-beans-4.2.4.release.jar!/:4.2.4.release] 2016-01-29t23:59:36.989725+00:00 app[web.1]:    @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:545) ~[spring-beans-4.2.4.release.jar!/:4.2.4.release] 2016-01-29t23:59:36.989726+00:00 app[web.1]:    @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:482) ~[spring-beans-4.2.4.release.jar!/:4.2.4.release] 2016-01-29t23:59:36.989727+00:00 app[web.1]:    @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:306) ~[spring-beans-4.2.4.release.jar!/:4.2.4.release] 2016-01-29t23:59:36.989729+00:00 app[web.1]:    @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:302) ~[spring-beans-4.2.4.release.jar!/:4.2.4.release] 2016-01-29t23:59:36.989728+00:00 app[web.1]:    @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230) ~[spring-beans-4.2.4.release.jar!/:4.2.4.release] 2016-01-29t23:59:36.989729+00:00 app[web.1]:    @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:197) ~[spring-beans-4.2.4.release.jar!/:4.2.4.release] 2016-01-29t23:59:36.989731+00:00 app[web.1]:    @ org.springframework.context.support.abstractapplicationcontext.getbean(abstractapplicationcontext.java:1054) ~[spring-context-4.2.4.release.jar!/:4.2.4.release] 2016-01-29t23:59:36.989738+00:00 app[web.1]:    @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:829) ~[spring-context-4.2.4.release.jar!/:4.2.4.release] 2016-01-29t23:59:36.989740+00:00 app[web.1]:    @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.refresh(embeddedwebapplicationcontext.java:118) ~[spring-boot-1.3.1.release.jar!/:1.3.1.release] 2016-01-29t23:59:36.989739+00:00 app[web.1]:    @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:538) ~[spring-context-4.2.4.release.jar!/:4.2.4.release] 2016-01-29t23:59:36.989741+00:00 app[web.1]:    @ org.springframework.boot.springapplication.refresh(springapplication.java:764) [spring-boot-1.3.1.release.jar!/:1.3.1.release] 2016-01-29t23:59:36.989741+00:00 app[web.1]:    @ org.springframework.boot.springapplication.dorun(springapplication.java:357) [spring-boot-1.3.1.release.jar!/:1.3.1.release] 2016-01-29t23:59:36.989742+00:00 app[web.1]:    @ org.springframework.boot.springapplication.run(springapplication.java:305) [spring-boot-1.3.1.release.jar!/:1.3.1.release] 2016-01-29t23:59:36.989743+00:00 app[web.1]:    @ org.springframework.boot.springapplication.run(springapplication.java:1113) [spring-boot-1.3.1.release.jar!/:1.3.1.release] 2016-01-29t23:59:36.989743+00:00 app[web.1]:    @ org.springframework.boot.springapplication.run(springapplication.java:1124) [spring-boot-1.3.1.release.jar!/:1.3.1.release] 2016-01-29t23:59:36.989744+00:00 app[web.1]:    @ com.arg.juy.natura.naturaapplication.main(naturaapplication.java:19)[natura-0.0.1-snapshot.jar!/:0.0.1-snapshot] 2016-01-29t23:59:36.989745+00:00 app[web.1]:    @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) ~[na:1.8.0_72-cedar14] 2016-01-29t23:59:36.989746+00:00 app[web.1]:    @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) ~[na:1.8.0_72-cedar14] 2016-01-29t23:59:36.989747+00:00 app[web.1]:    @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) ~[na:1.8.0_72-cedar14] 2016-01-29t23:59:36.989747+00:00 app[web.1]:    @ java.lang.reflect.method.invoke(method.java:498) ~[na:1.8.0_72-cedar14] 2016-01-29t23:59:36.989748+00:00 app[web.1]:    @ org.springframework.boot.loader.mainmethodrunner.run(mainmethodrunner.java:53) [natura-0.0.1-snapshot.jar!/:0.0.1-snapshot] 2016-01-29t23:59:36.989749+00:00 app[web.1]:    @ java.lang.thread.run(thread.java:745) [na:1.8.0_72-cedar14] 2016-01-29t23:59:36.989750+00:00 app[web.1]: caused by: org.hibernate.hibernateexception: access dialectresolutioninfo cannot null when 'hibernate.dialect' not set 2016-01-29t23:59:36.989756+00:00 app[web.1]:    @ org.hibernate.engine.jdbc.dialect.internal.dialectfactoryimpl.determinedialect(dialectfactoryimpl.java:104) ~[hibernate-core-4.3.11.final.jar!/:4.3.11.final] 2016-01-29t23:59:36.989762+00:00 app[web.1]:    @ org.hibernate.engine.jdbc.dialect.internal.dialectfactoryimpl.builddialect(dialectfactoryimpl.java:71) ~[hibernate-core-4.3.11.final.jar!/:4.3.11.final] 2016-01-29t23:59:36.989763+00:00 app[web.1]:    @ org.hibernate.engine.jdbc.internal.jdbcservicesimpl.configure(jdbcservicesimpl.java:205) ~[hibernate-core-4.3.11.final.jar!/:4.3.11.final] 2016-01-29t23:59:36.989763+00:00 app[web.1]:    @ org.hibernate.boot.registry.internal.standardserviceregistryimpl.configureservice(standardserviceregistryimpl.java:111) ~[hibernate-core-4.3.11.final.jar!/:4.3.11.final] 2016-01-29t23:59:36.989764+00:00 app[web.1]:    @ org.hibernate.service.internal.abstractserviceregistryimpl.initializeservice(abstractserviceregistryimpl.java:234) ~[hibernate-core-4.3.11.final.jar!/:4.3.11.final] 2016-01-29t23:59:36.989764+00:00 app[web.1]:    @ org.hibernate.service.internal.abstractserviceregistryimpl.getservice(abstractserviceregistryimpl.java:206) ~[hibernate-core-4.3.11.final.jar!/:4.3.11.final] 2016-01-29t23:59:36.989765+00:00 app[web.1]:    @ org.hibernate.cfg.configuration.buildtyperegistrations(configuration.java:1887) ~[hibernate-core-4.3.11.final.jar!/:4.3.11.final] 2016-01-29t23:59:36.989766+00:00 app[web.1]:    @ org.hibernate.cfg.configuration.buildsessionfactory(configuration.java:1845) ~[hibernate-core-4.3.11.final.jar!/:4.3.11.final] 2016-01-29t23:59:36.989771+00:00 app[web.1]:    @ org.hibernate.jpa.boot.internal.entitymanagerfactorybuilderimpl$4.perform(entitymanagerfactorybuilderimpl.java:857) ~[hibernate-entitymanager-4.3.11.final.jar!/:4.3.11.final] 2016-01-29t23:59:36.989773+00:00 app[web.1]:    @ org.hibernate.jpa.boot.internal.entitymanagerfactorybuilderimpl.build(entitymanagerfactorybuilderimpl.java:849) ~[hibernate-entitymanager-4.3.11.final.jar!/:4.3.11.final] 2016-01-29t23:59:36.989772+00:00 app[web.1]:    @ org.hibernate.jpa.boot.internal.entitymanagerfactorybuilderimpl$4.perform(entitymanagerfactorybuilderimpl.java:850) ~[hibernate-entitymanager-4.3.11.final.jar!/:4.3.11.final] 2016-01-29t23:59:36.989773+00:00 app[web.1]:    @ org.hibernate.boot.registry.classloading.internal.classloaderserviceimpl.withtccl(classloaderserviceimpl.java:425) ~[hibernate-core-4.3.11.final.jar!/:4.3.11.final] 2016-01-29t23:59:36.989775+00:00 app[web.1]:    @ org.springframework.orm.jpa.abstractentitymanagerfactorybean.afterpropertiesset(abstractentitymanagerfactorybean.java:318) ~[spring-orm-4.2.4.release.jar!/:4.2.4.release] 2016-01-29t23:59:36.989774+00:00 app[web.1]:    @ org.springframework.orm.jpa.vendor.springhibernatejpapersistenceprovider.createcontainerentitymanagerfactory(springhibernatejpapersistenceprovider.java:60) ~[spring-orm-4.2.4.release.jar!/:4.2.4.release] 2016-01-29t23:59:36.989775+00:00 app[web.1]:    @ org.springframework.orm.jpa.localcontainerentitymanagerfactorybean.createnativeentitymanagerfactory(localcontainerentitymanagerfactorybean.java:343) ~[spring-orm-4.2.4.release.jar!/:4.2.4.release] 2016-01-29t23:59:36.989778+00:00 app[web.1]: 2016-01-29t23:59:36.989778+00:00 app[web.1]:    ... 22 common frames omitted 2016-01-29t23:59:36.989777+00:00 app[web.1]:    @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1574) ~[spring-beans-4.2.4.release.jar!/:4.2.4.release] 2016-01-29t23:59:36.989776+00:00 app[web.1]:    @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.invokeinitmethods(abstractautowirecapablebeanfactory.java:1637) ~[spring-beans-4.2.4.release.jar!/:4.2.4.release] 2016-01-29t23:59:36.999565+00:00 app[web.1]: 2016-01-29 23:59:36.999  warn 3 --- [           main] o.s.boot.springapplication               : error handling failed (error creating bean name 'delegatingapplicationlistener' defined in class path resource [org/springframework/security/config/annotation/web/configuration/websecurityconfiguration.class]: beanpostprocessor before instantiation of bean failed; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'metadatasourceadvisor': cannot resolve reference bean 'methodsecuritymetadatasource' while setting constructor argument; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'org.springframework.security.config.annotation.method.configuration.globalmethodsecurityconfiguration': injection of autowired dependencies failed; nested exception java.lang.runtimeexception: not postprocess org.springframework.security.access.expression.method.defaultmethodsecurityexpressionhandler@61a1574f of typeclass org.springframework.security.access.expression.method.defaultmethodsecurityexpressionhandler) 2016-01-29t23:59:38.029307+00:00 heroku[web.1]: process exited status 1 2016-01-29t23:59:38.042223+00:00 heroku[web.1]: state changed starting crashed 2016-01-29t23:59:40.076012+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path="/" host=naturaapp.herokuapp.com request_id=8e5f90d5-40eb-470e-a765-f13eaa718b4d fwd="190.139.13.247" dyno= connect= service= status=503 bytes= 2016-01-29t23:59:41.412282+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path="/favicon.ico" host=naturaapp.herokuapp.com request_id=47328aa0-860c-46ef-a345-4b17190a8329 fwd="190.139.13.247" dyno= connect= service= status=503 bytes= 

and application.properties have information can't found on deploying

db.driver: org.postgresql.driver db.url: jdbc:postgresql://190.139.xx.xxx:5432/poo2015 db.username: pooxxxx db.password: pooxxxx  # hibernate     hibernate.dialect: org.hibernate.dialect.postgresqldialect hibernate.show_sql: true hibernate.hbm2ddl.auto: update entitymanager.packagestoscan: com.arg.juy.natura 

sorry if answer late.

that error because deploying exceed timeout connecting local database. solved ot using database heroku provides me free.


Comments