【问题标题】:elastic beanstalk 777 permissions on folder文件夹的弹性beantalk 777权限
【发布时间】:2015-05-11 09:29:56
【问题描述】:

无法获得 777 权限以在弹性 beanstalk 上进行部署我在 .config 文件的 .ebextensions 文件夹中有这个,但我总是收到错误 deployig:

container_commands:
  01storage_permissions:
    command: "chmod -fR 777 /var/app/current/uploads/"
  02storage_permissions:
    command: "chmod -fR 777 /var/app/current/app/storage/"

我也试过

container_commands:
  01storage_permissions:
    command: "chmod -fR 777 /var/app/ondeck/uploads/"
  02storage_permissions:
    command: "chmod -fR 777 /var/app/ondeck/app/storage/"

错误:

[Instance: i-ee305727 Module: AWSEBAutoScalingGroup ConfigSet: null] Command failed on instance. Return code: 1 Output: [CMD-AppDeploy/AppDeployStage0/EbExtensionPostBuild] command failed with error code 1: Error occurred during build: Command 01storage_permissions failed.

有什么想法吗?谢谢!

【问题讨论】:

  • 它应该可以工作。如果您不确定路径是什么,您可以尝试 ssh 进入您的实例并自己查看:ssh -t ec2-user@ec2-xxx-xxx-xxx-xxx.location.compute.amazonaws.com
  • 你确定这个路径在应用启动前就存在吗?

标签: amazon-web-services permissions amazon-elastic-beanstalk


【解决方案1】:

如果路径存在,也可以试试:

 01storage_permissions:
    command: "chmod -fR 777 /var/app/current/uploads/"
    owner: root
    group: root

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-08-21
    • 2014-12-11
    • 2021-12-16
    • 1970-01-01
    • 2020-04-09
    • 2018-12-17
    相关资源
    最近更新 更多