[英]aws elastic beanstalk with spring boot app
I deployed my spring boot app with this tutorial https://aws.amazon.com/pt/blogs/devops/deploying-a-spring-boot-application-on-aws-using-aws-elastic-beanstalk/ , set the server port door to 5000 with enviroment varible, and it's work fine. 我使用本教程https://aws.amazon.com/pt/blogs/devops/deploying-a-spring-boot-application-on-aws-using-aws-elastic-beanstalk/部署了我的spring boot应用程序,设置了服务器端口门可以适应环境变化的5000端口,并且工作正常。 But some time latter without any request when i try to post our get some resource i take a timeout error:
但是当我尝试发布我们的一些资源时,一段时间没有任何请求,我发生超时错误:
2017/08/26 02:19:24 [error] 12955#0: *15 connect() failed (111: Connection refused) while connecting to upstream, client: 172.31.2.223, server: , request: "GET /api/motoristas HTTP/1.1", upstream: " http://127.0.0.1:5000/api/motoristas ", host: "vaptuberjjaerp-env.e5y5w4fa2q.sa-east-1.elasticbeanstalk.com" 2017/08/26 02:19:24 [错误] 12955#0:* 15连接到上游时,connect()失败(111:连接被拒绝),客户端:172.31.2.223,服务器:,请求:“ GET / api / motoristas HTTP / 1.1”,上游:“ http://127.0.0.1:5000/api/motoristas ”,主机:“ vaptuberjjaerp-env.e5y5w4fa2q.sa-east-1.elasticbeanstalk.com”
and if i try to access api documentation link it works fine: http://vaptuberjjaerp-env.e5y5w4fa2q.sa-east-1.elasticbeanstalk.com/swagger-ui.html 如果我尝试访问api文档链接,它将正常工作: http : //vaptuberjjaerp-env.e5y5w4fa2q.sa-east-1.elasticbeanstalk.com/swagger-ui.html
What is happening ? 怎么了 ?
Not knowing for certain but this sounds like your documentation might just be static content that is generated at build time. 不确定,但是听起来您的文档可能只是在构建时生成的静态内容。 If this is the case then it would still be accessible if the Java process for your app died.
如果是这种情况,那么如果您的应用程序的Java进程死亡,仍然可以访问。 In this case the rest of your app would be unavailable.
在这种情况下,您的应用程序的其余部分将不可用。 I recommend checking that the app your process runs in is still active and running.
我建议检查您的进程运行的应用程序是否仍处于活动状态并正在运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.