Project

General

Profile

fetch_changesets tries to connect the old IP

Added by kami kami over 13 years ago

question

Where is the IP address setting for fetch_changesets?

Problem

fetch_changesets was working with no problem before I changed the server's IP address from 192.168.0.4 to 192.168.1.26.

Repository.fetch_changesets fails

After I changed the server's IP address, fetch_changesets gets time out to connect to 192.168.0.4, which is the old IP address:

/opt/redmine-1.1.2-1/apps/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
/opt/redmine-1.1.2-1/apps/redmine/vendor/rails/railties/lib/commands/runner.rb:48: /opt/redmine-1.1.2-1/ruby/lib/ruby/site_ruby/1.8/svn/util.rb:86:in `svn_client_info2': subversion/libsvn_ra_svn/client.c:155: 110: Can't connect to host '192.168.0.4': 接続がタイムアウトしました (Svn::Error::SvnError)
        from /opt/redmine-1.1.2-1/ruby/lib/ruby/site_ruby/1.8/svn/util.rb:86:in `info2'
        from /opt/redmine-1.1.2-1/ruby/lib/ruby/site_ruby/1.8/svn/client.rb:446:in `info'
        from /opt/redmine-1.1.2-1/apps/redmine/vendor/plugins/redmine-libsvn/lib/redmine/scm/adapters/subversion_libsvn_adapter.rb:88:in `info'
        from /opt/redmine-1.1.2-1/apps/redmine/app/models/repository/subversion.rb:44:in `fetch_changesets'
        from /opt/redmine-1.1.2-1/apps/redmine/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:217:in `send'
        from /opt/redmine-1.1.2-1/apps/redmine/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:217:in `method_missing'
        from /opt/redmine-1.1.2-1/apps/redmine/app/models/repository.rb:176:in `fetch_changesets'
        from /opt/redmine-1.1.2-1/apps/redmine/app/models/repository.rb:174:in `each'
        from /opt/redmine-1.1.2-1/apps/redmine/app/models/repository.rb:174:in `fetch_changesets'
        from (eval):1
        from /opt/redmine-1.1.2-1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `eval'
        from /opt/redmine-1.1.2-1/apps/redmine/vendor/rails/railties/lib/commands/runner.rb:48
        from /opt/redmine-1.1.2-1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /opt/redmine-1.1.2-1/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /opt/redmine-1.1.2-1/apps/redmine/script/runner:3

failes even by API

Accessing to "/sys/fetch_changesets?key=" results same as above like below:

Processing SysController#fetch_changesets (for 192.168.0.65 at 2011-04-25 14:49:51) [GET]
  Parameters: {"key"=>"********"}

Svn::Error::SvnError (subversion/libsvn_ra_svn/client.c:155: 110: Can't connect to host '192.168.0.4': Connection timed out):
  /opt/redmine-1.1.2-1/ruby/lib/ruby/site_ruby/1.8/svn/util.rb:86:in `svn_client_info2'
  /opt/redmine-1.1.2-1/ruby/lib/ruby/site_ruby/1.8/svn/util.rb:86:in `info2'
  /opt/redmine-1.1.2-1/ruby/lib/ruby/site_ruby/1.8/svn/client.rb:446:in `info'
  app/models/repository/subversion.rb:44:in `fetch_changesets'
  app/controllers/sys_controller.rb:50:in `fetch_changesets'
  app/controllers/sys_controller.rb:48:in `each'
  app/controllers/sys_controller.rb:48:in `fetch_changesets'

Rendering /opt/redmine-1.1.2-1/apps/redmine/public/500.html (500 Internal Server Error)

other functions are working

There's no problem with accessing from browsers(except above).

environment

  • CentOS 5.6
  • BitNami Redmine Stack 1.1.2-1
    • Redmine 1.1.2
    • svn 1.6.15(running on the same server with Redmine)

Replies (2)

RE: fetch_changesets tries to connect the old IP - Added by kami kami over 13 years ago

When I access to Repository tab, there's no problem and revisions are included to tickets successfully.

RE: fetch_changesets tries to connect the old IP - Added by kami kami over 13 years ago

Some of the projects' repository setting have refered the old IP address.
Once I corrected them, everything got well.

    (1-2/2)