aws / aws-sdk-ruby

The official AWS SDK for Ruby.
https://aws.amazon.com/sdk-for-ruby/
Apache License 2.0
3.57k stars 1.23k forks source link

Could not find aws-partitions-1.177.0 in any of the sources (Bundler::GemNotFound) #2076

Closed ulisescarreonalvarez closed 5 years ago

ulisescarreonalvarez commented 5 years ago

Please fill out the sections below to help us address your issue

Issue description

[ E 2019-06-21 17:39:13.7622 32197/T58 age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /var/www/merci-admin: The application encountered the following error: Could not find aws-partitions-1.177.0 in any of the sources (Bundler::GemNotFound)

Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version

gem 'aws-sdk', '~> 3'

Version of Ruby, OS environment

Ruby 2.5.1 Rails 5.2.3 Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic

Code snippets / steps to reproduce

source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.5.1'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.3'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use Puma as the app server
gem 'puma', '~> 3.11'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'mini_racer', platforms: :ruby
gem 'devise'
gem 'rest-client'
gem 'pg'
gem 'aws-sdk', '~> 3'
gem 'command'
gem 'pdf-forms'
gem 'fileutils'
gem 'chilkat', '9.5.0.76'
gem 'bootstrap', '~> 4.2.1'
gem 'jquery-rails'
gem 'ejs'
gem 'bootstrap-sass', '~> 3.4.0'
gem 'sassc-rails', '>= 2.0.0'
gem 'rest-client'
gem 'active_model_otp'
gem 'rqrcode'
gem 'rotp'
gem 'simple_form'
gem 'wicked_pdf'
gem 'wkhtmltopdf-binary'
gem 'wkhtmltopdf-binary-edge'
gem 'prawn'
gem 'recaptcha', git: "https://github.com/ambethia/recaptcha.git"
gem 'bullet'
gem 'ruby-growl'
gem 'paper_trail'
gem 'paper_trail-association_tracking'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use ActiveStorage variant
# gem 'mini_magick', '~> 4.8'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.1.0', require: false

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end

group :development do
  # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
  gem 'web-console', '>= 3.3.0'
  gem 'listen', '>= 3.0.5', '< 3.2'
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
  gem 'spring-watcher-listen', '~> 2.0.0'
end

group :test do
  # Adds support for Capybara system testing and selenium driver
  gem 'capybara', '>= 2.15'
  gem 'selenium-webdriver'
  # Easy installation and use of chromedriver to run system tests with Chrome
  gem 'chromedriver-helper'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

bundle install || bundle update || bundle install --force

Bundle complete! 45 Gemfile dependencies, 318 gems now installed.

Restart application error: Could not spawn process for application /var/www/merci-admin: The application encountered the following error: Could not find aws-partitions-1.177.0 in any of the sources (Bundler::GemNotFound)

cjyclaire commented 5 years ago

Interesting, the version is there on rubygems though https://rubygems.org/gems/aws-partitions/versions/1.177.0

ulisescarreonalvarez commented 5 years ago

@cjyclaire yes is there, but why the app ask for the gem thats already installed?

cjyclaire commented 5 years ago

Fully understand that it feels frustrating with loading errors. Any chance for reproducing the error with SDK isolated? SDK doesn't have any control of how it's loaded in "app"

cjyclaire commented 5 years ago

Does the issue still persist? Do you have a small code script to reproduce the issue with SDK alone?

Tagging this as closing soon if no response

ngocbuildxuan commented 2 years ago

Maybe you missing gem 'bootsnap' in gem file.