我在Heroku上部署了一个Java应用程序。部署就像一个魅力,没有错误或警告,应用程序开始工作。然而,过了一段时间,我得到了以下错误:
错误R10 (启动超时) -> Web进程在启动后90秒内无法绑定到$PORT
当我在本地运行我的应用程序时,我不会收到任何错误。
FYI:这个应用程序定期检查postgresql数据库中的表是否有更改,如果是的话,更新同一数据库中的另一个表(据我所知,这与我的问题无关,但现在开始)。
这是日志:
2019-02-12T19:37:15.444651+00:00 heroku[web.1]: Starting process with comm
因此,我是在愚弄松懈的API,最后做了一个简单的松弛机器人,它发布在一个松弛的通道上,不管网站是否已经启动(如果提供了URL)。
每当我将它部署到heroku时,它会在前60秒内工作,然后在日志中抛出如下错误
2016-06-22T20:18:11.933928+00:00 heroku[web.1]: State changed from crashed to starting
2016-06-22T20:18:15.635404+00:00 heroku[web.1]: Starting process with command `python margo/margo.py 5000`
2
我的python应用程序作为本地docker容器运行良好,但当尝试在heroku上部署时,我收到以下错误: 错误R10 (启动超时) -> Web进程无法在启动后60秒内绑定到$PORT if __name__ == '__main__':
from os import environ
app.run(host='0.0.0.0', port=environ.get('PORT', 5000)) 我的dockerfile: FROM python:3
# set a directory for the app
WORKD
[34mℹ[39m [90m「wds」[39m: Project is running at http://localhost:47627/
2020-03-09T15:02:19.370628+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: webpack output is served from /
2020-03-09T15:02:19.370747+00:00 app[web.1]: [34mℹ[39m [90m「wds」[39m: Content not from webpack is served from /app
2020-03-09T1
问题
我的问题是,当试图在heroku上部署bot时,我得到了r10错误引导超时,但是它在本地运行时工作,而且我似乎找不到它的修复程序。
heroku原木
Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 90 seconds of launch
Stopping process with SIGKILL
Process exited with status 137
State changed from starting to crashed
我的代码
process.env.NTBA_FIX_3
我试图调试我的代码,eclipse没有在调试模式中声明,但是它在正常启动时运行良好。
下面是我在eclipse弹出的例外情况:
本地主机上的服务器TomcatV7.0Server无法在90秒内启动。如果服务器需要更多时间,请尝试在服务器编辑器中增加超时。
当我看着控制台时,一切看起来都很好,请看一看.
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/security/oauth/details.xml]
Mar 11, 2015 11:48:38 AM org.springframewo
考虑一个process A,它与PORT1上的某个HOST执行双向UDP通信。IP和PORT1都是可配置的。此外,process A绑定到PORT1,我无法控制这一点。
是否可以创建将process A的业务从localhost路由到HOST的UDP tunnel,即,这样而不是原始的
process A <-> HOST:PORT1我们有一个
process A <-> localhost:PORT2 <-> tunnel <-> HOST:PORT1类型的通信?
我面临的问题是,process A和tunnel都绑定到同一个localhost
我正在尝试在heroku上加载一个简单的ruby应用程序,它使用resque定期运行一个后台任务,它会检查一个电子邮件帐户。
我认为Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch可能来自我的while循环,该循环是永久的,因此比60秒更长?我是否应该使用某种不同的进程来启动smsnotify.rb?
任何帮助都将不胜感激!
我的heroku日志:
2013-04-06T20:49:15+00:00 heroku[slugc]: Slug compilat
在部署到Heroku时,我收到了两个项目的启动错误。两家公司在当地都工作得很好,这似乎给乘客带来了麻烦。我真的不明白这个问题从何而来,并检查了我的procfile、我的sidekiq conf和其他元素。如有任何意见,将不胜感激。
Nov 03 01:25:15 zugone-production app/web.1: [ 2015-11-03 09:25:14.9294 67/7fd6fe14d700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /app: An error oc