Project

General

Profile

Redmine 3.2.1 Problem

Added by Krishna Paudel about 8 years ago

Hello Guys,

Recently I have installed redmine 3.2.1 in my Ubuntu 14.04 system. Installation was successful, and now I want to move all files and database from old redmine 3.0.1 installed in my old server. For achieve this, first of all, I copied all contents in "files" directory. And I restored the backed up database from old server. I also copied "config/configuration.yml" file too. I guess that's all which I need to do for restoration. But that does not work for me. When I login with my user account(stored in old server), I get following error message:

Internal error
An error occurred on the page you were trying to access.
If you continue to experience problems please contact your Redmine administrator for assistance.
If you are the Redmine administrator, check your log files for details about the error.

Then I checked the log file in "log/production.log". The log file says:

Processing by AccountController#login as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "back_url"=>"https://xxx.xxx.xxx.xxx/redmine/", "username"=>"xxxxxxx", "password"=>"[FILTERED]", "login"=>"Login »"}
Current user: anonymous
Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.6ms)

Net::LDAP::Error (getaddrinfo: Name or service not known):
app/models/auth_source_ldap.rb:185:in `get_user_dn'
app/models/auth_source_ldap.rb:49:in `block in authenticate'
app/models/auth_source_ldap.rb:105:in `block in with_timeout'
app/models/auth_source_ldap.rb:104:in `with_timeout'
app/models/auth_source_ldap.rb:48:in `authenticate'
app/models/user.rb:307:in `check_password?'
app/models/user.rb:213:in `try_to_login'
app/controllers/account_controller.rb:194:in `password_authentication'
app/controllers/account_controller.rb:189:in `authenticate_user'
app/controllers/account_controller.rb:40:in `login'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

Thanks in advace!


Replies (1)

RE: Redmine 3.2.1 Problem - Added by Krishna Paudel about 8 years ago

Hello Guys,

I fixed this problem. Actually, the problem was the ldap server(defined in the table auth_sources) was not reachable from the new server. I modified the contents in the table, and everything working now :)

    (1-1/1)