/bundler/runtime.rb:77:in `require': cannot load such file -- global (LoadError)

195 views
Skip to first unread message

tom

unread,
Dec 18, 2015, 2:59:16 PM12/18/15
to Ruby on Rails: Talk
hi, need help with a rails 4 app:

$ bundle exec rails s -b 0.0.0.0 -p 3001
/home/administrator/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /home/administrator/.rvm/gems in PATH, mode 042777
/home/administrator/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /home/administrator/.rvm/gems in PATH, mode 042777
/home/administrator/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /home/administrator/.rvm/gems in PATH, mode 042777
/home/administrator/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `require': cannot load such file -- global (LoadError)
        from /home/administrator/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `block (2 levels) in require'
        from /home/administrator/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
        from /home/administrator/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
        from /home/administrator/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
        from /home/administrator/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
        from /home/administrator/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
        from /home/administrator/rorapps/myapp/config/application.rb:12:in `<top (required)>'
        from /home/administrator/.rvm/gems/ruby-2.1.0@wdw_gemset/gems/railties-4.0.0/lib/rails/commands.rb:76:in `require'
        from /home/administrator/.rvm/gems/ruby-2.1.0@wdw_gemset/gems/railties-4.0.0/lib/rails/commands.rb:76:in `block in <top (required)>'
        from /home/administrator/.rvm/gems/ruby-2.1.0@wdw_gemset/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
        from /home/administrator/.rvm/gems/ruby-2.1.0@wdw_gemset/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
        from script/rails:6:in `require'
        from script/rails:6:in `<main>'




not sure what to look for now - line12 is this:
Bundler.require(*Rails.groups)


thx

i have installed bundler global and in the rvm gemset


Colin Law

unread,
Dec 19, 2015, 4:58:54 AM12/19/15
to Ruby on Rails: Talk
n 18 December 2015 at 19:58, tom <toma...@gmail.com> wrote:
> hi, need help with a rails 4 app:
>
> $ bundle exec rails s -b 0.0.0.0 -p 3001
> /home/administrator/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:78:
> warning: Insecure world writable dir /home/administrator/.rvm/gems in PATH,
> mode 042777
> /home/administrator/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:78:
> warning: Insecure world writable dir /home/administrator/.rvm/gems in PATH,
> mode 042777
> /home/administrator/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:78:
> warning: Insecure world writable dir /home/administrator/.rvm/gems in PATH,
> mode 042777
> /home/administrator/.rvm/gems/ruby-2.1.0@global/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in
> `require': cannot load such file -- global (LoadError)

Can you post your application.rb here please.

Colin

tom

unread,
Dec 19, 2015, 4:38:13 PM12/19/15
to Ruby on Rails: Talk
 hi collin,

this is a ror3 app which i have convertred to a ror4 app - but it was all good and i even deployed it couple of times. not sure what changed in the last 10 days, in fact i havent changed anything...
for sanity check i took a application.rb file from a new app and replaced mine with it after renaming the module - but same error.
how can i trace that down?

----------require File.expand_path('../boot', __FILE__)

require 'rails/all'

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module SomeNameHere
  class Application < Rails::Application
    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration should go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded.

    # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
    # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
    # config.time_zone = 'Central Time (US & Canada)'

    # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
    # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
    # config.i18n.default_locale = :de

    # Do not swallow errors in after_commit/after_rollback callbacks.
    config.active_record.raise_in_transactional_callbacks = true
  end
end




Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLsG028uiNyPmpGcHrdqSBY72DwjndmS5VjsicZ8RC%3DPhQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Colin Law

unread,
Dec 19, 2015, 4:50:07 PM12/19/15
to Ruby on Rails: Talk
On 19 December 2015 at 21:37, tom <toma...@gmail.com> wrote:
> hi collin,
>
> this is a ror3 app which i have convertred to a ror4 app - but it was all
> good and i even deployed it couple of times. not sure what changed in the
> last 10 days, in fact i havent changed anything...

Go back to the last working version from you source control system.
Something must have changed, either the app or the environment.

Do you get any errors when you run
bundle install

If not then post your Gemfile.lock

Colin
> https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMfxuFE22pqxhL4OmW3J%2B7W-QEkr%3DPYfSnDTi%3DGaTBz7TA%40mail.gmail.com.

tom

unread,
Dec 21, 2015, 9:29:42 AM12/21/15
to Ruby on Rails: Talk
bundle install was working fine.

i rolled back so its working again, not sure what happened - so thx again



Colin Law

unread,
Dec 21, 2015, 11:03:43 AM12/21/15
to Ruby on Rails: Talk
On 21 December 2015 at 14:28, tom <toma...@gmail.com> wrote:
> bundle install was working fine.
>
> i rolled back so its working again, not sure what happened - so thx again

Presumably you will find out when you roll forwards again a bit at a
time. Post here when you find out so that anyone googling the error
and finding this thread will know the answer.

Colin
> https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMfzJO%3DvcQG2dTLg14d6%3DrVvYDmuHxQJvRLsFDMOwUoSMg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages