puppet-dashboard status report and bottleneck

663 views
Skip to first unread message

Stuart Cracraft

unread,
Dec 16, 2013, 2:46:04 PM12/16/13
to puppet...@googlegroups.com
I followed:


and have reached the point after

  puppet dashboard install/configuration
  MySQL server and MySQL client installation/configuration/startup

at

  Preparing Schema

and now receive the error:

  rake RAILS_ENV=production db_migrate
  rake aborted!
  undefined method `source_index' for Gem:Module

  See full trace by running task with --trace

the above was run while connected to /usr/share/puppet-dashboard
where there is a project Rakefile which the above uses.

Any thoughts on the above and how to get past it?

Thanks so much!

Stuart Cracraft

unread,
Dec 16, 2013, 3:26:31 PM12/16/13
to puppet...@googlegroups.com
Here's a little more detail if we try to start the production dashboard server prior to having
the previous rake runnable error-free...

[root@ca-sna-pm01 puppet-dashboard]# sudo -u puppet-dashboard ./script/server -e production

./script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21:in `add_frozen_gem_path': undefined method `source_index\

' for Gem:Module (NoMethodError)

        from ./script/../config/boot.rb:50:in `load_initializer'

        from ./script/../config/boot.rb:41:in `run'

        from ./script/../config/boot.rb:14:in `boot!'

        from ./script/../config/boot.rb:113

        from ./script/server:2:in `require'

        from ./script/server:2

[root@ca-sna-pm01 puppet-dashboard]#


Stuart

Stuart Cracraft

unread,
Dec 16, 2013, 3:36:18 PM12/16/13
to puppet...@googlegroups.com
Here is the rake trace:

[root@ca-sna-pm01 puppet-dashboard]# !1154

rake RAILS_ENV=production db:migrate

rake aborted!

undefined method `source_index' for Gem:Module

 

(See full trace by running task with --trace)

[root@ca-sna-pm01 puppet-dashboard]# !! --trace

rake RAILS_ENV=production db:migrate  --trace

rake aborted!

undefined method `source_index' for Gem:Module

/usr/share/puppet-dashboard/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21:in `add_frozen_gem_path'

/usr/share/puppet-dashboard/config/boot.rb:50:in `load_initializer'

/usr/share/puppet-dashboard/config/boot.rb:41:in `run'

/usr/share/puppet-dashboard/config/boot.rb:14:in `boot!'

/usr/share/puppet-dashboard/config/boot.rb:113

/usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `gem_original_require'

/usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:45:in `require'

/usr/share/puppet-dashboard/Rakefile:4

/usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in `load'

/usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in `load_rakefile'

/usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:589:in `raw_load_rakefile'

/usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:89:in `load_rakefile'

/usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'

/usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:88:in `load_rakefile'

/usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:72:in `run'

/usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'

/usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'

/usr/lib64/ruby/gems/1.8/gems/rake-10.0.4/bin/rake:33

/usr/bin/rake:19:in `load'

/usr/bin/rake:19

[root@ca-sna-pm01 puppet-dashboard]#



On Monday, December 16, 2013 11:46:04 AM UTC-8, Stuart Cracraft wrote:

Stuart Cracraft

unread,
Dec 16, 2013, 3:37:18 PM12/16/13
to puppet...@googlegroups.com
And the installed gems and ruby version.

[root@ca-sna-pm01 puppet-dashboard]# gem list

 

*** LOCAL GEMS ***

 

actionmailer (3.2.13)

actionpack (3.2.13)

activemodel (3.2.13)

activerecord (3.2.13)

activeresource (3.2.13)

activesupport (3.2.13)

archive-tar-minitar (0.5.2)

arel (3.0.2)

builder (3.0.4)

bundler (1.3.5)

cgi_multipart_eof_fix (2.5.0)

columnize (0.3.6)

daemons (1.1.9)

erubis (2.7.0)

fastthread (1.0.7)

gem_plugin (0.2.3)

hike (1.2.2)

i18n (0.6.1)

journey (1.0.4)

json (1.8.0)

mail (2.5.4)

mime-types (1.23)

mongrel (1.1.5)

multi_json (1.7.4)

polyglot (0.3.3)

rack (1.4.5)

rack-cache (1.2)

rack-ssl (1.3.3)

rack-test (0.6.2)

rails (3.2.13)

railties (3.2.13)

rake (10.0.4)

rdoc (3.12.2)

rgen (0.6.2)

ruby-json (1.1.2)

ruby-shadow (2.2.0)

ruby_core_source (0.1.5)

rubygems-update (2.0.3)

shadow (1.1)

sprockets (2.2.2)

thor (0.18.1)

tilt (1.4.1)

treetop (1.4.12)

tzinfo (0.3.37)

[root@ca-sna-pm01 puppet-dashboard]# ruby --version

ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

[root@ca-sna-pm01 puppet-dashboard]#



On Monday, December 16, 2013 11:46:04 AM UTC-8, Stuart Cracraft wrote:

Ramin K

unread,
Dec 16, 2013, 4:49:22 PM12/16/13
to puppet...@googlegroups.com
No Ruby Mysql bindings aka the mysql gem.

http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html#installing-dependencies

Ramin
> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to puppet-users...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/ee0f339d-79f4-4622-bd51-3a2872d5aa48%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Stuart Cracraft

unread,
Dec 17, 2013, 1:36:16 AM12/17/13
to puppet...@googlegroups.com
Thanks Ramin.

A good tip.

Thank-you.

You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/jXit5cwjA9g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/52AF7562.4050209%40badapple.net.

Matthaus Owens

unread,
Dec 17, 2013, 5:36:04 PM12/17/13
to Puppet Users
Stuart, googling the rake error you were getting resulted in the following hit:

http://stackoverflow.com/questions/15349869/undefined-method-source-index-for-gemmodule-nomethoderror

Which indicated the version of rubygems is not compatible with the
rails application.
> https://groups.google.com/d/msgid/puppet-users/7129942C-D5D2-4CAE-8456-B8AEBB27C76C%40me.com.
>
> For more options, visit https://groups.google.com/groups/opt_out.



--
Matthaus Owens
Release Manager, Puppet Labs

Join us at PuppetConf 2014, September 23-24 in San Francisco

Stuart Cracraft

unread,
Dec 17, 2013, 6:21:18 PM12/17/13
to puppet...@googlegroups.com

All to nought. No change alas.

 

Confirmation of version:

  [root@ca-sna-pm01 puppet-dashboard]# gem list | grep rubygem

  rubygems-update (1.8.25)

  [root@ca-sna-pm01 puppet-dashboard]#

 

Retry of Schematization:

 

  [root@ca-sna-pm01 puppet-dashboard]# !1441

  rake RAILS_ENV=production db:migrate

  rake aborted!

  undefined method `source_index' for Gem:Module

 

  (See full trace by running task with --trace)

  [root@ca-sna-pm01 puppet-dashboard]#

 

The following would not be expected to work without the Schematization prerequisite above:

 

[root@ca-sna-pm01 puppet-dashboard]# sudo -u puppet-dashboard ./script/server -e production

./script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21:in `add_frozen_gem_path': undefined method `source_index\

' for Gem:Module (NoMethodError)

        from ./script/../config/boot.rb:50:in `load_initializer'

        from ./script/../config/boot.rb:41:in `run'

        from ./script/../config/boot.rb:14:in `boot!'

        from ./script/../config/boot.rb:113

        from ./script/server:2:in `require'

        from ./script/server:2

[root@ca-sna-pm01 puppet-dashboard]#


Stuart
Reply all
Reply to author
Forward
0 new messages