docker安装seafile,监听80端口,可以正常工作。但是启用443,同时将docker-compose.yml的SEAFILE_SERVER_LETSENCRYPT设置为true,再重启seafile,docker-compose restart,结果出现下面的错误:
seafile | Order created!
seafile | Verifying seafile.zlinuxboy.com...
seafile | Traceback (most recent call last):
seafile | File "/shared/ssl/letsencrypt/acme_tiny.py", line 198, in <module>
seafile | main(sys.argv[1:])
seafile | File "/shared/ssl/letsencrypt/acme_tiny.py", line 194, in main
seafile | signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca, disable_check=args.disable_check, directory_url=args.directory_url, contact=args.contact)
seafile | File "/shared/ssl/letsencrypt/acme_tiny.py", line 143, in get_crt
seafile | raise ValueError("Wrote file to {0}, but couldn't download {1}: {2}".format(wellknown_path, wellknown_url, e))
seafile | ValueError: Wrote file to /var/www/challenges/B1yA9wP7DrhWRROuzG1FpYEJP6X1rAqnYdH8hgDYuEM, but couldn't download http://seafile.zlinuxboy.com/.well-known/acme-challenge/B1yA9wP7DrhWRROuzG1FpYEJP6X1rAqnYdH8hgDYuEM: Error:
seafile | Url: http://seafile.zlinuxboy.com/.well-known/acme-challenge/B1yA9wP7DrhWRROuzG1FpYEJP6X1rAqnYdH8hgDYuEM
seafile | Data: None
seafile | Response Code: None
seafile | Response: <urlopen error [Errno 110] Connection timed out>
seafile | Traceback (most recent call last):
seafile | File "/scripts/start.py", line 86, in <module>
seafile | main()
seafile | File "/scripts/start.py", line 51, in main
seafile | init_letsencrypt()
seafile | File "/scripts/bootstrap.py", line 70, in init_letsencrypt
seafile | call('/scripts/ssl.sh {0} {1}'.format(ssl_dir, domain))
seafile | File "/scripts/utils/__init__.py", line 69, in call
seafile | return subprocess.check_call(*a, **kw)
seafile | File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
seafile | raise CalledProcessError(retcode, cmd)
seafile | subprocess.CalledProcessError: Command '/scripts/ssl.sh /shared/ssl seafile.zlinuxboy.com' returned non-zero exit status 1
seafile | *** /scripts/start.py exited with status 1.
seafile | *** Shutting down runit daemon (PID 34)...
seafile | *** Running /etc/my_init.post_shutdown.d/10_syslog-ng.shutdown...
seafile | Jul 29 15:02:16 5d92723fd10c syslog-ng[25]: syslog-ng shutting down; version='3.13.2'
seafile | *** Killing all processes...
我已经将域名解析到了正确的IP地址。应该是letsencrypt的问题,请问该如何解决?
另外还有一个问题,为何seafile这个container会自动关闭,而不是保持状态。这样系统管理员才能使用docker exec -it seafile bash附着到该container进一步排错。目前这种情况下,我如何才能使得seafile container可以处于运行状态,而不是退出呢?