Gitlab CE to 13.9.2 | profiles/active_sessions shows Error 500

Hi folks

I’ve recently updated a gitlab instance to version 13.9.2 and one user now gets an error 500 when he tries to open $url/-/profile/active_sessions however i tested it with two users and do not get that error.

The Log file at /var/log/gitlab/gitlab-rails/production.log says:

Completed 500 Internal Server Error in 77ms (ActiveRecord: 2.3ms | Elasticsearch: 0.0ms | Allocations: 26544)
ActionView::Template::Error (No route matches {:action=>"destroy", :controller=>"profiles/active_sessions", :id=>nil}, possible unmatched constraints: [:id]):
    28:   - unless is_current_session
    29:     .float-right
    30:       = link_to(revoke_session_path(active_session),
    31:                 { data: { confirm: _('Are you sure? The device will be signed out of GitLab and all remember me tokens revoked.') },
    32:                   method: :delete,
    33:                   class: "gl-button btn btn-danger gl-ml-3" }) do

Does anyone know how to fix it or what is causing this?


We’re experimenting the same issue after upgrading Gitlab from 12.3.5 to 13.10.3.
This seems to happen only for existing account. New accounts can access without error to the page.

I think clearing the sessions for all the users could save the problem, but I didn’t figure out yet how to do this. Someone has an idea ?

I resoved this by removing the redis dump.rdb file, and then restart redis.r