将 Laravel 应用程序部署到 AWS Elastic bean 时出现问题

Furqan S.马哈茂德

我正在尝试将 Laravel 应用程序部署到 AWS Elastic beanstalk,我应该上传一个包含我的源代码的 zip 文件,但出现以下错误:

 /opt/elasticbeanstalk/deploy/appsource/source_bundle
    End-of-central-directory signature not found.  Either this file is not
    a zipfile, or it constitutes one disk of a multi-part archive.  In the
    latter case the central directory and zipfile comment will be found on
    the last disk(s) of this archive.

日志

[2019-08-24T13:43:37.154Z] INFO  [3147]  - [Application deployment siitag-laravel-source-1@1/StartupStage0/AppDeployPreHook] : Starting activity...
[2019-08-24T13:43:37.154Z] INFO  [3147]  - [Application deployment siitag-laravel-source-1@1/StartupStage0/AppDeployPreHook/01_unzip.sh] : Starting activity...
[2019-08-24T13:43:37.454Z] INFO  [3147]  - [Application deployment siitag-laravel-source-1@1/StartupStage0/AppDeployPreHook/01_unzip.sh] : Activity execution failed, because: ++ /opt/elasticbeanstalk/bin/get-config container -k app_user
  + EB_APP_USER=webapp
  ++ /opt/elasticbeanstalk/bin/get-config container -k app_staging_dir
  + EB_APP_STAGING_DIR=/var/app/ondeck
  ++ /opt/elasticbeanstalk/bin/get-config container -k source_bundle
  + EB_SOURCE_BUNDLE=/opt/elasticbeanstalk/deploy/appsource/source_bundle
  + rm -rf /var/app/ondeck
  + /usr/bin/unzip -d /var/app/ondeck /opt/elasticbeanstalk/deploy/appsource/source_bundle
  Archive:  /opt/elasticbeanstalk/deploy/appsource/source_bundle
    End-of-central-directory signature not found.  Either this file is not
    a zipfile, or it constitutes one disk of a multi-part archive.  In the
    latter case the central directory and zipfile comment will be found on
    the last disk(s) of this archive.
  unzip:  cannot find zipfile directory in one of /opt/elasticbeanstalk/deploy/appsource/source_bundle or
          /opt/elasticbeanstalk/deploy/appsource/source_bundle.zip, and cannot find /opt/elasticbeanstalk/deploy/appsource/source_bundle.ZIP, period. (ElasticBeanstalk::ExternalInvocationError)
caused by: ++ /opt/elasticbeanstalk/bin/get-config container -k app_user
  + EB_APP_USER=webapp
  ++ /opt/elasticbeanstalk/bin/get-config container -k app_staging_dir
  + EB_APP_STAGING_DIR=/var/app/ondeck
  ++ /opt/elasticbeanstalk/bin/get-config container -k source_bundle
  + EB_SOURCE_BUNDLE=/opt/elasticbeanstalk/deploy/appsource/source_bundle
  + rm -rf /var/app/ondeck
  + /usr/bin/unzip -d /var/app/ondeck /opt/elasticbeanstalk/deploy/appsource/source_bundle
  Archive:  /opt/elasticbeanstalk/deploy/appsource/source_bundle
    End-of-central-directory signature not found.  Either this file is not
    a zipfile, or it constitutes one disk of a multi-part archive.  In the
    latter case the central directory and zipfile comment will be found on
    the last disk(s) of this archive.
  unzip:  cannot find zipfile directory in one of /opt/elasticbeanstalk/deploy/appsource/source_bundle or
          /opt/elasticbeanstalk/deploy/appsource/source_bundle.zip, and cannot find /opt/elasticbeanstalk/deploy/appsource/source_bundle.ZIP, period. (Executor::NonZeroExitStatus)


[2019-08-24T13:43:37.454Z] INFO  [3147]  - [Application deployment siitag-laravel-source-1@1/StartupStage0/AppDeployPreHook/01_unzip.sh] : Activity failed.
[2019-08-24T13:43:37.454Z] INFO  [3147]  - [Application deployment siitag-laravel-source-1@1/StartupStage0/AppDeployPreHook] : Activity failed.

我不知道如何解决这个问题,任何想法或解决方案表示赞赏

Furqan S.马哈茂德

解决方案是将源代码压缩.zip.rar

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

在将django应用程序部署到AWS beantalk时无效的requirements.txt

来自分类Dev

将应用程序部署到Google App Engine时出现问题

来自分类Dev

运行`foreman start` /将Django应用程序部署到Heroku时出现问题

来自分类Dev

将Python应用程序部署到AWS

来自分类Dev

将应用程序部署到Windows Phone时出错

来自分类Dev

将Spring Boot应用程序部署到AWS Beanstalk

来自分类Dev

将Java应用程序部署到Weblogic时出错

来自分类Dev

如何为部署到AWS Elastic Beanstalk的ASP.NET应用程序设置应用程序池标识

来自分类Dev

SSH到AWS Elastic Beanstalk实例时找不到Web应用程序

来自分类Dev

如何从Jenkins将Python应用程序部署到Amazon Elastic Beanstalk?

来自分类Dev

如何使用nginx + docker将AngularJS应用程序部署到Elastic Beanstalk?

来自分类Dev

将goDaddy的域映射到AWS Elastic beantalk URL时出现问题

来自分类Dev

是否将Go 1.6 Web应用程序部署到AWS Elastic Beanstalk?

来自分类Dev

将Flask应用程序部署到Heroku时出错

来自分类Dev

将laravel应用程序部署到Azure

来自分类Dev

AWS CodePipeline将Spring Boot应用程序部署到Elastic BeansTalk

来自分类Dev

将Angular 5应用程序部署到Heroku时出现问题

来自分类Dev

将简单的Web应用程序部署到Elastic Beanstalk时没有名为“应用程序”的模块错误

来自分类Dev

将PHP应用程序部署到Elastic Beanstalk的问题

来自分类Dev

将AWS SDK部署到实时服务器时出现问题

来自分类Dev

使用Elastic Beanstalk部署Flask应用程序时出现问题

来自分类Dev

在CodePipeline中部署的Laravel Elastic Beanstalk应用程序出现500个服务器错误

来自分类Dev

在将django应用程序部署到AWS beantalk时无效的requirements.txt

来自分类Dev

将yeoman node.js应用程序部署到Elastic Beanstalk

来自分类Dev

如何为部署到AWS Elastic Beanstalk的ASP.NET应用程序设置应用程序池标识

来自分类Dev

如何将Spring Boot应用程序大战部署到AWS Elastic Beanstalk?

来自分类Dev

将应用程序部署到Windows Phone时出错

来自分类Dev

将 Angular 2 应用程序部署到 AWS Elastic Beanstalk

来自分类Dev

将 Flask 应用程序部署到 AWS beanstalk 时出现错误 [Errno 2]

Related 相关文章

  1. 1

    在将django应用程序部署到AWS beantalk时无效的requirements.txt

  2. 2

    将应用程序部署到Google App Engine时出现问题

  3. 3

    运行`foreman start` /将Django应用程序部署到Heroku时出现问题

  4. 4

    将Python应用程序部署到AWS

  5. 5

    将应用程序部署到Windows Phone时出错

  6. 6

    将Spring Boot应用程序部署到AWS Beanstalk

  7. 7

    将Java应用程序部署到Weblogic时出错

  8. 8

    如何为部署到AWS Elastic Beanstalk的ASP.NET应用程序设置应用程序池标识

  9. 9

    SSH到AWS Elastic Beanstalk实例时找不到Web应用程序

  10. 10

    如何从Jenkins将Python应用程序部署到Amazon Elastic Beanstalk?

  11. 11

    如何使用nginx + docker将AngularJS应用程序部署到Elastic Beanstalk?

  12. 12

    将goDaddy的域映射到AWS Elastic beantalk URL时出现问题

  13. 13

    是否将Go 1.6 Web应用程序部署到AWS Elastic Beanstalk?

  14. 14

    将Flask应用程序部署到Heroku时出错

  15. 15

    将laravel应用程序部署到Azure

  16. 16

    AWS CodePipeline将Spring Boot应用程序部署到Elastic BeansTalk

  17. 17

    将Angular 5应用程序部署到Heroku时出现问题

  18. 18

    将简单的Web应用程序部署到Elastic Beanstalk时没有名为“应用程序”的模块错误

  19. 19

    将PHP应用程序部署到Elastic Beanstalk的问题

  20. 20

    将AWS SDK部署到实时服务器时出现问题

  21. 21

    使用Elastic Beanstalk部署Flask应用程序时出现问题

  22. 22

    在CodePipeline中部署的Laravel Elastic Beanstalk应用程序出现500个服务器错误

  23. 23

    在将django应用程序部署到AWS beantalk时无效的requirements.txt

  24. 24

    将yeoman node.js应用程序部署到Elastic Beanstalk

  25. 25

    如何为部署到AWS Elastic Beanstalk的ASP.NET应用程序设置应用程序池标识

  26. 26

    如何将Spring Boot应用程序大战部署到AWS Elastic Beanstalk?

  27. 27

    将应用程序部署到Windows Phone时出错

  28. 28

    将 Angular 2 应用程序部署到 AWS Elastic Beanstalk

  29. 29

    将 Flask 应用程序部署到 AWS beanstalk 时出现错误 [Errno 2]

热门标签

归档