BUG: Cannot browse files

Łukasz Michalski lm at zork.pl
Sat Aug 22 20:39:08 UTC 2020


Hi,

I have a problem with a single repository. When I try to use "Files" tab 
I got 500 Internal Server Error (traceback below).
I have 20 repositories and the problem is only with one of them. Looks 
like python3 problem.

Kallithea 0.6.1, python3.7, a year-old Arch Linux. Please let me know if 
I can do anything more to help solving this issue.

Regards,
Łukasz

Traceback:
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/tg/controllers/dispatcher.py", 
line 107, in _perform_call
Aug 22 22:29:49 universe gearbox[22393]:     r = self._call(action, 
params, remainder=remainder, context=context)
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/tg/controllers/decoratedcontroller.py", 
line 129, in _call
Aug 22 22:29:49 universe gearbox[22393]:     output = 
controller_caller(context_config, bound_controller_callable, remainder, 
params)
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/tg/controllers/decoration.py", 
line 21, in _decorated_controller_caller
Aug 22 22:29:49 universe gearbox[22393]:     return 
application_controller_caller(tg_config, controller, remainder, params)
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/tg/configurator/components/dispatch.py", 
line 114, in _call_controller
Aug 22 22:29:49 universe gearbox[22393]:     return 
controller(*remainder, **params)
Aug 22 22:29:49 universe gearbox[22393]:   File "<decorator-gen-73>", 
line 2, in index
Aug 22 22:29:49 universe gearbox[22393]:
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/kallithea/lib/auth.py", 
line 614, in __wrapper
Aug 22 22:29:49 universe gearbox[22393]:     return func(*fargs, 
**fkwargs)
Aug 22 22:29:49 universe gearbox[22393]:   File "<decorator-gen-72>", 
line 2, in index
Aug 22 22:29:49 universe gearbox[22393]:
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/kallithea/lib/auth.py", 
line 657, in __wrapper
Aug 22 22:29:49 universe gearbox[22393]:     return func(*fargs, 
**fkwargs)
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/kallithea/controllers/files.py", 
line 193, in index
Aug 22 22:29:49 universe gearbox[22393]:     return 
render('files/files.html')
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/kallithea/lib/base.py", 
line 63, in render
Aug 22 22:29:49 universe gearbox[22393]:     return 
render_template({'url': url}, 'mako', template_path)
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/tg/render.py", line 
208, in render
Aug 22 22:29:49 universe gearbox[22393]:     kwargs['result'] = 
render_function(template_name, tg_vars, **kwargs)
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/tg/renderers/mako.py", 
line 134, in __call__
Aug 22 22:29:49 universe gearbox[22393]:     cache_type=cache_type, 
cache_expire=cache_expire)
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/tg/render.py", line 
274, in cached_template
Aug 22 22:29:49 universe gearbox[22393]:     return render_func()
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/tg/renderers/mako.py", 
line 131, in render_template
Aug 22 22:29:49 universe gearbox[22393]:     return 
Markup(template.render_unicode(**template_vars))
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/mako/template.py", line 
482, in render_unicode
Aug 22 22:29:49 universe gearbox[22393]:     self, self.callable_, args, 
data, as_unicode=True
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/mako/runtime.py", line 
883, in _render
Aug 22 22:29:49 universe gearbox[22393]:     
**_kwargs_for_callable(callable_, data)
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/mako/runtime.py", line 
920, in _render_context
Aug 22 22:29:49 universe gearbox[22393]:     _exec_template(inherit, 
lclcontext, args=args, kwargs=kwargs)
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/mako/runtime.py", line 
947, in _exec_template
Aug 22 22:29:49 universe gearbox[22393]:     callable_(context, *args, 
**kwargs)
Aug 22 22:29:49 universe gearbox[22393]:   File "_base_root_html", line 
211, in render_body
Aug 22 22:29:49 universe gearbox[22393]:
Aug 22 22:29:49 universe gearbox[22393]:   File "_base_base_html", line 
42, in render_body
Aug 22 22:29:49 universe gearbox[22393]:
Aug 22 22:29:49 universe gearbox[22393]:   File "files_files_html", line 
130, in render_main
Aug 22 22:29:49 universe gearbox[22393]:
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/mako/runtime.py", line 
795, in _include_file
Aug 22 22:29:49 universe gearbox[22393]:     callable_(ctx, **kwargs)
Aug 22 22:29:49 universe gearbox[22393]:   File 
"files_files_ypjax_html", line 44, in render_body
Aug 22 22:29:49 universe gearbox[22393]:
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/mako/runtime.py", line 
795, in _include_file
Aug 22 22:29:49 universe gearbox[22393]:     callable_(ctx, **kwargs)
Aug 22 22:29:49 universe gearbox[22393]:   File 
"files_files_browser_html", line 77, in render_body
Aug 22 22:29:49 universe gearbox[22393]:
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/kallithea/lib/vcs/nodes.py", 
line 502, in __iter__
Aug 22 22:29:49 universe gearbox[22393]:     for node in self.nodes:
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/kallithea/lib/vcs/utils/lazy.py", 
line 41, in __get__
Aug 22 22:29:49 universe gearbox[22393]:     value = self._func(obj)
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/kallithea/lib/vcs/nodes.py", 
line 487, in nodes
Aug 22 22:29:49 universe gearbox[22393]:     nodes = 
self.changeset.get_nodes(self.path)
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/kallithea/lib/vcs/backends/hg/changeset.py", 
line 333, in get_nodes
Aug 22 22:29:49 universe gearbox[22393]:     alias=als))
Aug 22 22:29:49 universe gearbox[22393]:   File 
"/srv/kallithea/venv/lib/python3.7/site-packages/kallithea/lib/vcs/nodes.py", 
line 587, in __init__
Aug 22 22:29:49 universe gearbox[22393]:     self.path = 
name.rstrip('/')
Aug 22 22:29:49 universe gearbox[22393]: TypeError: a bytes-like object 
is required, not 'str'


More information about the kallithea-general mailing list