sitemap_generator: 5.3.0 is not starting

Hi,

Not sure if I am doing something wrong, but after the update, the library suddenly stopped working. The whole Rails application can’t start any more (on AWS EC2). Any ideas?

/opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- sitemap_generator/builder (LoadError)
	from /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
	from /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
	from /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
	from /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/sitemap_generator-5.3.0/lib/sitemap_generator.rb:2:in `<top (required)>'
	from /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.1/lib/bundler/runtime.rb:86:in `require'
	from /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.1/lib/bundler/runtime.rb:86:in `block (2 levels) in require'
	from /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `each'
	from /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.1/lib/bundler/runtime.rb:81:in `block in require'
	from /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `each'
	from /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.1/lib/bundler/runtime.rb:70:in `require'
	from /opt/rubies/ruby-2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.1/lib/bundler.rb:102:in `require'
	from /var/app/current/config/application.rb:7:in `<top (required)>'
	from /var/app/current/config/environment.rb:2:in `require'
	from /var/app/current/config/environment.rb:2:in `<top (required)>'

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 20 (10 by maintainers)

Most upvoted comments

Just updated to the new version. It all works proper now. Thanks a lot, @singler and @kjvarga.

Thanks so much @singler for finding the issue! I’ve rebuilt the gem after ensuring the file permissions are correct and pushed v5.3.1. Could you please try that out and let me know if that solves the problem?

Turns out one of my machines has bad file permissions and I must have built the gem on this machine. Unfortunately git doesn’t keep track of these file permissions 😦

Hey, I had same problem as @karensg. In my setup code is executed by another user than the one who built the gem. It appears that build process makes some files to have 600 permissions due to which other users cannot read these files. doing “chmod -R a+r” solves the problem.

@inyerade gem uninstall sitemap_generator gem install sitemap_generator