新装12.0服务器端出问题

官网下载的文件改了参数后,成功抽取并创建容器成功,但是启动后,无法访问,日志如下:
01_create_data_links.sh…

*** Booting runit daemon…

*** Runit started as PID 21

*** Running /scripts/enterpoint.sh…

2024-12-08 12:36:19 Nginx ready

2024-12-08 12:36:19 This is an idle script (infinite loop) to keep container running.

/scripts/bootstrap.py:159: SyntaxWarning: invalid escape sequence '\ ’

call(‘’‘sed -i -e ‘/def validate_mysql_user_host(self, host)/a \ \ \ \ \ \ \ \ return host’ {}’‘’

/scripts/bootstrap.py:162: SyntaxWarning: invalid escape sequence '\ ’

call(‘’‘sed -i -e ‘/def validate_mysql_host(self, host)/a \ \ \ \ \ \ \ \ return host’ {}’‘’

[2024-12-08 12:36:19] Skip running setup-seafile-mysql.py because there is existing seafile-data folder.

[12/08/2024 12:36:19][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’

[12/08/2024 12:36:19][upgrade]: Done

Error: .env file not found.

Please follow the upgrade manual to set the .env file.

Traceback (most recent call last):

File “/scripts/start.py”, line 94, in

main()

File “/scripts/start.py”, line 79, in main

call('{} start'.format(get_script('seafile.sh')))

File “/scripts/utils.py”, line 70, 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 ’
请大神赐教

日志中提示没有找到.env文件,是否没有下载配置这个文件,可以参考:
https://manual.seafile.com/12.0/setup/setup_ce_by_docker/#getting-started

按照这个页面指示的安装成功了,但是caddy启动不正常,提示的是
Output: OCI runtime exec failed: exec failed: unable to start container process: exec: “/bin/sh”: stat /bin/sh: no such file or directory: unknown, Start: 2024-12-09T23:39:21.870553653+08:00 }

这个文件下载到容器里面,还是宿主机里面呢?

文件在宿主机,与seafile-server.yml,caddy.yml等文件在同一目录

1 个赞