Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
4.20.12, 5.6.0
-
None
-
6
-
Severity 3 - Minor
-
1
-
Description
Issue Summary
Import tasks can get stuck and cannot be cancelled / restarted
Steps to Reproduce
- Set an import schedule
- Let the import run
- When the import gets stuck, on the Import configuration, press Stop button
- Start the synchronization again manually
Expected Results
Manual synchronization triggers a new import.
Actual Results
The synchronization cannot be triggered, and the old stuck process is still running.
The following appears on the screen when attempting to synchronize the import task:
Workaround
- Restart Jira
- Disable and enable Insight plugin through REST API:
- Disable plugin:
PUT /rest/plugins/1.0/com.riadalabs.jira.plugins.insight-key Header: Content-Type: application/vnd.atl.plugins.plugin+json body: { "enabled": false }
- Enable plugin by RestAPI
PUT /rest/plugins/1.0/com.riadalabs.jira.plugins.insight-key Header: Content-Type: application/vnd.atl.plugins.plugin+json body: { "enabled": true }
- Disable plugin:
Important note: In some cases, disabling Insight can disable some other system plugins and trigger cache flushes event (see JSDSERVER-12106). To avoid any downtime / minimize effect, make sure to perform this workaround outside of working hours.
Notes
So far, we were not able to reproduce this exact behaviour internally, but this problem can occur when there is an import problem in the early stage of the import (e.g. LDAP connection issue or database connectivity problem).