Share/upload link error after upgrading from 8.0.8 to 9.0.2

Hi,

I’m getting an error when enabling password for share/upload link in website gui after upgrading to 9.0.2 CE.

2022-02-15 00:07:37,926 [ERROR] django.request:230 log_response Internal Server Error: /api/v2.1/share-links/
Traceback (most recent call last):
File “/home/seafile/seafile-server-9.0.2/seahub/thirdpart/django/core/handlers/exception.py”, line 47, in inner
response = get_response(request)
File “/home/seafile/seafile-server-9.0.2/seahub/thirdpart/django/core/handlers/base.py”, line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File “/home/seafile/seafile-server-9.0.2/seahub/thirdpart/django/views/decorators/csrf.py”, line 54, in wrapped_view
return view_func(*args, **kwargs)
File “/home/seafile/seafile-server-9.0.2/seahub/thirdpart/django/views/generic/base.py”, line 70, in view
return self.dispatch(request, *args, **kwargs)
File “/home/seafile/seafile-server-9.0.2/seahub/thirdpart/rest_framework/views.py”, line 505, in dispatch
response = self.handle_exception(exc)
File “/home/seafile/seafile-server-9.0.2/seahub/thirdpart/rest_framework/views.py”, line 465, in handle_exception
self.raise_uncaught_exception(exc)
File “/home/seafile/seafile-server-9.0.2/seahub/thirdpart/rest_framework/views.py”, line 476, in raise_uncaught_exception
raise exc
File “/home/seafile/seafile-server-9.0.2/seahub/thirdpart/rest_framework/views.py”, line 502, in dispatch
response = handler(request, *args, **kwargs)
File “/home/seafile/seafile-server-9.0.2/seahub/seahub/api2/endpoints/share_links.py”, line 421, in post
permission=perm, org_id=org_id)
File “/home/seafile/seafile-server-9.0.2/seahub/seahub/share/models.py”, line 174, in create_dir_link
expire_date, permission, org_id)
File “/home/seafile/seafile-server-9.0.2/seahub/seahub/share/models.py”, line 110, in _add_file_share
password_enc = make_password(password)
File “/home/seafile/seafile-server-9.0.2/seahub/seahub/share/models.py”, line 31, in make_password
aes = AESPasswordHasher()
File “/home/seafile/seafile-server-9.0.2/seahub/seahub/utils/hasher.py”, line 39, in init
self.cipher = AES.new(secret.encode(‘utf-8’), AES.MODE_ECB)
AttributeError: ‘NoneType’ object has no attribute ‘new’

I missed installing the python libraries while upgrading, that fixed the issue. thanks.

Glad to hear you solved your problem!

Could you mark this topic as solved?