-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[Bug] 快捷命令执行报错 #10185
Labels
🐛 Bug
Something isn't working | 缺陷
Comments
github-actions
bot
added
the
🔔 Pending processing
Awaiting processing from the issue assignees | 待处理
label
Apr 12, 2023
测试了几次没有复现,看下后端 celery_ansible.log 的日志报错信息。 |
github-actions
bot
added
⏳ Pending feedback
Awaiting feedback from the issue reporter | 待反馈
and removed
🔔 Pending processing
Awaiting processing from the issue assignees | 待处理
labels
Apr 12, 2023
github-actions
bot
added
🔔 Pending processing
Awaiting processing from the issue assignees | 待处理
and removed
⏳ Pending feedback
Awaiting feedback from the issue reporter | 待反馈
labels
Apr 12, 2023
日志里没有打堆栈信息还看不出来,怎么复现一下呢? |
github-actions
bot
added
⏳ Pending feedback
Awaiting feedback from the issue reporter | 待反馈
and removed
🔔 Pending processing
Awaiting processing from the issue assignees | 待处理
labels
Apr 12, 2023
按照下面的方法修改一下代码,来看看日志输出信息:
|
github-actions
bot
added
🔔 Pending processing
Awaiting processing from the issue assignees | 待处理
and removed
⏳ Pending feedback
Awaiting feedback from the issue reporter | 待反馈
labels
Apr 12, 2023
按照这个编写了 apps/ops/tasks.py 但好像日志格式还是没什么变化。 |
github-actions
bot
added
⏳ Pending feedback
Awaiting feedback from the issue reporter | 待反馈
and removed
🔔 Pending processing
Awaiting processing from the issue assignees | 待处理
labels
Apr 12, 2023
报错如下 Task ops.tasks.run_ops_job_execution[1e8849e7-70d1-4569-8b0d-bb5acca1c1ef] received
>> Set language to zh-hans
>> Set org to 00000000-0000-0000-0000-000000000002
2023-04-12 17:16:38 [tasks ERROR] Start adhoc execution error: 'set' object is not subscriptable
Traceback (most recent call last):
File "/opt/jumpserver/apps/ops/tasks.py", line 70, in run_ops_job_execution
execution.start()
File "/opt/jumpserver/apps/ops/models/job.py", line 445, in start
runner = self.get_runner()
File "/opt/jumpserver/apps/ops/models/job.py", line 273, in get_runner
inv.write_to_file(self.inventory_path)
File "/opt/jumpserver/apps/ops/ansible/inventory.py", line 229, in write_to_file
data = self.generate(path_dir)
File "/opt/jumpserver/apps/ops/ansible/inventory.py", line 192, in generate
account = self.select_account(asset)
File "/opt/jumpserver/apps/ops/ansible/inventory.py", line 174, in select_account
account_selected = accounts[0]
TypeError: 'set' object is not subscriptable
Start adhoc execution error: 'set' object is not subscriptable
Traceback (most recent call last):
File "/opt/jumpserver/apps/ops/tasks.py", line 70, in run_ops_job_execution
execution.start()
File "/opt/jumpserver/apps/ops/models/job.py", line 445, in start
runner = self.get_runner()
File "/opt/jumpserver/apps/ops/models/job.py", line 273, in get_runner
inv.write_to_file(self.inventory_path)
File "/opt/jumpserver/apps/ops/ansible/inventory.py", line 229, in write_to_file
data = self.generate(path_dir)
File "/opt/jumpserver/apps/ops/ansible/inventory.py", line 192, in generate
account = self.select_account(asset)
File "/opt/jumpserver/apps/ops/ansible/inventory.py", line 174, in select_account
account_selected = accounts[0]
TypeError: 'set' object is not subscriptable
Task ops.tasks.run_ops_job_execution[1e8849e7-70d1-4569-8b0d-bb5acca1c1ef] succeeded in 0.14671393483877182s: None |
github-actions
bot
added
🔔 Pending processing
Awaiting processing from the issue assignees | 待处理
and removed
⏳ Pending feedback
Awaiting feedback from the issue reporter | 待反馈
labels
Apr 12, 2023
github-actions
bot
added
⏳ Pending feedback
Awaiting feedback from the issue reporter | 待反馈
and removed
🔔 Pending processing
Awaiting processing from the issue assignees | 待处理
labels
Apr 12, 2023
github-actions
bot
added
🔔 Pending processing
Awaiting processing from the issue assignees | 待处理
and removed
⏳ Pending feedback
Awaiting feedback from the issue reporter | 待反馈
labels
Apr 12, 2023
我给用户授权root后 再执行了一次,成功了。见上面截图的最后几行信息。 |
github-actions
bot
added
⏳ Pending feedback
Awaiting feedback from the issue reporter | 待反馈
and removed
🔔 Pending processing
Awaiting processing from the issue assignees | 待处理
labels
Apr 12, 2023
github-actions
bot
removed
the
⏳ Pending feedback
Awaiting feedback from the issue reporter | 待反馈
label
Apr 12, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JumpServer 版本( v2.28 之前的版本不再支持 )
JumpServer v3.1.2
浏览器版本
Chrome 版本 111.0.5563.147(正式版本) (64 位)
Bug 描述
我是通过 jmsctl.sh upgrade 命令将 v2.28 升级到 v3.1.2的。但使用 快捷命令功能时,总是遇到
“Start adhoc execution error: 'set' object is not subscriptable” 报错。
Bug 重现步骤(有截图更好)
1.进入 “快捷命令”
2.左侧选择一个主机
3.右侧输入 w 命令,点击执行
The text was updated successfully, but these errors were encountered: