Hi,
I’m trying to test Seafile CE 11.0.2 on an Ubuntu 22.04 server in an LXC container, with MySQL. Using this manual: https://manual.seafile.com/deploy/using_mysql/
My env:
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
mysql Ver 8.0.35-0ubuntu0.22.04.1 for Linux on x86_64 ((Ubuntu))
The manual says: Seafile uses the mysql_native_password plugin for authentication. It is therefore required to change to authentication plugin to mysql_native_password for the root user prior to the installation of Seafile.
.
After wizard ./setup-seafile-mysql.sh
user seafile
created with caching_sha2_password
. Why?
After running /seafile.sh start
in log/seafile.log
:
2023-12-12 18:36:06 ../common/seaf-utils.c(358): Use database Mysql
2023-12-12 18:36:06 http-server.c(199): fileserver: worker_threads = 10
2023-12-12 18:36:06 http-server.c(214): fileserver: fixed_block_size = 8388608
2023-12-12 18:36:06 http-server.c(229): fileserver: web_token_expire_time = 3600
2023-12-12 18:36:06 http-server.c(244): fileserver: max_indexing_threads = 1
2023-12-12 18:36:06 http-server.c(259): fileserver: max_index_processing_threads= 3
2023-12-12 18:36:06 http-server.c(281): fileserver: cluster_shared_temp_file_mode = 600
2023-12-12 18:36:06 ../common/seaf-db.c(863): Failed to connect to MySQL: Plugin caching_sha2_password could not be loaded: /usr/lib/mariadb/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
2023-12-12 18:36:06 ../common/seaf-db.c(863): Failed to connect to MySQL: Plugin caching_sha2_password could not be loaded: /usr/lib/mariadb/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory
2023-12-12 18:36:06 repo-mgr.c(3806): Failed to add branch.
2023-12-12 18:36:06 seafile-session.c(453): Failed to create system default repo.
2023-12-12 18:36:13 start to serve on pipe client
fixed like this:
mysql> ALTER USER ‘seafile’@‘127.0.0.1’ IDENTIFIED WITH mysql_native_password BY ‘…password…’;
After running /seafile.sh start
in log/file_updates_sender.log
:
Traceback (most recent call last):
File "/opt/seafile/seafile-server-11.0.2/seahub/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/opt/seafile/seafile-server-11.0.2/seahub/thirdpart/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/opt/seafile/seafile-server-11.0.2/seahub/thirdpart/django/core/management/__init__.py", line 416, in execute
django.setup()
File "/opt/seafile/seafile-server-11.0.2/seahub/thirdpart/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/seafile/seafile-server-11.0.2/seahub/thirdpart/django/apps/registry.py", line 116, in populate
app_config.import_models()
File "/opt/seafile/seafile-server-11.0.2/seahub/thirdpart/django/apps/config.py", line 269, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/local/lib/python3.10/dist-packages/captcha/models.py", line 4, in <module>
from django.utils.encoding import smart_text
ImportError: cannot import name 'smart_text' from 'django.utils.encoding' (/opt/seafile/seafile-server-11.0.2/seahub/thirdpart/django/utils/encoding.py)
After running ./seahub.sh start
and entering the administrator email address and password, an error occurred during startup.
----------------------------------------
Successfully created seafile admin
----------------------------------------
Error:Seahub failed to start.
Please try to run "./seahub.sh start" again