I want to install social_stream on my new rails project i have installed it on 3.1.0.rc5 Rails but i am not able to get it worked.
here are the error messages which i am seeing on the console when i run command
gem 'social_stream'
I will be really thankful if any one helps me to get it done.
:public is no longer used to avoid overloading Module#public, use :public_folder instead
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/resque-1.17.1/lib/resque/server.rb:12:in `<class:Server>'
SECURITY WARNING: No secret option provided to Rack::Session::Cookie.
This poses a security threat. It is strongly recommended that you
provide a secret to prevent exploits that may be possible from crafted
cookies. This will not be supported in future versions of Rack, and
future versions will even invalidate your existing user cookies.
Called from: /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-3.1.0.rc5 /lib/action_dispatch/middleware/session/abstract_store.rb:28:in `initialize'. /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-3.1.0.rc5/lib/sprockets /ailtie.rb:49:in `asset_environment': undefined method `static_root=' for #<Sprockets::Environment:0x9f647a4> (NoMethodError)
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.1.0.rc5/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/actionpack-3.1.0.rc5/lib/sprockets/railtie.rb:22:in `block in <class:Railtie>'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.1.0.rc5/lib/active_support/lazy_load_hooks.rb:34:in `call'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.1.0.rc5/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.1.0.rc5/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.1.0.rc5/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.1.0.rc5/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.1.0.rc5/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.1.0.rc5/lib/rails/initializable.rb:25:in `instance_exec'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.1.0.rc5/lib/rails/initializable.rb:25:in `run'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.1.0.rc5/lib/rails/initializable.rb:50:in `block in run_initializers'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.1.0.rc5/lib/rails/initializable.rb:49:in `each'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.1.0.rc5/lib/rails/initializable.rb:49:in `run_initializers'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.1.0.rc5/lib/rails/application.rb:92:in `initialize!'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.1.0.rc5/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/baran/RubymineProjects/bktest1/config/environment.rb:5:in `<top (required)>'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.1.0.rc5/lib/active_support/dependencies.rb:237:in `require'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.1.0.rc5/lib/active_support/dependencies.rb:237:in `block in require'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.1.0.rc5/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.1.0.rc5/lib/active_support/dependencies.rb:639:in `new_constants_in'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.1.0.rc5/lib/active_support/dependencies.rb:223:in `load_dependency'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.1.0.rc5/lib/active_support/dependencies.rb:237:in `require'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.1.0.rc5/lib/rails/application.rb:78:in `require_environment!'
from /home/baran/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.1.0.rc5/lib/rails/commands.rb:22:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
here is the gem list:
actionmailer (4.0.0, 3.2.14, 3.1.0.rc8, 3.1.0.rc5)
actionpack (4.0.0, 3.2.14, 3.1.0.rc8, 3.1.0.rc5)
activemodel (4.0.0, 3.2.14, 3.1.0.rc8, 3.1.0.rc5)
activerecord (4.0.0, 3.2.14, 3.1.0.rc8, 3.1.0.rc5)
activerecord-deprecated_finders (1.0.3)
activerecord-mysql2-adapter (0.0.3)
activeresource (3.2.14, 3.1.0.rc8, 3.1.0.rc5)
activesupport (4.0.0, 3.2.14, 3.1.0.rc8, 3.1.0.rc5)
acts-as-taggable-on (2.0.6)
acts_as_commentable (3.0.1)
addressable (2.3.5, 2.2.4)
ancestry (1.2.5)
ansi (1.4.3)
arel (4.0.0, 3.0.2, 2.2.3, 2.1.4)
atomic (1.1.13)
authlogic (3.3.0)
avatars_for_rails (0.1.6)
aws-s3 (0.6.3)
babosa (0.3.11)
bborn-acts-as-taggable-on (2.2.1)
bcrypt-ruby (3.1.2, 3.0.1, 2.1.4)
builder (3.1.4, 3.0.4)
bundler (1.3.5)
bundler-unload (1.0.1)
cancan (1.6.10)
cocaine (0.3.2)
coffee-rails (4.0.0, 3.2.2, 3.1.0)
coffee-script (2.2.0)
coffee-script-source (1.6.3)
community_engine (2.3.0)
configatron (2.13.0)
devise (1.3.4)
dynamic_form (1.1.4)
erubis (2.7.0)
execjs (2.0.1)
faraday (0.8.8, 0.6.1)
foreigner (0.9.2)
formtastic (1.2.4)
friendly_id (3.3.3.0)
haml (4.0.3)
has_scope (0.5.1)
hashie (2.0.5)
hike (1.2.3)
hpricot (0.8.6)
htmlentities (4.3.1)
i18n (0.6.5)
inherited_resources (1.2.2)
jbuilder (1.5.1)
journey (1.0.4)
jquery-rails (3.0.4, 1.0.19)
json (1.8.0, 1.5.5)
kaminari (0.14.1, 0.12.4)
koala (1.6.0)
mail (2.5.4, 2.3.3)
mailboxer (0.5.1)
meta_search (1.1.3)
mime-types (1.25)
mini_portile (0.5.1)
minitest (4.7.5)
modernizr-rails (2.0.6)
multi_json (1.7.9, 1.0.4)
multi_xml (0.2.2)
multipart-post (1.2.0, 1.1.5)
mysql2 (0.3.13)
net-ldap (0.2.2)
nokogiri (1.6.0, 1.4.7)
oa-basic (0.2.6)
oa-core (0.2.6)
oa-enterprise (0.2.6)
oa-more (0.2.6)
oa-oauth (0.2.6)
oa-openid (0.2.6)
oauth (0.4.7)
oauth-plugin (0.4.0.rc2)
oauth2 (0.4.1)
omniauth (1.1.4, 0.2.6)
orm_adapter (0.0.7)
paperclip (2.4.5, 2.3.11)
paperclip-ffmpeg (0.7.0)
polyamorous (0.5.0)
polyglot (0.3.3)
prototype-rails (3.2.1)
pyu-ruby-sasl (0.0.3.3)
rack (1.5.2, 1.4.5, 1.3.10)
rack-cache (1.2, 1.0.3)
rack-mount (0.8.3)
rack-openid (1.3.1)
rack-protection (1.5.0)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (4.0.0, 3.2.14, 3.1.0.rc8, 3.1.0.rc5)
rails_autolink (1.1.0)
railties (4.0.0, 3.2.14, 3.1.0.rc8, 3.1.0.rc5)
rake (10.1.0)
rakismet (1.3.0)
rdoc (3.12.2)
recaptcha (0.3.5)
redis (2.2.2)
redis-namespace (1.0.4)
responders (0.6.5)
resque (1.17.1)
rest-client (1.6.7)
ri_cal (0.8.8)
rmagick (2.13.2)
ruby-openid (2.2.3)
ruby-openid-apps-discovery (1.2.0)
rubygems-bundler (1.2.2)
rubyntlm (0.1.1)
rvm (1.11.3.8)
sanitize (2.0.6)
sass (3.2.10)
sass-rails (4.0.0, 3.2.6, 3.1.0.rc.5)
sdoc (0.3.20)
simple-navigation (3.11.0)
sinatra (1.3.3)
social_stream (0.7.8)
social_stream-base (0.7.11)
social_stream-documents (0.2.4)
social_stream-events (0.0.1)
sprockets (2.10.0, 2.2.2, 2.0.4)
sprockets-rails (2.0.0)
sqlite3 (1.3.8)
stringex (1.2.2)
thor (0.18.1, 0.14.6)
thread_safe (0.1.2)
tilt (1.4.1)
tinymce-rails (3.5.8.3)
treetop (1.4.15)
turbolinks (1.3.0)
turn (0.9.6)
tzinfo (0.3.37)
uglifier (2.2.1)
vegas (0.1.11)
warden (1.0.6)
xml-simple (1.1.2)
yamler (0.1.0)
Please advice.
Looks like this is an issue with the resque gem. Try updating resque or using the following in your gemfile:
gem "resque", "~> 2.0.0.pre.1", github: "resque/resque"
There was error in the manual installation. I just get the way to install from the wiki and i get it installed. Following is the link.
https://github.com/ging/social_stream/wiki/SETUP-TIPS-FOR-DUMMIES
Related
i am new to ruby on rails, when i enter rails server command i get a strange message which i don't know how to deal with.
Using tzinfo-data 1.2015.7
Using uglifier 2.7.2
Using web-console 2.2.1
Bundle complete! 12 Gemfile dependencies, 53 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
C:\Users\dell notebook>cd Mybook
C:\Users\dell notebook\MyBook>rails server
E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x86-mingw32/lib/nok
ogiri.rb:29:in `require': cannot load such file -- nokogiri/nokogiri (LoadError)
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x86-mi
ngw32/lib/nokogiri.rb:29:in `rescue in <top (required)>'
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2-x86-mi
ngw32/lib/nokogiri.rb:25:in `<top (required)>'
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/loofah-2.0.3/lib/loofah
.rb:3:in `require'
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/loofah-2.0.3/lib/loofah
.rb:3:in `<top (required)>'
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/rails-html-sanitizer-1.
0.2/lib/rails-html-sanitizer.rb:2:in `require'
from E:/2.2.3exe/Ruby22/lib/ruby/gems/2.2.0/gems/rails-html-sanitizer-1.
i think i have all the gems installed
*** LOCAL GEMS ***
actionmailer (4.2.4)
actionpack (4.2.4)
actionview (4.2.4)
activejob (4.2.4)
activemodel (4.2.4)
activerecord (4.2.4)
activesupport (4.2.4)
arel (6.0.3)
bigdecimal (1.2.6)
binding_of_caller (0.7.2)
builder (3.2.2)
bundler (1.10.6)
byebug (6.0.2)
coffee-rails (4.1.0)
coffee-script (2.4.1)
coffee-script-source (1.9.1.1)
debug_inspector (0.0.2)
erubis (2.7.0)
execjs (2.6.0)
globalid (0.3.6)
i18n (0.7.0)
io-console (0.4.3)
jbuilder (2.3.2)
jquery-rails (4.0.5)
json (1.8.3, 1.8.1)
loofah (2.0.3)
mail (2.6.3)
mime-types (2.6.2)
mini_portile (0.6.2)
minitest (5.8.1, 5.4.3)
multi_json (1.11.2)
nokogiri (1.6.6.2 x86-mingw32)
power_assert (0.2.2)
psych (2.0.8)
rack (1.6.4)
rack-test (0.6.3)
rails (4.2.4)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.2)
railties (4.2.4)
rake (10.4.2)
rdoc (4.2.0)
sass (3.4.19)
sass-rails (5.0.4)
sdoc (0.4.1)
sprockets (3.4.0)
sprockets-rails (2.3.3)
sqlite3 (1.3.11 x86-mingw32)
test-unit (3.0.8)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.1)
turbolinks (2.5.3)
tzinfo (1.2.2)
tzinfo-data (1.2015.7)
uglifier (2.7.2)
web-console (2.2.1)
My rails and ruby versions are:
C:\Users\dell notebook\MyBook>rails -v
Rails 4.2.4
C:\Users\dell notebook\MyBook>ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [i386-mingw32]
If someone with more experience could just point me in the right direction, I would greatly appreciate it. I have been working on this install for days!
Thanks
It looks like you have nokogiri installed but for the wrong version of ruby. It's installed for ruby 2.2.0 but you're using ruby 2.2.3.
add these two files:
.ruby-gemset
rails4.2.4
.ruby-version
ruby-2.2.3
Then run:
bundle install
As title, I couldn't open my rails app.
Need help as I couldn't solve this through google.
I'm using rails 4.2.1 and ruby 2.2.1
Below are the error messages.
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/spec_set.rb:92:in `block in materialize'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/spec_set.rb:85:in `map!'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/spec_set.rb:85:in `materialize'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/definition.rb:132:in `specs'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/definition.rb:177:in `specs_for'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/definition.rb:166:in `requested_specs'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/environment.rb:18:in `requested_specs'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/runtime.rb:13:in `setup'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler.rb:122:in `setup'
~/.rvm/gems/ruby-2.1.1-openssl#global/gems/bundler-1.8.5/lib/bundler/setup.rb:18:in `<top (required)>'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'
~/projects/linktest/config/boot.rb:3:in `<top (required)>'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
~/projects/linktest/config/application.rb:1:in `<top (required)>'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
~/projects/linktest/config/environment.rb:2:in `<top (required)>'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
~/.rvm/rubies/ruby-2.1.1-openssl/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
~/projects/linktest/config.ru:3:in `block in <main>'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/builder.rb:4:in `instance_eval'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/builder.rb:4:in `initialize'
~/projects/linktest/config.ru:1:in `new'
~/projects/linktest/config.ru:1:in `<main>'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:51:in `eval'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:51:in `load_config'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:42:in `initialize'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:12:in `new'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/lib/nack/server.rb:12:in `run'
~/Library/Application Support/Pow/Versions/0.5.0/node_modules/nack/bin/nack_worker:4:in `<main>'
Here are my gem list.
actionmailer (4.2.1, 4.0.0)
actionpack (4.2.1, 4.0.0)
actionview (4.2.1)
activejob (4.2.1)
activemodel (4.2.1, 4.0.0)
activerecord (4.2.1, 4.0.0)
activerecord-deprecated_finders (1.0.4, 1.0.3)
activesupport (4.2.1, 4.0.0)
airbrake (4.1.0)
anjlab-bootstrap-rails (2.3.1.2)
annotate (2.6.8)
arel (6.0.0, 4.0.2)
auto-facebook (0.4)
bcrypt (3.1.10)
bcrypt-ruby (3.1.5)
better_errors (0.9.0)
bigdecimal (1.2.0)
binding_of_caller (0.7.2)
bootstrap_helper (4.2.3)
bootstrappers (4.2.1)
builder (3.2.2, 3.1.4)
bundler (1.9.1)
bundler-unload (1.0.2)
byebug (4.0.4)
cape (1.8.0)
capistrano (3.4.0, 2.15.5)
capistrano-ext (1.2.1)
carrierwave (0.10.0)
carrierwave-meta (0.0.5)
chronic (0.10.2)
chunky_png (1.3.4)
coderay (1.1.0)
coffee-rails (4.1.0, 4.0.1)
coffee-script (2.3.0)
coffee-script-source (1.9.1)
colorize (0.7.5)
columnize (0.9.0)
compass (0.12.7)
compass-rails (1.1.7)
dalli (2.7.4)
debug_inspector (0.0.2)
devise (3.0.2)
erubis (2.7.0)
execjs (2.4.0)
executable-hooks (1.3.2)
faraday (0.9.1)
font-awesome-rails (3.2.1.3)
fssm (0.2.10)
gem-wrappers (1.2.7)
globalid (0.3.3)
hashie (3.4.0)
high_voltage (2.2.1)
highline (1.7.1)
hike (1.2.3)
hipchat (1.4.0)
httparty (0.13.3)
i18n (0.7.0)
io-console (0.4.2)
jbuilder (2.2.12, 1.5.3)
jquery-rails (4.0.3, 3.1.2)
json (1.8.2, 1.7.7)
jwt (1.4.1)
loofah (2.0.1)
magic_encoding (0.0.2)
mail (2.6.3, 2.5.4)
method_source (0.8.2)
mime-types (2.4.3, 1.25.1)
mini_portile (0.6.2)
minitest (5.5.1, 5.4.3, 4.7.5, 4.3.2)
multi_json (1.11.0)
multi_xml (0.5.5)
multipart-post (2.0.0)
mysql2 (0.3.18)
net-scp (1.2.1)
net-sftp (2.1.2)
net-ssh (2.9.2)
net-ssh-gateway (1.2.0)
nokogiri (1.6.6.2)
oauth2 (1.0.0)
omniauth (1.2.2)
omniauth-facebook (2.0.1)
omniauth-oauth2 (1.2.0)
open_graph_helper (0.2.0)
orm_adapter (0.5.0)
polyglot (0.3.5)
powder (0.3.0)
power_assert (0.2.2)
pry (0.10.1)
pry-nav (0.2.4)
pry-remote (0.1.8)
psych (2.0.0)
rack (1.6.0, 1.5.2)
rack-test (0.6.3)
rails (4.2.1, 4.0.0)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.6)
rails-html-sanitizer (1.0.2)
railties (4.2.1, 4.0.0)
rake (10.4.2, 0.9.6)
rdoc (4.2.0, 4.0.0)
rmagick (2.13.4)
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
rvm-capistrano (1.5.6)
sass (3.4.13, 3.2.19)
sass-rails (5.0.3, 4.0.5, 4.0.4)
sdoc (0.4.1)
seo_helper (1.0.2)
settingslogic (2.0.9)
simple_form (3.0.3)
slop (3.6.0)
spring (1.3.3)
sprockets (2.12.3, 2.11.0)
sprockets-rails (2.2.4, 2.0.1)
sqlite3 (1.3.10)
sshkit (1.7.1)
test-unit (3.0.8, 2.0.0.0)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
treetop (1.4.15)
turbolinks (2.5.3)
tzinfo (1.2.2, 0.3.43)
uglifier (2.7.1)
warden (1.2.3)
web-console (2.1.2)
whenever (0.9.4)
will_paginate (3.0.3)
Thank you all for helping.
Based on the additional information in your comments I think this is probably a spring caching issue, try stopping spring with: spring stop and then retry running your app.
I am using Windows 7.
I downloaded and ran the rails installer "railsinstaller-2.2.5.exe"
Then I followed the https://gist.github.com/luislavena/f064211759ee0f806c88 for 'SSL upgrades on rubygems.org and RubyInstaller versions'
D:\Projects\AptanaWorkspace\cms_synth>rails --version
Rails 4.1.1
D:\Projects\AptanaWorkspace\cms_synth>ruby --version
ruby 1.9.3p551 (2014-11-13) [i386-mingw32]
Then tried and received
D:\Projects\AptanaWorkspace\cms_synth>rails s
=> Booting WEBrick
=> Rails 4.1.1 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0
.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:353:in
`kill': Invalid argument (Errno::EINVAL)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack- 1.5.2/lib/rack/server.rb:353:in `pidfile_process_status'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:340:in `check_pid!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/server.rb:246:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands/server.rb:69:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:81:in `block in server'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:76:in `tap'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:76:in `server'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
My Gem List:
D:\Projects\AptanaWorkspace\cms_synth>gem list --local
*** LOCAL GEMS ***
actionmailer (4.1.1, 3.2.21)
actionpack (4.1.1, 3.2.21)
actionview (4.1.1)
activemodel (4.1.8, 4.1.1, 3.2.21)
activerecord (4.1.8, 4.1.1, 3.2.21)
activerecord-sqlserver-adapter (4.1.0)
activeresource (3.2.21)
activesupport (4.1.8, 4.1.1, 3.2.21)
arel (5.0.1.20140414130214, 3.0.3)
bcrypt-ruby (3.1.2 x86-mingw32)
bigdecimal (1.1.0)
bootstrap-sass (2.3.2.0)
bootstrap-will_paginate (0.0.9)
builder (3.2.2, 3.0.4)
bundler (1.7.7)
capybara (2.1.0)
childprocess (0.5.5)
coffee-rails (4.0.1, 3.2.2)
coffee-script (2.3.0)
coffee-script-source (1.8.0)
cucumber (1.3.17)
cucumber-rails (1.4.0)
diff-lcs (1.2.5)
erubis (2.7.0)
execjs (2.2.2)
factory_girl (4.2.0)
factory_girl_rails (4.2.1)
faker (1.1.2)
ffi (1.9.6 x86-mingw32)
gherkin (2.12.2 x86-mingw32)
hike (1.2.3)
i18n (0.7.0, 0.6.11)
io-console (0.3)
jbuilder (2.2.6)
journey (1.0.4)
jquery-rails (3.1.2, 1.0.19)
json (1.8.1, 1.5.5)
mail (2.5.4)
mime-types (1.25.1)
mini_portile (0.6.1)
minitest (5.5.0, 5.4.3, 2.5.1)
multi_json (1.10.1)
multi_test (0.1.1)
nokogiri (1.6.5 x86-mingw32)
pg (0.17.1 x86-mingw32)
polyglot (0.3.5)
rack (1.5.2, 1.4.5)
rack-cache (1.2)
rack-ssl (1.3.4)
rack-test (0.6.2)
rails (4.1.1, 3.2.21)
railties (4.1.1, 3.2.21)
rake (10.4.2, 10.4.0, 0.9.2.2)
rb-notifu (0.0.4)
rb-readline (0.5.1)
rdoc (4.2.0, 3.9.5)
rspec-core (2.13.1)
rspec-expectations (2.13.0)
rspec-mocks (2.13.1)
rspec-rails (2.13.1)
rubyzip (1.1.6, 0.9.9)
sass (3.4.9, 3.2.19)
sass-rails (4.0.5, 3.2.6)
sdoc (0.4.1)
selenium-webdriver (2.35.1)
shoulda-matchers (2.7.0)
sprockets (2.11.0, 2.2.3)
sprockets-rails (2.2.2)
sqlite3 (1.3.10 x86-mingw32, 1.3.8 x86-mingw32)
sqlite3-ruby (1.3.3)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
tiny_tds (0.6.2 x86-mingw32)
treetop (1.4.15)
turbolinks (2.5.3)
tzinfo (1.2.2, 0.3.42)
tzinfo-data (1.2014.10)
uglifier (2.6.0)
wdm (0.1.0)
websocket (1.0.7)
will_paginate (3.0.4)
xpath (2.0.0)
Has anyone got any suggestions?
So the gripe seems to be around the location of the PID file, which doesn't make a lot of sense, but you're also not running rails in the context of your install.
Try this and see what it does:
bundle exec rails s
From the hint of Jason Mcmunn I could find a way. The problem was solved by deleting the \tmp\pids\pids\server.pid file. Thanks.
I have been coding in rails3 and have all the dependencies resolved. Now, I have moved back to rails 2 and there are lots of dependency issues. Is there any sane approach to make sure that all the gems and dependencies are resolved automatically based on the current rails version?
I keep getting this error
`default_options': undefined method `write_inheritable_attribute' for Rails::Generator::Base:Class (NoMethodError)
Error Log
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/lib/rails_generator/base.rb:90:in `<class:Base>'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/lib/rails_generator/base.rb:85:in `<module:Generator>'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/lib/rails_generator/base.rb:48:in `<module:Rails>'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/lib/rails_generator/base.rb:6:in `<top (required)>'
from /home/saiesh/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/saiesh/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/lib/rails_generator.rb:37:in `<top (required)>'
from /home/saiesh/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/saiesh/.rvm/rubies/ruby-1.9.3-p429/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/gems/rails-2.3.8/bin/rails:15:in `<top (required)>'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/bin/rails:19:in `load'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/bin/rails:19:in `<main>'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/bin/ruby_noexec_wrapper:14:in `eval'
from /home/saiesh/.rvm/gems/ruby-1.9.3-p429/bin/ruby_noexec_wrapper:14:in `<main>'
Gem List
*** LOCAL GEMS ***
actionmailer (3.2.13, 2.3.12, 2.3.8)
actionpack (3.2.13, 2.3.12, 2.3.8)
activemodel (3.2.13)
activerecord (3.2.13, 2.3.12, 2.3.8)
activeresource (3.2.13, 2.3.12, 2.3.8)
activesupport (3.2.13, 2.3.12, 2.3.8)
arel (3.0.2)
bourbon (3.0.1)
builder (3.0.4)
bundler (1.3.5)
bundler-unload (1.0.1)
cancan (1.6.10)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.6.2)
commonjs (0.2.6)
daemons (1.1.9)
delayed_job (3.0.5)
delayed_job_active_record (0.4.4)
erubis (2.7.0)
execjs (1.4.0)
formtastic (2.2.1)
formtastic-bootstrap
(2.1.3)
haml (4.0.3)
hike (1.2.3)
i18n (0.6.1)
journey (1.0.4)
jquery-rails (3.0.1, 2.3.0)
json (1.8.0)
kaminari (0.14.1)
less (2.3.2)
less-rails (2.3.3)
less-rails-fontawesome (0.5.0)
libv8 (3.11.8.17 x86-linux)
mail (2.5.4)
meta_search (1.1.3)
mime-types (1.23)
multi_json (1.7.7)
mysql (2.9.1)
mysql2 (0.3.11)
polyamorous (0.5.0)
polyglot (0.3.3)
rack (1.4.5, 1.1.6)
rack-cache (1.2)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.13, 2.3.8)
railties (3.2.13)
rake > (10.1.0, 10.0.4)
rdoc (4.0.1, 3.12.2)
ref (1.0.5)
rubygems-bundler (1.2.0)
rvm (1.11.3.8)
sass (3.2.9)
sass-rails (3.2.6)
sprockets (2.2.2)
therubyracer (0.11.4)
thor (0.18.1)
tilt (1.4.1)
treetop (1.4.14)
twitter-bootstrap-rails (2.2.7)
tzinfo (0.3.37)
uglifier (2.1.1)
why not make use of gemsets for each project?
create a file inside your app called .rvmrc
rvm use --create ruby-x.x.x-version#your_app_name
for exemple:
rvm use --create ruby-1.9.3-head#your_app_name
now when you'll run bundle it will gems to separate folder like in my case:
.rvm/gems/ruby-1.9.3-head#your_app_name
in this case switching from one app to another will load the needed gemset with gems for your app. It's like using RVM to switch between Ruby versions.
I'm getting the following error when trying to create a new repository with gitorious:
Timeout::Error (execution expired):
/usr/lib/ruby/1.8/timeout.rb:60:in `socket'
stomp (1.1) lib/stomp/connection.rb:42:in `initialize'
vendor/plugins/activemessaging/lib/activemessaging/adapters/stomp.rb:28:in `initialize'
vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:112:in `new'
vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:112:in `connection'
vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:300:in `publish'
vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:149:in `execute_filter_chain'
vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:299:in `publish'
vendor/plugins/activemessaging/lib/activemessaging/gateway.rb:298:in `publish'
vendor/plugins/activemessaging/lib/activemessaging/message_sender.rb:21:in `publish'
app/models/repository.rb:356:in `post_repo_creation_message'
vendor/rails/activesupport/lib/active_support/callbacks.rb:178:in `send'
I've checked and stomp is definitely running, telnet connects fine.
What could the problem be?
gems I currently have installed:
abstract (1.0.0)
actionmailer (3.0.0)
actionpack (3.0.0)
activemodel (3.0.0)
activerecord (3.0.0)
activeresource (3.0.0)
activesupport (3.0.0)
arel (1.0.1)
BlueCloth (1.0.1)
builder (2.1.2)
bundler (1.0.0)
cgi_multipart_eof_fix (2.5.0)
chronic (0.2.3)
daemons (1.1.0)
diff-lcs (1.1.2)
echoe (4.3.1)
erubis (2.6.6)
eventmachine (0.12.10)
facter (1.5.8)
fastthread (1.0.7)
ffi (0.6.3)
foreman (0.8.0)
gcal4ruby (0.5.5)
gdata4ruby (0.1.5)
gem_plugin (0.2.3)
gemcutter (0.6.1)
geoip (0.8.7)
hoe (2.6.2)
i18n (0.4.1)
json (1.4.6)
json_pure (1.4.6)
mail (2.2.6.1)
mime-types (1.16)
mongrel (1.1.5)
oniguruma (1.1.0)
passenger (2.2.15)
plist (3.1.0)
polyglot (0.3.1)
puppet (2.6.1)
rack (1.2.1, 1.0.1)
rack-mount (0.6.13)
rack-test (0.5.6)
rails (3.0.0)
railties (3.0.0)
rake (0.8.7)
rdiscount (1.3.1.1)
RedCloth (4.2.3)
rmagick (2.13.1)
rspec (1.3.0)
rspec-rails (1.3.2)
ruby-hmac (0.4.0)
ruby-openid (2.1.8)
ruby-yadis (0.3.4)
rubyforge (2.0.4)
sqlite3-ruby (1.2.5)
stomp (1.1)
stompserver (0.9.9)
term-ansicolor (1.0.5)
textpow (0.10.1)
thor (0.14.2, 0.13.8)
treetop (1.4.8)
tzinfo (0.3.23)
In message_processing, I also have:
Timed out trying to send the message #<OpenStruct body="{\"target_id\":90,\"arguments\":[\"18c/021/54f8f3621c153f490823e37ebbec21d504.git\"],\"command\":\"create_git_repository\",\"target_class\":\"Repository\"}", headers={:persistent=>true}> to destination create_repo via broker default