Seahub problems

While Seafile itselfs running fine, I haven’t used the websurface for a while and now access to seahub throws this error:

2021-06-18 17:20:27,665 [ERROR] django.request:222 log_response Internal Server Error: /
Traceback (most recent call last):
File “/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py”, line 34, in inner
response = get_response(request)
File “/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py”, line 115, in _get_response
response = self.process_exception_by_middleware(e, request)
File “/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py”, line 113, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/usr/local/www/haiwen/seafile-server/seahub/seahub/auth/decorators.py”, line 27, in _wrapped_view
return view_func(request, *args, **kwargs)
File “/usr/local/www/haiwen/seafile-server/seahub/seahub/views/init.py”, line 1173, in react_fake_view
return render(request, “react_app.html”, {
File “/usr/local/lib/python3.8/site-packages/django/shortcuts.py”, line 36, in render
content = loader.render_to_string(template_name, context, request, using=using)
File “/usr/local/lib/python3.8/site-packages/django/template/loader.py”, line 62, in render_to_string
return template.render(context, request)
File “/usr/local/lib/python3.8/site-packages/django/template/backends/django.py”, line 61, in render
return self.template.render(context)
File “/usr/local/lib/python3.8/site-packages/django/template/base.py”, line 171, in render
return self._render(context)
File “/usr/local/lib/python3.8/site-packages/django/template/base.py”, line 163, in _render
return self.nodelist.render(context)
File “/usr/local/lib/python3.8/site-packages/django/template/base.py”, line 937, in render
bit = node.render_annotated(context)
File “/usr/local/lib/python3.8/site-packages/django/template/base.py”, line 904, in render_annotated
return self.render(context)
File “/usr/local/lib/python3.8/site-packages/django/template/loader_tags.py”, line 150, in render
return compiled_parent._render(context)
File “/usr/local/lib/python3.8/site-packages/django/template/base.py”, line 163, in _render
return self.nodelist.render(context)
File “/usr/local/lib/python3.8/site-packages/django/template/base.py”, line 937, in render
bit = node.render_annotated(context)
File “/usr/local/lib/python3.8/site-packages/django/template/base.py”, line 904, in render_annotated
return self.render(context)
File “/usr/local/lib/python3.8/site-packages/django/template/library.py”, line 192, in render
output = self.func(*resolved_args, **resolved_kwargs)
File “/usr/local/lib/python3.8/site-packages/webpack_loader/templatetags/webpack_loader.py”, line 12, in render_bundle
tags = utils.get_as_tags(bundle_name, extension=extension, config=config, attrs=attrs)
File “/usr/local/lib/python3.8/site-packages/webpack_loader/utils.py”, line 62, in get_as_tags
bundle = _get_bundle(bundle_name, extension, config)
File “/usr/local/lib/python3.8/site-packages/webpack_loader/utils.py”, line 40, in _get_bundle
bundle = get_loader(config).get_bundle(bundle_name)
File “/usr/local/lib/python3.8/site-packages/webpack_loader/loader.py”, line 90, in get_bundle
asset = assets[‘assets’][chunk]
KeyError: ‘assets’

Can anybody give me a hint where to start debuging this error.
Thanks

Can you say something about what version of the server you are running and what platform you are on?

Have you done an upgrade to the version you are running presently?

Seafile/Seahub version 8.0.5 running in it’s own FreeBSD 13.0 jail. Database and webserver running in other jails.
I switched to 8.0.5 shortly after the BSD release which was on 13.04.2021. It was working fine. No Seafile/Seahub updates since then, but some python packages. Because i use the websurface rarely i can not say which package causing the trouble.
Is there any chance getting seahub more chatty, the traceback says nothing to me.
Regards

I had the same issue today, also in a FreeBSD jail, using the FreeBSD Seafile packages.
It is caused by the Python Django Webpack Loader which has been upgraded to version 1.0.0, while the Javascript components of Seafile still using an older Webpack. See
GitHub - django-webpack/django-webpack-loader: Transparently use webpack with django .

I hacked it temporarily like this:
pkg remove -f py38-django-webpack-loader-1.0.0
pip install --force-reinstall django-webpack-loader==0.7.0

1 Like

Works like a charm. Thank you so much.

Could you please mark this topic as solved! Thanks!