網站顯示 Internal Server Error


#1

之前在測試平台安裝都是能夠正常安裝.
但當我再重新安裝時無論怎弄都是出Internal Server Error
登入畫面都看不到…
log 說找不到的插件我都弄了.
但結果都是一樣

求協助. 因為買了license 所以想盡快安裝好使用
Centos 7
Seafile pro 7.1.3


#2

還在是設置時
seafile_server

網址是不能使用 “-” 的符號

controller.log

[11/20/20 16:19:11] seafile-controller.c(174): starting ccnet-server …
[11/20/20 16:19:11] seafile-controller.c(94): spawn_process: ccnet-server -F /var/www/seafile/conf -c /var/www/seafile/ccnet -f /var/www/seafile/logs/ccnet.log -d -L /var/www/seafile -P /var/www/seafile/pids/ccnet.pid
[11/20/20 16:19:11] seafile-controller.c(109): spawned ccnet-server, pid 2022
[11/20/20 16:19:11] seafile-controller.c(208): starting seaf-server …
[11/20/20 16:19:11] seafile-controller.c(94): spawn_process: seaf-server -F /var/www/seafile/conf -c /var/www/seafile/ccnet -d /var/www/seafile/seafile-data -l /var/www/seafile/logs/seafile.log -P /var/www/seafile/pids/seaf-server.pid -p /var/www/seafile/seafile-server/runtime -f -L /var/www/seafile
[11/20/20 16:19:11] seafile-controller.c(109): spawned seaf-server, pid 2023
[11/20/20 16:19:21] seafile-controller.c(555): pid file /var/www/seafile/pids/seafevents.pid does not exist
[11/20/20 16:19:21] seafile-controller.c(591): seafevents need restart…
[11/20/20 16:19:21] seafile-controller.c(94): spawn_process: /usr/bin/python3 -m seafevents.main --config-file /var/www/seafile/conf/seafevents.conf --logfile /var/www/seafile/logs/seafevents.log -P /var/www/seafile/pids/seafevents.pid
[11/20/20 16:19:21] seafile-controller.c(109): spawned /usr/bin/python3, pid 2072
[11/20/20 16:19:21] seafile-controller.c(555): pid file /var/www/seafile/pids/elasticsearch.pid does not exist
[11/20/20 16:19:21] seafile-controller.c(603): elasticsearch need restart…
[11/20/20 16:19:21] seafile-controller.c(94): spawn_process: /var/www/seafile/seafile-server/pro/elasticsearch/bin/elasticsearch -Epath.logs=/var/www/seafile/logs -Epath.data=/var/www/seafile/pro-data/search/data -Enetwork.host=127.0.0.1 -p /var/www/seafile/pids/elasticsearch.pid
[11/20/20 16:19:21] seafile-controller.c(109): spawned /var/www/seafile/seafile-server/pro/elasticsearch/bin/elasticsearch, pid 2073

明明有但log 說沒有.
image

seahub.log

2020-11-20 08:21:38,229 [ERROR] django.request:135 handle_uncaught_exception Internal Server Error: /
Traceback (most recent call last):
File “/var/www/seafile/seafile-server/seahub/thirdpart/django/core/handlers/exception.py”, line 41, in inner
response = get_response(request)
File “/var/www/seafile/seafile-server/seahub/thirdpart/django/core/handlers/base.py”, line 244, in _legacy_get_response
response = middleware_method(request)
File “/var/www/seafile/seafile-server/seahub/thirdpart/django/middleware/locale.py”, line 24, in process_request
i18n_patterns_used, prefixed_default_language = is_language_prefix_patterns_used(urlconf)
File “/var/www/seafile/seafile-server/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 “/var/www/seafile/seafile-server/seahub/thirdpart/django/utils/functional.py”, line 35, in get
res = instance.dict[self.name] = self.func(instance)
File “/var/www/seafile/seafile-server/seahub/thirdpart/django/urls/resolvers.py”, line 407, in url_patterns
patterns = getattr(self.urlconf_module, “urlpatterns”, self.urlconf_module)
File “/var/www/seafile/seafile-server/seahub/thirdpart/django/utils/functional.py”, line 35, in get
res = instance.dict[self.name] = self.func(instance)
File “/var/www/seafile/seafile-server/seahub/thirdpart/django/urls/resolvers.py”, line 400, in urlconf_module
return import_module(self.urlconf_name)
File “/usr/lib64/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 678, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/var/www/seafile/seafile-server/seahub/seahub/utils/rooturl.py”, line 41, in
url(r’^%s’ % settings.SITE_ROOT[1:], include(settings.SITE_ROOT_URLCONF)),
File “/var/www/seafile/seafile-server/seahub/thirdpart/django/conf/urls/init.py”, line 50, in include
urlconf_module = import_module(urlconf_module)
File “/usr/lib64/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 678, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/var/www/seafile/seafile-server/seahub/seahub/urls.py”, line 8, in
from seahub.views.sysadmin import *
File “/var/www/seafile/seafile-server/seahub/seahub/views/sysadmin.py”, line 96, in
from seahub.utils.two_factor_auth import has_two_factor_auth
File “/var/www/seafile/seafile-server/seahub/seahub/utils/two_factor_auth.py”, line 5, in
from seahub.two_factor.views.login import (
File “/var/www/seafile/seafile-server/seahub/seahub/two_factor/views/init.py”, line 2, in
from .core import SetupView, BackupTokensView, SetupCompleteView, QRGeneratorView
File “/var/www/seafile/seafile-server/seahub/seahub/two_factor/views/core.py”, line 31, in
from seahub.auth.forms import AuthenticationForm
File “/var/www/seafile/seafile-server/seahub/seahub/auth/forms.py”, line 17, in
from captcha.fields import CaptchaField
ImportError: cannot import name ‘CaptchaField’

解決了. 最後是把captcha 的組件uninstall 再 reinstall. 解決了. PID 那2個log是不關事的