Answer the question
In order to leave comments, you need to log in
Error R10 sleeps after 90 seconds, how to fix?
I start the bot, everything works fine, but falls asleep after 90 seconds, I can’t understand why
Here are the logs when running on heroku
2022-01-20T16:29:51.877633+00:00 heroku[web.1]: Starting process with command `java -Dserver.port=50045 $JAVA_OPTS -jar target/BotForDanya-0.0.1-SNAPSHOT.jar`
2022-01-20T16:29:54.307813+00:00 app[web.1]:
2022-01-20T16:29:54.307846+00:00 app[web.1]: . ____ _ __ _ _
2022-01-20T16:29:54.307847+00:00 app[web.1]: /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
2022-01-20T16:29:54.307869+00:00 app[web.1]: ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2022-01-20T16:29:54.307900+00:00 app[web.1]: \\/ ___)| |_)| | | | | || (_| | ) ) ) )
2022-01-20T16:29:54.307927+00:00 app[web.1]: ' |____| .__|_| |_|_| |_\__, | / / / /
2022-01-20T16:29:54.307953+00:00 app[web.1]: =========|_|==============|___/=/_/_/_/
2022-01-20T16:29:54.311473+00:00 app[web.1]: :: Spring Boot :: (v2.6.2)
2022-01-20T16:29:54.311595+00:00 app[web.1]:
2022-01-20T16:29:54.435686+00:00 app[web.1]: 2022-01-20 16:29:54.426 INFO 4 --- [ main] r.b.botfordanya.BotForDanyaApplication : Starting BotForDanyaApplication v0.0.1-SNAPSHOT using Java 17.0.1 on 78621d94-d739-41bb-a644-5f72c94f8102 with PID 4 (/app/target/BotForDanya-0.0.1-SNAPSHOT.jar started by u34763 in /app)
2022-01-20T16:29:54.436445+00:00 app[web.1]: 2022-01-20 16:29:54.436 INFO 4 --- [ main] r.b.botfordanya.BotForDanyaApplication : No active profile set, falling back to default profiles: default
2022-01-20T16:29:56.871168+00:00 app[web.1]: 2022-01-20 16:29:56.870 INFO 4 --- [ main] r.b.botfordanya.BotForDanyaApplication : Started BotForDanyaApplication in 3.25 seconds (JVM running for 4.052)
2022-01-20T16:31:23.018398+00:00 heroku[web.1]: Process exited with status 137
2022-01-20T16:31:21.973371+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 90 seconds of launch
2022-01-20T16:31:22.812182+00:00 heroku[web.1]: Stopping process with SIGKILL
2022-01-20T16:31:23.146627+00:00 heroku[web.1]: State changed from starting to crashed
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question