seafile7.1.3 docker版本故障


#1


[root@sodweb1 seafile]# docker logs -f 110dd3eea336

*** Running /etc/my_init.d/01_create_data_links.sh…

rm: cannot remove ‘/var/log/apt’: Directory not empty

rm: cannot remove ‘/var/log/nginx’: Directory not empty

*** Booting runit daemon…

*** Runit started as PID 12

*** Running /scripts/start.py…

nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26

nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26

Traceback (most recent call last):

File “/scripts/start.py”, line 86, in <module>

main()

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

call('nginx -s reload')

File “/scripts/utils/init.py”, line 70, in call

return subprocess.check_call(*a, **kw)

File “/usr/lib/python3.6/subprocess.py”, line 311, in check_call

raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command ‘nginx -s reload’ returned non-zero exit status 1.

*** /scripts/start.py exited with status 1.

*** Shutting down runit daemon (PID 12)…

*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…

*** Killing all processes…

*** Running /etc/my_init.d/01_create_data_links.sh…

rm: cannot remove ‘/var/log/apt’: Directory not empty

rm: cannot remove ‘/var/log/nginx’: Directory not empty

*** Booting runit daemon…

*** Runit started as PID 12

*** Running /scripts/start.py…

nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26

nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26

Traceback (most recent call last):

File “/scripts/start.py”, line 86, in <module>

main()

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

call('nginx -s reload')

File “/scripts/utils/init.py”, line 70, in call

return subprocess.check_call(*a, **kw)

File “/usr/lib/python3.6/subprocess.py”, line 311, in check_call

raise CalledProcessError(retcode, cmd)

#2

有人帮我看看问题呗


#3

我已开了privileged权限。
发现容器内运行了此脚本包了以下问题/etc/my_init.d/01_create_data_links.sh
1、容器日志提示无发移出/var/log/apt /var/log/nginx
2、此文件找不到/etc/nginx/sites-enabled/default
3、以下python错误

有没有seafile的工作人员帮忙检查下问题


#4

你在哪里下载的脚本
感觉有点和官网的有点不一样


#5

#6

稍微做了点调整。


#7

链接:https://pan.baidu.com/s/1O3-6ny_vITzYgfONpiIJyQ
提取码:afzo
你用这个试试


#8

这个是专业版的是吧


#9


[root@sodweb1 seafile]# docker logs -f seafile
*** Running /etc/my_init.d/01_create_data_links.sh…
mv: cannot remove ‘/var/log/apt’: Directory not empty
mv: cannot remove ‘/var/log/nginx’: Directory not empty
*** /etc/my_init.d/01_create_data_links.sh failed with status 1
*** Killing all processes…
*** Running /etc/my_init.d/01_create_data_links.sh…
rm: cannot remove ‘/var/log/apt’: Directory not empty
rm: cannot remove ‘/var/log/nginx’: Directory not empty
*** Booting runit daemon…
*** Runit started as PID 10
*** Running /scripts/start.py…
nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26
nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 53, in main
call(‘nginx -s reload’)
File “/scripts/utils/init.py”, line 70, in call
return subprocess.check_call(*a, **kw)
File “/usr/lib/python3.6/subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘nginx -s reload’ returned non-zero exit status 1.
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 10)…
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…
*** Killing all processes…
*** Running /etc/my_init.d/01_create_data_links.sh…
rm: cannot remove ‘/var/log/apt’: Directory not empty
rm: cannot remove ‘/var/log/nginx’: Directory not empty
*** Booting runit daemon…
*** Runit started as PID 12
*** Running /scripts/start.py…
nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26
nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 53, in main
call(‘nginx -s reload’)
File “/scripts/utils/init.py”, line 70, in call
return subprocess.check_call(*a, **kw)
File “/usr/lib/python3.6/subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘nginx -s reload’ returned non-zero exit status 1.
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 12)…
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…
*** Killing all processes…
*** Running /etc/my_init.d/01_create_data_links.sh…
rm: cannot remove ‘/var/log/apt’: Directory not empty
rm: cannot remove ‘/var/log/nginx’: Directory not empty
*** Booting runit daemon…
*** Runit started as PID 12
*** Running /scripts/start.py…
nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26
nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 53, in main
call(‘nginx -s reload’)
File “/scripts/utils/init.py”, line 70, in call
return subprocess.check_call(*a, **kw)
File “/usr/lib/python3.6/subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘nginx -s reload’ returned non-zero exit status 1.
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 12)…
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…
*** Killing all processes…
*** Running /etc/my_init.d/01_create_data_links.sh…
rm: cannot remove ‘/var/log/apt’: Directory not empty
rm: cannot remove ‘/var/log/nginx’: Directory not empty
*** Booting runit daemon…
*** Runit started as PID 12
*** Running /scripts/start.py…
nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26
nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 53, in main
call(‘nginx -s reload’)
File “/scripts/utils/init.py”, line 70, in call
return subprocess.check_call(*a, **kw)
File “/usr/lib/python3.6/subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘nginx -s reload’ returned non-zero exit status 1.
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 12)…
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…
*** Killing all processes…
*** Running /etc/my_init.d/01_create_data_links.sh…
rm: cannot remove ‘/var/log/apt’: Directory not empty
rm: cannot remove ‘/var/log/nginx’: Directory not empty
*** Booting runit daemon…
*** Runit started as PID 12
*** Running /scripts/start.py…
nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26
nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 53, in main
call(‘nginx -s reload’)
File “/scripts/utils/init.py”, line 70, in call
return subprocess.check_call(*a, **kw)
File “/usr/lib/python3.6/subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘nginx -s reload’ returned non-zero exit status 1.
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 12)…
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…
*** Killing all processes…
*** Running /etc/my_init.d/01_create_data_links.sh…
rm: cannot remove ‘/var/log/apt’: Directory not empty
rm: cannot remove ‘/var/log/nginx’: Directory not empty
*** Booting runit daemon…
*** Runit started as PID 12
*** Running /scripts/start.py…
nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26
nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 53, in main
call(‘nginx -s reload’)
File “/scripts/utils/init.py”, line 70, in call
return subprocess.check_call(*a, **kw)
File “/usr/lib/python3.6/subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘nginx -s reload’ returned non-zero exit status 1.
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 12)…
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…
*** Killing all processes…
*** Running /etc/my_init.d/01_create_data_links.sh…
rm: cannot remove ‘/var/log/apt’: Directory not empty
rm: cannot remove ‘/var/log/nginx’: Directory not empty
*** Booting runit daemon…
*** Runit started as PID 13
*** Running /scripts/start.py…
nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26
nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 53, in main
call(‘nginx -s reload’)
File “/scripts/utils/init.py”, line 70, in call
return subprocess.check_call(*a, **kw)
File “/usr/lib/python3.6/subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘nginx -s reload’ returned non-zero exit status 1.
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 13)…
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…
*** Killing all processes…
*** Running /etc/my_init.d/01_create_data_links.sh…
rm: cannot remove ‘/var/log/apt’: Directory not empty
rm: cannot remove ‘/var/log/nginx’: Directory not empty
*** Booting runit daemon…
*** Runit started as PID 12
*** Running /scripts/start.py…
nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26
nginx: [emerg] open() “/etc/nginx/sites-enabled/default” failed (2: No such file or directory) in /etc/nginx/nginx.conf:26
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 53, in main
call(‘nginx -s reload’)
File “/scripts/utils/init.py”, line 70, in call
return subprocess.check_call(*a, **kw)
File “/usr/lib/python3.6/subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘nginx -s reload’ returned non-zero exit status 1.
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 12)…
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…
*** Killing all processes…
[root@sodweb1 seafile]#


#10


#11


#12

是专业版的。


#13

还是存在同样的问题


#14

那可能是你更改的那一部分有点问题


#15

我只是换了下持久化的路径,改了些用户信息而已。我认为不影响镜像里的应用啊


#16

你不修改能安装上吗