Gitorious fails on install gems : Ubuntu 14.04

141 views
Skip to first unread message

Carel Combrink

unread,
Feb 13, 2015, 8:30:05 AM2/13/15
to gito...@googlegroups.com
Hi,

Following the steps on the site I get the following error (trimmed it a bit down):
====================================================================
TASK: [gitorious | install gems] ***
failed: [localhost] => {"changed": true, "cmd": ["gitoriousctl", "exec", "bundle", "install", "--jobs", "4", "--retry", "3", "--deployment", "--without", "development", "test", "postgres"], "delta": "0:02:26.922803", "end": "2015-02-13 13:59:01.187053", "rc": 5, "start": "2015-02-13 13:56:34.264250", "warnings": []}
stderr: /opt/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/rubygems/installer.rb:688: warning: conflicting chdir during another chdir block
/opt/rubies/ruby-2.0.0-p576/lib/ruby/gems/2.0.0/gems/bundler-1.8.0/lib/bundler/shared_helpers.rb:60: warning: conflicting chdir during another chdir block
stdout: Fetching source index from https://rubygems.org/
Using rake 10.4.1
Using RedCloth 4.2.9
Using i18n 0.6.11
...
Using httparty 0.11.0

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/opt/rubies/ruby-2.0.0-p576/bin/ruby extconf.rb
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... yes
checking for libexslt/exslt.h... yes
checking for iconv_open() in iconv.h... yes
checking for xmlParseDoc() in -lxml2... yes
checking for xsltParseStylesheetDoc() in -lxslt... yes
checking for exsltFuncRegister() in -lexslt... yes
checking for xmlHasFeature()... yes
checking for xmlFirstElementChild()... yes
checking for xmlRelaxNGSetParserStructuredErrors()... yes
checking for xmlRelaxNGSetParserStructuredErrors()... yes
checking for xmlRelaxNGSetValidStructuredErrors()... yes
checking for xmlSchemaSetValidStructuredErrors()... yes
checking for xmlSchemaSetParserStructuredErrors()... yes
creating Makefile


Gem files will remain installed in /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/nokogiri-1.5.11 for inspection.
Results logged to /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/nokogiri-1.5.11/ext/nokogiri/gem_make.out
Installing thin 1.6.1
Installing proxymachine 1.2.4
Installing wikicloth 0.8.0
Installing pygments.rb 0.5.2


Gem files will remain installed in /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/yajl-ruby-1.1.0 for inspection.
Results logged to /var/www/gitorious/app/vendor/bundle/ruby/2.0.0/gems/yajl-ruby-1.1.0/ext/yajl/gem_make.out
Using activemodel 3.2.21
Using climate_control 0.0.3
Using pundit 0.2.3
Using skylight 0.4.3
Using resque-cleaner 0.3.0
Using resque-job-stats 0.3.0
...
Installing skylight 0.4.3
An error occurred while installing nokogiri (1.5.11), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.5.11'` succeeds before bundling.

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
to retry, use: --limit @/root/install.retry

localhost : ok=51 changed=4 unreachable=0 failed=1

====================================================================
Running the following:
# /opt/rubies/ruby-2.0.0-p576/bin/gem install nokogiri -v '1.5.11'
...
installing default nokogiri libraries

/opt/rubies/ruby-2.0.0-p576/bin/nokogiri
Successfully installed nokogiri-1.5.11
1 gem installed
====================================================================

And then re-running install.sh fails again at the same place as above...
Any help will be appreciated.

PS: is there any wat to get verbose output on the original install.sh script?

Carel Combrink

unread,
Feb 16, 2015, 1:05:27 AM2/16/15
to gito...@googlegroups.com
So after a lot of testing, it seems like it is somehow related to the latest updates for Ubuntu 14.04.1.

The reason I say so:
My first setup I installed Ubuntu 14.04.1 server from DVD and then installed Gitorious. It did go through without any problems.
I realized I wanted to make a few changes to the install so I started from scratch, new install but this time before installing Gitorious I did a apt-get update & upgrade.
This time the Gitorious install failed during install of the gems.
I restarted this setup a few times (clean ubuntu install, upgrade, gitorious) and failed every time @ the gems.
Lastly out of desperation I tried again, clean Ubuntu and the Gitorious install went through fine (no updating of Ubuntu).

I am not sure why this would be an issue, hopefully this feedback will help.
Reply all
Reply to author
Forward
0 new messages