gpt4 book ai didi

Java Heroku : Can't Find Formation

转载 作者:行者123 更新时间:2023-12-02 03:30:07 25 4
gpt4 key购买 nike

heroku 打开

**Application Error**
An error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details.

heroku ps:scale web=1

Scaling dynos... !
! Couldn't find that formation.

heroku ps

=== java (Free): -cp target/classes:"target/dependency/*" Main (1)
java.1: crashed 2016/07/06 10:54:23 -0400 (~ 10m ago)

简介

java -cp target/classes:"target/dependency/*" Main

日志

2016-07-06T14:52:50.963871+00:00 heroku[slug-compiler]: Slug compilation finished
2016-07-06T14:52:50.963854+00:00 heroku[slug-compiler]: Slug compilation started
2016-07-06T14:52:50.683308+00:00 heroku[api]: Deploy 35c084d by x
2016-07-06T14:52:50.683375+00:00 heroku[api]: Release v10 created by x
2016-07-06T14:54:14.470081+00:00 heroku[java.1]: Starting process with command `-cp target/classes:"target/dependency/*" Main`
2016-07-06T14:54:15.170320+00:00 heroku[java.1]: State changed from starting to up
2016-07-06T14:54:16.654892+00:00 app[java.1]: --debug
2016-07-06T14:54:16.654887+00:00 app[java.1]: bash [GNU long option] [option] script-file ...
2016-07-06T14:54:16.654886+00:00 app[java.1]: Usage: bash [GNU long option] [option] ...
2016-07-06T14:54:16.654891+00:00 app[java.1]: GNU long options:
2016-07-06T14:54:16.654843+00:00 app[java.1]: bash: - : invalid option
2016-07-06T14:54:16.654896+00:00 app[java.1]: --noediting
2016-07-06T14:54:16.654896+00:00 app[java.1]: --login
2016-07-06T14:54:16.654895+00:00 app[java.1]: --help
2016-07-06T14:54:16.654894+00:00 app[java.1]: --dump-po-strings
2016-07-06T14:54:16.654895+00:00 app[java.1]: --init-file
2016-07-06T14:54:16.654897+00:00 app[java.1]: --noprofile
2016-07-06T14:54:16.654898+00:00 app[java.1]: --rcfile
2016-07-06T14:54:16.654894+00:00 app[java.1]: --dump-strings
2016-07-06T14:54:16.654893+00:00 app[java.1]: --debugger
2016-07-06T14:54:16.654898+00:00 app[java.1]: --posix
2016-07-06T14:54:16.654901+00:00 app[java.1]: -ilrsD or -c command or -O shopt_option (invocation only)
2016-07-06T14:54:16.654897+00:00 app[java.1]: --norc
2016-07-06T14:54:16.654899+00:00 app[java.1]: --verbose
2016-07-06T14:54:16.654899+00:00 app[java.1]: --restricted
2016-07-06T14:54:16.654900+00:00 app[java.1]: Shell options:
2016-07-06T14:54:16.657140+00:00 app[java.1]: -abefhkmnptuvxBCHP or -o option
2016-07-06T14:54:16.654900+00:00 app[java.1]: --version
2016-07-06T14:54:17.528290+00:00 heroku[java.1]: Process exited with status 2
2016-07-06T14:54:17.542231+00:00 heroku[java.1]: State changed from up to crashed
2016-07-06T14:54:17.543267+00:00 heroku[java.1]: State changed from crashed to starting
2016-07-06T14:54:11.196338+00:00 heroku[api]: Scale to java=1 by x
2016-07-06T14:54:20.300261+00:00 heroku[java.1]: Starting process with command `-cp target/classes:"target/dependency/*" Main`
2016-07-06T14:54:20.865468+00:00 heroku[java.1]: State changed from starting to up
2016-07-06T14:54:22.202618+00:00 app[java.1]: Usage: bash [GNU long option] [option] ...
2016-07-06T14:54:22.202718+00:00 app[java.1]: --debug
2016-07-06T14:54:22.202569+00:00 app[java.1]: bash: - : invalid option
2016-07-06T14:54:22.202696+00:00 app[java.1]: GNU long options:
2016-07-06T14:54:22.202756+00:00 app[java.1]: --dump-strings
2016-07-06T14:54:22.202745+00:00 app[java.1]: --dump-po-strings
2016-07-06T14:54:22.202801+00:00 app[java.1]: --noediting
2016-07-06T14:54:22.202817+00:00 app[java.1]: --noprofile
2016-07-06T14:54:22.202673+00:00 app[java.1]: bash [GNU long option] [option] script-file ...
2016-07-06T14:54:22.202851+00:00 app[java.1]: --posix
2016-07-06T14:54:22.202871+00:00 app[java.1]: --rcfile
2016-07-06T14:54:22.202882+00:00 app[java.1]: --restricted
2016-07-06T14:54:22.202929+00:00 app[java.1]: -ilrsD or -c command or -O shopt_option (invocation only)
2016-07-06T14:54:22.202904+00:00 app[java.1]: --version
2016-07-06T14:54:22.202894+00:00 app[java.1]: --verbose
2016-07-06T14:54:22.202767+00:00 app[java.1]: --help
2016-07-06T14:54:22.207694+00:00 app[java.1]: -abefhkmnptuvxBCHP or -o option
2016-07-06T14:54:22.202733+00:00 app[java.1]: --debugger
2016-07-06T14:54:22.202917+00:00 app[java.1]: Shell options:
2016-07-06T14:54:22.202779+00:00 app[java.1]: --init-file
2016-07-06T14:54:22.202790+00:00 app[java.1]: --login
2016-07-06T14:54:22.202830+00:00 app[java.1]: --norc
2016-07-06T14:54:23.144909+00:00 heroku[java.1]: State changed from up to crashed
2016-07-06T14:55:25.085848+00:00 heroku[run.1884]: Awaiting client
2016-07-06T14:55:25.116164+00:00 heroku[run.1884]: Starting process with command `bash`
2016-07-06T14:55:25.238162+00:00 heroku[run.1884]: State changed from starting to up
2016-07-06T14:55:21.592683+00:00 heroku[api]: Starting process with command `bash` by x
2016-07-06T14:55:30.714524+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=protected-springs-72126.herokuapp.com request_id=7b695be3-670d-48d0-9745-6f7da1f881ad fwd="134.174.21.28" dyno= connect= service= status=503 bytes=
2016-07-06T14:55:38.428997+00:00 heroku[run.1884]: Process exited with status 130
2016-07-06T14:55:38.441761+00:00 heroku[run.1884]: State changed from up to complete
2016-07-06T14:56:25.871582+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=protected-springs-72126.herokuapp.com request_id=efc7b256-34eb-4e8e-941b-b902859469cb fwd="134.174.21.28" dyno= connect= service= status=503 bytes=

我正在关注heroku java 教程入门( https://devcenter.heroku.com/articles/getting-started-with-java#introduction )。当我最初尝试缩放时,它工作正常,但当我进入“使用数据库”时,heroku open 显示一个网页,并显示上面所示的错误,并且 heroku ps:scale web=1 不再工作。我不知道我搞砸了什么导致了这个。

最佳答案

您的 Procfile 缺少 web: 指令。它应该看起来像这样:

web: java -cp target/classes:"target/dependency/*" Main

关于Java Heroku : Can't Find Formation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38227749/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com