When trying to connect with his admin account the user receive the following error message :
00 Internal Server Error | The server has either erred or is incapable of performing the requested operation.

History

This is a known problem in RhodeCode pre 4.13 releases. It's an artifact of single user having more than 1 personal repository group. There was a broken mechanism in older releases that when a user was removed his personal repository groups were connected to first super admin, because of ownership transfer. Because the error was to retain personal flag this could cause that one user had more than 1 personal repository group.

This can be easily fixed by Turning off the personal flag on affected users repository groups. We recommend using ishell interface for this:

example:

rccontrol ishell enterprise-1
# show which groups are personal for an user
In [1]:RepoGroup.query().filter(RepoGroup.user==User.get_by_username('some_username')).filter(RepoGroup.personal==True).all()
# Disconnect personal flag for choosen group, 3 is repo group id visible from the first query
In [2]: repo_group = RepoGroup.get(3)
In [6]: repo_group.personal= False
In [7]: Session().add(repo_group);Session().commit()

the ID1, ID2 etc should be id of the groups you think was wrongly set. Ideally, a single repository group should be left for this user.

Means if the in [1] command gave you 5 results, you should disconnect 4 groups.
Probably you could figure out which was should be left from it's name (the one that should stay most probably will contain user username).