Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

工单执行失败 #321

Open
luanshuo opened this issue Aug 5, 2021 · 6 comments
Open

工单执行失败 #321

luanshuo opened this issue Aug 5, 2021 · 6 comments

Comments

@luanshuo
Copy link

luanshuo commented Aug 5, 2021

工单提交后,审核通过以后无反应,看了下log
image

image
点开工单也是这样的 没有内容

image
另外查询数据库表web界面也没有输出
之前因为没有获取redis password无法远程登陆服务器,我在docker-compose 加了command: redis-server --requirepass password 目前可以登录 但是工单执行还是存在问题 希望大佬说下啥问题。

@welliamcao
Copy link
Owner

1、工单没有选择服务器吗?
2、查询结果没输出吗?

@luanshuo
Copy link
Author

luanshuo commented Aug 7, 2021

1、工单没有选择服务器吗?
2、查询结果没输出吗?

工单申请时选择了服务器,然后提交->审批通过->点进工单详情->命令为空,机器为空,执行也没反应 感觉像是Redis的问题

通过SQL脚本查询 无输出,但是可以通过写好的模块查询到databases tables 包括一些info

@welliamcao
Copy link
Owner

配置了nginx吗?

@luanshuo
Copy link
Author

配置了nginx吗?

docker-compose里的opsmanage-nginx吗?没有配置。 是需要配置吗?

@welliamcao
Copy link
Owner

python3 manage.py runserver --http_timeout 1200
你试试加上--http_timeout 1200参数看看?
还有能先确认redis是否连接正常吗?

@luanshuo
Copy link
Author

python3 manage.py runserver --http_timeout 1200
你试试加上--http_timeout 1200参数看看?
还有能先确认redis是否连接正常吗?

docker-compose redis 加了 command: redis-server --requirepass 123456 ../cofig/opsmanage.ini 中设了 redis_password=123456 redis可以连接,Django启动有--http_timeout 1200。工单还是无法操作

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants