Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #841

Closed
Open
Created May 20, 2012 by Administrator@rootOwner

ASCII Error when trying to install Gem devise -v '1.5.3'

Created by: deranjer

When running this command

sudo -u gitlab -H bundle install --without development test --deployment

I get this error:

Using warden (1.2.0)

ArgumentError: invalid byte sequence in US-ASCII An error occured while installing devise (1.5.3), and Bundler cannot continue. Make sure that gem install devise -v '1.5.3' succeeds before bundling.

gem install --verbose --debug --backtrace devise -v '1.5.3'

Exception NameError' at /usr/local/lib/ruby/1.9.1/rubygems/command_manager.rb:164 - uninitialized constant Gem::Commands::InstallCommand ExceptionNameError' at /usr/local/lib/ruby/1.9.1/syck/tag.rb:81 - method yaml_as' not defined in Module ExceptionGem::LoadError' at /usr/local/lib/ruby/1.9.1/rubygems.rb:762 - Could not find RubyGem test-unit (>= 0)

Exception `Gem::LoadError' at /usr/local/lib/ruby/1.9.1/rubygems.rb:762 - Could not find RubyGem sources (> 0.0.1)

GET http://rubygems.org/specs.4.8.gz Exception Errno::EAGAIN' at /usr/local/lib/ruby/1.9.1/net/protocol.rb:135 - Resource temporarily unavailable - read would block 302 Moved Temporarily GET http://production.s3.rubygems.org/specs.4.8.gz ExceptionErrno::EAGAIN' at /usr/local/lib/ruby/1.9.1/net/protocol.rb:135 - Resource temporarily unavailable - read would block 304 Not Modified GET http://rubygems.org/latest_specs.4.8.gz Exception Errno::EAGAIN' at /usr/local/lib/ruby/1.9.1/net/protocol.rb:135 - Resource temporarily unavailable - read would block 302 Moved Temporarily GET http://production.s3.rubygems.org/latest_specs.4.8.gz ExceptionErrno::EAGAIN' at /usr/local/lib/ruby/1.9.1/net/protocol.rb:135 - Resource temporarily unavailable - read would block 304 Not Modified Exception NoMethodError' at /usr/local/lib/ruby/1.9.1/rubygems/specification.rb:538 - undefined methodto_ary' for #<Gem::Specification name=devise version=1.5.3> Installing gem devise-1.5.3 Exception NoMethodError' at /usr/local/lib/ruby/1.9.1/rubygems/package/tar_input.rb:49 - undefined methodreadpartial' for #Gem::Package::TarReader::Entry:0x99deb54 Exception NoMethodError' at /usr/local/lib/ruby/1.9.1/rubygems/specification.rb:518 - undefined methodreadpartial' for #Gem::Package::TarReader::Entry:0x99deb54 Exception ArgumentError' at /usr/local/lib/ruby/1.9.1/rubygems/specification.rb:519 - invalid byte sequence in US-ASCII ERROR: While executing gem ... (ArgumentError) invalid byte sequence in US-ASCII /usr/local/lib/ruby/1.9.1/rubygems/specification.rb:519:innormalize_yaml_input' /usr/local/lib/ruby/1.9.1/rubygems/specification.rb:479:in from_yaml' /usr/local/lib/ruby/1.9.1/rubygems/package/tar_input.rb:183:inload_gemspec' /usr/local/lib/ruby/1.9.1/rubygems/package/tar_input.rb:51:in block in initialize' /usr/local/lib/ruby/1.9.1/rubygems/package/tar_reader.rb:64:inblock in each' /usr/local/lib/ruby/1.9.1/rubygems/package/tar_reader.rb:55:in loop' /usr/local/lib/ruby/1.9.1/rubygems/package/tar_reader.rb:55:ineach' /usr/local/lib/ruby/1.9.1/rubygems/package/tar_input.rb:32:in initialize' /usr/local/lib/ruby/1.9.1/rubygems/package/tar_input.rb:17:innew' /usr/local/lib/ruby/1.9.1/rubygems/package/tar_input.rb:17:in open' /usr/local/lib/ruby/1.9.1/rubygems/package.rb:58:inopen' /usr/local/lib/ruby/1.9.1/rubygems/format.rb:63:in from_io' /usr/local/lib/ruby/1.9.1/rubygems/format.rb:51:inblock in from_file_by_path' /usr/local/lib/ruby/1.9.1/rubygems/format.rb:50:in open' /usr/local/lib/ruby/1.9.1/rubygems/format.rb:50:infrom_file_by_path' /usr/local/lib/ruby/1.9.1/rubygems/installer.rb:118:in initialize' /usr/local/lib/ruby/1.9.1/rubygems/dependency_installer.rb:264:innew' /usr/local/lib/ruby/1.9.1/rubygems/dependency_installer.rb:264:in block in install' /usr/local/lib/ruby/1.9.1/rubygems/dependency_installer.rb:247:ineach' /usr/local/lib/ruby/1.9.1/rubygems/dependency_installer.rb:247:in install' /usr/local/lib/ruby/1.9.1/rubygems/commands/install_command.rb:119:inblock in execute' /usr/local/lib/ruby/1.9.1/rubygems/commands/install_command.rb:116:in each' /usr/local/lib/ruby/1.9.1/rubygems/commands/install_command.rb:116:inexecute' /usr/local/lib/ruby/1.9.1/rubygems/command.rb:270:in invoke' /usr/local/lib/ruby/1.9.1/rubygems/command_manager.rb:134:inprocess_args' /usr/local/lib/ruby/1.9.1/rubygems/command_manager.rb:104:in run' /usr/local/lib/ruby/1.9.1/rubygems/gem_runner.rb:58:inrun' /usr/local/bin/gem:21:in `'

After some googling, found that Lang=C could be causing it, so changed mine, still not working.

su gitlab echo $LANG en_US.UTF-8

ruby -v ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]

Followed install directions exactly, does anyone know what could be causing this?

Assignee
Assign to
Time tracking