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]):
27:
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 ?
Hi,
I had the same issue, I tried to delete dump.rdb according to the method of @xworks , but the issue is not solved, Is there any other way to solve this issue?
i am experimenting the same issue after upgrading Gitlab from 12.10.10 to 15.4.2. There’s my solution:
In 15.4.2, anything else is work except active_sessions,I create a gitlab backup and backup those config files in /etc/gitlab/, then remove gitlab-ce, then install gitlab-ce 15.4.2, then restore the backup, by this way the redis has been clean up. then it works
# The command is not necessarily accurate, but only represents the process and ideas
sudo gitlab-backup create
mv /var/opt/gitlab/backups/your-backup.tar /home/backup/
yum remove gitlab-ce
rm -rf /var/opt/gitlab
rm -rf /var/log/gitlab
rm -rf /opt/gitlab
mv /etc/gitlab /home/backup/
yum install gitlab-15.4.2
sudo gitlab-ctl reconfigure
sudo gitlab-backup restore BACKUP=your-backup-url