【问题标题】:elasticbeanstalk fail to deploy web environment /var/pids/web.pid: no such file or directoryelasticbeanstalk 部署 web 环境失败 /var/pids/web.pid: no such file or directory
【发布时间】:2023-03-11 15:14:01
【问题描述】:

我想在 AWS Beanstalk 上部署一个 JAVA 应用程序(基于 PlayFramework 1.x)。 我正在使用基于 Corretto 8 的 Web 服务器环境,在 64 位 Amazon Linux 2/3.1.6 上运行。

我还在环境中添加了一个负载均衡器。 在部署期间,我的钩子运行良好(例如数据库模式演变),然后是启动 Web 服务器的时候了。

部署失败并出现以下错误:

[ERROR] update processes [web cfn-hup nginx healthd] pid symlinks failed with error Read pid source file /var/pids/web.pid failed with error:open /var/pids/web.pid: no such file or directory
[ERROR] An error occurred during execution of command [app-deploy] - [Track pids in healthd]. Stop running the command. Error: update processes [web cfn-hup nginx healthd] pid symlinks failed with error Read pid source file /var/pids/web.pid failed with error:open /var/pids/web.pid: no such file or directory 

我没有为 nginx 使用任何特定的配置。 我在默认端口 (5000) 上运行 JAVA 应用程序。

我在 AWS 论坛和 stackoverflow 上看到有些人在工作环境中遇到此问题,但我不使用此配置。

你遇到过这个问题吗?

【问题讨论】:

    标签: amazon-web-services amazon-elastic-beanstalk amazon-linux-2


    【解决方案1】:

    您的 web.service 无法启动。您的 jar 中可能缺少清单,或者清单文件中可能缺少主类。

    【讨论】:

      猜你喜欢
      • 2020-12-24
      • 1970-01-01
      • 2023-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-22
      • 1970-01-01
      相关资源
      最近更新 更多