【发布时间】:2019-09-01 06:59:20
【问题描述】:
我正在尝试将 Rails 5.2 应用程序部署到 AWS Elastic Beanstalk,但出现此错误。
Creating application version archive "app-c6b5-190405_225348".
Uploading example-rails52/app-c6b5-190405_225348.zip to S3. This may take a while.
Upload Complete.
Environment details for: example-eb-rails52-env
Application name: example-rails52
Region: us-east-2
Deployed Version: app-c6b5-190405_225348
Environment ID: e-ehbkcfzrrt
Platform: arn:aws:elasticbeanstalk:us-east-2::platform/Puma with Ruby 2.5 running on 64bit Amazon Linux/2.9.2
Tier: WebServer-Standard-1.0
CNAME: UNKNOWN
Updated: 2019-04-05 16:53:59.311000+00:00
Printing Status:
INFO: createEnvironment is starting.
INFO: Using elasticbeanstalk-us-east-2-525254074082 as Amazon S3 storage bucket for environment data.
INFO: Created security group named: sg-073de6677d8e02d77
INFO: Created load balancer named: awseb-e-e-AWSEBLoa-985TNPDWPYRI
INFO: Created security group named: awseb-e-ehbkcfzrrt-stack-AWSEBSecurityGroup-1XWZBQC4TD76I
INFO: Created Auto Scaling launch configuration named: awseb-e-ehbkcfzrrt-stack-AWSEBAutoScalingLaunchConfiguration-SAZWMJ3L0UV7
INFO: Created Auto Scaling group named: awseb-e-ehbkcfzrrt-stack-AWSEBAutoScalingGroup-1E8GGM4K5S26
INFO: Waiting for EC2 instances to launch. This may take a few minutes.
INFO: Created Auto Scaling group policy named: arn:aws:autoscaling:us-east-2:525254074082:scalingPolicy:bb866da3-dac2-47f0-81a2-ebc1c582d68a:autoScalingGroupName/awseb-e-ehbkcfzrrt-stack-AWSEBAutoScalingGroup-1E8GGM4K5S26:policyName/awseb-e-ehbkcfzrrt-stack-AWSEBAutoScalingScaleUpPolicy-ON6YTENHUIOE
INFO: Created Auto Scaling group policy named: arn:aws:autoscaling:us-east-2:525254074082:scalingPolicy:f13cedac-d71f-4b89-a0fd-dd2db97bb43a:autoScalingGroupName/awseb-e-ehbkcfzrrt-stack-AWSEBAutoScalingGroup-1E8GGM4K5S26:policyName/awseb-e-ehbkcfzrrt-stack-AWSEBAutoScalingScaleDownPolicy-3MK7B2H0O52F
INFO: Created CloudWatch alarm named: awseb-e-ehbkcfzrrt-stack-AWSEBCloudwatchAlarmHigh-1R89A12TU33EK
INFO: Created CloudWatch alarm named: awseb-e-ehbkcfzrrt-stack-AWSEBCloudwatchAlarmLow-1KHMKXF2A73T1
ERROR: [Instance: i-050185633c1ecb322] Command failed on instance. Return code: 1 Output: (TRUNCATED)...:infind_spec_for_exe': 找不到带有可执行包 (Gem::GemNotFoundException) 的 gem bundler (>= 0.a)
来自 /opt/rubies/ruby-2.5.5/lib/ruby/site_ruby/2.5.0/rubygems.rb:308:in activate_bin_path'
from /opt/rubies/ruby-2.5.5/bin/bundle:23:in'。
挂钩 /opt/elasticbeanstalk/hooks/appdeploy/pre/10_bundle_install.sh 失败。有关更多详细信息,请使用控制台或 EB CLI 检查 /var/log/eb-activity.log。
INFO:在所有实例上完成命令执行。摘要:[成功:0,失败:1]。`
谁能给我解决方案?
【问题讨论】:
标签: amazon-elastic-beanstalk ruby-on-rails-5.2