Newbie ist verzeifelt. Bekomme seahub nicht ans laufen

Hallo zusammen,

ich mache jetzt schon 2 Tage daran rum, den seahub zu starten.

Meine Umgebung:
Alle meine Dienste laufen auf einem Proxmox Server. Zugriff vom Internet über einen Raspberry Pi, der nur als Reverse Proxy läuft.

  1. Testfall: Ich habe (bzw. hatte) einen LXC mit Ubuntu Server 20.04 LTS am Laufen. Alle Installationsschritte gingen ohne Probleme. Nur der Start von seahub.sh start schlägt fehl. Das Logfile bleibt mit 0kb leer. Nach verschiedenen Tests bzw Installationsroutinen, hatte ich einfach den LXC in Verdacht. OK, den dann platt gemacht und eine echte VM aufgesetzt.

  2. Testfall: VM mit Ubunut Server 18.04.5 LTS aufgesetzt. Hier wieder genau das gleiche. Ich bekomme einfach den seahub nicht gestartet.

Könnt ihr mir hier bitte mal helfen, da ich noch im Theas Seafile ganz neu bin. Vielen Dank

Gruß H-BLOGX

Versuche mal seahub.sh start-fastcgi. Das (fastcgi) läuft zwar nicht mehr, gibt aber ausführlichere Fehlermeldungen. Vielleicht hilft das.

Ok, bin einen kleinen Schritt weiter.

Hier mal meine Shell Ausgabe:

root@seafile:/srv/seafile# ./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.

Das Ergebnis von netstat:

root@seafile:/srv/logs# netstat -tulpn | grep 8000
tcp        0      0 0.0.0.0:8000            0.0.0.0:*               LISTEN      10357/python3

Meine IP auf dem Seafile Server:

root@seafile:/srv/logs# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether f6:5f:fd:d1:89:a0 brd ff:ff:ff:ff:ff:ff
    inet 192.168.192.248/23 brd 192.168.193.255 scope global dynamic ens18
       valid_lft 74243sec preferred_lft 74243sec
    inet6 2002:4e2a:16aa:0:f45f:fdff:fed1:89a0/64 scope global dynamic mngtmpaddr noprefixroute
       valid_lft 6727sec preferred_lft 3127sec
    inet6 fe80::f45f:fdff:fed1:89a0/64 scope link
       valid_lft forever preferred_lft forever

Jedoch bekomme ich die GUI nicht angezeigt. Hier mal nur via CURL:

root@seafile:/srv/logs# curl http://192.168.192.248:8000/
<html>
  <head>
    <title>Internal Server Error</title>
  </head>
  <body>
    <h1><p>Internal Server Error</p></h1>

  </body>
</html>

Mein Seahub.log:

2020-10-16 12:48:13,435 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /
Traceback (most recent call last):
  File "/srv/seafile/seahub/thirdpart/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/srv/seafile/seahub/thirdpart/django/core/handlers/base.py", line 244, in _legacy_get_response
    response = middleware_method(request)
  File "/srv/seafile/seahub/thirdpart/django/middleware/locale.py", line 24, in process_request
    i18n_patterns_used, prefixed_default_language = is_language_prefix_patterns_used(urlconf)
  File "/srv/seafile/seahub/thirdpart/django/conf/urls/i18n.py", line 29, in is_language_prefix_patterns_used
    for url_pattern in get_resolver(urlconf).url_patterns:
  File "/srv/seafile/seahub/thirdpart/django/utils/functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/srv/seafile/seahub/thirdpart/django/urls/resolvers.py", line 407, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/srv/seafile/seahub/thirdpart/django/utils/functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/srv/seafile/seahub/thirdpart/django/urls/resolvers.py", line 400, in urlconf_module
    return import_module(self.urlconf_name)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/srv/seafile/seahub/seahub/utils/rooturl.py", line 41, in <module>
    url(r'^%s' % settings.SITE_ROOT[1:], include(settings.SITE_ROOT_URLCONF)),
  File "/srv/seafile/seahub/thirdpart/django/conf/urls/__init__.py", line 50, in include
    urlconf_module = import_module(urlconf_module)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/srv/seafile/seahub/seahub/urls.py", line 8, in <module>
    from seahub.views.sysadmin import *
  File "/srv/seafile/seahub/seahub/views/sysadmin.py", line 96, in <module>
    from seahub.utils.two_factor_auth import has_two_factor_auth
  File "/srv/seafile/seahub/seahub/utils/two_factor_auth.py", line 5, in <module>
    from seahub.two_factor.views.login import (
  File "/srv/seafile/seahub/seahub/two_factor/views/__init__.py", line 2, in <module>
    from .core import SetupView, BackupTokensView, SetupCompleteView, QRGeneratorView
  File "/srv/seafile/seahub/seahub/two_factor/views/core.py", line 31, in <module>
    from seahub.auth.forms import AuthenticationForm
  File "/srv/seafile/seahub/seahub/auth/forms.py", line 17, in <module>
    from captcha.fields import CaptchaField
ModuleNotFoundError: No module named 'captcha.fields'
2020-10-16 12:48:15,392 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /favicon.ico
Traceback (most recent call last):
  File "/srv/seafile/seahub/thirdpart/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/srv/seafile/seahub/thirdpart/django/core/handlers/base.py", line 244, in _legacy_get_response
    response = middleware_method(request)
  File "/srv/seafile/seahub/thirdpart/django/middleware/locale.py", line 24, in process_request
    i18n_patterns_used, prefixed_default_language = is_language_prefix_patterns_used(urlconf)
  File "/srv/seafile/seahub/thirdpart/django/conf/urls/i18n.py", line 29, in is_language_prefix_patterns_used
    for url_pattern in get_resolver(urlconf).url_patterns:
  File "/srv/seafile/seahub/thirdpart/django/utils/functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/srv/seafile/seahub/thirdpart/django/urls/resolvers.py", line 407, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/srv/seafile/seahub/thirdpart/django/utils/functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/srv/seafile/seahub/thirdpart/django/urls/resolvers.py", line 400, in urlconf_module
    return import_module(self.urlconf_name)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/srv/seafile/seahub/seahub/utils/rooturl.py", line 41, in <module>
    url(r'^%s' % settings.SITE_ROOT[1:], include(settings.SITE_ROOT_URLCONF)),
  File "/srv/seafile/seahub/thirdpart/django/conf/urls/__init__.py", line 50, in include
    urlconf_module = import_module(urlconf_module)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/srv/seafile/seahub/seahub/urls.py", line 8, in <module>
    from seahub.views.sysadmin import *
  File "/srv/seafile/seahub/seahub/views/sysadmin.py", line 96, in <module>
    from seahub.utils.two_factor_auth import has_two_factor_auth
  File "/srv/seafile/seahub/seahub/utils/two_factor_auth.py", line 5, in <module>
    from seahub.two_factor.views.login import (
  File "/srv/seafile/seahub/seahub/two_factor/views/__init__.py", line 2, in <module>
    from .core import SetupView, BackupTokensView, SetupCompleteView, QRGeneratorView
  File "/srv/seafile/seahub/seahub/two_factor/views/core.py", line 31, in <module>
    from seahub.auth.forms import AuthenticationForm
  File "/srv/seafile/seahub/seahub/auth/forms.py", line 17, in <module>
    from captcha.fields import CaptchaField
ModuleNotFoundError: No module named 'captcha.fields'
2020-10-16 12:53:15,261 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /
Traceback (most recent call last):
  File "/srv/seafile/seahub/thirdpart/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/srv/seafile/seahub/thirdpart/django/core/handlers/base.py", line 244, in _legacy_get_response
    response = middleware_method(request)
  File "/srv/seafile/seahub/thirdpart/django/middleware/locale.py", line 24, in process_request
    i18n_patterns_used, prefixed_default_language = is_language_prefix_patterns_used(urlconf)
  File "/srv/seafile/seahub/thirdpart/django/conf/urls/i18n.py", line 29, in is_language_prefix_patterns_used
    for url_pattern in get_resolver(urlconf).url_patterns:
  File "/srv/seafile/seahub/thirdpart/django/utils/functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/srv/seafile/seahub/thirdpart/django/urls/resolvers.py", line 407, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/srv/seafile/seahub/thirdpart/django/utils/functional.py", line 35, in __get__
    res = instance.__dict__[self.name] = self.func(instance)
  File "/srv/seafile/seahub/thirdpart/django/urls/resolvers.py", line 400, in urlconf_module
    return import_module(self.urlconf_name)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/srv/seafile/seahub/seahub/utils/rooturl.py", line 41, in <module>
    url(r'^%s' % settings.SITE_ROOT[1:], include(settings.SITE_ROOT_URLCONF)),
  File "/srv/seafile/seahub/thirdpart/django/conf/urls/__init__.py", line 50, in include
    urlconf_module = import_module(urlconf_module)
  File "/usr/lib/python3.6/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/srv/seafile/seahub/seahub/urls.py", line 8, in <module>
    from seahub.views.sysadmin import *
  File "/srv/seafile/seahub/seahub/views/sysadmin.py", line 96, in <module>
    from seahub.utils.two_factor_auth import has_two_factor_auth
  File "/srv/seafile/seahub/seahub/utils/two_factor_auth.py", line 5, in <module>
    from seahub.two_factor.views.login import (
  File "/srv/seafile/seahub/seahub/two_factor/views/__init__.py", line 2, in <module>
    from .core import SetupView, BackupTokensView, SetupCompleteView, QRGeneratorView
  File "/srv/seafile/seahub/seahub/two_factor/views/core.py", line 31, in <module>
    from seahub.auth.forms import AuthenticationForm
  File "/srv/seafile/seahub/seahub/auth/forms.py", line 17, in <module>
    from captcha.fields import CaptchaField
ModuleNotFoundError: No module named 'captcha.fields'

Bin gerade etwas ratlos …

Da scheint ja ein python paket zu fehlen. Versuch mal

sudo pip3 install --timeout=3600 Pillow pylibmc captcha jinja2 sqlalchemy  django-pylibmc django-simple-captcha python3-ldap

Ich glaube das Problem gefunden zu haben. Gestern hatte ich ja noch den LXC unter Ubuntu Server 20.04 mit Python 3.* am Laufen.

Heute ist es ja eine VM mit Ubuntu Server 18.04.5 LTS, der erst Python 2.7 drauf hat. Werde mal Python upgraden und schauen und melden …

Aktuell habe ich es jetzt mal ans laufen gebracht. Werde das ganze jetzt aber nochmals sauber dokumentieren und unter Ubuntu 20.04 installieren.

Schön wäre es natürlich, wenn ich es unter einem LXC zum Laufen bringen würde.