源码部署ITSM,出现bug。
Opened this issue · 2 comments
houming818 commented
部署方式:
先用 开发者中心 部署ITSM的tar.gz包。然后用开源代码替换 /data/bkce/paas_agent/apps/projects/bk_itsm/code/bk_itsm
的代码。
直接运行,登录都没有问题。但是再创建工作流的时候报错。如下图:
抓取ESB的请求记录。如下:
[
{
"req_system_name":"IAM",
"req_app_code":"bk_itsm",
"req_exception":null,
"message":"Request outgoing finished, method=POST url=http://paas.service.consul:80/o/bk_iam/api/v1/open/authorization/resource_creator_action/",
"req_params":"{\"name\": \"\\u6570\\u636e\\u5e93\\u8fd0\\u7ef4\\u534f\\u52a9\", \"system\": \"bk_itsm\", \"creator\": \"Ming.Hou1@****.com.cn\", \"type\": \"service\", \"id\": 43}",
"req_start_time":"2022-10-08 02:53:53",
"req_end_time":"2022-10-08 02:53:53",
"req_msecs_cost":7,
"req_response":"{\"result\":false,\"code\":1902401,\"message\":\"The user is not logged in or the login status is invalid, please use the login link to log in again\",\"data\":{\"login_url\":\"http://paas.prod.****.com.cn:80/login/\",\"login_plain_url\":\"http://paas.prod.****.com.cn:80/login/plain/?c_url=http%3A%2F%2Fpaas.prod.****.com.cn%3A80%2Fo%2Fbk_iam%2Flogin_success%2F&app_code=bk_iam\"}}",
"request_id":"080ad5df97f145aaafe425aa1d9e9828",
"req_component_name":"authorization_resource_creator_action",
"req_status":401,
"type":"pyls-comp-api",
"req_url":"[http://paas.service.consul:80/o/bk_iam/api/v1/open/authorization/resource_creator_action/](http://paas.service.consul/o/bk_iam/api/v1/open/authorization/resource_creator_action/)"
},
{
"req_message":"The user is not logged in or the login status is invalid, please use the login link to log in again",
"req_system_name":"IAM",
"req_app_code":"bk_itsm",
"req_status":4,
"req_use_test_env":false,
"message":"ESB request finished, method=POST system=IAM component=authorization_resource_creator_action",
"req_params":"{\"name\": \"\\u6570\\u636e\\u5e93\\u8fd0\\u7ef4\\u534f\\u52a9\", \"bk_token\": \"y_LtPBEhqeT3WAo7OobZgP6jsqNOJLai8F9jn9dnKkCKM7ntQPSOCYJeXYBcS3Z7\", \"type\": \"service\", \"bk_username\": \"admin\", \"system\": \"bk_itsm\", \"bk_app_code\": \"bk_itsm\", \"creator\": \"Ming.Hou1@****.com.cn\", \"id\": 43, \"bk_app_secret\": \"83f7****5747\"}",
"req_start_time":"2022-10-08 02:53:53",
"req_username":"Ming.Hou1@****.com.cn",
"req_client_ip":"10.167.160.222",
"req_end_time":"2022-10-08 02:53:53",
"req_msecs_cost":14,
"request_id":"080ad5df97f145aaafe425aa1d9e9828",
"req_component_name":"authorization_resource_creator_action",
"type":"pyls-comp-request"
}
]
hanshuaikang commented
我们要对接权限中心的,app_code 换了吗?
hanshuaikang commented
开源代码是基于那个分支的?