Demo_rails: Could not find libv8-3.16.14.19 in any of the sources (Bundler::GemNotFound)


#1

Hello -

I’m trying to get the demo_rails app to work. I’m hoping you can help me – I’m working for a food pantry delivering food to those in need, and I’m trying to move my scripts onto lambda so I won’t have to pay for a server.

https://yvdoo8ammk.execute-api.us-east-1.amazonaws.com/dev/
just gives me:
{“message”: “Endpoint request timed out”}

and CloudWatch has an error:
Could not find libv8-3.16.14.19 in any of the sources (Bundler::GemNotFound)

Bundler says:
Using libv8 3.16.14.19 (x86_64-darwin-17)

Is it the “x86_64-darwin-17” part that’s screwing it up?

I’m on a Mac with:
ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin17]
Rails 5.1.7

I would be really appreciative of any help you can give me

-Michael


Full log:
USMBP15MBREEN:demo-rails mbreen$ jets deploy
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java.
=> Rails app detected: Enabling Jets Afterburner to deploy to AWS Lambda.
Deploying to Lambda afterburner-dev environment…
The /tmp/jets/afterburner/cache folder exists. Incrementally re-building the jets using the cache. To clear the cache: rm -rf /tmp/jets/afterburner/cache
=> Compling assets in current project directory
=> cd /tmp/jets/turbo-wrapper-project && bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java.
Using rake 13.0.1
Using concurrent-ruby 1.1.6
Using i18n 1.8.3
Using minitest 5.14.1
Using thread_safe 0.3.6
Using tzinfo 1.2.7
Using activesupport 5.1.7
Using builder 3.2.4
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.9
Using rails-dom-testing 2.0.3
Using crass 1.0.6
Using loofah 2.6.0
Using rails-html-sanitizer 1.3.0
Using actionview 5.1.7
Using rack 2.2.3
Using rack-test 1.1.0
Using actionpack 5.1.7
Using nio4r 2.5.2
Using websocket-extensions 0.1.5
Using websocket-driver 0.6.5
Using actioncable 5.1.7
Using globalid 0.4.2
Using activejob 5.1.7
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailer 5.1.7
Using activemodel 5.1.7
Using arel 8.0.0
Using activerecord 5.1.7
Using public_suffix 4.0.5
Using addressable 2.7.0
Using bindex 0.8.1
Using bundler 2.1.4
Using byebug 11.1.3
Using xpath 3.2.0
Using capybara 2.18.0
Using childprocess 3.0.0
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using coffee-script 2.4.1
Using method_source 1.0.0
Using thor 1.0.1
Using railties 5.1.7
Using coffee-rails 4.2.2
Using ffi 1.13.1
Using jbuilder 2.10.0
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using rails 5.1.7
Using jets-rails 0.2.0
Using libv8 3.16.14.19 (x86_64-darwin-17)
Using rb-fsevent 0.10.4
Using rb-inotify 0.10.1
Using ruby_dep 1.5.0
Using listen 3.1.5
Using mysql2 0.5.3
Using puma 3.12.0
Using ref 2.0.0
Using rubyzip 2.3.0
Using sass-listen 4.0.0
Using sass 3.7.4
Using tilt 2.0.10
Using sass-rails 5.0.7
Using selenium-webdriver 3.142.7
Using therubyracer 0.12.3
Using turbolinks-source 5.2.0
Using turbolinks 5.2.1
Using uglifier 4.2.0
Using web-console 3.7.0
Bundle complete! 17 Gemfile dependencies, 71 gems now installed.
Use bundle info [gemname] to see where a bundled gem is installed.
=> cd /tmp/jets/turbo-wrapper-project/rack && bundle exec rake assets:clobber --trace
** Invoke assets:clobber (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Execute assets:clobber
I, [2020-06-27T22:20:21.658694 #26253] INFO – : Removed /private/tmp/jets/turbo-wrapper-project/rack/public/assets
=> cd /tmp/jets/turbo-wrapper-project/rack && bundle exec rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Invoke yarn:install (first_time)
** Execute yarn:install
yarn install v1.22.0
info No lockfile found.
[1/4] :mag: Resolving packages…
[2/4] :truck: Fetching packages…
[3/4] :link: Linking dependencies…
[4/4] :hammer: Building fresh packages…
success Saved lockfile.
:sparkles: Done in 0.04s.
** Execute assets:precompile
I, [2020-06-27T22:20:23.667656 #26256] INFO – : Writing /private/tmp/jets/turbo-wrapper-project/rack/public/assets/application-eaae6e935a232c711d293b3e22bd0f8a986b9be0b39f70a49e7b29977ad329f0.js
I, [2020-06-27T22:20:23.668014 #26256] INFO – : Writing /private/tmp/jets/turbo-wrapper-project/rack/public/assets/application-eaae6e935a232c711d293b3e22bd0f8a986b9be0b39f70a49e7b29977ad329f0.js.gz
I, [2020-06-27T22:20:23.689496 #26256] INFO – : Writing /private/tmp/jets/turbo-wrapper-project/rack/public/assets/application-55c91a5e880279b198c992a4ed3def320e79e0f673fc06dd3d76774cc3a062bf.css
I, [2020-06-27T22:20:23.689579 #26256] INFO – : Writing /private/tmp/jets/turbo-wrapper-project/rack/public/assets/application-55c91a5e880279b198c992a4ed3def320e79e0f673fc06dd3d76774cc3a062bf.css.gz
=> Copying current project directory to temporary build area: /tmp/jets/afterburner/stage/code
=> Reconfiguring webpacker development settings for AWS Lambda.
=> Bundling: running bundle install in cache area: /tmp/jets/afterburner/cache.
=> cd /tmp/jets/afterburner/cache && env bundle install --path /tmp/jets/afterburner/cache/vendor/gems --without development test
[DEPRECATED] The --path flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set path '/tmp/jets/afterburner/cache/vendor/gems', and stop using this flag
[DEPRECATED] The --without flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set without 'development test', and stop using this flag
Fetching gem metadata from https://rubygems.org/
Resolving dependencies…
Using rake 13.0.1
Using concurrent-ruby 1.1.6
Using i18n 1.8.3
Using minitest 5.14.1
Using thread_safe 0.3.6
Using tzinfo 1.2.7
Using zeitwerk 2.3.0
Using activesupport 6.0.3.2 (was 5.1.7)
Using builder 3.2.4
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.9
Using rails-dom-testing 2.0.3
Using crass 1.0.6
Using loofah 2.6.0
Using rails-html-sanitizer 1.3.0
Using actionview 6.0.3.2 (was 5.1.7)
Using rack 2.2.3
Using rack-test 1.1.0
Using actionpack 6.0.3.2 (was 5.1.7)
Using globalid 0.4.2
Using activejob 6.0.3.2 (was 5.1.7)
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailer 6.0.3.2 (was 5.1.7)
Using activemodel 6.0.3.2 (was 5.1.7)
Using activerecord 6.0.3.2 (was 5.1.7)
Using aws-eventstream 1.1.0
Using aws-partitions 1.336.0
Using aws-sigv4 1.2.1
Using jmespath 1.4.0
Using aws-sdk-core 3.102.1
Using aws_config 0.1.0
Using memoist 0.16.2
Using rainbow 3.0.0
Using thor 1.0.1
Using aws-mfa-secure 0.4.2
Using aws-sdk-apigateway 1.47.0
Using aws-sdk-cloudformation 1.40.0
Using aws-sdk-cloudwatchlogs 1.33.0
Using aws-sdk-dynamodb 1.50.0
Using aws-sdk-kinesis 1.25.0
Using aws-sdk-kms 1.35.0
Using aws-sdk-lambda 1.45.0
Using aws-sdk-s3 1.72.0
Using aws-sdk-sns 1.26.0
Using aws-sdk-sqs 1.29.0
Using aws-sdk-ssm 1.83.0
Using bundler 2.1.4
Using cfn_camelizer 0.4.9
Using cfnresponse 0.4.0
Using dotenv 2.7.5
Using gems 1.2.0
Using hashie 4.1.0
Using jets-gems 0.2.2
Using jets-html-sanitizer 1.0.4
Using rexml 3.2.4
Using kramdown 2.2.1
Using mimemagic 0.3.5
Using method_source 1.0.0
Using railties 6.0.3.2 (was 5.1.7)
Using recursive-open-struct 1.1.2
Using shotgun 0.9.2
Using text-table 1.2.4
Using jets 2.3.16
Bundle complete! 7 Gemfile dependencies, 65 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into /tmp/jets/afterburner/cache/vendor/gems
Bundle install success.
Mega Mode: Reconfiguring Rails app.
=> Bundling: running bundle install in cache area: /tmp/jets/afterburner/cache.
=> cd /tmp/jets/afterburner/cache && env bundle install --path /tmp/jets/afterburner/cache/vendor/gems --without development test
[DEPRECATED] The --path flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set path '/tmp/jets/afterburner/cache/vendor/gems', and stop using this flag
[DEPRECATED] The --without flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set without 'development test', and stop using this flag
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java.
Using rake 13.0.1
Using concurrent-ruby 1.1.6
Using i18n 1.8.3
Using minitest 5.14.1
Using thread_safe 0.3.6
Using tzinfo 1.2.7
Using activesupport 5.1.7
Using builder 3.2.4
Using erubi 1.9.0
Using mini_portile2 2.4.0
Using nokogiri 1.10.9
Using rails-dom-testing 2.0.3
Using crass 1.0.6
Using loofah 2.6.0
Using rails-html-sanitizer 1.3.0
Using actionview 5.1.7
Using rack 2.2.3
Using rack-test 1.1.0
Using actionpack 5.1.7
Using nio4r 2.5.2
Using websocket-extensions 0.1.5
Using websocket-driver 0.6.5
Using actioncable 5.1.7
Using globalid 0.4.2
Using activejob 5.1.7
Using mini_mime 1.0.2
Using mail 2.7.1
Using actionmailer 5.1.7
Using activemodel 5.1.7
Using arel 8.0.0
Using activerecord 5.1.7
Using bundler 2.1.4
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using coffee-script 2.4.1
Using method_source 1.0.0
Using thor 1.0.1
Using railties 5.1.7
Using coffee-rails 4.2.2
Using ffi 1.13.1
Using jbuilder 2.10.0
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using rails 5.1.7
Using jets-rails 0.2.0
Using libv8 3.16.14.19 (x86_64-darwin-17)
Using mysql2 0.5.3
Using puma 3.12.0
Using rb-fsevent 0.10.4
Using rb-inotify 0.10.1
Using ref 2.0.0
Using sass-listen 4.0.0
Using sass 3.7.4
Using tilt 2.0.10
Using sass-rails 5.0.7
Using therubyracer 0.12.3
Using turbolinks-source 5.2.0
Using turbolinks 5.2.1
Using uglifier 4.2.0
Bundle complete! 17 Gemfile dependencies, 59 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into /tmp/jets/afterburner/cache/vendor/gems
Bundle install success.
Tidying project: removing ignored files to reduce package size.
Tidying project: removing ignored files to reduce package size.
=> rsync -a --links /tmp/jets/afterburner/stage/code/vendor/gems/ruby/2.5.0/ /tmp/jets/afterburner/stage/opt/ruby/gems/2.5.0/
=> rsync -a --links /tmp/jets/afterburner/stage/rack/vendor/gems/ruby/2.5.0/ /tmp/jets/afterburner/stage/opt/ruby/gems/2.5.0/
=> Replacing compiled gems with AWS Lambda Linux compiled versions: /tmp/jets/afterburner/stage/opt
Checking projects gems for binary Lambda gems…
=> Generating shims in the handlers folder.
=> Creating zip file for /tmp/jets/afterburner/stage/opt
=> cd /tmp/jets/afterburner/stage/opt && zip --symlinks -rq opt.zip .
Zip file created at: /tmp/jets/afterburner/stage/zips/opt-3550cfdd.zip (59.1 MB)
Already exists: s3://afterburner-dev-s3bucket-1pejs434izqei/jets/code/rack-0bce163b.zip
=> Creating zip file for /tmp/jets/afterburner/stage/code
=> cd /tmp/jets/afterburner/stage/code && zip --symlinks -rq code.zip .
Zip file created at: /tmp/jets/afterburner/stage/zips/code-462eca75.zip (8.62 KB)
Building CloudFormation templates.
Generated CloudFormation templates at /tmp/jets/afterburner/templates
Uploading CloudFormation templates to S3.
Uploading code zip files to S3.
Uploading /tmp/jets/afterburner/stage/zips/code-462eca75.zip (8.62 KB) to S3
Uploaded to s3://afterburner-dev-s3bucket-1pejs434izqei/jets/code/code-462eca75.zip
Time to upload code to s3: 0s
Uploading /tmp/jets/afterburner/stage/zips/opt-3550cfdd.zip (59.1 MB) to S3
Uploaded to s3://afterburner-dev-s3bucket-1pejs434izqei/jets/code/opt-3550cfdd.zip
Time to upload code to s3: 29s
Checking for modified public assets and uploading to S3.
Time for public assets to s3: 0s
Deploying CloudFormation stack with jets app!
Waiting for stack to complete
10:21:29PM UPDATE_IN_PROGRESS AWS::CloudFormation::Stack afterburner-dev User Initiated
10:21:35PM UPDATE_IN_PROGRESS AWS::CloudFormation::Stack ApiGateway
10:21:35PM UPDATE_COMPLETE AWS::CloudFormation::Stack ApiGateway
10:21:37PM UPDATE_IN_PROGRESS AWS::Lambda::LayerVersion GemLayer Requested update requires the creation of a new physical resource; hence creating one.
10:21:37PM UPDATE_IN_PROGRESS AWS::CloudFormation::Stack ApiResources1
10:21:38PM UPDATE_COMPLETE AWS::CloudFormation::Stack ApiResources1
10:21:51PM UPDATE_IN_PROGRESS AWS::Lambda::LayerVersion GemLayer Resource creation Initiated
10:21:51PM UPDATE_COMPLETE AWS::Lambda::LayerVersion GemLayer
10:21:53PM UPDATE_IN_PROGRESS AWS::CloudFormation::Stack JetsRackController
10:21:54PM UPDATE_IN_PROGRESS AWS::CloudFormation::Stack JetsPreheatJob
10:22:16PM UPDATE_COMPLETE AWS::CloudFormation::Stack JetsRackController
10:22:16PM UPDATE_COMPLETE AWS::CloudFormation::Stack JetsPreheatJob
10:22:18PM CREATE_IN_PROGRESS AWS::CloudFormation::Stack ApiDeployment20200627222057
10:22:18PM CREATE_IN_PROGRESS AWS::CloudFormation::Stack ApiDeployment20200627222057 Resource creation Initiated
10:22:29PM CREATE_COMPLETE AWS::CloudFormation::Stack ApiDeployment20200627222057
10:22:31PM UPDATE_COMPLETE_CLEANUP_IN_PROGRESS AWS::CloudFormation::Stack afterburner-dev
10:22:33PM DELETE_IN_PROGRESS AWS::CloudFormation::Stack ApiDeployment20200627220611
10:22:43PM UPDATE_COMPLETE AWS::CloudFormation::Stack JetsPreheatJob
10:22:44PM DELETE_COMPLETE AWS::CloudFormation::Stack ApiDeployment20200627220611
10:22:55PM UPDATE_COMPLETE AWS::CloudFormation::Stack JetsRackController
10:22:56PM DELETE_IN_PROGRESS AWS::Lambda::LayerVersion GemLayer
10:22:57PM UPDATE_COMPLETE AWS::CloudFormation::Stack ApiResources1
10:22:58PM DELETE_COMPLETE AWS::Lambda::LayerVersion GemLayer
10:22:58PM UPDATE_COMPLETE AWS::CloudFormation::Stack ApiGateway
10:22:59PM UPDATE_COMPLETE AWS::CloudFormation::Stack afterburner-dev
Stack success status: UPDATE_COMPLETE
Time took for stack deployment: 1m 31s.
Prewarming application.
API Gateway Endpoint: https://yvdoo8ammk.execute-api.us-east-1.amazonaws.com/dev/