Upgrade ends with an error ""You have requested a non-existent service "formfieldlibrary".
In the last step of the upgrade the following error is shown. The upgrade is however succesfull. So you can ignore it. But it looks a bit scary.
Apr 04 20:11:22 [info] $CRM_Queue_Page_AJAX_runNext_error = Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: "You have requested a non-existent service "formfieldlibrary"."
#0 /var/www/html/sites/all/modules/civicrm/vendor/symfony/dependency-injection/ContainerBuilder.php(620): Symfony\Component\DependencyInjection\ContainerBuilder->getDefinition("formfieldlibrary")
#1 /var/www/html/sites/all/modules/civicrm/vendor/symfony/dependency-injection/ContainerBuilder.php(588): Symfony\Component\DependencyInjection\ContainerBuilder->doGet("formfieldlibrary", 1)
#2 /var/www/html/sites/all/modules/civicrm/Civi.php(174): Symfony\Component\DependencyInjection\ContainerBuilder->get("formfieldlibrary")
#3 /var/www/html/sites/default/files/civicrm/ext/searchactiondesigner/searchactiondesigner.php(12): Civi::service("formfieldlibrary")
#4 /var/www/html/sites/default/files/civicrm/ext/searchactiondesigner/CRM/Searchactiondesigner/Importer.php(80): searchactiondesigner_get_form_field_library()
#5 /var/www/html/sites/default/files/civicrm/ext/searchactiondesigner/CRM/Searchactiondesigner/Importer.php(48): CRM_Searchactiondesigner_Importer::importSearchTask((Array:8), "ilga-recruitment-config/searchactions/send_email_to_case_client.json", "4")
#6 /var/www/html/sites/default/files/civicrm/ext/searchactiondesigner/CRM/Searchactiondesigner/Importer.php(130): CRM_Searchactiondesigner_Importer::import((Array:8), "ilga-recruitment-config/searchactions/send_email_to_case_client.json")
#7 /var/www/html/sites/default/files/civicrm/ext/searchactiondesigner/searchactiondesigner.php(112): CRM_Searchactiondesigner_Importer::importFromExtensions()
#8 /var/www/html/sites/all/modules/civicrm/CRM/Utils/Hook.php(271): searchactiondesigner_civicrm_managed((Array:4))
#9 /var/www/html/sites/all/modules/civicrm/CRM/Utils/Hook/DrupalBase.php(73): CRM_Utils_Hook->runHooks((Array:80), "civicrm_managed", 1, (Array:4), NULL, NULL, NULL, NULL, NULL)
#10 /var/www/html/sites/all/modules/civicrm/Civi/Core/CiviEventDispatcher.php(237): CRM_Utils_Hook_DrupalBase->invokeViaUF(1, (Array:4), NULL, NULL, NULL, NULL, NULL, "civicrm_managed")
#11 /var/www/html/sites/all/modules/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php(214): Civi\Core\CiviEventDispatcher::delegateToUF(Object(Civi\Core\Event\GenericHookEvent), "hook_civicrm_managed", Object(Civi\Core\CiviEventDispatcher))
#12 /var/www/html/sites/all/modules/civicrm/vendor/symfony/event-dispatcher/EventDispatcher.php(44): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch((Array:1), "hook_civicrm_managed", Object(Civi\Core\Event\GenericHookEvent))
#13 /var/www/html/sites/all/modules/civicrm/Civi/Core/CiviEventDispatcher.php(198): Symfony\Component\EventDispatcher\EventDispatcher->dispatch("hook_civicrm_managed", Object(Civi\Core\Event\GenericHookEvent))
#14 /var/www/html/sites/all/modules/civicrm/CRM/Utils/Hook.php(167): Civi\Core\CiviEventDispatcher->dispatch("hook_civicrm_managed", Object(Civi\Core\Event\GenericHookEvent))
#15 /var/www/html/sites/all/modules/civicrm/CRM/Utils/Hook.php(725): CRM_Utils_Hook->invoke((Array:1), (Array:4), NULL, NULL, NULL, NULL, NULL, "civicrm_managed")
#16 /var/www/html/sites/all/modules/civicrm/CRM/Core/ManagedEntities.php(654): CRM_Utils_Hook::managed((Array:4))
#17 /var/www/html/sites/all/modules/civicrm/CRM/Core/ManagedEntities.php(123): CRM_Core_ManagedEntities->loadDeclarations()
#18 /var/www/html/sites/all/modules/civicrm/CRM/Core/Invoke.php(413): CRM_Core_ManagedEntities->reconcile()
#19 /var/www/html/sites/all/modules/civicrm/CRM/Upgrade/Form.php(818): CRM_Core_Invoke::rebuildMenuAndCaches(FALSE, FALSE)
#20 /var/www/html/sites/all/modules/civicrm/CRM/Queue/Task.php(73): CRM_Upgrade_Form::doCoreFinish(Object(CRM_Queue_TaskContext), "5.47.3", "5.47.3", "5.47.3", "/tmp/civicrm-post-upgradefucrKe")
#21 /var/www/html/sites/all/modules/civicrm/CRM/Queue/Runner.php(215): CRM_Queue_Task->run(Object(CRM_Queue_TaskContext))
#22 /var/www/html/sites/all/modules/civicrm/CRM/Queue/Page/AJAX.php(36): CRM_Queue_Runner->runNext(TRUE)
#23 /var/www/html/sites/all/modules/civicrm/CRM/Queue/ErrorPolicy.php(89): CRM_Queue_Page_AJAX::{closure}()
#24 /var/www/html/sites/all/modules/civicrm/CRM/Queue/Page/AJAX.php(38): CRM_Queue_ErrorPolicy->call(Object(Closure))
#25 /var/www/html/sites/all/modules/civicrm/CRM/Core/Invoke.php(285): CRM_Queue_Page_AJAX::runNext()
#26 /var/www/html/sites/all/modules/civicrm/CRM/Core/Invoke.php(69): CRM_Core_Invoke::runItem((Array:13))
#27 /var/www/html/sites/all/modules/civicrm/CRM/Core/Invoke.php(36): CRM_Core_Invoke::_invoke((Array:5))
#28 /var/www/html/sites/all/modules/civicrm/drupal/civicrm.module(471): CRM_Core_Invoke::invoke((Array:5))
#29 /var/www/html/includes/menu.inc(527): civicrm_invoke("upgrade", "queue", "ajax", "runNext")
#30 /var/www/html/index.php(21): menu_execute_active_handler()
#31 {main}
Some technical explanation.
- The searchactionactiondesigner loads possible searchaction definitions when the menu is rebuild. To this, it needs the
formfieldlibrary
service. Mostly this works fine. - After an upgrade the menu's are rebuild. Not all the services of the extensions are loaded at that moment. So this error is generated.