简体   繁体   English

带有弹簧启动应用程序的aws弹性beanstalk

[英]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.

相关问题 在AWS Elastic Beanstalk上部署Spring Boot应用程序 - 获得502错误 - Deploying Spring Boot app on AWS Elastic Beanstalk — getting 502 error Spring 在 AWS Elastic Beanstalk 上启动并记录到文件 - Spring Boot on AWS Elastic Beanstalk and logging to a file 在AWS Elastic BeanStalk上运行的Spring Boot应用程序中配置AWS RDS - Configuring AWS RDS in a Spring Boot Application running on AWS Elastic BeanStalk 使用 AWS Elastic Beanstalk 在 AWS 上部署 Spring Boot 应用程序 - Deploying a Spring Boot Application on AWS Using AWS Elastic Beanstalk 使用 Amazon Linux 2 为使用 AWS Elastic Beanstalk 托管的 Java Spring Boot 应用程序添加 SSL 证书 - Add SSL certificate for Java Spring Boot App hosted using AWS Elastic Beanstalk using Amazon Linux 2 将Spring Boot应用程序部署到AWS Beanstalk - Deploying Spring Boot app to AWS beanstalk AWS CodePipeline 将 Spring Boot 应用程序部署到 Elastic BeansTalk - AWS CodePipeline deploy Spring Boot application to Elastic BeansTalk 带有SSL / HTTPS的Spring Boot项目无法在AWS Elastic Beanstalk上运行 - Spring Boot project with SSL / HTTPS not working on AWS Elastic Beanstalk aws 弹性 beantalk 上的 HTTP 到 HTTPS 不适用于 Spring Boot - HTTP to HTTPS on aws elastic beanstalk not working for Spring Boot Spring Boot Application无法在AWS Elastic Beanstalk中进行一次身份验证 - Spring Boot Application not authenticating once in AWS Elastic Beanstalk
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM