Ubuntu22.04安装专业版,seahub无法启动!

× seafile-server.service - LSB: Seafile server
Loaded: loaded (/etc/init.d/seafile-server; generated)
Active: failed (Result: exit-code) since Tue 2024-01-02 01:10:36 UTC; 13s ago
Docs: man:systemd-sysv-generator(8)
Process: 1837 ExecStart=/etc/init.d/seafile-server start (code=exited, status=1/FAILURE)
Tasks: 39 (limit: 18907)
Memory: 164.2M
CPU: 1.105s
CGroup: /system.slice/seafile-server.service
├─1271 /opt/seafile/seafile-pro-server-10.0.11/seafile/bin/seafile-controller -c /opt/seafile/ccnet -d /opt/seafile/sea>
├─1273 seaf-server -F /opt/seafile/conf -c /opt/seafile/ccnet -d /opt/seafile/seafile-data -l /opt/seafile/logs/seafile>
├─1683 /usr/bin/python3 -m seafevents.main --config-file /opt/seafile/conf/seafevents.conf --logfile /opt/seafile/logs/>
├─1713 /usr/bin/python3 -m wsgidav.server.server_cli --server gunicorn --root / --log-file /opt/seafile/logs/seafdav.lo>
└─1715 /usr/bin/python3 -m wsgidav.server.server_cli --server gunicorn --root / --log-file /opt/seafile/logs/seafdav.lo>

Jan 02 01:10:36 nextcloud sudo[1845]: pam_unix(sudo:session): session closed for user seafile
Jan 02 01:10:36 nextcloud systemd[1]: seafile-server.service: Control process exited, code=exited, status=1/FAILURE
Jan 02 01:10:36 nextcloud systemd[1]: seafile-server.service: Failed with result ‘exit-code’.
Jan 02 01:10:36 nextcloud systemd[1]: seafile-server.service: Unit process 1271 (seafile-control) remains running after unit stopped.
Jan 02 01:10:36 nextcloud systemd[1]: seafile-server.service: Unit process 1273 (seaf-server) remains running after unit stopped.
Jan 02 01:10:36 nextcloud systemd[1]: seafile-server.service: Unit process 1683 (python3) remains running after unit stopped.
Jan 02 01:10:36 nextcloud systemd[1]: seafile-server.service: Unit process 1713 (python3) remains running after unit stopped.
Jan 02 01:10:36 nextcloud systemd[1]: seafile-server.service: Unit process 1715 (python3) remains running after unit stopped.
Jan 02 01:10:36 nextcloud systemd[1]: Failed to start LSB: Seafile server.
Jan 02 01:10:36 nextcloud systemd[1]: seafile-server.service: Consumed 1.057s CPU time.

使用脚本部署的!

手动启动一下seafile.sh 和seahub.sh

还是无法启动!

报了什么错?

报的一楼的错!

你这个是启动脚本报错的 您手动启动seahub.sh start 报什么错

root@nextcloud:/opt/seafile/seafile-pro-server-10.0.11# ./seahub.sh start

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Traceback (most recent call last):
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/thirdpart/bin/gunicorn”, line 8, in
sys.exit(run())
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 67, in run
WSGIApplication(“%(prog)s [OPTIONS] [APP_MODULE]”).run()
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/thirdpart/gunicorn/app/base.py”, line 231, in run
super().run()
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/thirdpart/gunicorn/app/base.py”, line 72, in run
Arbiter(self).run()
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/thirdpart/gunicorn/arbiter.py”, line 58, in init
self.setup(app)
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/thirdpart/gunicorn/arbiter.py”, line 118, in setup
self.app.wsgi()
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/thirdpart/gunicorn/app/base.py”, line 67, in wsgi
self.callable = self.load()
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 58, in load
return self.load_wsgiapp()
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/thirdpart/gunicorn/app/wsgiapp.py”, line 48, in load_wsgiapp
return util.import_app(self.app_uri)
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/thirdpart/gunicorn/util.py”, line 359, in import_app
mod = importlib.import_module(module)
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1006, in _find_and_load_unlocked
File “”, line 688, in _load_unlocked
File “”, line 883, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/seahub/wsgi.py”, line 25, in
application = get_wsgi_application()
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/thirdpart/django/core/wsgi.py”, line 12, in get_wsgi_application
django.setup(set_prefix=False)
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/thirdpart/django/init.py”, line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/thirdpart/django/apps/registry.py”, line 114, in populate
app_config.import_models()
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/thirdpart/django/apps/config.py”, line 301, 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 “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1006, in _find_and_load_unlocked
File “”, line 688, in _load_unlocked
File “”, line 883, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/seahub/avatar/models.py”, line 28, in
from seahub.avatar.util import invalidate_cache, get_avatar_file_storage
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/seahub/avatar/util.py”, line 8, in
from seahub.avatar.settings import AVATAR_DEFAULT_URL, AVATAR_CACHE_TIMEOUT,
File “/opt/seafile/seafile-pro-server-10.0.11/seahub/seahub/avatar/settings.py”, line 25, in
AVATAR_RESIZE_METHOD = getattr(settings, ‘AVATAR_RESIZE_METHOD’, Image.ANTIALIAS)
AttributeError: module ‘PIL.Image’ has no attribute ‘ANTIALIAS’
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again

看起来是PIL 版本问题

pillow==9.3 安装一下这个版本看看

确实是这个的问题,感谢!

集成了Onlyoffice,又出现了新问题,新建office文档,点击后出现文件不能打开的提示,下载失败!

看一下onlyoffice的容器中是否可以ping或者telnet 通,你的seafile域名或者ip

同时看一下系统管理的url 是否是你的访问地址

onlyoffice正常,另一台社区版连接正常,专业版不行!

对接方式都是一样的,看一下onlyoffice有什么报错吗

这是日志root@nextcloud:~# docker logs c27f14ebe849 --tail=40

Error
Cannot POST /onlyoffice/editor-callback/
at Request._callback (/snapshot/server/build/server/Common/sources/utils.js)
at Request.self.callback (/snapshot/server/build/server/Common/node_modules/request/request.js:185:22)
at Request.emit (events.js:400:28)
at Request.<anonymous> (/snapshot/server/build/server/Common/node_modules/request/request.js:1161:10)
at Request.emit (events.js:400:28)
at Gunzip.<anonymous> (/snapshot/server/build/server/Common/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:519:28)
at Gunzip.emit (events.js:400:28)
at endReadableNT (internal/streams/readable.js:1333:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)

==> /var/log/onlyoffice/documentserver/converter/out.log <==
[2024-01-08T09:22:14.281] [ERROR] [localhost] [5a88581b2f328e47de1d] [tctiger@163.com] nodeJS - error downloadFile:url=http://127.0.0.1/seafhttp/files/b6780985-86a4-4bc2-ad54-80f42b700fd5/daf.docx;attempt=1;code:null;connect:null Error: DNS lookup 127.0.0.1(family:undefined, host:undefined) is not allowed. Because, It is private IP address.
at validateIPAddress (/snapshot/server/build/server/Common/node_modules/request-filtering-agent/lib/request-filtering-agent.js:71:20)
at Socket. (/snapshot/server/build/server/Common/node_modules/request-filtering-agent/lib/request-filtering-agent.js:125:29)
at Object.onceWrapper (events.js:519:28)
at Socket.emit (events.js:412:35)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1145:10)
[2024-01-08T09:22:15.289] [ERROR] [localhost] [5a88581b2f328e47de1d] [tctiger@163.com] nodeJS - error downloadFile:url=http://127.0.0.1/seafhttp/files/b6780985-86a4-4bc2-ad54-80f42b700fd5/daf.docx;attempt=2;code:null;connect:null Error: DNS lookup 127.0.0.1(family:undefined, host:undefined) is not allowed. Because, It is private IP address.
at validateIPAddress (/snapshot/server/build/server/Common/node_modules/request-filtering-agent/lib/request-filtering-agent.js:71:20)
at Socket. (/snapshot/server/build/server/Common/node_modules/request-filtering-agent/lib/request-filtering-agent.js:125:29)
at Object.onceWrapper (events.js:519:28)
at Socket.emit (events.js:412:35)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1145:10)
[2024-01-08T09:22:16.293] [ERROR] [localhost] [5a88581b2f328e47de1d] [tctiger@163.com] nodeJS - error downloadFile:url=http://127.0.0.1/seafhttp/files/b6780985-86a4-4bc2-ad54-80f42b700fd5/daf.docx;attempt=3;code:null;connect:null Error: DNS lookup 127.0.0.1(family:undefined, host:undefined) is not allowed. Because, It is private IP address.
at validateIPAddress (/snapshot/server/build/server/Common/node_modules/request-filtering-agent/lib/request-filtering-agent.js:71:20)
at Socket. (/snapshot/server/build/server/Common/node_modules/request-filtering-agent/lib/request-filtering-agent.js:125:29)
at Object.onceWrapper (events.js:519:28)
at Socket.emit (events.js:412:35)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1145:10)
root@nextcloud:~#

本机另外安装了一个onlyoffice也是这样的提示。

应该是seafile专业版哪里安装的不对,md文件也无法打开编辑!

系统管理的url改成你的地址,配置中的url不能使用127