chatgpt说要使用3.11版本python?
当前服务器版本
13CE docker版 seafileltd/seafile-mc:13.0-latest
部署/操作过程(请说明二进制部署/docker部署;出现错误的操作步骤)
docker部署,一启动就报错
错误日志
Traceback (most recent call last):
File "<frozen site>", line 201, in addpackage
File "<string>", line 1, in <module>
AttributeError: module ‘_distutils_hack’ has no attribute ‘add_shim’
Remainder of file ignored
nginx: [warn] conflicting server name “” on 0.0.0.0:80, ignored
[2025-11-27 00:35:05] Skip running setup-seafile-mysql.py because there is existing seafile-data folder.
[11/27/2025 00:35:05][upgrade]: The container was recreated, start fix the media symlinks
mv: not replacing ‘/shared/seafile/seahub-data/avatars/default-non-register.jpg’
mv: not replacing ‘/shared/seafile/seahub-data/avatars/default.png’
mv: not replacing ‘/shared/seafile/seahub-data/avatars/groups’
[11/27/2025 00:35:05][upgrade]: Done
Starting seafile server, please wait …
Seafile server started
Done.
Starting seahub at port 8000 …
Error processing line 1 of /usr/lib/python3/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "<frozen site>", line 201, in addpackage
File "<string>", line 1, in <module>
AttributeError: module ‘_distutils_hack’ has no attribute ‘add_shim’
Remainder of file ignored
Error processing line 1 of /usr/lib/python3/dist-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "<frozen site>", line 201, in addpackage
File "<string>", line 1, in <module>
AttributeError: module ‘_distutils_hack’ has no attribute ‘add_shim’
Remainder of file ignored
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again
Traceback (most recent call last):
File “/scripts/start.py”, line 91, in
main()
File “/scripts/start.py”, line 77, in main
call('{} start'.format(get_script('seahub.sh')))
File “/scripts/utils.py”, line 71, in call
return subprocess.check_call(\*a, \*\*kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.12/subprocess.py”, line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘/opt/seafile/seafile-server-13.0.12/seahub.sh start’ returned non-zero exit status 1.
浏览器控制台错误信息(如果相关,请提供截图信息)
502 bad gateway (nginx)