Error 500 entering repo

Hello,

I am using Rhodecode Community, with a principal repo to be forked, but after some time, it shows me error 500, and force me to restart the services community-1 and vcsserver-1.

Error on the log is below:

2018-07-18 11:07:26.718 INFO  [rhodecode.lib.middleware.request_wrapper] IP: 192.168.3.6 Request to /AEL/ael_sw_tests/pull-request/17/comment time: 0.134s

[18/Jul/2018:11:07:26 -0300] GNCRN <15259> 127.0.0.1 rqt:0.137138 500 2730 "POST:/AEL/ael_sw_tests/pull-request/17/comment " usr:- “http://192.168.3.21/” “Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.162 Safari/537.36”
2018-07-18 11:07:29.603 INFO [rhodecode.lib.auth] user <AuthUser(‘id:4[maiquelb] ip:192.168.3.6 auth:True’)> authenticating with:RHODECODE_AUTH IS authenticated on func RepoPullRequestsView:pull_request_comment_create
2018-07-18 11:07:29.680 ERROR [rhodecode.config.middleware] error occurred handling this request for path: /AEL/ael_sw_tests/pull-request/17/comment
Traceback (most recent call last):
File “/opt/rhodecode/store/b4rhsh7cps05bd8ag41p5s4xayihxn9s-python2.7-pyramid-1.9.1/lib/python2.7/site-packages/pyramid/tweens.py”, line 39, in excview_tween
response = handler(request)
File “/opt/rhodecode/store/b4rhsh7cps05bd8ag41p5s4xayihxn9s-python2.7-pyramid-1.9.1/lib/python2.7/site-packages/pyramid/router.py”, line 156, in handle_request
view_name
File “/opt/rhodecode/store/b4rhsh7cps05bd8ag41p5s4xayihxn9s-python2.7-pyramid-1.9.1/lib/python2.7/site-packages/pyramid/view.py”, line 642, in _call_view
response = view_callable(context, request)
File “/opt/rhodecode/store/b4rhsh7cps05bd8ag41p5s4xayihxn9s-python2.7-pyramid-1.9.1/lib/python2.7/site-packages/pyramid/viewderivers.py”, line 390, in attr_view
return view(context, request)
File “/opt/rhodecode/store/b4rhsh7cps05bd8ag41p5s4xayihxn9s-python2.7-pyramid-1.9.1/lib/python2.7/site-packages/pyramid/viewderivers.py”, line 368, in predicate_wrapper
return view(context, request)
File “/opt/rhodecode/store/b4rhsh7cps05bd8ag41p5s4xayihxn9s-python2.7-pyramid-1.9.1/lib/python2.7/site-packages/pyramid/viewderivers.py”, line 439, in rendered_view
result = view(context, request)
File “/opt/rhodecode/store/b4rhsh7cps05bd8ag41p5s4xayihxn9s-python2.7-pyramid-1.9.1/lib/python2.7/site-packages/pyramid/viewderivers.py”, line 138, in _class_view
response = getattr(inst, attr)()
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/auth.py”, line 2188, in local_wrapper
return wrapper(func, *args, **kwds)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/auth.py”, line 1496, in __wrapper
return func(*fargs, **fkwargs)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/auth.py”, line 2188, in local_wrapper
return wrapper(func, *args, **kwds)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/auth.py”, line 1541, in __wrapper
return func(*fargs, **fkwargs)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/auth.py”, line 2188, in local_wrapper
return wrapper(func, *args, **kwds)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/auth.py”, line 1569, in __wrapper
return func(*fargs, **fkwargs)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/auth.py”, line 2188, in local_wrapper
return wrapper(func, *args, **kwds)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/auth.py”, line 1398, in __wrapper
return func(*fargs, **fkwargs)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/apps/repository/views/repo_pull_requests.py”, line 1093, in pull_request_comment_create
c = self.load_default_context()
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/apps/repository/views/repo_pull_requests.py”, line 60, in load_default_context
c = self._get_local_tmpl_context(include_app_defaults=True)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/apps/_base/init.py”, line 230, in _get_local_tmpl_context
self.rhodecode_vcs_repo = self.db_repo.scm_instance()
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/model/db.py”, line 2257, in scm_instance
return self._get_instance_cached()
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/model/db.py”, line 2270, in _get_instance_cached
repo = context.compute()
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/caches.py”, line 158, in compute
return self.context.compute_func(self.context.cache_key)
File “/opt/rhodecode/store/3qc8c1gds0jzv4nhwyljzil08rb839nm-python2.7-Beaker-1.9.0/lib/python2.7/site-packages/beaker/cache.py”, line 599, in cached
return cache[0].get_value(cache_key, createfunc=go)
File “/opt/rhodecode/store/3qc8c1gds0jzv4nhwyljzil08rb839nm-python2.7-Beaker-1.9.0/lib/python2.7/site-packages/beaker/cache.py”, line 322, in get
return self._get_value(key, **kw).get_value()
File “/opt/rhodecode/store/3qc8c1gds0jzv4nhwyljzil08rb839nm-python2.7-Beaker-1.9.0/lib/python2.7/site-packages/beaker/container.py”, line 378, in get_value
v = self.createfunc()
File “/opt/rhodecode/store/3qc8c1gds0jzv4nhwyljzil08rb839nm-python2.7-Beaker-1.9.0/lib/python2.7/site-packages/beaker/cache.py”, line 597, in go
return func(*args, **kwargs)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/model/db.py”, line 2263, in _get_repo
return self._get_instance()
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/model/db.py”, line 2284, in _get_instance
_vcs_alias=self.repo_type)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/vcs/backends/init.py”, line 68, in get_vcs_instance
return backend(repo_path=repo_path, *args, **kwargs)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/vcs/backends/git/repository.py”, line 69, in init
self._init_repo(create, src_url, update_after_clone, bare)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/vcs/backends/git/repository.py”, line 166, in _init_repo
self._remote.assert_correct_path()
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/vcs/client_http.py”, line 125, in f
return self._call(name, *args, **kwargs)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/vcs/client_http.py”, line 144, in _call_with_logging
return RemoteRepo._call(self, name, *args, **kwargs)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/vcs/exceptions.py”, line 179, in wrapper
return func(*args, **kwargs)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/vcs/client_http.py”, line 139, in _call
return _remote_call(self.url, payload, EXCEPTIONS_MAP, self._session)
File “/opt/rhodecode/store/7dsrzg5pb1ynp5f5hqcyxyp7hn13bb9y-python2.7-rhodecode-enterprise-ce-4.10.4/lib/python2.7/site-packages/rhodecode/lib/vcs/client_http.py”, line 227, in _remote_call
raise exc
Exception
±-- This exception occured remotely on VCSServer - Remote traceback:

Traceback (most recent call last):
File “/opt/rhodecode/store/7jp0n29fpwmpj8ywbzx9f3k401la3glf-python2.7-rhodecode-vcsserver-4.10.4/lib/python2.7/site-packages/vcsserver/http_main.py”, line 244, in vcs_view
resp = getattr(remote, method)(*args, **kwargs)
File “/opt/rhodecode/store/7jp0n29fpwmpj8ywbzx9f3k401la3glf-python2.7-rhodecode-vcsserver-4.10.4/lib/python2.7/site-packages/vcsserver/git.py”, line 55, in wrapper
File “/opt/rhodecode/store/7jp0n29fpwmpj8ywbzx9f3k401la3glf-python2.7-rhodecode-vcsserver-4.10.4/lib/python2.7/site-packages/vcsserver/git.py”, line 128, in assert_correct_path
File “/opt/rhodecode/store/7jp0n29fpwmpj8ywbzx9f3k401la3glf-python2.7-rhodecode-vcsserver-4.10.4/lib/python2.7/site-packages/vcsserver/base.py”, line 54, in repo
File “/opt/rhodecode/store/7jp0n29fpwmpj8ywbzx9f3k401la3glf-python2.7-rhodecode-vcsserver-4.10.4/lib/python2.7/site-packages/vcsserver/base.py”, line 65, in _repo
File “/opt/rhodecode/store/3qc8c1gds0jzv4nhwyljzil08rb839nm-python2.7-Beaker-1.9.0/lib/python2.7/site-packages/beaker/cache.py”, line 322, in get
File “/opt/rhodecode/store/3qc8c1gds0jzv4nhwyljzil08rb839nm-python2.7-Beaker-1.9.0/lib/python2.7/site-packages/beaker/container.py”, line 378, in get_value
File “/opt/rhodecode/store/7jp0n29fpwmpj8ywbzx9f3k401la3glf-python2.7-rhodecode-vcsserver-4.10.4/lib/python2.7/site-packages/vcsserver/base.py”, line 52, in create_new_repo
File “/opt/rhodecode/store/7jp0n29fpwmpj8ywbzx9f3k401la3glf-python2.7-rhodecode-vcsserver-4.10.4/lib/python2.7/site-packages/vcsserver/git.py”, line 92, in _create_repo
File “/opt/rhodecode/store/njvh3kvqba0ivdji5z7h1gs0qay04kcx-python2.7-dulwich-0.13.0/lib/python2.7/site-packages/dulwich/repo.py”, line 685, in init
File “/opt/rhodecode/store/njvh3kvqba0ivdji5z7h1gs0qay04kcx-python2.7-dulwich-0.13.0/lib/python2.7/site-packages/dulwich/repo.py”, line 746, in get_named_file
IOError: [Errno 24] Too many open files: u’/home/rcdev/repositories_store/AEL/ael_sw_tests/info/grafts’