在任何来源中都找不到aws-eventstream-1.1.0

如何解决在任何来源中都找不到aws-eventstream-1.1.0

我有以下提到的四个错误消息:

  1. 在任何来源中都找不到aws-eventstream-1.1.0
  2. 无法通过Bundler安装gem
  3. 推送被拒绝,无法编译Ruby应用
  4. [远程拒绝]用户微博->主邮件(拒绝接收挂钩)

我认为第一是造成后者的原因。但是我在“源文件”中找不到有关如何获取gem aws-eventstream-1.1.0的任何适当信息。我只是遵循Michael Hartl的Ruby-on-Rails课程。 Michael Hartl认为这与AWS配置有关。 因此,如果有一种方法可以在部署之前检查配置是否良好,将非常方便。是否存在?

由于本课程将仅使用此AWS账户,因此我将共享配置数据:

cli:

➜  sample_app git:(following-users)$ heroku config:set \
        AWS_ACCESS_KEY_ID=AKIAXOOFOGFFI62ZSAJR \
        AWS_SECRET_ACCESS_KEY=WI2ez9rn16SgqmKFcV9CsUt9hqLkpf49iktsKpa+ \
        AWS_REGION=eu-central-1 \
        AWS_BUCKET=rails-tutorial-josufst-1

storage.yml

test:
  service: Disk
  root: <%= Rails.root.join("tmp/storage") %>

local:
  service: Disk
  root: <%= Rails.root.join("storage") %>

amazon:
  service: S3
  access_key_id:     <%= ENV['AWS_ACCESS_KEY_ID'] %>
  secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
  region:            <%= ENV['AWS_REGION'] %>
  bucket:            <%= ENV['AWS_BUCKET'] %>

下面,我发布了Gemfile和Gemfile.lock和.gitignore。

aws-eventstream-1.1.0似乎存在于Gemfile.lock中。

我试图做:

bundle install
bundle update
git add -A
git commit -m "whatever I tried"
git push heroku user-microposts:master

我也可以在本地运行该应用程序,并在本地运行所有测试。一切正常。 据我所知,我遵循了Ruby on Rails教程中的所有步骤。

现在我尝试使用git push -f heroku user-microposts:master(强制)来查看它是否与“挂钩”有关。虽然,作为一个新手,我不理解钩子的概念。

➜  sample_app git:(user-microposts) git push -f heroku user-microposts:master
Enumerating objects: 1525,done.
Counting objects: 100% (1525/1525),done.
Delta compression using up to 4 threads
Compressing objects: 100% (1307/1307),done.
Writing objects: 100% (1394/1394),4.90 MiB | 65.00 KiB/s,done.
Total 1394 (delta 310),reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Installing bundler 2.0.2
remote: -----> Removing BUNDLED WITH version in the Gemfile.lock
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.6.3
remote: -----> Installing dependencies using bundler 2.0.2
remote:        Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote:        Some gems seem to be missing from your vendor/cache directory.
remote:        Could not find aws-eventstream-1.1.0 in any of the sources
remote:        Bundler Output: Some gems seem to be missing from your vendor/cache directory.
remote:        Could not find aws-eventstream-1.1.0 in any of the sources
remote:
remote:  !
remote:  !     Failed to install gems via Bundler.
remote:  !
remote:  !     Push rejected,failed to compile Ruby app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !   Push rejected to rails-tutorial-josufst.
remote:
To https://git.heroku.com/rails-tutorial-josufst.git
 ! [remote rejected] user-microposts -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/rails-tutorial-josufst.git'

宝石文件

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

gem 'rails','6.0.3.2'
gem 'image_processing','1.9.3'
gem 'mini_magick','4.9.5'
gem 'active_storage_validations','0.8.9'
gem 'bcrypt','3.1.13'
gem 'faker','2.11.0'
gem 'will_paginate','3.3.0'
gem 'bootstrap-will_paginate','1.0.0'
gem 'bootstrap-sass','3.4.1'
gem 'puma','4.3.5'
gem 'sass-rails','6.0.0'
gem 'webpacker','4.2.2'
gem 'turbolinks','5.2.1'
gem 'jbuilder','2.10.0'
gem 'bootsnap','1.4.6',require: false

group :development,:test do
  gem 'sqlite3','1.4.2'
  gem 'byebug','11.1.3',platforms: [:mri,:mingw,:x64_mingw]
end

group :development do
  gem 'web-console','4.0.2'
  gem 'listen','3.2.1'
  gem 'spring','2.1.0'
  gem 'spring-watcher-listen','2.0.1'
end

group :test do
  gem 'capybara','3.32.2'
  gem 'selenium-webdriver','3.142.7'
  gem 'webdrivers','4.3.0'
  gem 'rails-controller-testing','1.0.4'
  gem 'minitest','5.11.3'
  gem 'minitest-reporters','1.3.8'
  gem 'guard','2.16.2'
  gem 'guard-minitest','2.4.6'
end

group :production do
  gem 'pg','1.2.3'
  gem 'aws-sdk-s3','1.46.0',require: false
end

# Windows does not include zoneinfo files,so bundle the tzinfo-data gem
# Uncomment the following line if you're running Rails
# on a native Windows system:
# gem 'tzinfo-data',platforms: [:mingw,:mswin,:x64_mingw,:jruby]

Gemfile.lock

GEM
  remote: https://rubygems.org/
  specs:
    actioncable (6.0.3.2)
      actionpack (= 6.0.3.2)
      nio4r (~> 2.0)
      websocket-driver (>= 0.6.1)
    actionmailbox (6.0.3.2)
      actionpack (= 6.0.3.2)
      activejob (= 6.0.3.2)
      activerecord (= 6.0.3.2)
      activestorage (= 6.0.3.2)
      activesupport (= 6.0.3.2)
      mail (>= 2.7.1)
    actionmailer (6.0.3.2)
      actionpack (= 6.0.3.2)
      actionview (= 6.0.3.2)
      activejob (= 6.0.3.2)
      mail (~> 2.5,>= 2.5.4)
      rails-dom-testing (~> 2.0)
    actionpack (6.0.3.2)
      actionview (= 6.0.3.2)
      activesupport (= 6.0.3.2)
      rack (~> 2.0,>= 2.0.8)
      rack-test (>= 0.6.3)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.0,>= 1.2.0)
    actiontext (6.0.3.2)
      actionpack (= 6.0.3.2)
      activerecord (= 6.0.3.2)
      activestorage (= 6.0.3.2)
      activesupport (= 6.0.3.2)
      nokogiri (>= 1.8.5)
    actionview (6.0.3.2)
      activesupport (= 6.0.3.2)
      builder (~> 3.1)
      erubi (~> 1.4)
      rails-dom-testing (~> 2.0)
      rails-html-sanitizer (~> 1.1,>= 1.2.0)
    active_storage_validations (0.8.9)
      rails (>= 5.2.0)
    activejob (6.0.3.2)
      activesupport (= 6.0.3.2)
      globalid (>= 0.3.6)
    activemodel (6.0.3.2)
      activesupport (= 6.0.3.2)
    activerecord (6.0.3.2)
      activemodel (= 6.0.3.2)
      activesupport (= 6.0.3.2)
    activestorage (6.0.3.2)
      actionpack (= 6.0.3.2)
      activejob (= 6.0.3.2)
      activerecord (= 6.0.3.2)
      marcel (~> 0.3.1)
    activesupport (6.0.3.2)
      concurrent-ruby (~> 1.0,>= 1.0.2)
      i18n (>= 0.7,< 2)
      minitest (~> 5.1)
      tzinfo (~> 1.1)
      zeitwerk (~> 2.2,>= 2.2.2)
    addressable (2.7.0)
      public_suffix (>= 2.0.2,< 5.0)
    ansi (1.5.0)
    autoprefixer-rails (9.8.6.3)
      execjs
    aws-eventstream (1.1.0)
    aws-partitions (1.364.0)
    aws-sdk-core (3.105.0)
      aws-eventstream (~> 1,>= 1.0.2)
      aws-partitions (~> 1,>= 1.239.0)
      aws-sigv4 (~> 1.1)
      jmespath (~> 1.0)
    aws-sdk-kms (1.37.0)
      aws-sdk-core (~> 3,>= 3.99.0)
      aws-sigv4 (~> 1.1)
    aws-sdk-s3 (1.46.0)
      aws-sdk-core (~> 3,>= 3.61.1)
      aws-sdk-kms (~> 1)
      aws-sigv4 (~> 1.1)
    aws-sigv4 (1.2.2)
      aws-eventstream (~> 1,>= 1.0.2)
    bcrypt (3.1.13)
    bindex (0.8.1)
    bootsnap (1.4.6)
      msgpack (~> 1.0)
    bootstrap-sass (3.4.1)
      autoprefixer-rails (>= 5.2.1)
      sassc (>= 2.0.0)
    bootstrap-will_paginate (1.0.0)
      will_paginate
    builder (3.2.4)
    byebug (11.1.3)
    capybara (3.32.2)
      addressable
      mini_mime (>= 0.1.3)
      nokogiri (~> 1.8)
      rack (>= 1.6.0)
      rack-test (>= 0.6.3)
      regexp_parser (~> 1.5)
      xpath (~> 3.2)
    childprocess (3.0.0)
    coderay (1.1.3)
    concurrent-ruby (1.1.7)
    crass (1.0.6)
    erubi (1.9.0)
    execjs (2.7.0)
    faker (2.11.0)
      i18n (>= 1.6,< 2)
    ffi (1.13.1)
    formatador (0.2.5)
    globalid (0.4.2)
      activesupport (>= 4.2.0)
    guard (2.16.2)
      formatador (>= 0.2.4)
      listen (>= 2.7,< 4.0)
      lumberjack (>= 1.0.12,< 2.0)
      nenv (~> 0.1)
      notiffany (~> 0.0)
      pry (>= 0.9.12)
      shellany (~> 0.0)
      thor (>= 0.18.1)
    guard-compat (1.2.1)
    guard-minitest (2.4.6)
      guard-compat (~> 1.2)
      minitest (>= 3.0)
    i18n (1.8.5)
      concurrent-ruby (~> 1.0)
    image_processing (1.9.3)
      mini_magick (>= 4.9.5,< 5)
      ruby-vips (>= 2.0.13,< 3)
    jbuilder (2.10.0)
      activesupport (>= 5.0.0)
    jmespath (1.4.0)
    listen (3.2.1)
      rb-fsevent (~> 0.10,>= 0.10.3)
      rb-inotify (~> 0.9,>= 0.9.10)
    loofah (2.7.0)
      crass (~> 1.0.2)
      nokogiri (>= 1.5.9)
    lumberjack (1.2.8)
    mail (2.7.1)
      mini_mime (>= 0.1.1)
    marcel (0.3.3)
      mimemagic (~> 0.3.2)
    method_source (1.0.0)
    mimemagic (0.3.5)
    mini_magick (4.9.5)
    mini_mime (1.0.2)
    mini_portile2 (2.4.0)
    minitest (5.11.3)
    minitest-reporters (1.3.8)
      ansi
      builder
      minitest (>= 5.0)
      ruby-progressbar
    msgpack (1.3.3)
    nenv (0.3.0)
    nio4r (2.5.2)
    nokogiri (1.10.10)
      mini_portile2 (~> 2.4.0)
    notiffany (0.1.3)
      nenv (~> 0.1)
      shellany (~> 0.0)
    pg (1.2.3)
    pry (0.13.1)
      coderay (~> 1.1)
      method_source (~> 1.0)
    public_suffix (4.0.6)
    puma (4.3.5)
      nio4r (~> 2.0)
    rack (2.2.3)
    rack-proxy (0.6.5)
      rack
    rack-test (1.1.0)
      rack (>= 1.0,< 3)
    rails (6.0.3.2)
      actioncable (= 6.0.3.2)
      actionmailbox (= 6.0.3.2)
      actionmailer (= 6.0.3.2)
      actionpack (= 6.0.3.2)
      actiontext (= 6.0.3.2)
      actionview (= 6.0.3.2)
      activejob (= 6.0.3.2)
      activemodel (= 6.0.3.2)
      activerecord (= 6.0.3.2)
      activestorage (= 6.0.3.2)
      activesupport (= 6.0.3.2)
      bundler (>= 1.3.0)
      railties (= 6.0.3.2)
      sprockets-rails (>= 2.0.0)
    rails-controller-testing (1.0.4)
      actionpack (>= 5.0.1.x)
      actionview (>= 5.0.1.x)
      activesupport (>= 5.0.1.x)
    rails-dom-testing (2.0.3)
      activesupport (>= 4.2.0)
      nokogiri (>= 1.6)
    rails-html-sanitizer (1.3.0)
      loofah (~> 2.3)
    railties (6.0.3.2)
      actionpack (= 6.0.3.2)
      activesupport (= 6.0.3.2)
      method_source
      rake (>= 0.8.7)
      thor (>= 0.20.3,< 2.0)
    rake (13.0.1)
    rb-fsevent (0.10.4)
    rb-inotify (0.10.1)
      ffi (~> 1.0)
    regexp_parser (1.7.1)
    ruby-progressbar (1.10.1)
    ruby-vips (2.0.17)
      ffi (~> 1.9)
    rubyzip (2.3.0)
    sass-rails (6.0.0)
      sassc-rails (~> 2.1,>= 2.1.1)
    sassc (2.4.0)
      ffi (~> 1.9)
    sassc-rails (2.1.2)
      railties (>= 4.0.0)
      sassc (>= 2.0)
      sprockets (> 3.0)
      sprockets-rails
      tilt
    selenium-webdriver (3.142.7)
      childprocess (>= 0.5,< 4.0)
      rubyzip (>= 1.2.2)
    shellany (0.0.1)
    spring (2.1.0)
    spring-watcher-listen (2.0.1)
      listen (>= 2.7,< 4.0)
      spring (>= 1.2,< 3.0)
    sprockets (4.0.2)
      concurrent-ruby (~> 1.0)
      rack (> 1,< 3)
    sprockets-rails (3.2.1)
      actionpack (>= 4.0)
      activesupport (>= 4.0)
      sprockets (>= 3.0.0)
    sqlite3 (1.4.2)
    thor (1.0.1)
    thread_safe (0.3.6)
    tilt (2.0.10)
    turbolinks (5.2.1)
      turbolinks-source (~> 5.2)
    turbolinks-source (5.2.0)
    tzinfo (1.2.7)
      thread_safe (~> 0.1)
    web-console (4.0.2)
      actionview (>= 6.0.0)
      activemodel (>= 6.0.0)
      bindex (>= 0.4.0)
      railties (>= 6.0.0)
    webdrivers (4.3.0)
      nokogiri (~> 1.6)
      rubyzip (>= 1.3.0)
      selenium-webdriver (>= 3.0,< 4.0)
    webpacker (4.2.2)
      activesupport (>= 4.2)
      rack-proxy (>= 0.6.1)
      railties (>= 4.2)
    websocket-driver (0.7.3)
      websocket-extensions (>= 0.1.0)
    websocket-extensions (0.1.5)
    will_paginate (3.3.0)
    xpath (3.2.0)
      nokogiri (~> 1.8)
    zeitwerk (2.4.0)

PLATFORMS
  ruby

DEPENDENCIES
  active_storage_validations (= 0.8.9)
  aws-sdk-s3 (= 1.46.0)
  bcrypt (= 3.1.13)
  bootsnap (= 1.4.6)
  bootstrap-sass (= 3.4.1)
  bootstrap-will_paginate (= 1.0.0)
  byebug (= 11.1.3)
  capybara (= 3.32.2)
  faker (= 2.11.0)
  guard (= 2.16.2)
  guard-minitest (= 2.4.6)
  image_processing (= 1.9.3)
  jbuilder (= 2.10.0)
  listen (= 3.2.1)
  mini_magick (= 4.9.5)
  minitest (= 5.11.3)
  minitest-reporters (= 1.3.8)
  pg (= 1.2.3)
  puma (= 4.3.5)
  rails (= 6.0.3.2)
  rails-controller-testing (= 1.0.4)
  sass-rails (= 6.0.0)
  selenium-webdriver (= 3.142.7)
  spring (= 2.1.0)
  spring-watcher-listen (= 2.0.1)
  sqlite3 (= 1.4.2)
  turbolinks (= 5.2.1)
  web-console (= 4.0.2)
  webdrivers (= 4.3.0)
  webpacker (= 4.2.2)
  will_paginate (= 3.3.0)

BUNDLED WITH
   2.1.4

.gitignore

# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system,you probably want to add a global ignore instead:
#   git config --global core.excludesfile '~/.gitignore_global'

# Ignore bundler config.
/.bundle

# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal
/db/*.sqlite3-*

# Ignore all logfiles and tempfiles.
/log/*
/tmp/*
!/log/.keep
!/tmp/.keep

# Ignore pidfiles,but keep the directory.
/tmp/pids/*
!/tmp/pids/
!/tmp/pids/.keep

# Ignore uploaded files in development.
/storage/*
!/storage/.keep

/public/assets
.byebug_history

# Ignore master key for decrypting credentials and more.
/config/master.key

/public/packs
/public/packs-test
/node_modules
/yarn-error.log
yarn-debug.log*
.yarn-integrity

# Ignore vendor/bundle
/vendor/bundle

解决方法

正如您所说,这是导致您已阅读其他错误报告的第一个错误。因此,我们应该专注于此。具体来说,我们将专注于这一部分。

remote: -----> Installing dependencies using bundler 2.0.2
remote:        Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote:        Some gems seem to be missing from your vendor/cache directory.
remote:        Could not find aws-eventstream-1.1.0 in any of the sources
remote:        Bundler Output: Some gems seem to be missing from your vendor/cache directory.
remote:        Could not find aws-eventstream-1.1.0 in any of the sources

此代码段是Bundler在Heroku上运行并失败。

使用容器(这是Heroku在容器上运行应用程序的容器。容器是计算机中的虚拟计算机)时的良好调试习惯,以便首先使失败的事物在本地运行首先在您的本机上(无论您进行了什么开发)。这样做是一种很好的调试方法,因为它可以简化可能出现的问题,并且通常,如果您可以使其在本地计算机上本地运行,那么它将在容器中运行。

因此,我们正在运行测试。我们需要确保测试与容器中的测试相同。幸运的是,邦德勒是个宝贝,它告诉我们它正在运行什么命令:

remote:        Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment

因此,我们需要使该命令在您的计算机上本地运行。

现在该逐步了解此bundle install命令的每个组件,并花时间了解它的作用。或在大多数情况下,这是调试的不幸事实。通常需要耐心的缓慢的有条理的工作。

但是,我怀疑我知道这里的答案。注意上面命令中的--deployment标志选项。 puts Bundler in deployment mode,用于生产用途(默认用于开发用途)。要做的一件事是告诉Bundler不要从rubygems.org(默认)下载宝石,而是从本地目录vendor/cache/中获取宝石。

我怀疑您在git分支中有一个vendor/cache/目录,但是它不包含Bundle期望的所有gem。因此,这些来自邦德勒的抱怨。

remote:        Some gems seem to be missing from your vendor/cache directory.
remote:        Could not find aws-eventstream-1.1.0 in any of the sources
remote:        Bundler Output: Some gems seem to be missing from your vendor/cache directory.
remote:        Could not find aws-eventstream-1.1.0 in any of the sources

一个选择是删除--deployment标志,但是我猜这不是一个选择,因为Heroku控制使用什么命令,我们不能更改它。我对Heroku没有任何经验,但是,如果我的更好主意不起作用,我们可以返回并探讨此选项。

所以!我需要你的一些信息。您可以共享您的.gitignore文件吗?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 &lt;select id=&quot;xxx&quot;&gt; SELECT di.id, di.name, di.work_type, di.updated... &lt;where&gt; &lt;if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 &lt;property name=&quot;dynamic.classpath&quot; value=&quot;tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -&gt; systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping(&quot;/hires&quot;) public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate&lt;String
使用vite构建项目报错 C:\Users\ychen\work&gt;npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-