Please have a view on my below Gemfile, Gemfil.lock, Api URL and cloudwatch Logs and assist me what I am doing wrong here.
Gemfile:
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "
"https://github.com/
end
gem 'rails', '~> 5.2.4', '>= 5.2.4.2'
gem "pg", "~> 1.1.3"
gem 'puma', '= 3.12.0'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'therubyracer', platforms: :ruby
gem 'coffee-rails', '~> 4.2'
gem 'turbolinks', '~> 5'
gem 'jbuilder', '~> 2.5'
group :development, :test do
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'capybara', '~> 2.13'
gem 'selenium-webdriver'
end
group :development do
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
end
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem "jets-rails"
Endpoint URL:
https://lo4lne31h5.execute-api.us-east-1.amazonaws.com/dev
CloudWatch Logs:
In the logs I can only see that the Jets::RackController#process got timedout after 30 seconds. Please see the below logs
12:50:55
START RequestId: cfa03e9e-a691-47ab-8629-fa9526dda4d8 Version: $LATEST
12:50:55
=> unzip -qo /tmp/rack-1a8399c2.zip -d /tmp/rack
12:50:55
[DEPRECATED] `Bundler.with_clean_env` has been deprecated in favor of `Bundler.with_unbundled_env`. If you instead want the environment before bundler was originally loaded, use `Bundler.with_original_env` (called at /opt/ruby/gems/2.5.0/gems/jets-2.3.15/lib/jets/rack_server.rb:37)
12:50:57
=> cd /var/task/rack && bin/rackup --host 127.0.0.1
12:50:57
Puma starting in single mode...
12:50:57
* Version 3.12.0 (ruby 2.5.7-p206), codename: Llamas in Pajamas
12:50:57
* Min threads: 5, max threads: 5
12:50:57
* Environment: development
12:50:57
* Listening on tcp://127.0.0.1:9292
12:50:57
Use Ctrl-C to stop
12:50:57
Connected to localhost:9292 successfully
12:50:57
I, [2020-04-06T12:50:57.346070 #8] INFO -- : Prewarm request
12:50:57
END RequestId: cfa03e9e-a691-47ab-8629-fa9526dda4d8
12:50:57
REPORT RequestId: cfa03e9e-a691-47ab-8629-fa9526dda4d8 Duration: 3.56 ms Billed Duration: 100 ms Memory Size: 1536 MB Max Memory Used: 229 MB Init Duration: 4341.83 ms
12:51:13
START RequestId: 525153df-2fa6-4010-a3b9-d67f3e428675 Version: $LATEST
12:51:13
I, [2020-04-06T12:51:13.034106 #8] INFO -- : Started GET "/" for 72.255.51.206 at 2020-04-06 12:51:13 +0000
12:51:13
I, [2020-04-06T12:51:13.034167 #8] INFO -- : Processing Jets::RackController#process
12:51:13
I, [2020-04-06T12:51:13.035021 #8] INFO -- : Event: {"resource":"/","path":"/","httpMethod":"GET","headers":{"Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3","Accept-Encoding":"gzip, deflate, br","Accept-Language":"en-US,en;q=0.9","cache-control":"max-age=0","CloudFront-Forwarded-Proto":"https","CloudFront-Is-Deskt
12:51:13
I, [2020-04-06T12:51:13.035291 #8] INFO -- : Parameters: {}
12:51:43
END RequestId: 525153df-2fa6-4010-a3b9-d67f3e428675
12:51:43
REPORT RequestId: 525153df-2fa6-4010-a3b9-d67f3e428675 Duration: 30030.15 ms Billed Duration: 30000 ms Memory Size: 1536 MB Max Memory Used: 244 MB
12:51:43
2020-04-06T12:51:43.048Z 525153df-2fa6-4010-a3b9-d67f3e428675 Task timed out after 30.03 seconds
12:51:45
=> unzip -qo /tmp/rack-1a8399c2.zip -d /tmp/rack
12:51:45
[DEPRECATED] `Bundler.with_clean_env` has been deprecated in favor of `Bundler.with_unbundled_env`. If you instead want the environment before bundler was originally loaded, use `Bundler.with_original_env` (called at /opt/ruby/gems/2.5.0/gems/jets-2.3.15/lib/jets/rack_server.rb:37)
12:51:45
=> cd /var/task/rack && bin/rackup --host 127.0.0.1
12:51:46
Puma starting in single mode...
12:51:46
* Version 3.12.0 (ruby 2.5.7-p206), codename: Llamas in Pajamas
12:51:46
* Min threads: 5, max threads: 5
12:51:46
* Environment: development
12:51:46
* Listening on tcp://127.0.0.1:9292
12:51:46
Use Ctrl-C to stop
12:51:47
Connected to localhost:9292 successfully
12:58:37
START RequestId: 2b6b0e7d-9543-40e4-a04f-07836765fcdb Version: $LATEST
12:58:37
I, [2020-04-06T12:58:37.260763 #9] INFO -- : Prewarm request
12:58:37
END RequestId: 2b6b0e7d-9543-40e4-a04f-07836765fcdb
12:58:37
REPORT RequestId: 2b6b0e7d-9543-40e4-a04f-07836765fcdb Duration: 2.75 ms Billed Duration: 100 ms Memory Size: 1536 MB Max Memory Used: 187 MB