Server 7.1.4 ARM Ubuntu 18.04 Specific User cannot login to seahub

Hi,
thanks for trying to help me.

I just upgrade seafile server from 7.0.5 to 7.1.4 and everything went smoothly. Unfortunately, I cannot login to seahub with a specific user. Other users work fine.

The particular users sees a “Webpage not available”-Error - or with “DEBUG = True” enabled, the following:

UnicodeDecodeError at /

‘ascii’ codec can’t decode byte 0xe3 in position 1: ordinal not in range(128)

Request Method: GET
Request URL: h ttp://127.0.0.1:8000/
Django Version: 1.11.29
Exception Type: UnicodeDecodeError
Exception Value: ‘ascii’ codec can’t decode byte 0xe3 in position 1: ordinal not in range(128)
Exception Location: /home/seafile/seafile-server-7.1.4/seahub/thirdpart/django/core/cache/backends/filebased.py in get, line 41
Python Executable: /usr/bin/python3
Python Version: 3.6.9
Python Path: [‘/home/seafile/seafile-server-7.1.4/seahub/thirdpart/bin’, ‘/home/seafile/seafile-server-7.1.4/seafile/lib/python3.6/site-packages’, ‘/home/seafile/seafile-server-7.1.4/seafile/lib64/python3.6/site-packages’, ‘/home/seafile/seafile-server-7.1.4/seahub’, ‘/home/seafile/seafile-server-7.1.4/seahub/thirdpart’, ‘/home/seafile/conf’, ‘/usr/lib/python36.zip’, ‘/usr/lib/python3.6’, ‘/usr/lib/python3.6/lib-dynload’, ‘/usr/local/lib/python3.6/dist-packages’, ‘/usr/lib/python3/dist-packages’, ‘/home/seafile/seafile-server-7.1.4/seahub/seahub/api2/endpoints/…/…/…/…/…/conf’, ‘/home/seafile/seafile-server-7.1.4/seahub/seahub/api2/endpoints/…/…/…/…/…/conf’]

seahub.log offers the following:

2020-05-23 21:38:19,569 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: / Traceback (most recent call last):
File “/home/seafile/seafile-server-7.1.4/seahub/thirdpart/django/core/handlers/exception.py”, line 41, in inner response = get_response(request)
File “/home/seafile/seafile-server-7.1.4/seahub/thirdpart/django/core/handlers/base.py”, line 249, in _legacy_get_res$ response = self._get_response(request)
File “/home/seafile/seafile-server-7.1.4/seahub/thirdpart/django/core/handlers/base.py”, line 187, in _get_response response = self.process_exception_by_middleware(e, request)
File “/home/seafile/seafile-server-7.1.4/seahub/thirdpart/django/core/handlers/base.py”, line 185, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/home/seafile/seafile-server-7.1.4/seahub/seahub/auth/decorators.py”, line 27, in _wrapped_view return view_func(request, *args, **kwargs)
File “/home/seafile/seafile-server-7.1.4/seahub/seahub/views/init.py”, line 1167, in react_fake_view ‘additional_about_dialog_links’: ADDITIONAL_ABOUT_DIALOG_LINKS
File “/home/seafile/seafile-server-7.1.4/seahub/thirdpart/django/shortcuts.py”, line 30, in render content = loader.render_to_string(template_name, context, request, using=using)
File “/home/seafile/seafile-server-7.1.4/seahub/thirdpart/django/template/loader.py”, line 68, in render_to_string return template.render(context, request)
File “/home/seafile/seafile-server-7.1.4/seahub/thirdpart/django/template/backends/django.py”, line 66, in render return self.template.render(context)
File “/home/seafile/seafile-server-7.1.4/seahub/thirdpart/django/template/base.py”, line 205, in render with context.bind_template(self):
File “/usr/lib/python3.6/contextlib.py”, line 81, in enter return next(self.gen)
File “/home/seafile/seafile-server-7.1.4/seahub/thirdpart/django/template/context.py”, line 263, in bind_template updates.update(processor(self.request))
File “/home/seafile/seafile-server-7.1.4/seahub/seahub/base/context_processors.py”, line 99, in base avatar_url, is_default, date_uploaded = api_avatar_url(username, 72)
File “/home/seafile/seafile-server-7.1.4/seahub/seahub/avatar/util.py”, line 42, in cached_func return cache.get(key) or cache_set(key, func(user, size))
File “/home/seafile/seafile-server-7.1.4/seahub/thirdpart/django/core/cache/backends/filebased.py”, line 41, in get return pickle.loads(zlib.decompress(f.read()))
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe3 in position 1: ordinal not in range(128)

Thanks again. If I can offer additional information please let me know.

No issues. Try to start and stop memcached or delete the cache on /tmp/seahub_cache

If not, we can follow tomorrow. I need some sleep.

1 Like

Thank you very much.
I didn’t find any memcached instance (I hope that’s not an issue :sweat_smile:) but clearing the cache in /tmp/seahub_cache did the trick.

Btw. Thank you so much for providing us with the arm-version of the seafile server! Great work!

Is not an issue. You could have memcached configured or not. If you don’t have it, the seahub cache will be automatically saved on the /tmp directory, that’s why.