RT,官方文档提到,执行
cd <install-path>/seafile-server-latest
./seahub.sh python-env seahub/manage.py clear_invalid_repo_data
指令可以清理数据库中无效数据,
我安装了seafile8.0版本后,并且安装了python2(不安装执行此指令提示无法找到python)和python3后
此语句报错,提示:
LC_ALL is not set in ENV, set to en_US.UTF-8
Traceback (most recent call last):
File “seahub/manage.py”, line 8, in
from django.core.management import execute_from_command_line
File “/opt/seafile/seafile-server-8.0.7/seahub/thirdpart/django/init.py”, line 1, in
from django.utils.version import get_version
File “/opt/seafile/seafile-server-8.0.7/seahub/thirdpart/django/utils/version.py”, line 71, in
@functools.lru_cache()
AttributeError: ‘module’ object has no attribute ‘lru_cache’
Done.
网上搜索,说django2.2版本没有此函数 ‘lru_cache’,需降级django1.9,但是降级1.9后又与seafile8.0不兼容,请官方确认下此问题,非常感谢。
我貌似不小心删掉了数据文件夹下面的某些文件,所以需要执行下此命令修正下错误,非常感谢!