Gem issue: message_bus-0.9.3.1.gem @ rubygems.org


(Harry Seo) #1

@Sam

I found some strange issue after merging the following commit.
46f32610253d4e6aa43b728c735713abecab01e9

After installing message_bus gem from rubygems.org, permission error ocurres just in case when the gem repository is owned by other user (eg. root) than discourse owner.

I found some rb files missing ‘r’ permission for others.

# find . -name '*.rb' -exec ls -alF {} \; 
-rw-r--r-- 1 root root 2696 Dec  6 11:45 ./message_bus/client.rb
-rw-r--r-- 1 root root 60 Dec  6 11:45 ./message_bus/em_ext.rb
-rw-r----- 1 root root 624 Dec  6 11:45 ./message_bus/message_handler.rb
-rw-r----- 1 root root 1483 Dec  6 11:45 ./message_bus/diagnostics.rb
-rw-r----- 1 root root 455 Dec  6 11:45 ./message_bus/rails/railtie.rb
-rw-r--r-- 1 root root 4362 Dec  6 11:45 ./message_bus/rack/middleware.rb
-rw-r--r-- 1 root root 1669 Dec  6 11:45 ./message_bus/rack/thin_ext.rb
-rw-r----- 1 root root 2502 Dec  6 11:45 ./message_bus/rack/diagnostics.rb
-rw-r----- 1 root root 602 Dec  6 11:45 ./message_bus/message.rb
-rw-r----- 1 root root 2076 Dec  6 11:45 ./message_bus/connection_manager.rb
-rw-r----- 1 root root 6541 Dec  6 11:45 ./message_bus/reliable_pub_sub.rb
-rw-r----- 1 root root 44 Dec  6 11:45 ./message_bus/version.rb
-rw-r--r-- 1 root root 7626 Dec  6 11:45 ./message_bus.rb

I quick-fixed this issue by using chmod manually.

find . -name '*.rb' -exec chmod a+r {} \; 

I know that this is not the discourse issue.
But I found that you are the owner of message_bus.
Would you please check the message_bus-0.9.3.1.gem in rubygems.org?

Thank you,


(YOU) #2

ya, I couldn’t run rails s of discourse until i set chmod +r on those files and some files inside subdirectories.

% rails s                                                                           
/usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require': cannot load such file -- message_bus/version (LoadError)
	from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `block in require'
	from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in `load_dependency'
	from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'

(Sam Saffron) #3

Can you try version 0.9.3.2 ?


(YOU) #4

looks good here for me with new version.


(Harry Seo) #5

@Sam
Now it’s working fine with message_bus-0.9.3.2 after bundle update.
Thank you very much for your superfast update.


(Sam Saffron) #6

This topic was automatically closed after 1 day. New replies are no longer allowed.