International-Data-Spaces-Association / omejdn-daps

Open Source implementation of the Dynamic Attribute Provisioning Service based on http://github.com/Fraunhofer-AISEC/omejdn-server
Apache License 2.0
5 stars 10 forks source link

Problems installing the bundle install #5

Closed aetxeberriasqs closed 2 years ago

aetxeberriasqs commented 2 years ago

There is a problem when executing the bundle install. When following the steps to instal the bundle, the following error ocurred and the next message pooped up in the console. The first part appear cross out and dont know why.

sqs@Virtual-Ubuntu-20:~/ALEX_DAPS_2/omejdn-daps/omejdn-server$ sudo apt-get install ruby [sudo] contraseña para sqs: Leyendo lista de paquetes... Hecho Creando árbol de dependencias
Leyendo la información de estado... Hecho ruby ya está en su versión más reciente (1:2.7+1). Los paquetes indicados a continuación se instalaron de forma automática y ya no son necesarios. libfprint-2-tod1 libllvm10 Utilice «sudo apt autoremove» para eliminarlos. 0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 242 no actualizados. sqs@Virtual-Ubuntu-20:~/ALEX_DAPS_2/omejdn-daps/omejdn-server$ bundle install Fetching source index from https://rubygems.org/ Using abstraction 0.0.4 Following files may not be writable, so sudo is needed: /usr/local/bin /var/lib/gems/2.7.0 /var/lib/gems/2.7.0/build_info /var/lib/gems/2.7.0/cache /var/lib/gems/2.7.0/doc /var/lib/gems/2.7.0/extensions /var/lib/gems/2.7.0/gems /var/lib/gems/2.7.0/specifications Using concurrent-ruby 1.1.9 Using minitest 5.14.4 Using zeitwerk 2.4.2 Using aes_key_wrap 1.1.0 Fetching bcrypt 3.1.16 Using bindata 2.4.10 Using bundler 2.2.19 Using daemons 1.4.0 Using diff-lcs 1.4.4 Fetching eventmachine 1.2.7

Your user account isn't allowed to install to the system RubyGems. You can cancel this installation and run:

  bundle config set --local path 'vendor/bundle'
  bundle install

to install the gems into ./vendor/bundle/, or you can enter your password and install the bundled gems to RubyGems using sudo.

Password: Installing bcrypt 3.1.16 with native extensions Installing eventmachine 1.2.7 with native extensions Using temple 0.8.2 Using tilt 2.0.10 Fetching json 2.5.1 Using jwt 2.2.3 Using multi_json 1.15.0 Using ruby2_keywords 0.0.4 Using net-ldap 0.17.0 Fetching openssl 2.2.0

Retrying download gem from https://rubygems.org/ due to error (2/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/json-2.5.1.gem)

Retrying download gem from https://rubygems.org/ due to error (2/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/openssl-2.2.0.gem)

Retrying download gem from https://rubygems.org/ due to error (3/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/json-2.5.1.gem)

Retrying download gem from https://rubygems.org/ due to error (3/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/openssl-2.2.0.gem)

Retrying download gem from https://rubygems.org/ due to error (4/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/json-2.5.1.gem)

Retrying download gem from https://rubygems.org/ due to error (4/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/openssl-2.2.0.gem)

Using power_assert 2.0.0 Using rack 2.2.3 Using require_all 3.0.0 Using rspec-support 3.10.2 Using scanf 1.0.0 Using sinatra-cors 1.2.0 Fetching sqlite3 1.4.2

Using webrick 1.7.0 Using i18n 1.8.10 Using tzinfo 2.0.4 Using haml 5.2.1 Using mustermann 1.1.1

Retrying download gem from https://rubygems.org/ due to error (2/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/sqlite3-1.4.2.gem)

Retrying download gem from https://rubygems.org/ due to error (3/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/sqlite3-1.4.2.gem)

Retrying download gem from https://rubygems.org/ due to error (4/4): Gem::RemoteFetcher::UnknownHostError no such name (https://rubygems.org/gems/sqlite3-1.4.2.gem)

--- ERROR REPORT TEMPLATE -------------------------------------------------------

Error Report

Questions

Please fill out answers to these questions, it'll help us figure out why things are going wrong.

Backtrace

Gem::RemoteFetcher::UnknownHostError: no such name (https://rubygems.org/gems/json-2.5.1.gem)
  /usr/lib/ruby/2.7.0/rubygems/remote_fetcher.rb:272:in `rescue in fetch_path'
  /usr/lib/ruby/2.7.0/rubygems/remote_fetcher.rb:249:in `fetch_path'
  /usr/lib/ruby/2.7.0/rubygems/remote_fetcher.rb:299:in `cache_update_path'
  /usr/lib/ruby/2.7.0/rubygems/remote_fetcher.rb:154:in `download'
  /var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/rubygems_integration.rb:527:in `block in download_gem'
  /var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/retry.rb:40:in `run'
  /var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/retry.rb:30:in `attempt'
  /var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/rubygems_integration.rb:526:in `download_gem'
  /var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/source/rubygems.rb:513:in `download_gem'
  /var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/source/rubygems.rb:454:in `fetch_gem'
  /var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/source/rubygems.rb:138:in `install'
  /var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/installer/gem_installer.rb:67:in `install'
  /var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/installer/gem_installer.rb:18:in `install_from_spec'
  /var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/installer/parallel_installer.rb:186:in `do_install'
  /var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/installer/parallel_installer.rb:177:in `block in worker_pool'
  /var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/worker.rb:62:in `apply_func'
  /var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/worker.rb:57:in `block in process_queue'
  /var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/worker.rb:54:in `loop'
  /var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/worker.rb:54:in `process_queue'
  /var/lib/gems/2.7.0/gems/bundler-2.2.19/lib/bundler/worker.rb:88:in `block (2 levels) in create_threads'

Environment

Bundler       2.2.19
  Platforms   ruby, x86_64-linux
Ruby          2.7.0p0 (2019-12-25 revision 647ee6f091eafcce70ffb75ddf7e121e192ab217) [x86_64-linux-gnu]
  Full Path   /usr/bin/ruby2.7
  Config Dir  /etc
RubyGems      3.1.2
  Gem Home    /var/lib/gems/2.7.0
  Gem Path    /var/lib/gems/2.7.0:/home/sqs/.gem/ruby/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0
  User Home   /home/sqs
  User Path   /home/sqs/.gem/ruby/2.7.0
  Bin Dir     /usr/local/bin
OpenSSL       
  Compiled    OpenSSL 1.1.1f  31 Mar 2020
  Loaded      OpenSSL 1.1.1f  31 Mar 2020
  Cert File   /usr/lib/ssl/cert.pem
  Cert Dir    /usr/lib/ssl/certs
Tools         
  Git         2.25.1
  RVM         not installed
  rbenv       not installed
  chruby      not installed
Gem.ruby      /usr/bin/ruby2.7
bundle #!     /usr/bin/ruby

Bundler Build Metadata

Built At          2021-05-31
Git SHA           43f80b12c0
Released Version  true

Gemfile

Gemfile

# frozen_string_literal: true

source 'https://rubygems.org'

gem 'abstraction'
gem 'bcrypt'
gem 'haml'
gem 'json'
gem 'json-jwt'
gem 'jwt'
gem 'net-ldap'
gem 'openssl'
gem 'rack-test'
gem 'require_all'
gem 'rspec'
gem 'scanf'
gem 'sinatra'
gem 'sinatra-activerecord'
gem 'sinatra-contrib'
gem 'sinatra-cors'
gem 'sqlite3'
gem 'test-unit'
gem 'thin'
gem 'webrick'

Gemfile.lock

GEM
  remote: https://rubygems.org/
  specs:
    abstraction (0.0.4)
    activemodel (6.1.4)
      activesupport (= 6.1.4)
    activerecord (6.1.4)
      activemodel (= 6.1.4)
      activesupport (= 6.1.4)
    activesupport (6.1.4)
      concurrent-ruby (~> 1.0, >= 1.0.2)
      i18n (>= 1.6, < 2)
      minitest (>= 5.1)
      tzinfo (~> 2.0)
      zeitwerk (~> 2.3)
    aes_key_wrap (1.1.0)
    bcrypt (3.1.16)
    bindata (2.4.10)
    concurrent-ruby (1.1.9)
    daemons (1.4.0)
    diff-lcs (1.4.4)
    eventmachine (1.2.7)
    haml (5.2.1)
      temple (>= 0.8.0)
      tilt
    i18n (1.8.10)
      concurrent-ruby (~> 1.0)
    json (2.5.1)
    json-jwt (1.13.0)
      activesupport (>= 4.2)
      aes_key_wrap
      bindata
    jwt (2.2.3)
    minitest (5.14.4)
    multi_json (1.15.0)
    mustermann (1.1.1)
      ruby2_keywords (~> 0.0.1)
    net-ldap (0.17.0)
    openssl (2.2.0)
    power_assert (2.0.0)
    rack (2.2.3)
    rack-protection (2.1.0)
      rack
    rack-test (1.1.0)
      rack (>= 1.0, < 3)
    require_all (3.0.0)
    rspec (3.10.0)
      rspec-core (~> 3.10.0)
      rspec-expectations (~> 3.10.0)
      rspec-mocks (~> 3.10.0)
    rspec-core (3.10.1)
      rspec-support (~> 3.10.0)
    rspec-expectations (3.10.1)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.10.0)
    rspec-mocks (3.10.2)
      diff-lcs (>= 1.2.0, < 2.0)
      rspec-support (~> 3.10.0)
    rspec-support (3.10.2)
    ruby2_keywords (0.0.4)
    scanf (1.0.0)
    sinatra (2.1.0)
      mustermann (~> 1.0)
      rack (~> 2.2)
      rack-protection (= 2.1.0)
      tilt (~> 2.0)
    sinatra-activerecord (2.0.23)
      activerecord (>= 4.1)
      sinatra (>= 1.0)
    sinatra-contrib (2.1.0)
      multi_json
      mustermann (~> 1.0)
      rack-protection (= 2.1.0)
      sinatra (= 2.1.0)
      tilt (~> 2.0)
    sinatra-cors (1.2.0)
    sqlite3 (1.4.2)
    temple (0.8.2)
    test-unit (3.4.4)
      power_assert
    thin (1.8.1)
      daemons (~> 1.0, >= 1.0.9)
      eventmachine (~> 1.0, >= 1.0.4)
      rack (>= 1, < 3)
    tilt (2.0.10)
    tzinfo (2.0.4)
      concurrent-ruby (~> 1.0)
    webrick (1.7.0)
    zeitwerk (2.4.2)

PLATFORMS
  ruby
  universal-darwin-20
  x86_64-darwin-19
  x86_64-linux

DEPENDENCIES
  abstraction
  bcrypt
  haml
  json
  json-jwt
  jwt
  net-ldap
  openssl
  rack-test
  require_all
  rspec
  scanf
  sinatra
  sinatra-activerecord
  sinatra-contrib
  sinatra-cors
  sqlite3
  test-unit
  thin
  webrick

BUNDLED WITH
   2.2.19

--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error: https://github.com/rubygems/rubygems/search?q=no+such+name+%28https+%2F%2Frubygems.org%2Fgems%2Fjson-2.5.1.gem%29&type=Issues

If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at: https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md

Thanks in advance

bellebaum commented 2 years ago

This appears to be a network problem on your side, which we cannot fix from here. The provided URLs (like https://rubygems.org/gems/json-2.5.1.gem) are resolvable from my network.

oxisto commented 2 years ago

Maybe a wild guess, but bundle has / had some problems with ipv6. Basically ipv6 on ruby gems.org is broken for some people, the work around is to either disable ipv6 completely on your host or try something like a new config option they seem to have as documented in https://github.com/rubygems/rubygems/pull/2662.

The work around is to include :ipv4_fallback_enabled: true in a file called ~/.gemrc

aetxeberriasqs commented 2 years ago

We have managed to make the bundle install statment run, but for that to happen we have needed to first make the following entries:

sudo apt-get install ruby-full bundle install sudo apt-get install libsqlite3-dev bundle install

maybe this two statments should appear in the documentation as they are not noted there, or maybe there is a problem in the installation or prior configuration that should be adressed or noted in the documentation before reaching this point.

bellebaum commented 2 years ago

No. For the following reasons:

Happy to hear that your install is now working :) Closing this issue