Bug #16381

Test cluster deploy failing with gem library error

Added by Peter Amstutz 5 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Deployment
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Story points:
-

Description

ce8i5 and 9tee4 are failing with this error when running the arv command:

Error loading gems: incompatible library version - /data/2/rvm/gems/ruby-2.5.7/gems/curb-0.9.10/lib/curb_core.so

History

#1 Updated by Peter Amstutz 5 months ago

  • Description updated (diff)

#2 Updated by Peter Amstutz 5 months ago

  • Assigned To set to Ward Vandewege

#3 Updated by Ward Vandewege 5 months ago

  • Status changed from New to Resolved

The `arv` commands that failed with that error are being executed on the CI server. I fixed it this way:

ci:~# arv

Error loading gems: incompatible library version - /data/2/rvm/gems/ruby-2.5.7/gems/curb-0.9.10/lib/curb_core.so

Please install all required gems:

  gem install arvados activesupport andand curb json oj optimist

1!ci:~# ruby -v
ruby 2.5.7p206 (2019-10-01 revision 67816) [x86_64-linux]

ci:~# rvm list
   ree-1.8.7-2012.02 [ x86_64 ]
   ruby-1.8.7-p374 [ x86_64 ]
   ruby-2.1.5 [ x86_64 ]
   ruby-2.3.3 [ x86_64 ]
   ruby-2.3.8 [ x86_64 ]
=* ruby-2.5.7 [ x86_64 ]

# => - current
# =* - current && default
#  * - default

ci:~# gem install arvados activesupport andand curb json oj optimist
Fetching: arvados-2.0.2.gem (100%)
Successfully installed arvados-2.0.2
Parsing documentation for arvados-2.0.2
Installing ri documentation for arvados-2.0.2
Done installing documentation for arvados after 2 seconds
Fetching: activesupport-6.0.2.2.gem (100%)
Successfully installed activesupport-6.0.2.2
Parsing documentation for activesupport-6.0.2.2
Installing ri documentation for activesupport-6.0.2.2
Done installing documentation for activesupport after 5 seconds
Successfully installed andand-1.3.3
Parsing documentation for andand-1.3.3
Done installing documentation for andand after 0 seconds
Building native extensions. This could take a while...
Successfully installed curb-0.9.10
Parsing documentation for curb-0.9.10
Done installing documentation for curb after 0 seconds
Building native extensions. This could take a while...
Successfully installed json-2.3.0
Parsing documentation for json-2.3.0
Done installing documentation for json after 0 seconds
Fetching: oj-3.10.6.gem (100%)
Building native extensions. This could take a while...
Successfully installed oj-3.10.6
Parsing documentation for oj-3.10.6
Installing ri documentation for oj-3.10.6
Done installing documentation for oj after 3 seconds
Fetching: optimist-3.0.1.gem (100%)
Successfully installed optimist-3.0.1
Parsing documentation for optimist-3.0.1
Installing ri documentation for optimist-3.0.1
Done installing documentation for optimist after 0 seconds
7 gems installed

ci:~# arv
ARVADOS_API_HOST and ARVADOS_API_TOKEN need to be defined as environment variables.

Future improvement: run the deploy script from a clean environment (e.g. jenkins slave or docker container).

Also available in: Atom PDF