6

I just tried upgrading a very vanilla site from 4.7.6 to 4.7.7. I ran drush civicrm-upgrade-db, which has worked previously on this site (which receives every point update - it's our internal CRM that serves as a testbed).

I received the following error:

WD php:                                                              [error]
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException:
You have requested a non-existent service "sql_triggers". in
Symfony\Component\DependencyInjection\Container->get() (line 317 of
/path/to/civicrm/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Container.php).
Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "sql_triggers". in Symfony\Component\DependencyInjection\Container->get() (line 317 of /path/to/civicrm/vendor/symfony/dependency-injection/Symfony/Component/DependencyInjection/Container.php).
Drush command terminated abnormally due to an unrecoverable error.   [error]

Upgrading via the web URL worked fine. Has anyone else experienced this?

1
  • I've only done one site to 4.7.7 so far but drush worked without a hiccup in my case.
    – Laryn
    May 6, 2016 at 3:35

1 Answer 1

4

Someone actually provided the answer to another person on the CiviCRM chat channel, so I'm posting it here:

<juri_> "You have requested a non-existent service 'sql_triggers'."
<juri_> anyone care to take a guess? this is civi on drupal 8.
<mollux> juri_ clear the CiviCRM cache, had the same issue yesterday
4
  • I just hit this error too, but happens from both drush and the UI, and clearing cache didn't help. Anyone have insight into how the service builder works? Jul 19, 2016 at 11:01
  • Good to remember that drush cc all does not seem to include drush cc civicrm. Jul 29, 2018 at 6:57
  • @artfulrobot That didn't sound right so I checked and it seems drush cc all includes drush cc civicrm. Jul 29, 2018 at 17:33
  • Hmmm, that's odd, I've had trouble with this many times. Just the other day I had done cc all and things were still broken but a dedicated cc civicrm fixed it. Well I'll keep the comment there, accepting it's untrue, because for whatever reason sometimes it does seem more effective when called in its own. Jul 31, 2018 at 6:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.