简体   繁体   English

错误 R10(启动超时)-> Web 进程未能在启动 java 的 90 秒内绑定到 $PORT

[英]Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 90 seconds of launch java

I upload the .jar file of my bot for discord to heroku.我将我的机器人的 .jar 文件上传到 heroku,以防不和谐。 Everything works as it should.一切正常。 And then the app breaks down and everything stops working.然后应用程序崩溃,一切都停止工作。

Application Logs应用程序日志

heroku[web.1]: Starting process with command `java $JAVA_OPTS -jar target/DiscordBot-1.0-SNAPSHOT-jar-with-dependencies.jar -Dserver.port=43997`
app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them.
app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8 
app[web.1]: [main] INFO net.dv8tion.jda.api.JDA - Login Successful!
app[web.1]: [JDA MainWS-ReadThread] INFO net.dv8tion.jda.internal.requests.WebSocketClient - Connected to WebSocket
app[web.1]: [JDA MainWS-ReadThread] INFO net.dv8tion.jda.api.JDA - Finished Loading!
heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 90 seconds of launch
heroku[web.1]: Stopping process with SIGKILL
heroku[web.1]: Process exited with status 137

Procfile档案

web: java $JAVA_OPTS -jar target/DiscordBot-1.0-SNAPSHOT-jar-with-dependencies.jar -Dserver.port=$PORT

application.properties应用程序属性

server.port=${PORT:8080}

worker: java -jar target/DiscordBot-1.0-SNAPSHOT-jar-with-dependencies.jar工人:java -jar 目标/DiscordBot-1.0-SNAPSHOT-jar-with-dependencies.jar

without server.port=${PORT:8080} in application.properties在 application.properties 中没有server.port=${PORT:8080}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误 R10(启动超时)> Web 进程未能在启动后 90 秒内绑定到 $PORT - Error R10 (Boot timeout) > Web process failed to bind to $PORT within 90 seconds of launch Java Maven项目-错误R10(引导超时)-> Web进程在启动后90秒内未能绑定到$ PORT - Java Maven project - Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 90 seconds of launch 错误 R10(启动超时)-> Web 进程未能在启动后 90 秒内绑定到 $PORT(Heroku 上的 Java Discord 机器人) - Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 90 seconds of launch (Java Discord bot on Heroku) 错误 R10(启动超时)-> Web 进程未能在启动后 60 秒内绑定到 $PORT - Heroku - Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch - Heroku Spring Docker 中的启动应用程序收到:错误 R10(启动超时)-> Web 进程在启动后 60 秒内无法绑定到 $PORT - Spring Boot app in Docker receives: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch Spring 托管在 Heroku 上的引导项目 - Web 进程未能在启动后 90 秒内绑定到 $PORT - Spring Boot project hosted on Heroku - Web process failed to bind to $PORT within 90 seconds of launch Heroku-Web 进程未能在启动后 90 秒内绑定到 $PORT。 TooTallNate Websockets - Heroku- Web process failed to bind to $PORT within 90 seconds of launch. TooTallNate Websockets 在Heroku上运行Dropwizard应用程序:R10无法绑定到$ PORT - Running Dropwizard app on Heroku: R10 failed to bind to $PORT 部署Java Web App Rest Spring Heroku Port消息错误R10 - Deploy Java Web App Rest Spring Heroku Port Message error R10 在Heroku上运行我的应用程序时,为什么会出现启动超时错误(错误R10)? - Why do I get a Boot timeout error (Error R10) when running my app on Heroku?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM