Replies: 1 comment 8 replies
-
建议使用项目带的 sql 语句进行升级改表, migration 的方式不支持的. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
手动部署v1.8.5升级到v1.10.0按照如下升级步骤进行升级:
1、下载对应 Release 版本的压缩包: Releases
2、按照配置文件的说明修改相关配置: 修改配置
3、重新安装依赖, 以免存在依赖变更pip install -r requirements.txt
4、应用数据库变更 python manage.py migrate
5、重新启动服务: 启动
当前v1.8.5未启用任何外部认证,账号为本地认证的方式,升级到v1.10.0后,页面上输入账号/密码登录,报如下错误:
Django Version: 4.1.10
Python Version: 3.9.10
OS Version: CentOS Linux release 7.9.2009
Request Method: POST
Request URL: http://192.168.13.49:80/authenticate/
Traceback (most recent call last):
File "/data/venv4archery/lib/python3.9/site-packages/django/core/handlers/exception.py", line 56, in inner
response = get_response(request)
File "/data/venv4archery/lib/python3.9/site-packages/django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/data/archery1.10.0/common/auth.py", line 118, in authenticate_entry
result = new_auth.authenticate()
File "/data/archery1.10.0/common/auth.py", line 84, in authenticate
lock_count = int(self.sys_config.get("lock_cnt_threshold", 5))
Exception Type: ValueError at /authenticate/
Exception Value: invalid literal for int() with base 10: 'X5u0cP5cKotxfutQNIFDYQ=='
/data/venv4archery/lib/python3.9/site-packages/django/core/handlers/exception.py, line 56, in inner
return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request) …
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Local vars
Variable Value
exc
ValueError("invalid literal for int() with base 10: 'X5u0cP5cKotxfutQNIFDYQ=='")
get_response
<bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7f00e88d3d90>>
request
<WSGIRequest: POST '/authenticate/'>
Beta Was this translation helpful? Give feedback.
All reactions