对工人开始弹性魔豆SQSD错误 [英] Elastic Beanstalk SQSD Error on worker start

查看:175
本文介绍了对工人开始弹性魔豆SQSD错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经部署了一个nodejs工人。但是每当我试图启动它,它就会红,此错误showned: 错误实例:我-6eef007a模块:AWSEBAutoScalingGroup ConfigSet:空命令失败的实例。返回code:编译过程中出现错误:1输出。命令01-启动sqsd失败。

I've deployed a nodejs worker. However whenever I try to start it, it gets red and this error is showned: ERROR Instance: i-6eef007a Module: AWSEBAutoScalingGroup ConfigSet: null Command failed on instance. Return code: 1 Output: Error occurred during build: Command 01-start-sqsd failed .

我不知道,如果是相关的,有时我得到的屏幕上这个错误: IamInstanceProfile:环境不具有与它相关联的一个IAM实例轮廓。为了提高部署速度,请与相关联的环境中的IAM实例配置文件。

I don't know if it's related, sometimes I get this error on the screen: IamInstanceProfile: The environment does not have an IAM instance profile associated with it. To improve deployment speed please associate an IAM instance profile with the environment.

我已经获准SQS并设置密钥和密码。我不知道自己还能做些什么。

I've already given permission to SQS and set key and secret. I don't know what else to do.

登录连接。

非常感谢你。

推荐答案

您需要有相应权限的IAM角色创建一个弹性魔豆工人的环境。

You need to have an IAM role with the appropriate permissions to create an Elastic Beanstalk worker environment.

在IAM角色应该具有以下权限:

The IAM role should have the following permissions:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "QueueAccess",
      "Action": [
        "sqs:ChangeMessageVisibility",
        "sqs:DeleteMessage",
        "sqs:ReceiveMessage"
      ],
      "Effect": "Allow",
      "Resource": "*"
    },
    {
      "Sid": "MetricsAccess",
      "Action": [
        "cloudwatch:PutMetricData"
      ],
      "Effect": "Allow",
      "Resource": "*"
    }
  ]
}               

详细资料:<一href="http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.iam.roles.aeb.html#AWSHowTo.iam.policies.actions.worker" rel="nofollow">http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.iam.roles.aeb.html#AWSHowTo.iam.policies.actions.worker

有关调试,你可以ssh到实例,并期待在/var/log/aws-sqsd/default.log看日志。如果你想避免ssh'ing你也可以如从AWS控制台快照日志实例的这里

For debugging you can ssh to the instance and look at /var/log/aws-sqsd/default.log to see the logs. If you want to avoid ssh'ing to the instance you can also snapshot logs from the AWS Console as shown here.

您可以阅读更多有关辅助角色的环境中的这里

You can read more about worker role environments here.

这篇关于对工人开始弹性魔豆SQSD错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆