[6.3.4]Seahub启动报错

我在一个开源版上部署了Seafile v6.3.4。一直运行比较正常,今天重启设备后,发现Seahub无法启动。


Starting seahub at port 8000 …

Error happened during creating seafile admin.

[2019-06-28 09:28:54 +0000] [7731] [INFO] Starting gunicorn 19.9.0
Traceback (most recent call last):
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/gunicorn”, line 11, in
load_entry_point(‘gunicorn==19.9.0’, ‘console_scripts’, ‘gunicorn’)()
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/gunicorn-19.9.0-py2.7.egg/gunicorn/app/wsgiapp.py”, line 61, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/gunicorn-19.9.0-py2.7.egg/gunicorn/app/base.py”, line 223, in run
super(Application, self).run()
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/gunicorn-19.9.0-py2.7.egg/gunicorn/app/base.py”, line 72, in run
Arbiter(self).run()
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/gunicorn-19.9.0-py2.7.egg/gunicorn/arbiter.py”, line 199, in run
self.start()
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/gunicorn-19.9.0-py2.7.egg/gunicorn/arbiter.py”, line 139, in start
self.pidfile.create(self.pid)
File “/opt/seafile/seafile-server-6.3.4/seahub/thirdpart/gunicorn-19.9.0-py2.7.egg/gunicorn/pidfile.py”, line 36, in create
fd, fname = tempfile.mkstemp(dir=fdir)
File “/usr/lib/python2.7/tempfile.py”, line 314, in mkstemp
return _mkstemp_inner(dir, prefix, suffix, flags)
File “/usr/lib/python2.7/tempfile.py”, line 244, in _mkstemp_inner
fd = _os.open(file, flags, 0600)
OSError: [Errno 28] No space left on device: ‘/opt/seafile/pids/tmpNTmayV’
Error:Seahub failed to start.

存储空间肯定还够用的
Filesystem Size Used Avail Use% Mounted on
udev 469M 0 469M 0% /dev
tmpfs 184M 15M 169M 9% /run
/dev/mmcblk1p2 6.4G 4.6G 1.8G 73% /
tmpfs 920M 0 920M 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 920M 0 920M 0% /sys/fs/cgroup
tmpfs 920M 4.0K 920M 1% /tmp
/dev/mmcblk1p1 122M 58M 64M 48% /boot
/dev/sda1 458G 3.6G 431G 1% /mnt/disk1
/dev/zram0 49M 9.7M 36M 22% /var/log
tmpfs 184M 0 184M 0% /run/user/0
root@HomeCloudT2:/opt/seafile/seafile-server-latest# cd …
root@HomeCloudT2:/opt/seafile# cd pids/
root@HomeCloudT2:/opt/seafile/pids# ls -l
total 0
-rw-r–r-- 1 root root 0 May 14 16:29 seafdav.pid
root@HomeCloudT2:/opt/seafile/pids# free -h
total used free shared buff/cache available
Mem: 1.8G 267M 1.1G 14M 397M 1.4G
Swap: 919M 0B 919M

有知道怎么解决吗?

自问自答吧。
已经发现问题了,磁盘的iNode空间满了:
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 118K 478 117K 1% /dev
tmpfs 230K 1.2K 229K 1% /run
/dev/mmcblk1p2 418K 418K 0 100% /
……

查找到一个*/Log文件中,生成了35万条记录。清空垃圾文件就恢复正常了。