Herokuでコマンドでheroku openするとApplication errorが表示されるので解消したいです。

実現したいこと

Herokuでコマンドでheroku openするとApplication errorが表示されるので解消したいです。ご存知の方がいらっしゃいましたらご連絡お願いいたします。

前提

・ローカル環境(Java/Spring/postgresql/eclipse)でアプリケーション作成
・git でコミット、push
・Herokuにアプリケーション作成
・git でHerokuにpush
・HerokuのDB情報設定
・Heroku open → Application error

発生している問題・エラーメッセージ

Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command

heroku logs --tail

C:\spring_workspace\workspace\kintai>heroku logs --tail 2024-04-28T02:22:00.688898+00:00 heroku[web.1]: State changed from crashed to starting 2024-04-28T02:22:04.011513+00:00 heroku[web.1]: Starting process with command `java -Dserver.port=28545 $JAVA_OPTS -jar build/libs/*.jar` 2024-04-28T02:22:04.633746+00:00 app[web.1]: Create a Procfile to customize the command used to run this process: https://devcenter.heroku.com/articles/procfile 2024-04-28T02:22:04.656479+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them. 2024-04-28T02:22:04.660646+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8 2024-04-28T02:22:04.732290+00:00 app[web.1]: no main manifest attribute, in build/libs/kintai-0.0.1-SNAPSHOT-plain.jar 2024-04-28T02:22:04.804553+00:00 heroku[web.1]: Process exited with status 1 2024-04-28T02:22:04.824285+00:00 heroku[web.1]: State changed from starting to crashed 2024-04-28T03:05:03.650759+00:00 heroku[web.1]: State changed from crashed to starting 2024-04-28T03:05:07.077133+00:00 heroku[web.1]: Starting process with command `java -Dserver.port=4036 $JAVA_OPTS -jar build/libs/*.jar` 2024-04-28T03:05:07.742704+00:00 app[web.1]: Create a Procfile to customize the command used to run this process: https://devcenter.heroku.com/articles/procfile 2024-04-28T03:05:07.765757+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them. 2024-04-28T03:05:07.770372+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8 2024-04-28T03:05:07.831584+00:00 app[web.1]: no main manifest attribute, in build/libs/kintai-0.0.1-SNAPSHOT-plain.jar 2024-04-28T03:05:07.884642+00:00 heroku[web.1]: Process exited with status 1 2024-04-28T03:05:07.907350+00:00 heroku[web.1]: State changed from starting to crashed 2024-04-28T03:06:54.629199+00:00 app[api]: Remove DB_PORT config vars by user hfuob@yahoo.co.jp 2024-04-28T03:06:54.629199+00:00 app[api]: Release v20 created by user hfuob@yahoo.co.jp 2024-04-28T03:06:54.865727+00:00 heroku[web.1]: State changed from crashed to starting 2024-04-28T03:06:58.512363+00:00 heroku[web.1]: Starting process with command `java -Dserver.port=50479 $JAVA_OPTS -jar build/libs/*.jar` 2024-04-28T03:06:59.313920+00:00 app[web.1]: Create a Procfile to customize the command used to run this process: https://devcenter.heroku.com/articles/procfile 2024-04-28T03:06:59.337186+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them. 2024-04-28T03:06:59.342246+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8 2024-04-28T03:06:59.421952+00:00 app[web.1]: no main manifest attribute, in build/libs/kintai-0.0.1-SNAPSHOT-plain.jar 2024-04-28T03:06:59.509895+00:00 heroku[web.1]: Process exited with status 1 2024-04-28T03:06:59.537277+00:00 heroku[web.1]: State changed from starting to crashed 2024-04-28T03:11:27.899357+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=kinmu-131de2f071d9.herokuapp.com request_id=6273baa3-e3fc-40ae-83b3-858f06cd97ee fwd="119.231.207.242" dyno= connect= service= status=503 bytes= protocol=https 2024-04-28T03:11:28.521160+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=kinmu-131de2f071d9.herokuapp.com request_id=281839aa-9272-43a2-b25d-2c7fcbd3bf8e fwd="119.231.207.242" dyno= connect= service= status=503 bytes= protocol=https 2024-04-28T03:15:08.842831+00:00 heroku[web.1]: State changed from crashed to starting 2024-04-28T03:15:12.204653+00:00 heroku[web.1]: Starting process with command `java -Dserver.port=31618 $JAVA_OPTS -jar build/libs/*.jar` 2024-04-28T03:15:12.902071+00:00 app[web.1]: Create a Procfile to customize the command used to run this process: https://devcenter.heroku.com/articles/procfile 2024-04-28T03:15:12.924980+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them. 2024-04-28T03:15:12.929704+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8 2024-04-28T03:15:12.994101+00:00 app[web.1]: no main manifest attribute, in build/libs/kintai-0.0.1-SNAPSHOT-plain.jar 2024-04-28T03:15:13.081685+00:00 heroku[web.1]: Process exited with status 1 2024-04-28T03:15:13.105501+00:00 heroku[web.1]: State changed from starting to crashed 2024-04-28T03:27:09.844509+00:00 app[api]: Set DB_PORT config vars by user hfuob@yahoo.co.jp 2024-04-28T03:27:09.844509+00:00 app[api]: Release v21 created by user hfuob@yahoo.co.jp 2024-04-28T03:27:10.107101+00:00 heroku[web.1]: State changed from crashed to starting 2024-04-28T03:27:13.655576+00:00 heroku[web.1]: Starting process with command `java -Dserver.port=11066 $JAVA_OPTS -jar build/libs/*.jar` 2024-04-28T03:27:14.303797+00:00 app

試したこと

下記のURLを参考にしました。

HerokuでとりあえずJava(Spring Boot)アプリを動かすまでのメモ
https://qiita.com/epsilonGtmyon/items/0d6ce36f0fe38beae776

[2020年12月版]herokuデプロイ時のDB設定まとめ
https://qiita.com/hiro5963/items/4e94ff02ad0faa63e4ef

​Procfile を定義する
https://devcenter.heroku.com/ja/articles/getting-started-with-java?singlepage=true

補足情報(FW/ツールのバージョンなど)

ここにより詳細な情報を記載してください。

コメントを投稿

0 コメント