Project

General

Profile

Users can't acces My Account

Added by Jens Thorsten SP over 8 years ago

Hello,

we're using Redmine for bugtracking in our company with a LDAP/AD synchronisation.
The users are automatically (group based) assigned to projects.

Though I'm missing Trac like workflow functions, i.e. the automatic change of ticket owner and status via "Test failed", "Test passed", "Solved" etc. in general everything works fine - but there is one annoying problem:
The users can't change the settings of their own accounts if he's not a n admin. The link "My account" (<HOST>/my/account) is shown but an error is thrown:

Error 404

Page not found

The page you were trying to access doesn't exist or has been removed.

We didn't delete any files within Redmine and though we tried to give additional rights to the user we can't give admin permission to anybody in the AD.

The log shows

Started GET "/my/account" for 129.0.2.15 at 2016-05-12 12:42:40 +0200
Processing by MyController#account as HTML
  Current user: treffot (id=142)
  Rendered plugins/redmine_highlightjs/app/views/settings/_code_theme_form.html.erb (2.7ms)
  Rendered my/account.html.erb within layouts/base (11.2ms)
Completed 500 Internal Server Error in 17ms (ActiveRecord: 2.0ms)

ActiveRecord::RecordNotFound (Couldn't find all CodeThemeUserSettings with 'id': (first, {:conditions=>["user_id = ?", 142]}) (found 0 results, but was looking for 2)):
  lib/redmine/hook.rb:119:in `block (2 levels) in render_on'
  lib/redmine/hook.rb:117:in `map'
  lib/redmine/hook.rb:117:in `block in render_on'
  lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
  lib/redmine/hook.rb:61:in `each'
  lib/redmine/hook.rb:61:in `block in call_hook'
  lib/redmine/hook.rb:58:in `tap'
  lib/redmine/hook.rb:58:in `call_hook'
  lib/redmine/hook.rb:167:in `call_hook'
  app/views/my/account.html.erb:34:in `block in _app_views_my_account_html_erb___1717983286034139859_70085635415400'
  app/helpers/application_helper.rb:1027:in `labelled_form_for'
  app/views/my/account.html.erb:14:in `_app_views_my_account_html_erb___1717983286034139859_70085635415400'
  lib/redmine/sudo_mode.rb:63:in `sudo_mode'

but obviously the user exists because I can access the users profile by "Signed in as <USERNAME>", e.g. <HOST>/users/142.
Besides disabling the checkboxes On-the-fly-user creation or Create user in the LDAP settings didn't change anything.

Configuration information:
Environment:
Redmine version 3.1.1.stable.14622
Ruby version 2.2.1-p85 (2015-02-26) [x86_64-linux]
Rails version 4.2.4
Environment production
Database adapter PostgreSQL
SCM:
Subversion 1.6.11
Git 1.7.1
Filesystem
Redmine plugins:
accept 0.0.1
clipboard_image_paste 1.10
redmine_highlightjs 1.0.2
redmine_ldap_sync 2.0.7.devel.gba84cac44e-dirty

Can anybody give advice?
Thanks in advance,

JT


Replies (1)

RE: Users can't acces My Account - Added by Olivier Houdas over 8 years ago

The log says that something related to your redmine_highlightjs plugin can't be found in the database.

If you remove this plugin, there are good chances that your problem will be solved.

Alternatively, make sure you installed the plugins properly, and in particular, that you applied plugins database structure changes with the command

rake redmine:plugins:migrate RAILS_ENV=production

Regards

    (1-1/1)