添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我执行 pip install --upgrade jumpserver-python-sdk 命令后回放录像和命令都没有记录,命令我执行了修改文件的操作。

在debug模式下报错:
AttributeError: Got AttributeError when attempting to get a value for field proxy_log_id on serializer CommandLogSerializer .
The serializer field might be named incorrectly and not match any attribute or key on the NoneType instance.

数据库,audits_commandlog表和audits_recordlog表为空,进入命令记录表页有报错:
"GET /static/js/plugins/dataTables/dataTables.min.js HTTP/1.0" 404 1733

AttributeError: Got AttributeError when attempting to get a value for field proxy_log_id on serializer CommandLogSerializer.
The serializer field might be named incorrectly and not match any attribute or key on the NoneType instance.

这个问题我前几天部署一个新机器的时候遇到过, djangorestframework 最新版会出现这个问题,临时解决办法是将版本固定成 3.6.2

pip3 install djangorestframework==3.6.2

@goldMonkey

另外, @ibuler 要不把requirement所有的包都固定版本的,定期升级测试一遍,python很多库很奇葩,升个小版本都可能造成API的不兼容,你觉得咧?