SeaFile: Error: Seahub failed to start

Bei Start von Seafile (hier seaHUB) kann folgender Fehler angezeigt werden:

Starting seahub at port 8000 ...
Error:Seahub failed to start.
Please try to run "./seahub.sh start" again

Folgende Schritte können das Problem beheben:

Lassen Sie sich die detaillierten Meldungen beim Start des seaHub Dienstes anzeigen:

./seahub.sh start-fastcgi
LC_ALL is not set in ENV, set to en_US.UTF-8
./seahub.sh: line 210: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
Starting seahub (fastcgi) at 127.0.0.1:8000 ...
Traceback (most recent call last):
File "/opt/seafile/seafile-server-8.0.3/seahub/seahub/avatar/models.py", line 23, in
from PIL import Image
File "/opt/seafile/seafile-server-8.0.3/seahub/thirdpart/PIL/Image.py", line 109, in
from . import _imaging as core
ImportError: libopenjp2.so.7: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/seafile/seafile-server-8.0.3/seahub/manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/opt/seafile/seafile-server-8.0.3/seahub/thirdpart/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/opt/seafile/seafile-server-8.0.3/seahub/thirdpart/django/core/management/__init__.py", line 357, in execute
django.setup()
File "/opt/seafile/seafile-server-8.0.3/seahub/thirdpart/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File "/opt/seafile/seafile-server-8.0.3/seahub/thirdpart/django/apps/registry.py", line 114, in populate
app_config.import_models()
File "/opt/seafile/seafile-server-8.0.3/seahub/thirdpart/django/apps/config.py", line 211, in import_models
self.models_module = import_module(models_module_name)
File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "/opt/seafile/seafile-server-8.0.3/seahub/seahub/avatar/models.py", line 26, in
import Image
ModuleNotFoundError: No module named 'Image'
Error:Seahub failed to start.

Installieren Sie die fehlenden Softwarepakete:

sudo apt install libopenjp2-7 libopenjp2-7-dev libtiff5 libtiff5-dev

Anschließend installieren Sie das vermisste Modul - passen Sie bitte den Pfad ggf. entsprechend zu Ihrer Installation an:

pip3 install -U Pillow -t /opt/seafile/seafile-server-latest/seahub/thirdpart/
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting Pillow
Downloading https://www.piwheels.org/simple/pillow/Pillow-8.2.0-cp37-cp37m-linux_armv7l.whl (1.3MB)
100% |===========================| 1.3MB 329kB/s
Installing collected packages: Pillow
Successfully installed Pillow-8.2.0

Starten Sie den seaHub Dienst erneut:

./seahub.sh start
LC_ALL is not set in ENV, set to en_US.UTF-8
./seahub.sh: line 210: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8): No such file or directory
Starting seahub at port 8000 ...
Seahub is started
Done.

Dieser Artikel hat Dir geholfen ?
.. und Dir nerviges Ausprobieren, Suchen und Zeit erspart ?

Dann würde ich mich sehr freuen, wenn Du diese werbefreie Hilfeseite mit einer kleinen Anerkennung unterstützen würdest.
Vielen Dank !
PayPal Donate QR Code

One comment

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

vierzehn − fünf =