Bug #12830
Docker: qtSwordPluginWorker ability never gets added to the worker
Status: | Verified | Start date: | 02/19/2019 | |
---|---|---|---|---|
Priority: | Low | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | Docker | |||
Target version: | Release 2.5.2 | |||
Google Code Legacy ID: | Tested version: | 2.4, 2.5 | ||
Sponsored: | No | Requires documentation: |
Description
The qtSwordPlugin is disabled and its classes are not being loaded by default. When the plugin is enabled through the GUI, the classes are loaded and, after restarting the worker, the qtSwordPluginWorker ability is added to the worker.
That's true in an installation where the application and the worker are in the same machine, but it's not the case in the Docker environment, where both things are in different containers.
As a quick solution, and an option for a long term fix, the qtSwordPlugin could be enabled by default, by adding it to the initial plugins array:
https://github.com/artefactual/atom/blob/qa/2.5.x/config/ProjectConfiguration.class.php#L34-L49
History
#1 Updated by Dan Gillean about 3 years ago
- Assignee set to José Raddaoui Marín
- Requires documentation set to Yes
Personally, I think that enabling the SWORD worker by default sounds like an acceptable solution if it will resolve this issue. Users can always choose to disable it after installation if desired. We could add a note to that effect in the documentation.
#2 Updated by José Raddaoui Marín about 3 years ago
Okay, adding it to the initial plugins it can't never be disabled (like the Accessions and Elasticsearch plugins, for example). If that's okay the fix is easy, as mentioned in the description. Otherwise, this will require further analysis.
#3 Updated by José Raddaoui Marín about 3 years ago
Related thread from the user forum: https://groups.google.com/forum/#!topic/ica-atom-users/GCIhtN4LsDg
#4 Updated by José Raddaoui Marín about 3 years ago
- Assignee deleted (
José Raddaoui Marín) - Priority changed from Medium to Low
- Target version deleted (
Release 2.5.0)
Discussed via email and enabling the SWORD plugin by default is not a desired solution.
#5 Updated by José Raddaoui Marín almost 3 years ago
- Status changed from New to Verified
- Target version set to Release 2.5.2
This has been fixed with the changes from https://github.com/artefactual/atom/pull/928. The ability is now added after enabling the plugin and restarting the atom_worker
service.
atom_worker_1 | 2019-08-08 12:24:25 > New ability: arFindingAidJob atom_worker_1 | 2019-08-08 12:24:25 > New ability: arInheritRightsJob atom_worker_1 | 2019-08-08 12:24:25 > New ability: arCalculateDescendantDatesJob atom_worker_1 | 2019-08-08 12:24:25 > New ability: arObjectMoveJob atom_worker_1 | 2019-08-08 12:24:25 > New ability: arInformationObjectCsvExportJob atom_worker_1 | 2019-08-08 12:24:25 > Ability not defined: qtSwordPluginWorker. Please ensure the job is in the lib/task/job directory or that the plugin is enabled. atom_worker_1 | 2019-08-08 12:24:25 > New ability: arUpdatePublicationStatusJob atom_worker_1 | 2019-08-08 12:24:25 > New ability: arFileImportJob atom_worker_1 | 2019-08-08 12:24:25 > New ability: arInformationObjectXmlExportJob atom_worker_1 | 2019-08-08 12:24:25 > New ability: arXmlExportSingleFileJob atom_worker_1 | 2019-08-08 12:24:25 > New ability: arGenerateReportJob atom_worker_1 | 2019-08-08 12:24:25 > New ability: arActorCsvExportJob atom_worker_1 | 2019-08-08 12:24:25 > New ability: arActorXmlExportJob atom_worker_1 | 2019-08-08 12:24:25 > New ability: arRepositoryCsvExportJob atom_worker_1 | 2019-08-08 12:24:25 > New ability: arUpdateEsIoDocumentsJob atom_worker_1 | 2019-08-08 12:24:25 > Running worker... atom_worker_1 | 2019-08-08 12:24:25 > PID 13 atom_worker_1 | 2019-08-08 12:25:06 > New ability: arFindingAidJob atom_worker_1 | 2019-08-08 12:25:06 > New ability: arInheritRightsJob atom_worker_1 | 2019-08-08 12:25:06 > New ability: arCalculateDescendantDatesJob atom_worker_1 | 2019-08-08 12:25:06 > New ability: arObjectMoveJob atom_worker_1 | 2019-08-08 12:25:06 > New ability: arInformationObjectCsvExportJob atom_worker_1 | 2019-08-08 12:25:06 > New ability: qtSwordPluginWorker atom_worker_1 | 2019-08-08 12:25:06 > New ability: arUpdatePublicationStatusJob atom_worker_1 | 2019-08-08 12:25:06 > New ability: arFileImportJob atom_worker_1 | 2019-08-08 12:25:06 > New ability: arInformationObjectXmlExportJob atom_worker_1 | 2019-08-08 12:25:06 > New ability: arXmlExportSingleFileJob atom_worker_1 | 2019-08-08 12:25:06 > New ability: arGenerateReportJob atom_worker_1 | 2019-08-08 12:25:06 > New ability: arActorCsvExportJob atom_worker_1 | 2019-08-08 12:25:06 > New ability: arActorXmlExportJob atom_worker_1 | 2019-08-08 12:25:06 > New ability: arRepositoryCsvExportJob atom_worker_1 | 2019-08-08 12:25:06 > New ability: arUpdateEsIoDocumentsJob atom_worker_1 | 2019-08-08 12:25:06 > Running worker... atom_worker_1 | 2019-08-08 12:25:06 > PID 13
#6 Updated by Dan Gillean over 2 years ago
- Requires documentation deleted (
Yes)