Univention Bugzilla – Full Text Bug Listing |
Summary: | UMC server crashes IndexError: tuple index out of range | ||
---|---|---|---|
Product: | UCS | Reporter: | Felix Botner <botner> |
Component: | UMC (Generic) | Assignee: | Florian Best <best> |
Status: | CLOSED FIXED | QA Contact: | Felix Botner <botner> |
Severity: | critical | ||
Priority: | P5 | CC: | best |
Version: | UCS 4.2 | ||
Target Milestone: | UCS 4.2-0-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | Bug Report | What type of bug is this?: | 7: Crash: Bug causes crash or data loss |
Who will be affected by this bug?: | 2: Will only affect a few installed domains | How will those affected feel about the bug?: | 3: A User would likely not purchase the product |
User Pain: | 0.240 | Enterprise Customer affected?: | |
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | ||
Max CVSS v3 score: | |||
Bug Depends on: | |||
Bug Blocks: | 44647 | ||
Attachments: |
management-console-module-adtakeover.log
management-console-server.log |
Description
Felix Botner
2017-04-13 10:53:59 CEST
i get this very often during the ad-takeover Created attachment 8861 [details]
management-console-module-adtakeover.log
again and again, always with the takeover module
i have now debug=4 logs for the server and the module
Created attachment 8862 [details]
management-console-server.log
I have a reliable way to reproduce this error: Execute the following command in a shell: # while true; do curl http://Administrator:Univention.1@localhost/univention/command/adtakeover/progress & sleep 0.1; done During this command execute two or three times immediately after another the following command: # curl http://Administrator:Univention.1@localhost/univention/command/adtakeover/connect -H 'Content-Type: application/json' -d '{"options": {"ad_username": "Administrator", "ad_password": "univention", "ip": "10.200.27.112"}}' This will cause the UMC-Server crash. The bug is triggered by wrong error handling in combinations with threads in the adtakeover module. The module process somehow ends itself which causes that all request infos are gone but the state machine/socket buffer still contains one response which can't be mapped to any request anymore causing this exception. univention-management-console.yaml: r79429 | YAML Bug #44365 univention-management-console (9.0.80-14): r79428 | Bug #44365: fix crashing of UMC server during error handling OK - univention-management-console.yaml OK - i still get an "error" but at least the umc server handles this now by itself (restarts the module) 22.05.17 11:59:40.128 MAIN ( ERROR ) : Module 'adtakeover' ran into error: (500, 'Received an unknown response.') 22.05.17 11:59:40.128 MAIN ( WARN ) : Invalidating all pending requests 149544718009199-2380 22.05.17 11:59:40.130 MAIN ( WARN ) : Module process adtakeover died (pid: 19772, exit status: -1, signal: -1, status: -1) 22.05.17 11:59:40.131 MAIN ( WARN ) : Cleaning up requests 22.05.17 11:59:40.131 MAIN ( WARN ) : Remove inactivity timer 22.05.17 11:59:40.131 MAIN ( WARN ) : Client: _handle: received an unknown response: 149544718009199-2380 22.05.17 11:59:40.131 MAIN ( ERROR ) : Module 'adtakeover' ran into error: (500, 'Received an unknown response.') 22.05.17 11:59:42.204 MAIN ( PROCESS ) : running: ['/usr/sbin/univention-management-console-module', '-m', 'adtakeover', '-s', '/var/run/univention-management-console/18734-1495447182203.socket', '-d', '2', '-l', 'de_DE.UTF-8'] 22.05.17 11:59:53.941 MAIN ( WARN ) : Client: _handle: received an unknown response: 149544719381181-2399 22.05.17 11:59:53.941 MAIN ( ERROR ) : Module 'adtakeover' ran into error: (500, 'Received an unknown response.') 22.05.17 11:59:53.942 MAIN ( WARN ) : Invalidating all pending requests 149544719381848-2400 22.05.17 11:59:53.944 MAIN ( WARN ) : Module process adtakeover died (pid: 19781, exit status: -1, signal: -1, status: -1) 22.05.17 11:59:53.944 MAIN ( WARN ) : Cleaning up requests 22.05.17 11:59:53.944 MAIN ( WARN ) : Remove inactivity timer 22.05.17 11:59:53.945 MAIN ( WARN ) : Client: _handle: received an unknown response: 149544719381848-2400 22.05.17 11:59:53.945 MAIN ( ERROR ) : Module 'adtakeover' ran into error: (500, 'Received an unknown response.') 22.05.17 11:59:56.005 MAIN ( PROCESS ) : running: ['/usr/sbin/univention-management-console-module', '-m', 'adtakeover', '-s', '/var/run/univention-management-console/18734-1495447196005.socket', '-d', '2', '-l', 'de_DE.UTF-8'] |