500 Internal Server Error

ERROR: (WARNING: ONLY WITH USER “ADMIN”)
The rest of users with role user, admin or superadmin are working perfectly.
When I try to login with user admin I obtain “500 Internal server error”
and an exception id : 140361676627152
I push on it, all is ok excepts : exception tracker where we can see next lines:
Traceback (most recent call last):
File “/opt/rhodecode/store/p3adn3yl7ni8wg3d1556z2wrqw1mfbxb-python2.7-pyramid-1.10.4/lib/python2.7/site-packages/pyramid/tweens.py”, line 41, in excview_tween
response = handler(request)
File “/opt/rhodecode/store/p3adn3yl7ni8wg3d1556z2wrqw1mfbxb-python2.7-pyramid-1.10.4/lib/python2.7/site-packages/pyramid/router.py”, line 148, in handle_request
registry, request, context, context_iface, view_name
File “/opt/rhodecode/store/p3adn3yl7ni8wg3d1556z2wrqw1mfbxb-python2.7-pyramid-1.10.4/lib/python2.7/site-packages/pyramid/view.py”, line 667, in _call_view
response = view_callable(context, request)
File “/opt/rhodecode/store/p3adn3yl7ni8wg3d1556z2wrqw1mfbxb-python2.7-pyramid-1.10.4/lib/python2.7/site-packages/pyramid/config/views.py”, line 188, in attr_view
return view(context, request)
File “/opt/rhodecode/store/p3adn3yl7ni8wg3d1556z2wrqw1mfbxb-python2.7-pyramid-1.10.4/lib/python2.7/site-packages/pyramid/config/views.py”, line 214, in predicate_wrapper
return view(context, request)
File “/opt/rhodecode/store/p3adn3yl7ni8wg3d1556z2wrqw1mfbxb-python2.7-pyramid-1.10.4/lib/python2.7/site-packages/pyramid/viewderivers.py”, line 436, in rendered_view
result = view(context, request)
File “/opt/rhodecode/store/p3adn3yl7ni8wg3d1556z2wrqw1mfbxb-python2.7-pyramid-1.10.4/lib/python2.7/site-packages/pyramid/viewderivers.py”, line 132, in _class_view
response = getattr(inst, attr)()
File “/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/auth.py”, line 2348, in local_wrapper
return wrapper(func, *args, **kwds)
File “/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/auth.py”, line 1665, in __wrapper
return func(fargs, **fkwargs)
File “/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/apps/home/views.py”, line 695, in main_page
repo_data, repo_group_data = self._get_groups_and_repos()
File “/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/apps/home/views.py”, line 676, in _get_groups_and_repos
repo_group_list=repo_group_list_acl, admin=False)
File “/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/model/repo_group.py”, line 741, in get_repo_groups_as_dict
for group in repo_group_list:
File “/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/model/scm.py”, line 142, in iter
if not checker(name, self.class.name, **self.extra_kwargs):
File “/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/auth.py”, line 2081, in call
return super(HasRepoGroupPermissionAny, self).call(check_location, user)
File “/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/auth.py”, line 1986, in call
if self.check_permissions(user):
File “/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/auth.py”, line 2084, in check_permissions
perms = user.permissions
File “/opt/rhodecode/store/rq6n4kdw9z8d44km9njnr5rxxyh01p4h-python2.7-zope.cachedescriptors-4.3.1/lib/python2.7/site-packages/zope/cachedescriptors/property.py”, line 106, in get
value = func(inst)
File “/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/auth.py”, line 1069, in permissions
return self.get_perms(user=self, cache=None)
File “/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/auth.py”, line 1230, in get_perms
calculate_super_admin)
File “/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/rc_cache/utils.py”, line 79, in decorate
return self.get_or_create(key, creator, timeout, should_cache_fn)
File “/opt/rhodecode/store/f20ysi76vr526ibh0sqv6cv47kk6cxa3-python2.7-dogpile.cache-0.7.1/lib/python2.7/site-packages/dogpile/cache/region.py”, line 879, in get_or_create
async_creator) as value:
File “/opt/rhodecode/store/f20ysi76vr526ibh0sqv6cv47kk6cxa3-python2.7-dogpile.cache-0.7.1/lib/python2.7/site-packages/dogpile/lock.py”, line 186, in enter
return self._enter()
File “/opt/rhodecode/store/f20ysi76vr526ibh0sqv6cv47kk6cxa3-python2.7-dogpile.cache-0.7.1/lib/python2.7/site-packages/dogpile/lock.py”, line 86, in _enter
value = value_fn()
File “/opt/rhodecode/store/f20ysi76vr526ibh0sqv6cv47kk6cxa3-python2.7-dogpile.cache-0.7.1/lib/python2.7/site-packages/dogpile/cache/region.py”, line 826, in get_value
value = self.backend.get(key)
File “/opt/rhodecode/store/wrn4w4gzarahd4k877nxa8cz1a5ifz91-python2.7-rhodecode-enterprise-ce-4.17.3/lib/python2.7/site-packages/rhodecode/lib/rc_cache/backends.py”, line 150, in get
value = dbm.get(key, NO_VALUE)
File “/opt/rhodecode/store/6rjyfgq8yrnzwsc4x9b6mlwi6h9qhay6-python-2.7.15/lib/python2.7/_abcoll.py”, line 382, in get
return self[key]
File “/opt/rhodecode/store/6rjyfgq8yrnzwsc4x9b6mlwi6h9qhay6-python-2.7.15/lib/python2.7/bsddb/init.py”, line 270, in getitem
return _DeadlockWrap(lambda: self.db[key]) # self.db[key]
File “/opt/rhodecode/store/6rjyfgq8yrnzwsc4x9b6mlwi6h9qhay6-python-2.7.15/lib/python2.7/bsddb/dbutils.py”, line 68, in DeadlockWrap
return function(
_args, **_kwargs)
File “/opt/rhodecode/store/6rjyfgq8yrnzwsc4x9b6mlwi6h9qhay6-python-2.7.15/lib/python2.7/bsddb/init.py”, line 270, in
return _DeadlockWrap(lambda: self.db[key]) # self.db[key]
DBPageNotFoundError: (-30986, ‘BDB0075 DB_PAGE_NOTFOUND: Requested page not found’)

I’m having the exact same issue with my instance.

Go to data folder.
cd xxx/xxx/community-1/data
I was told this:
“I would remove everything except the index folder which contains full text search
RhodeCode Support Team”
This worked for me.
Bye