反馈个BUG,执行“过时的资料库数据”指令时报错


#1

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不兼容,请官方确认下此问题,非常感谢。
我貌似不小心删掉了数据文件夹下面的某些文件,所以需要执行下此命令修正下错误,非常感谢!


#2

我的环境是ubuntu server 20+python3+nginx1.14,先前已经按照文档执行了以下命令,并成功安装

on Debian 10/Ubuntu 18.04/Ubuntu 20.04

apt-get update
apt-get install python3 python3-setuptools python3-pip python3-ldap libmysqlclient-dev -y
pip3 install --timeout=3600 django==2.2.* future mysqlclient pymysql Pillow pylibmc \
captcha jinja2 sqlalchemy==1.4.3 psd-tools django-pylibmc django-simple-captcha