容器seafile中seafile和seahub都没有启动


#1

服务器Nginx代理了Docker中的seafile
昨天下午出现 502 bad gate way错误,重启docker依旧
进入docker容器seafile中,ps aux | grep seafile查不到任何进程

我另外搭了一个测试服务器,安装了干净的docker的seafile环境。在测试服务器中,进入docker容器seafile中,ps aux | grep seafile可以看到正常的服务进程
root@d1e7b39efe25:/opt/seafile# ps aux | grep seafile
root 68 0.0 0.0 72628 1192 ? Ss 15:25 0:00 /opt/seafile/seafile-server-8.0.3/seafile/bin/seafile-controller -c /opt/seafile/ccnet -d /opt/seafile/seafile-data -F /opt/seafile/conf
root 70 0.0 0.1 1214760 4960 ? Ssl 15:25 0:00 seaf-server -F /opt/seafile/conf -c /opt/seafile/ccnet -d /opt/seafile/seafile-data -l /opt/seafile/logs/seafile.log -P /opt/seafile/pids/seaf-server.pid -p /opt/seafile/seafile-server-8.0.3/runtime
root 104 5.7 1.2 164568 46980 ? S 15:25 0:00 python3 /opt/seafile/seafile-server-8.0.3/seahub/thirdpart/bin/gunicorn seahub.wsgi:application -c /opt/seafile/conf/gunicorn.conf.py --preload
root 108 0.0 1.1 164568 43144 ? S 15:25 0:00 python3 /opt/seafile/seafile-server-8.0.3/seahub/thirdpart/bin/gunicorn seahub.wsgi:application -c /opt/seafile/conf/gunicorn.conf.py --preload
root 109 0.0 1.1 164568 43144 ? S 15:25 0:00 python3 /opt/seafile/seafile-server-8.0.3/seahub/thirdpart/bin/gunicorn seahub.wsgi:application -c /opt/seafile/conf/gunicorn.conf.py --preload
root 110 0.0 1.1 164568 43144 ? S 15:25 0:00 python3 /opt/seafile/seafile-server-8.0.3/seahub/thirdpart/bin/gunicorn seahub.wsgi:application -c /opt/seafile/conf/gunicorn.conf.py --preload
root 111 0.0 1.1 164568 43140 ? S 15:25 0:00 python3 /opt/seafile/seafile-server-8.0.3/seahub/thirdpart/bin/gunicorn seahub.wsgi:application -c /opt/seafile/conf/gunicorn.conf.py --preload
root 112 0.0 1.1 164568 43136 ? S 15:25 0:00 python3 /opt/seafile/seafile-server-8.0.3/seahub/thirdpart/bin/gunicorn seahub.wsgi:application -c /opt/seafile/conf/gunicorn.conf.py --preload
root 138 0.0 0.0 14724 996 pts/0 S+ 15:25 0:00 grep --color=auto seafile

求救!


#2

更新,我的测试服务器,是重新搭建了干净的Docker-seafile,肯定是没有问题的。
刚才我在出问题的seafile的docker容器中,尝试手动启动seafile进程

第一步,启动seafile.sh
./seafile.sh start
提示了一个错误如下:
Starting seafile server, please wait …
** Message: 15:46:50.280: seafile-controller.c(535): No seafevents.
Seafile server started
Done.

第二步,启动seahub
./seahub.sh start
Starting seahub at port 8000 …

It’s the first time you start the seafile server. Now let’s create the admin account

What is the email for the admin account?
[ admin email ]
提示说:我第一次使用seafile,实际上我用了半年了!


#3

发现了一点头绪,刚看了df,磁盘空间都没有了。
奇怪的是,我查了seafile-data的空间,就165G,我硬盘1T。

我的测试服务器硬盘50G,也是奇怪的占的很满,不过还剩下200M,所以正常能用。

这又是怎么回事?


#4

搞定了,真的是磁盘占满了!因为我用lsyncd做了实时备份,然后log没有限制,log的空间占到了800G,我的天啊,删除后,docker重启,世界清净了!