Docker方式安装企业版Seafile,用docker-compose up -d 启动后,Seafile容器很快退出,使用 docker logs -t seafile查看日志,内容如下:
2019-12-14T20:34:51.174123000Z *** Booting runit daemon…
2019-12-14T20:34:51.174374000Z *** Runit started as PID 28
2019-12-14T20:34:51.174571000Z *** Running /scripts/start.py…
2019-12-14T20:34:51.205105000Z Dec 15 04:34:51 086516a11d91 cron[33]: (CRON) INFO (pidfile fd = 3)
2019-12-14T20:34:51.205359000Z Dec 15 04:34:51 086516a11d91 cron[33]: (CRON) INFO (Running @reboot jobs)
2019-12-14T20:34:51.361156000Z [2019-12-15 04:34:51] Now running setup-seafile-mysql.py in auto mode.
2019-12-14T20:34:51.405239000Z Checking python on this machine …
2019-12-14T20:34:51.454290000Z Checking python module: python-mysqldb … Done.
2019-12-14T20:34:51.454761000Z Checking for java …Done.
2019-12-14T20:34:51.574609000Z verifying password of user root … done
2019-12-14T20:34:51.575033000Z verifying password of user seafile …
**2019-12-14T20:34:51.575223000Z Failed to connect to mysql server using user "seafile" and password "***": Access denied for user 'seafile'@'172.18.0.5' (using password: YES)**
2019-12-14T20:34:51.575407000Z
2019-12-14T20:34:51.583255000Z Traceback (most recent call last):
2019-12-14T20:34:51.583493000Z File “/scripts/start.py”, line 86, in
2019-12-14T20:34:51.583687000Z main()
2019-12-14T20:34:51.583899000Z File “/scripts/start.py”, line 56, in main
2019-12-14T20:34:51.584088000Z init_seafile_server()
2019-12-14T20:34:51.584269000Z File “/scripts/bootstrap.py”, line 145, in init_seafile_server
2019-12-14T20:34:51.584448000Z call(’{} auto -n seafile’.format(setup_script), env=env)
2019-12-14T20:34:51.584626000Z File “/scripts/utils/init.py”, line 69, in call
2019-12-14T20:34:51.584821000Z return subprocess.check_call(a, kw)
2019-12-14T20:34:51.585021000Z File “/usr/lib/python2.7/subprocess.py”, line 190, in check_call
2019-12-14T20:34:51.585202000Z raise CalledProcessError(retcode, cmd)
2019-12-14T20:34:51.585976000Z subprocess.CalledProcessError: Command ‘/opt/seafile/seafile-pro-server-7.0.11/setup-seafile-mysql.sh auto -n seafile’ returned non-zero exit status 255
2019-12-14T20:34:51.594230000Z *** /scripts/start.py exited with status 1.
2019-12-14T20:34:52.018000000Z *** Shutting down runit daemon (PID 28)…
2019-12-14T20:34:52.026360000Z *** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…
2019-12-14T20:34:52.034443000Z Dec 15 04:34:52 086516a11d91 syslog-ng[20]: syslog-ng shutting down; version=‘3.13.2’
2019-12-14T20:34:53.046832000Z *** Killing all processes…
2019-12-14T20:34:51.174123000Z *** Booting runit daemon…
2019-12-14T20:34:51.174374000Z *** Runit started as PID 28
2019-12-14T20:34:51.174571000Z *** Running /scripts/start.py…
2019-12-14T20:34:51.205105000Z Dec 15 04:34:51 086516a11d91 cron[33]: (CRON) INFO (pidfile fd = 3)
2019-12-14T20:34:51.205359000Z Dec 15 04:34:51 086516a11d91 cron[33]: (CRON) INFO (Running @reboot jobs)
2019-12-14T20:34:51.361156000Z [2019-12-15 04:34:51] Now running setup-seafile-mysql.py in auto mode.
2019-12-14T20:34:51.405239000Z Checking python on this machine …
2019-12-14T20:34:51.454290000Z Checking python module: python-mysqldb … Done.
2019-12-14T20:34:51.454761000Z Checking for java …Done.
2019-12-14T20:34:51.574609000Z verifying password of user root … done
2019-12-14T20:34:51.575033000Z verifying password of user seafile …
2019-12-14T20:34:51.575223000Z Failed to connect to mysql server using user “seafile” and password "": Access denied for user ‘seafile’@‘172.18.0.5’ (using password: YES)
2019-12-14T20:34:51.575407000Z
2019-12-14T20:34:51.583255000Z Traceback (most recent call last):
2019-12-14T20:34:51.583493000Z File “/scripts/start.py”, line 86, in
2019-12-14T20:34:51.583687000Z main()
2019-12-14T20:34:51.583899000Z File “/scripts/start.py”, line 56, in main
2019-12-14T20:34:51.584088000Z init_seafile_server()
2019-12-14T20:34:51.584269000Z File “/scripts/bootstrap.py”, line 145, in init_seafile_server
2019-12-14T20:34:51.584448000Z call(’{} auto -n seafile’.format(setup_script), env=env)
2019-12-14T20:34:51.584626000Z File “/scripts/utils/init.py”, line 69, in call
2019-12-14T20:34:51.584821000Z return subprocess.check_call(*a, **kw)
2019-12-14T20:34:51.585021000Z File “/usr/lib/python2.7/subprocess.py”, line 190, in check_call
2019-12-14T20:34:51.585202000Z raise CalledProcessError(retcode, cmd)
2019-12-14T20:34:51.585976000Z subprocess.CalledProcessError: Command ‘/opt/seafile/seafile-pro-server-7.0.11/setup-seafile-mysql.sh auto -n seafile’ returned non-zero exit status 255
2019-12-14T20:34:51.594230000Z *** /scripts/start.py exited with status 1.
2019-12-14T20:34:52.018000000Z *** Shutting down runit daemon (PID 28)…
2019-12-14T20:34:52.026360000Z *** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown…
2019-12-14T20:34:52.034443000Z Dec 15 04:34:52 086516a11d91 syslog-ng[20]: syslog-ng shutting down; version=‘3.13.2’
2019-12-14T20:34:53.046832000Z *** Killing all processes…