Gem problem after upgrading to latest version

418 views
Skip to first unread message

Oguzhan Yayla

unread,
Mar 30, 2016, 9:29:12 AM3/30/16
to Snowplow
Hi all,

We just upgraded our Snowplow version to 77 Great Auk by downloading runner and storage loader from Bintray but after we ran emr etl runner we receive this traceback :
We're a bit far away from Ruby world so any help is appreciated, thanks a lot in advance!



Ignoring nokogiri-1.6.2.1 because its extensions are not built.  Try: gem pristine nokogiri --version 1.6.2.1
Ignoring nokogiri-1.6.7.2 because its extensions are not built.  Try: gem pristine nokogiri --version 1.6.7.2
Ignoring json-1.8.3 because its extensions are not built.  Try: gem pristine json --version 1.8.3
Ignoring executable-hooks-1.3.2 because its extensions are not built.  Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.2.7 because its extensions are not built.  Try: gem pristine gem-wrappers --version 1.2.7
Ignoring nokogiri-1.6.7.2 because its extensions are not built.  Try: gem pristine nokogiri --version 1.6.7.2
Ignoring nokogiri-1.6.2.1 because its extensions are not built.  Try: gem pristine nokogiri --version 1.6.2.1
Ignoring pg-0.14.1 because its extensions are not built.  Try: gem pristine pg --version 0.14.1
NameError: uninitialized constant Nokogiri::XERCES_VERSION
     const_missing at org/jruby/RubyModule.java:2733
           to_hash at /home/admin/snowplow-emr-etl-runner!/gems/nokogiri-1.6.6.2-java/lib/nokogiri/version.rb:73
          Nokogiri at /home/admin/snowplow-emr-etl-runner!/gems/nokogiri-1.6.6.2-java/lib/nokogiri/version.rb:99
            (root) at /home/admin/snowplow-emr-etl-runner!/gems/nokogiri-1.6.6.2-java/lib/nokogiri/version.rb:1
           require at org/jruby/RubyKernel.java:1072
           require at /tmp/jruby1283972195534130427extract/jruby-stdlib-1.7.20.1.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:69
            (root) at /home/admin/snowplow-emr-etl-runner!/gems/nokogiri-1.6.6.2-java/lib/nokogiri.rb:1
           require at org/jruby/RubyKernel.java:1072
           require at /tmp/jruby1283972195534130427extract/jruby-stdlib-1.7.20.1.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:121
            (root) at /home/admin/snowplow-emr-etl-runner!/gems/nokogiri-1.6.6.2-java/lib/nokogiri.rb:31
           require at org/jruby/RubyKernel.java:1072
            (root) at /home/admin/snowplow-emr-etl-runner!/gems/elasticity-6.0.7/lib/elasticity.rb:1
            (root) at /home/admin/snowplow-emr-etl-runner!/gems/elasticity-6.0.7/lib/elasticity.rb:5
           require at org/jruby/RubyKernel.java:1072
            (root) at /tmp/jruby1283972195534130427extract/jruby-stdlib-1.7.20.1.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
           require at /tmp/jruby1283972195534130427extract/jruby-stdlib-1.7.20.1.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:128
            (root) at /home/admin/snowplow-emr-etl-runner!/emr-etl-runner/lib/snowplow-emr-etl-runner/monitoring/snowplow.rb:17
           require at org/jruby/RubyKernel.java:1072
            (root) at /tmp/jruby1283972195534130427extract/jruby-stdlib-1.7.20.1.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
           require at /tmp/jruby1283972195534130427extract/jruby-stdlib-1.7.20.1.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:54
              load at org/jruby/RubyKernel.java:1091
  require_relative at file:/tmp/jruby1283972195534130427extract/jruby-core-1.7.20.1.jar!/jruby/kernel19/kernel.rb:24
           require at org/jruby/RubyKernel.java:1072
            (root) at /home/admin/snowplow-emr-etl-runner!/emr-etl-runner/lib/snowplow-emr-etl-runner.rb:20
            (root) at /tmp/jruby1283972195534130427extract/jruby-stdlib-1.7.20.1.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
ERROR: org.jruby.embed.EvalFailedException: (NameError) uninitialized constant Nokogiri::XERCES_VERSION




Alex Dean

unread,
Mar 30, 2016, 9:35:33 AM3/30/16
to snowpl...@googlegroups.com

Hi Oguzhan,

Two questions:

1. Did you upgrade from an earlier Ruby (I.e. not JRuby) version of those apps?
2. Are you using the same server as before to run these apps?

Thanks,

Alex

--
You received this message because you are subscribed to the Google Groups "Snowplow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snowplow-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bernardo Srulzon

unread,
Mar 30, 2016, 9:38:42 AM3/30/16
to Snowplow
Hey Oguzhan,

We run into this problem from time to time. It seems like RVM is interferring with JRuby as described here. Solution is pretty straightforward:

$ unset GEM_HOME
$ unset GEM_PATH

Oguzhan Yayla

unread,
Mar 30, 2016, 9:50:28 AM3/30/16
to Snowplow
Hi Bernardo,

That did the trick, thanks a lot!

Cheers

Oguzhan Yayla

unread,
Mar 30, 2016, 9:51:15 AM3/30/16
to Snowplow
Hi Alex,

Yes to both questions. But Bernardo's solution helped. Thanks a lot.

Cheers

Alex Dean

unread,
Mar 30, 2016, 7:59:38 PM3/30/16
to Snowplow
Thanks both! Yes we have seen issues with the old RVM settings on a server interfering with the new JRuby apps. Great that Bernardo's solution fixed it!

A
--
Co-founder
Snowplow Analytics
The Roma Building, 32-38 Scrutton Street, London EC2A 4RQ, United Kingdom
+44 (0)203 589 6116
+44 7881 622 925
@alexcrdean
Reply all
Reply to author
Forward
0 new messages