使用Docker安装服务器端失败, Seahub无法启动导致容器退出


#1

Docker安装服务器端时, 可以正常下载镜像并启动容器, 但容器启动后初始化时报错, 导致容器退出. 查看容器日志报错信息为:

Starting seahub at port 8000 ...
Error:Seahub failed to start.
Please try to run "./seahub.sh start" again
Traceback (most recent call last):
  File "/scripts/start.py", line 86, in <module>
    main()
  File "/scripts/start.py", line 72, in main
    call('{} start'.format(get_script('seahub.sh')))
  File "/scripts/utils/__init__.py", line 68, in call
    return subprocess.check_call(*a, **kw)
  File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/opt/seafile/seafile-server-6.3.4/seahub.sh start' returned non-zero exit status 1
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 35)...
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown...
May  7 02:10:22 eb97c4927970 syslog-ng[27]: syslog-ng shutting down; version='3.13.2'
*** Killing all processes...

另外, 值得注意的是, 我将一个外置挂载的硬盘(挂载点在/fileDisk/sumsung500G/seafile/seafile-data:/shared

系统环境: Ubuntu 18.04.02 LTS

希望能有大佬能帮忙定位一下问题, 并给出解决方案, 非常感谢.


#2

日志全文如下*** Running /etc/my_init.d/01_create_data_links.sh…
*** Running /etc/my_init.d/10_syslog-ng.init…
May 7 03:33:01 d7f3076d1a5c syslog-ng[27]: syslog-ng starting up; version=‘3.13.2’
*** Running /etc/my_init.d/99_mysql_setup.sh…
*** Booting runit daemon…
*** Runit started as PID 35
*** Running /scripts/start.py…
May 7 03:33:01 d7f3076d1a5c cron[42]: (CRON) INFO (pidfile fd = 3)
May 7 03:33:01 d7f3076d1a5c cron[42]: (CRON) INFO (Running @reboot jobs)
[2019-05-07 03:33:04] Skip running setup-seafile-mysql.py because there is existing seafile-data folder.
[05/07/2019 03:33:04][upgrade]: The container was recreated, running minor-upgrade.sh to fix the media symlinks
[05/07/2019 03:33:04][upgrade]: Running script /opt/seafile/seafile-server-6.3.4/upgrade/minor-upgrade.sh


This script would do the minor upgrade for you.
Press [ENTER] to contiune


migrating avatars …

DONE

updating seafile-server-latest symbolic link to /opt/seafile/seafile-server-6.3.4 …

DONE

[05/07/19 03:33:04] …/common/session.c(132): using config file /opt/seafile/conf/ccnet.conf
Starting seafile server, please wait …
Seafile server started

Done.

Starting seahub at port 8000 …
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again
Traceback (most recent call last):
File “/scripts/start.py”, line 86, in
main()
File “/scripts/start.py”, line 72, in main
call(’{} start’.format(get_script(‘seahub.sh’)))
File “/scripts/utils/init.py”, line 68, in call
return subprocess.check_call(*a, **kw)
File “/usr/lib/python2.7/subprocess.py”, line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘/opt/seafile/seafile-server-6.3.4/seahub.sh start’ returned non-zero exit status 1
*** /scripts/start.py exited with status 1.
*** Shutting down runit daemon (PID 35)…
*** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…
May 7 03:33:15 d7f3076d1a5c syslog-ng[27]: syslog-ng shutting down; version=‘3.13.2’
*** Killing all processes…