- Newest
- Most votes
- Most comments
Also would be likely helpful to see the logs, whoops!
----------------------------------------
/var/log/eb-engine.log
----------------------------------------
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/rubygems/ext/ext_conf_builder.rb:26:in
`build'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/rubygems/ext/builder.rb:164:in
`build_extension'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/rubygems/ext/builder.rb:198:in
`block in build_extensions'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/rubygems/ext/builder.rb:195:in
`each'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/rubygems/ext/builder.rb:195:in
`build_extensions'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/rubygems/installer.rb:851:in
`build_extensions'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/rubygems_gem_installer.rb:71:in
`build_extensions'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/rubygems_gem_installer.rb:28:in
`install'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/source/rubygems.rb:204:in
`install'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/installer/gem_installer.rb:54:in
`install'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/installer/parallel_installer.rb:186:in
`do_install'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/installer/parallel_installer.rb:171:in
`install_serially'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/installer/parallel_installer.rb:97:in
`call'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/installer/parallel_installer.rb:71:in
`call'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/installer.rb:259:in
`install_in_parallel'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/installer.rb:209:in
`install'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/installer.rb:89:in
`block in run'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/process_lock.rb:12:in
`block in lock'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/process_lock.rb:9:in
`open'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/process_lock.rb:9:in
`lock'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/installer.rb:71:in
`run'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/installer.rb:23:in
`install'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/cli/install.rb:62:in
`run'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/cli.rb:255:in `block
in install'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/settings.rb:131:in
`temporary'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/cli.rb:254:in
`install'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/vendor/thor/lib/thor/command.rb:27:in
`run'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in
`invoke_command'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/vendor/thor/lib/thor.rb:392:in
`dispatch'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/cli.rb:31:in
`dispatch'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/vendor/thor/lib/thor/base.rb:485:in
`start'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/cli.rb:25:in `start'
/opt/rubies/ruby-3.0.4/lib/ruby/gems/3.0.0/gems/bundler-2.3.15/exe/bundle:48:in
`block in <top (required)>'
/opt/rubies/ruby-3.0.4/lib/ruby/site_ruby/3.0.0/bundler/friendly_errors.rb:117:in
`with_friendly_errors'
/opt/rubies/ruby-3.0.4/lib/ruby/gems/3.0.0/gems/bundler-2.3.15/exe/bundle:36:in
`<top (required)>'
/opt/elasticbeanstalk/.rbenv/versions/3.0.4/bin/bundle:25:in `load'
/opt/elasticbeanstalk/.rbenv/versions/3.0.4/bin/bundle:25:in `<main>'
An error occurred while installing pg (1.4.1), and Bundler cannot continue.
In Gemfile:
pg
2022/07/06 16:54:07.332933 [INFO] Executing cleanup logic
2022/07/06 16:54:07.333069 [INFO] CommandService Response: {"status":"FAILURE","api_version":"1.0","results":[{"status":"FAILURE","msg":"Engine execution has encountered an error.","returncode":1,"events":[{"msg":"Instance deployment failed to install dependency gems that you defined in 'Gemfile'. For details, see 'eb-engine.log'. The deployment failed.","timestamp":1657126447332,"severity":"ERROR"},{"msg":"Instance deployment failed. For details, see 'eb-engine.log'.","timestamp":1657126447332,"severity":"ERROR"}]}]}
2022/07/06 16:54:07.333247 [INFO] Platform Engine finished execution on command: app-deploy
2022/07/06 16:54:53.559449 [INFO] Starting...
2022/07/06 16:54:53.559495 [INFO] Starting EBPlatform-PlatformEngine
2022/07/06 16:54:53.559514 [INFO] reading event message file
2022/07/06 16:54:53.559664 [INFO] Engine received EB command cfn-hup-exec
2022/07/06 16:54:53.678576 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:us-east-1:489110557771:stack/awseb-e-hi2wpdaddr-stack/1adae7c0-fd44-11ec-8165-0a0fb8a2f08b -r AWSEBAutoScalingGroup --region us-east-1
2022/07/06 16:54:54.008860 [INFO] Running command /bin/sh -c /opt/aws/bin/cfn-get-metadata -s arn:aws:cloudformation:us-east-1:489110557771:stack/awseb-e-hi2wpdaddr-stack/1adae7c0-fd44-11ec-8165-0a0fb8a2f08b -r AWSEBBeanstalkMetadata --region us-east-1
2022/07/06 16:54:54.298990 [INFO] checking whether command tail-log is applicable to this instance...
2022/07/06 16:54:54.299003 [INFO] this command is applicable to the instance, thus instance should execute command
2022/07/06 16:54:54.299008 [INFO] Engine command: (tail-log)
2022/07/06 16:54:54.299061 [INFO] Executing instruction: GetTailLogs
2022/07/06 16:54:54.299066 [INFO] Tail Logs...
2022/07/06 16:54:54.299307 [INFO] Running command /bin/sh -c tail -n 100 /var/log/web.stdout.log
2022/07/06 16:54:54.301041 [INFO] Running command /bin/sh -c tail -n 100 /var/log/eb-engine.log
Hi James,
I don't have a definitive answer, but I am currently getting the same error messages as you. I downloaded all of the logs (rather than the last 100 lines) and when I inspected my eb-engine.log, there was some additional information which has pointed me to my particular issue -
checking for PQconninfo() in libpq-fe.h... no
Your PostgreSQL is too old. Either install an older version of this gem or
upgrade your database to at least PostgreSQL-9.3.
*** extconf.rb failed ***
As you can see, I need to install a later version of PostgreSQL. So far, I've seen the following: https://stackoverflow.com/questions/61148791/postgresql-on-elastic-beanstalk-amazon-linux-2
Which has led me to: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-ec2.html
Hopefully that leads you in the right direction. If you're having the same issue, I can update my response to reflect the resolution of it.
All the best,
Dan.
Relevant content
- asked 7 years ago
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 2 years ago