Content
LDAP Authentication after server migration
Added by Gerhard Schneider about 9 years ago
I had a working installation on server A, and I had to perform a new installation on server B. I migrated the A-data according to the instructions under “Backup”, and the B installation now works in most parts. There are users assigned to the LDAP authentication type.
However, there is one problem with the LDAP (AD) connection. While the original installation worked fine, the exactly same settings do not work on the new server. What did I do?
- I have an authentication entry of type LDAP with the settings from A. It shows “0” users.
- When clicking on “Test” for that entry, I get an error saying:
“Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /admin/ldap_auth_sources/3/test_connection.
Reason: Error reading from remote server”
The logs say this:
==> /var/log/openproject-ce/production.log <== Started GET "/admin/ldap_auth_sources/3/test_connection" for 127.0.0.1 at 2015-11-01 11:47:38 +0100 Processing by LdapAuthSourcesController#test_connection as HTML Parameters: {"id"=>"3"} OpenProject User: OpenProject Admin (admin ID: 1 <admin@innoreq.com>) ==> /var/log/openproject-ce/web-1.log <== E, [2015-11-01T11:47:54.203663 #4443] ERROR -- : worker=0 PID:4818 timeout (16s > 15s), killing E, [2015-11-01T11:47:54.220255 #4443] ERROR -- : reaped #<Process::Status: pid 4818 SIGKILL (signal 9)> worker=0 I, [2015-11-01T11:47:54.220641 #4443] INFO -- : worker=0 spawning... I, [2015-11-01T11:47:54.222531 #4823] INFO -- : worker=0 spawned pid=4823 I, [2015-11-01T11:47:54.222844 #4823] INFO -- : Refreshing Gem list require 'rails/all'... 0.570s Bundler.require... 2.200s Application.initialize!... DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from block in <top (required)> at /opt/openproject-ce/config/environment.rb:35) DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from block in <top (required)> at /opt/openproject-ce/config/environment.rb:35) ==> /var/log/openproject-ce/production.log <== Connecting to database specified by DATABASE_URL ==> /var/log/openproject-ce/web-1.log <== [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message. ==> /var/log/openproject-ce/production.log <== Creating scope :open. Overwriting existing method WorkPackage.open. Creating scope :like. Overwriting existing method Principal.like. Creating scope :open. Overwriting existing method Version.open. Creating scope :public. Overwriting existing method Project.public. Creating scope :active. Overwriting existing method IssuePriority.active. ==> /var/log/openproject-ce/web-1.log <== unicorn worker[0] --config-file config/unicorn.rb --host 127.0.0.1 --port 6000 --env production: No such file or directory - git ==> /var/log/openproject-ce/production.log <== Creating scope :givable. Overwriting existing method Role.givable. Creating scope :visible. Overwriting existing method TimeEntry.visible. ==> /var/log/openproject-ce/web-1.log <== /opt/openproject-ce/vendor/bundle/ruby/2.1.0/gems/svg-graph-1.0.5/lib/SVG/Graph/Graph.rb:3: warning: class variable access from toplevel 6.900s I, [2015-11-01T11:48:04.048024 #4823] INFO -- : worker=0 ready
When clicking on an LDAP-assigned user, an internal error appears:
Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your OpenProject administrator for assistance. If you are the OpenProject administrator, check your log files for details about the error.
Does anybody have an idea what’s happening here?
- Hardy
Replies (1)
Not entirely certain, but it looks like OpenProject didn’t get installed correctly. The “DEPRECATION WARNING” bit makes me thing that your bundle isn’t working right…eg, you’re using a newer version of Ruby (v3) in an environment intended for v2.x, and the application doesn’t like it.
Can you link to the migration instructions you’re working from? Are you using the package installer, or manually installing OpenProject?