chroblert / AssetManage

278 stars 97 forks source link

linux 执行脚本时候,web页面收不到 信息, 但windows的脚本执行结果能看到 #4

Closed yq513 closed 4 years ago

yq513 commented 4 years ago

linux 执行脚本时候,web页面收不到 信息, 但windows的脚本执行结果能看到 后端服务器日志提示如下: Internal Server Error: /baseline/linux_scan_res_report/ Traceback (most recent call last): File "/opt/py3/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner response = get_response(request) File "/opt/py3/lib/python3.6/site-packages/django/core/handlers/base.py", line 115, in _get_response response = self.process_exception_by_middleware(e, request) File "/opt/py3/lib/python3.6/site-packages/django/core/handlers/base.py", line 113, in _get_response response = wrapped_callback(request, *callback_args, *callback_kwargs) File "/opt/py3/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(args, **kwargs) File "/opt/pyhton3/AssetManage/baseline/views.py", line 519, in linux_scan_res_report ck_userHomeDirPermissionArray="True" if "False" not in userHomeDirPermissionArray and "False" not in [int(i) > 750 for i in userHomeDirPermissionArray.split(";")[:-1]] else "False" File "/opt/pyhton3/AssetManage/baseline/views.py", line 519, in ck_userHomeDirPermissionArray="True" if "False" not in userHomeDirPermissionArray and "False" not in [int(i) > 750 for i in userHomeDirPermissionArray.split(";")[:-1]] else "False" ValueError: invalid literal for int() with base 10: 'drwx------' [10/Feb/2020 17:01:07] "POST /baseline/linux_scan_res_report/ HTTP/1.1" 500 135143 [10/Feb/2020 17:01:13] "GET /baseline/scan_res_display/ HTTP/1.1" 200 15496 [10/Feb/2020 17:01:13] "GET /static/adminlet-2.4.10/bower_components/bootstrap/dist/css/bootstrap.min.css HTTP/1.1" 304 0 [10/Feb/2020 17:01:13] "GET /static/adminlet-2.4.10/bower_components/font-awesome/css/font-awesome.min.css HTTP/1.1" 304 0 [10/Feb/2020 17:01:13] "GET /static/adminlet-2.4.10/bower_components/Ionicons/css/ionicons.min.css HTTP/1.1" 304 0 [10/Feb/2020 17:01:13] "GET /static/adminlet-2.4.10/dist/css/skins/skin-blue.min.css HTTP/1.1" 304 0 [10/Feb/2020 17:01:13] "GET /static/adminlet-2.4.10/dist/css/AdminLTE.min.css HTTP/1.1" 304 0 [10/Feb/2020 17:01:13] "GET /static/adminlet-2.4.10/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css HTTP/1.1" 304 0 [10/Feb/2020 17:01:13] "GET /static/adminlet-2.4.10/bower_components/jquery/dist/jquery.min.js HTTP/1.1" 304 0 [10/Feb/2020 17:01:13] "GET /static/adminlet-2.4.10/bower_components/bootstrap/dist/js/bootstrap.min.js HTTP/1.1" 304 0 [10/Feb/2020 17:01:13] "GET /static/adminlet-2.4.10/dist/js/adminlte.min.js HTTP/1.1" 304 0 [10/Feb/2020 17:01:13] "GET /static/adminlet-2.4.10/bower_components/datatables.net/js/jquery.dataTables.min.js HTTP/1.1" 304 0 [10/Feb/2020 17:01:13] "GET /static/adminlet-2.4.10/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js HTTP/1.1" 304 0 [10/Feb/2020 17:01:13] "GET /static/adminlet-2.4.10/dist/img/user2-160x160.jpg HTTP/1.1" 304 0