Project

General

Profile

Upgrade issue - Restart application server

Added by John Bigler over 13 years ago

Hi there !

I'm a big fan of Redmine, but sadly a little weak when it comes to Ruby on Rails. We're starting to run on Redmine to manage projects of all kinds. I tried to upgrade to the newest version, but I'm stuck.

I followed : http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade

And I'm stuck at this point :
2. Restart the application server (e.g. mongrel, thin, passenger)

Since I didn't install it, and I don't know that much about RoR, I don't know how to do that ?!? How can I figure out which server to restart ?

I tried :
/script/server webrick -e production -p 80

And I got :

=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:80
/home/websites/redmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010.  Use #requirement
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2011-03-04 18:22:16] INFO  WEBrick 1.3.1
[2011-03-04 18:22:16] INFO  ruby 1.8.7 (2010-01-10) [x86_64-linux]
[2011-03-04 18:22:16] WARN  TCPServer Error: Address already in use - bind(2)
Exiting
/usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE)
    from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `new'
    from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `create_listeners'
    from /usr/lib/ruby/1.8/webrick/utils.rb:70:in `each'
    from /usr/lib/ruby/1.8/webrick/utils.rb:70:in `create_listeners'
    from /usr/lib/ruby/1.8/webrick/server.rb:75:in `listen'
    from /usr/lib/ruby/1.8/webrick/server.rb:63:in `initialize'
    from /usr/lib/ruby/1.8/webrick/httpserver.rb:24:in `initialize'
    from /usr/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/webrick.rb:10:in `new'
    from /usr/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/handler/webrick.rb:10:in `run'
    from /home/websites/redmine/vendor/rails/railties/lib/commands/server.rb:111
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    from ./server:3


From that point... I don't know what to do. The logs are silent, and when I browse to the page I get a "redMine 500 error"

Any help ? Idea ? Thanks in advance !


Replies (3)

RE: Upgrade issue - Restart application server - Added by John Bigler over 13 years ago

Hey, news, somehow after a while it worked... don't ask me how ;-) strange.

Anyway, now I got the latest Redmine to work. But I lost my database on the way... apparently the previous installation was using SQLite. But I can't seem to find where the files are stored :-/

Sorry to bother you with this, it's stupid questions, but I'm having a hard time with this whole thing. I'm more used to the PHP/MySQL old ways ;-)

RE: Upgrade issue - Restart application server - Added by John Bigler over 13 years ago

This is what database.yml says :


cat database.yml
# MySQL (default setup).

production:
  adapter: sqlite3
  database: redmine

development:
  adapter: sqlite3
  database: redmine_development

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  adapter: mysql
  database: redmine_test
  host: localhost
  username: root
  password:
  encoding: utf8

test_pgsql:
  adapter: postgresql
  database: redmine_test
  host: localhost
  username: postgres
  password: "postgres" 

test_sqlite3:
  adapter: sqlite3
  database: db/test.db

But where is the database located ?!?

RE: Upgrade issue - Restart application server - Added by John Bigler over 13 years ago

OK, I finally found it, it was at the root of the app, a file called redmine.

So, with some perseverance I figured it out ;-)

    (1-3/3)