Project

General

Profile

Cannot start Redmine: different rack versions

Added by Ivan Cenov over 11 years ago

I attempted to start Redmine (a configuration that used to start until now) and there is what I received:

D:\apps\redmine_svn>puma -p 3000 -e production
C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in `block in setup': You have already activated rack 1.5.2,
but your Gemfile requires rack 1.4.5. Using bundle exec may solve this. (Gem::LoadError)
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:19:in `setup'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:7:in `<top (required)>'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
        from D:/apps/redmine_svn/config/boot.rb:6:in `<top (required)>'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from D:/apps/redmine_svn/config/application.rb:1:in `<top (required)>'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from D:/apps/redmine_svn/config/environment.rb:2:in `<top (required)>'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from config.ru:3:in `block in <main>'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
        from config.ru:in `new'
        from config.ru:in `<main>'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/puma-1.6.3/lib/puma/configuration.rb:61:in `app'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/puma-1.6.3/lib/puma/cli.rb:298:in `run'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/puma-1.6.3/bin/puma:10:in `<top (required)>'
        from C:/Ruby193/bin/puma:23:in `load'
        from C:/Ruby193/bin/puma:23:in `<main>'

Redmine is freshest trunk, r12103, OS is Windows 7 and installed gems are:

D:\apps\redmine_svn>gem list --local

*** LOCAL GEMS ***

actionmailer (4.0.0, 3.2.13)
actionpack (4.0.0, 4.0.0.rc2, 3.2.13)
activemodel (4.0.0, 3.2.13)
activerecord (4.0.0, 3.2.13)
activerecord-deprecated_finders (1.0.3)
activerecord-mysql2-adapter (0.0.3)
activeresource (4.0.0, 3.2.13)
activesupport (4.0.0, 4.0.0.rc2, 3.2.13)
acts-as-taggable-on (2.4.1, 2.3.3)
acts_as_indexed (0.8.3, 0.7.8)
arel (4.0.0, 3.0.2)
atomic (1.1.10)
awesome_nested_set (2.1.6)
babosa (0.3.11, 0.3.9)
bcrypt-ruby (3.1.1 x86-mingw32, 3.0.1 x86-mingw32)
bigdecimal (1.2.1, 1.1.0)
builder (3.2.2, 3.1.4, 3.0.0)
bundler (1.3.5, 1.2.1)
ceedling (0.13.0)
coderay (1.0.9, 1.0.8)
coffee-rails (4.0.0, 3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.6.3, 1.5.0)
daemons (1.1.9)
devise (3.0.0, 2.0.5)
dragonfly (0.9.15, 0.9.14)
erubis (2.7.0)
eventmachine (1.0.3 x86-mingw32, 1.0.0 x86-mingw32)
execjs (1.4.0)
friendly_id (4.0.9)
globalize3 (0.2.0)
hike (1.2.1)
i18n (0.6.4, 0.6.1)
io-console (0.3)
journey (1.0.4)
jquery-rails (2.1.3, 2.0.3)
json (1.7.7)
mail (2.5.3)
mime-types (1.21)
minitest (4.2.0)
multi_json (1.7.1)
mysql2 (0.3.11 x86-mingw32)
net-ldap (0.3.1)
nokogiri (1.5.6 x86-mingw32)
orm_adapter (0.4.0, 0.0.7)
paper_trail (2.7.1)
pg (0.14.1 x86-mingw32)
polyglot (0.3.3)
puma (1.6.3)
rack (1.5.2, 1.4.5)
rack-cache (1.2)
rack-openid (1.3.1)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.13)
rails-observers (0.1.2)
railties (4.0.0, 3.2.13)
rake (10.0.3)
rdoc (3.12.2)
refinerycms (2.0.9)
refinerycms-authentication (2.0.9)
refinerycms-core (2.0.9)
refinerycms-dashboard (2.0.9)
refinerycms-i18n (2.0.2)
refinerycms-images (2.0.9)
refinerycms-pages (2.0.9)
refinerycms-resources (2.0.9)
rmagick (2.13.1)
routing-filter (0.3.1)
ruby-ole (1.2.11.6)
ruby-openid (2.2.3, 2.2.2, 2.1.8)
rubyzip (0.9.9)
sass (3.2.10, 3.2.6)
sass-rails (4.0.0, 3.2.6)
seo_meta (1.3.0)
simple_enum (1.6.4)
spreadsheet (0.8.7, 0.7.5)
sprockets (2.8.1, 2.2.2)
sprockets-rails (2.0.0)
sqlite3 (1.3.7 x86-mingw32, 1.3.6 x86-mingw32)
thin (1.5.0)
thor (0.18.1, 0.17.0)
thread_safe (0.1.2)
tilt (1.4.1, 1.3.6)
treetop (1.4.14, 1.4.12)
truncate_html (0.9.2)
tzinfo (1.0.1, 0.3.37)
uglifier (2.1.2, 1.3.0)
uuidtools (2.1.4, 2.1.3)
warden (1.2.3, 1.1.1)
will_paginate (3.0.4)
ya2yaml (0.31)
yard (0.8.7, 0.8.3)
zip (2.0.2)

I did not modify my Gemfile, it is as it came from SVN. What to do now?


Replies (2)

RE: Cannot start Redmine: different rack versions - Added by bhuvan krishna over 11 years ago

I too have the same problem. when i start thin

var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in `block in setup': You have already activated rack 1.5.2, but your Gemfile requires rack 1.4.5. Using bundle exec may solve this. (Gem::LoadError)
    from /var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:19:in `setup'
    from /var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
    from /var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:7:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from /root/redmine/config/boot.rb:6:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /root/redmine/config/application.rb:1:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /root/redmine/config/environment.rb:2:in `<top (required)>'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from /root/redmine/config.ru:3:in `block in <main>'
    from /root/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
    from /root/gems/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
    from /root/redmine/config.ru:1:in `new'
    from /root/redmine/config.ru:1:in `<main>'
    from /var/lib/gems/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `eval'
    from /var/lib/gems/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `load'
    from /var/lib/gems/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:42:in `for'
    from /var/lib/gems/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:169:in `load_adapter'
    from /var/lib/gems/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:73:in `start'
    from /var/lib/gems/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
    from /var/lib/gems/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
    from /var/lib/gems/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
    from /usr/local/bin/thin:23:in `load'
    from /usr/local/bin/thin:23:in `<main>'

and when i try to start thin this way
/etc/init.d/thin start
it starts but dosn't create any pid and when i stop i get this error.

/etc/init.d/thin stop
[stop] /etc/thin/redmine.yml ...
Stopping server on 0.0.0.0:3000 ... 
/var/lib/gems/1.9.1/gems/thin-1.5.1/lib/thin/daemonizing.rb:131:in `send_signal': Can't stop process, no PID found in tmp/pids/thin.3000.pid (Thin::PidFileNotFound)
    from /var/lib/gems/1.9.1/gems/thin-1.5.1/lib/thin/daemonizing.rb:113:in `kill'
    from /var/lib/gems/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:93:in `block in stop'
    from /var/lib/gems/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:134:in `tail_log'
    from /var/lib/gems/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:92:in `stop'
    from /var/lib/gems/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command'
    from /var/lib/gems/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!'
    from /var/lib/gems/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>'
    from /usr/local/bin/thin:23:in `load'
    from /usr/local/bin/thin:23:in `<main>'

RE: Cannot start Redmine: different rack versions - Added by Anonymous about 11 years ago

Had the same problem .

Run bundle exec puma -p 3000 -e production solved it.

    (1-2/2)