Well, this took a lot of time to figure out what the issue was...

It seems to be some problem with your network, maybe some filter outside or problematic proxy server...

This was the problem:

gem install builder
ERROR:  While executing gem ... (Zlib::DataError)
    invalid distance code

The problem is that builder-3.0.0.gem was being downloaded incorrectly. I've copied the gem that I downloaded in my machine using the same address I've done in the remote server and then copied to the remote server through SSH:

diff transferred-by-ssh/builder-3.0.0.gem /tmp/builder-3.0.0.gem
Binary files transferred-by-ssh/builder-3.0.0.gem and /tmp/builder-3.0.0.gem differ

Installing the builder gem manually from the ssh-transferred gem solved this issue. Yay!

You're now able to continue the install process.

Good luck! :)

Rodrigo.

Em 12-05-2011 11:42, rendered escreveu:
Hi,

I've take the VM back to before I installed the original Gitorious
installation.

root@chimera-server:/var/www/gitorious# ruby --version
ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]
root@chimera-server:/var/www/gitorious# gem --version
1.4.2

root@chimera-server:/var/www/gitorious# dmesg | tail -n 40
[   19.777087] parport_pc 00:04: reported by Plug and Play ACPI
[   19.983520] psmouse serio1: ID: 10 00 64
[   20.306901] type=1400 audit(1305128198.767:2): apparmor="STATUS"
operation="profile_load" name="/sbin/dhclient3" pid=332
comm="apparmor_parser"
[   20.307792] type=1400 audit(1305128198.767:3): apparmor="STATUS"
operation="profile_load" name="/usr/lib/NetworkManager/nm-dhcp-
client.action" pid=332 comm="apparmor_parser"
[   20.308454] type=1400 audit(1305128198.771:4): apparmor="STATUS"
operation="profile_load" name="/usr/lib/connman/scripts/dhclient-
script" pid=332 comm="apparmor_parser"
[   20.395857] input: ImExPS/2 Generic Explorer Mouse as /devices/
platform/i8042/serio1/input/input4
[   20.530723] ip_tables: (C) 2000-2006 Netfilter Core Team
[   21.319313] ppdev: user-space parallel port driver
[   21.376744] nf_conntrack version 0.5.0 (7944 buckets, 31776 max)
[   21.412657] CONFIG_NF_CT_ACCT is deprecated and will be removed
soon. Please use
[   21.412679] nf_conntrack.acct=1 kernel parameter, acct=1
nf_conntrack module option or
[   21.412697] sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
[   22.158374] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   24.474443] type=1400 audit(1305128202.935:5): apparmor="STATUS"
operation="profile_replace" name="/sbin/dhclient3" pid=538
comm="apparmor_parser"
[   24.475233] type=1400 audit(1305128202.935:6): apparmor="STATUS"
operation="profile_replace" name="/usr/lib/NetworkManager/nm-dhcp-
client.action" pid=538 comm="apparmor_parser"
[   24.475734] type=1400 audit(1305128202.935:7): apparmor="STATUS"
operation="profile_replace" name="/usr/lib/connman/scripts/dhclient-
script" pid=538 comm="apparmor_parser"
[   24.608038] type=1400 audit(1305128203.067:8): apparmor="STATUS"
operation="profile_load" name="/usr/sbin/mysqld" pid=545
comm="apparmor_parser"
[   24.705386] type=1400 audit(1305128203.167:9): apparmor="STATUS"
operation="profile_load" name="/usr/sbin/tcpdump" pid=550
comm="apparmor_parser"
[   24.968955] e1000: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow
Control: RX
[   27.311144] type=1400 audit(1305128205.771:10): apparmor="STATUS"
operation="profile_replace" name="/usr/sbin/mysqld" pid=668
comm="apparmor_parser"
[   32.066856] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0f:ea:
74:fb:d8:08:00 SRC=172.18.44.129 DST=172.18.44.134 LEN=279 TOS=0x00
PREC=0x00 TTL=128 ID=27988 PROTO=UDP SPT=64498 DPT=54959 LEN=259
[   34.080067] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0f:ea:
74:fb:d8:08:00 SRC=172.18.44.129 DST=172.18.44.134 LEN=258 TOS=0x00
PREC=0x00 TTL=128 ID=28008 PROTO=UDP SPT=64501 DPT=54959 LEN=238
[   34.083753] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0f:ea:
74:fb:d8:08:00 SRC=172.18.44.129 DST=172.18.44.134 LEN=258 TOS=0x00
PREC=0x00 TTL=128 ID=28009 PROTO=UDP SPT=64501 DPT=54959 LEN=238
[   34.107492] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0f:ea:
74:fb:d8:08:00 SRC=172.18.44.129 DST=172.18.44.134 LEN=279 TOS=0x00
PREC=0x00 TTL=128 ID=28010 PROTO=UDP SPT=64504 DPT=54959 LEN=259
[   34.108534] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0f:ea:
74:fb:d8:08:00 SRC=172.18.44.129 DST=172.18.44.134 LEN=279 TOS=0x00
PREC=0x00 TTL=128 ID=28011 PROTO=UDP SPT=64504 DPT=54959 LEN=259
[   35.114636] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0f:ea:
74:fb:d8:08:00 SRC=172.18.44.129 DST=172.18.44.134 LEN=258 TOS=0x00
PREC=0x00 TTL=128 ID=28021 PROTO=UDP SPT=64507 DPT=54959 LEN=238
[   35.115522] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0f:ea:
74:fb:d8:08:00 SRC=172.18.44.129 DST=172.18.44.134 LEN=258 TOS=0x00
PREC=0x00 TTL=128 ID=28022 PROTO=UDP SPT=64507 DPT=54959 LEN=238
[   35.201025] eth0: no IPv6 routers present
[   38.112224] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0f:ea:
74:fb:d8:08:00 SRC=172.18.44.129 DST=172.18.44.134 LEN=279 TOS=0x00
PREC=0x00 TTL=128 ID=28063 PROTO=UDP SPT=64510 DPT=54959 LEN=259
[   38.113234] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0f:ea:
74:fb:d8:08:00 SRC=172.18.44.129 DST=172.18.44.134 LEN=279 TOS=0x00
PREC=0x00 TTL=128 ID=28064 PROTO=UDP SPT=64510 DPT=54959 LEN=259
[   40.136269] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0f:ea:
74:fb:d8:08:00 SRC=172.18.44.129 DST=172.18.44.134 LEN=258 TOS=0x00
PREC=0x00 TTL=128 ID=28079 PROTO=UDP SPT=64513 DPT=54959 LEN=238
[   40.136965] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0f:ea:
74:fb:d8:08:00 SRC=172.18.44.129 DST=172.18.44.134 LEN=258 TOS=0x00
PREC=0x00 TTL=128 ID=28080 PROTO=UDP SPT=64513 DPT=54959 LEN=238
[   62.164004] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0f:ea:
74:fb:d8:08:00 SRC=172.18.44.129 DST=172.18.44.134 LEN=258 TOS=0x00
PREC=0x00 TTL=128 ID=28314 PROTO=UDP SPT=64528 DPT=54959 LEN=238
[   74.167250] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0f:ea:
74:fb:d8:08:00 SRC=172.18.44.129 DST=172.18.44.134 LEN=279 TOS=0x00
PREC=0x00 TTL=128 ID=28427 PROTO=UDP SPT=64534 DPT=54959 LEN=259
[  105.182913] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0f:ea:
74:fb:d8:08:00 SRC=172.18.44.129 DST=172.18.44.134 LEN=279 TOS=0x00
PREC=0x00 TTL=128 ID=28658 PROTO=UDP SPT=64546 DPT=54959 LEN=259
[  124.191310] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0f:ea:
74:fb:d8:08:00 SRC=172.18.44.129 DST=172.18.44.134 LEN=258 TOS=0x00
PREC=0x00 TTL=128 ID=28902 PROTO=UDP SPT=64552 DPT=54959 LEN=238
[  480.125597] hrtimer: interrupt took 7112148 ns
[48152.179335] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0c:
42:40:2c:96:08:00 SRC=202.183.130.18 DST=172.18.44.134 LEN=60 TOS=0x00
PREC=0x00 TTL=43 ID=1857 DF PROTO=TCP SPT=42254 DPT=110 WINDOW=5840
RES=0x00 SYN URGP=0
[48155.176220] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0c:
42:40:2c:96:08:00 SRC=202.183.130.18 DST=172.18.44.134 LEN=60 TOS=0x00
PREC=0x00 TTL=43 ID=1858 DF PROTO=TCP SPT=42254 DPT=110 WINDOW=5840
RES=0x00 SYN URGP=0
[48161.437719] [UFW BLOCK] IN=eth0 OUT= MAC=08:00:27:ab:4f:c0:00:0c:
42:40:2c:96:08:00 SRC=202.183.130.18 DST=172.18.44.134 LEN=60 TOS=0x00
PREC=0x00 TTL=43 ID=1859 DF PROTO=TCP SPT=42254 DPT=110 WINDOW=5840
RES=0x00 SYN URGP=0


On May 12, 4:27 pm, Rodrigo Rosenfeld Rosas<[email protected]>
wrote:
That is really strange. Maybe it would be easier to start with a fresh
installation if this is a virtual machine.

Are you using Ruby distributed with you Ubuntu? Or enterprise edition?
Please, show the output of "ruby --version" and "gem --version" here.

If you can give me some SSH access to this machine, it would be simpler
to evaluate what might be happening. This error seems to be really
strange and unrelated to Gitorious or Rails.

Also, please show the output of "dmesg | tail -n 40".

Em 12-05-2011 11:16, rendered escreveu:







Unfortunately not :(
root@chimera-server:/var/www/gitorious# rm /usr/lib/ruby/gems/1.8/
cache/*
root@chimera-server:/var/www/gitorious# bundle --without development
test
Fetching source index forhttp://rubygems.org/
Using rake (0.8.7)
Using activesupport (2.3.8)
Using activerecord (2.3.8)
/usr/local/lib/site_ruby/1.8/rubygems/package/tar_input.rb:218:in
`finish': invalid distance code (Zlib::DataError)
          from /usr/local/lib/site_ruby/1.8/rubygems/package/
tar_input.rb:218:in `zipped_stream'
          from /usr/local/lib/site_ruby/1.8/rubygems/package/
tar_input.rb:125:in `each'
          from /usr/local/lib/site_ruby/1.8/rubygems/package/
tar_reader.rb:64:in `each'
          from /usr/local/lib/site_ruby/1.8/rubygems/package/
tar_reader.rb:55:in `loop'
          from /usr/local/lib/site_ruby/1.8/rubygems/package/
tar_reader.rb:55:in `each'
          from /usr/local/lib/site_ruby/1.8/rubygems/package/
tar_input.rb:123:in `each'
          from /usr/local/lib/site_ruby/1.8/rubygems/format.rb:63:in
`from_io'
          from /usr/local/lib/site_ruby/1.8/rubygems/package/
tar_input.rb:22:in `open'
          from /usr/local/lib/site_ruby/1.8/rubygems/package.rb:53:in
`open'
          from /usr/local/lib/site_ruby/1.8/rubygems/format.rb:59:in
`from_io'
          from /usr/local/lib/site_ruby/1.8/rubygems/format.rb:47:in
`from_file_by_path'
          from /usr/lib/ruby/1.8/open-uri.rb:32:in
`open_uri_original_open'
          from /usr/lib/ruby/1.8/open-uri.rb:32:in `open'
          from /usr/local/lib/site_ruby/1.8/rubygems/format.rb:46:in
`from_file_by_path'
          from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
rubygems_integration.rb:97:in `spec_from_gem'
          from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
source.rb:77:in `fetch'
          from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
installer.rb:50:in `run'
          from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
spec_set.rb:12:in `each'
          from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
spec_set.rb:12:in `each'
          from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
installer.rb:49:in `run'
          from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
installer.rb:8:in `install'
          from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
cli.rb:222:in `install'
          from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
vendor/thor/task.rb:22:in `send'
          from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
vendor/thor/task.rb:22:in `run'
          from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
vendor/thor/invocation.rb:118:in `invoke_task'
          from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
vendor/thor.rb:246:in `dispatch'
          from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
vendor/thor/base.rb:389:in `start'
          from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/bin/bundle:13
          from /usr/bin/bundle:19:in `load'
          from /usr/bin/bundle:19
On May 12, 3:54 pm, Rodrigo Rosenfeld Rosas<[email protected]>
wrote:
Try removing your gems cache with "rm /usr/lib/ruby/gems/1.8/cache/*":
https://github.com/carlhuda/bundler/issues/355
Did it work?
Em 12-05-2011 10:40, rendered escreveu:
I ran it again: chef-solo and it produced the same.
I ran it manually:
root@localhost:/var/www/gitorious# bundle --without development test
Fetching source index forhttp://rubygems.org/
Using rake (0.8.7)
Using activesupport (2.3.8)
Using activerecord (2.3.8)
/usr/local/lib/site_ruby/1.8/rubygems/package/tar_input.rb:218:in
`finish': invalid distance code (Zlib::DataError)
           from /usr/local/lib/site_ruby/1.8/rubygems/package/
tar_input.rb:218:in `zipped_stream'
           from /usr/local/lib/site_ruby/1.8/rubygems/package/
tar_input.rb:125:in `each'
           from /usr/local/lib/site_ruby/1.8/rubygems/package/
tar_reader.rb:64:in `each'
           from /usr/local/lib/site_ruby/1.8/rubygems/package/
tar_reader.rb:55:in `loop'
           from /usr/local/lib/site_ruby/1.8/rubygems/package/
tar_reader.rb:55:in `each'
           from /usr/local/lib/site_ruby/1.8/rubygems/package/
tar_input.rb:123:in `each'
           from /usr/local/lib/site_ruby/1.8/rubygems/format.rb:63:in
`from_io'
           from /usr/local/lib/site_ruby/1.8/rubygems/package/
tar_input.rb:22:in `open'
           from /usr/local/lib/site_ruby/1.8/rubygems/package.rb:53:in
`open'
           from /usr/local/lib/site_ruby/1.8/rubygems/format.rb:59:in
`from_io'
           from /usr/local/lib/site_ruby/1.8/rubygems/format.rb:47:in
`from_file_by_path'
           from /usr/lib/ruby/1.8/open-uri.rb:32:in
`open_uri_original_open'
           from /usr/lib/ruby/1.8/open-uri.rb:32:in `open'
           from /usr/local/lib/site_ruby/1.8/rubygems/format.rb:46:in
`from_file_by_path'
           from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
rubygems_integration.rb:97:in `spec_from_gem'
           from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
source.rb:77:in `fetch'
           from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
installer.rb:50:in `run'
           from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
spec_set.rb:12:in `each'
           from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
spec_set.rb:12:in `each'
           from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
installer.rb:49:in `run'
           from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
installer.rb:8:in `install'
           from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
cli.rb:222:in `install'
           from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
vendor/thor/task.rb:22:in `send'
           from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
vendor/thor/task.rb:22:in `run'
           from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
vendor/thor/invocation.rb:118:in `invoke_task'
           from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
vendor/thor.rb:246:in `dispatch'
           from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/lib/bundler/
vendor/thor/base.rb:389:in `start'
           from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.13/bin/bundle:13
           from /usr/bin/bundle:19:in `load'
           from /usr/bin/bundle:19
This seems to be the same error as I got doing everything manually.
On May 12, 1:48 pm, Rodrigo Rosenfeld Rosas<[email protected]>
wrote:
Don't worry about wasting my time. If I feel like so, I'll let you know...
This says that while trying to run "bundle --without development test",
it returned an error.
Maybe this is a problem with your network that happens sometimes. This
explains why I had an error cloning my repository as well as why bundle
could fail while trying to fetch the dependencies...
You may try to run "chef-solo" again if that is the case. Otherwise, you
can try to run the above command manually under the /var/www/gitorious
directory. Then you will have better hints why Bundler is failing to
install the dependencies.
Hope it helps,
Rodrigo.
Em 12-05-2011 08:34, rendered escreveu:
Ok, re-ran it and the only errors are:
Installing activerecord (2.3.8)
[Thu, 12 May 2011 13:17:10 +0200] ERROR: execute[bundle --without
development test] (gitorious::default line 88) has had an error
[Thu, 12 May 2011 13:17:10 +0200] ERROR: Running exception handlers
[Thu, 12 May 2011 13:17:10 +0200] ERROR: Exception handlers complete
[Thu, 12 May 2011 13:17:10 +0200] FATAL: Stacktrace dumped to /root/
chef-solo/chef-stacktrace.out
[Thu, 12 May 2011 13:17:10 +0200] FATAL:
Chef::Exceptions::ShellCommandFailed: execute[bundle --without
development test] (gitorious::default line 88) had an error: Expected
process to exit 0, but it exited with 1
---- Begin output of bundle --without development test ----
Thanks again for all your trouble - I really don't want to waste your
time.
On May 12, 11:58 am, Rodrigo Rosenfeld Rosas<[email protected]>
wrote:
Em 12-05-2011 04:27, rendered escreveu:
Hi,
Thanks.  Ok so I followed the instructions at:
https://github.com/rosenfeld/gitorious-cookbooks.  These were the only
errors I found:
...
[Wed, 11 May 2011 20:58:18 +0200] INFO: git[/var/www/gitorious]
cloning repo git://gitorious.org/~rosenfeld/gitorious/rosenfeld-gitorious.git
to /var/www/gitorious
[Wed, 11 May 2011 20:58:18 +0200] INFO: git[/var/www/gitorious] sh(git
clone  git://gitorious.org/~rosenfeld/gitorious/rosenfeld-gitorious.git
/var/www/gitorious)
Initialized empty Git repository in /var/www/gitorious/.git/
[Wed, 11 May 2011 21:09:40 +0200] ERROR: git[/var/www/gitorious]
(gitorious::default line 58) has had an error
[Wed, 11 May 2011 21:09:40 +0200] ERROR: Running exception
...

read more ยป

--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to