•  
      request #13516 Empty plugin hooks cache file crashes the instance
    Infos
    #13516
    Thomas Gerbet (tgerbet)
    2019-06-26 08:47
    2019-06-20 17:07
    13639
    Details
    Empty plugin hooks cache file crashes the instance
    Under some not clearly determined conditions (AFAIK it only happens after a full clear caches and ownership restoration), the plugin hooks cache file can be empty. When you end up in this situation, the only remaining possibility is to manually remove the plugin hooks cache file.


    Trace:
    PHP Fatal error: Uncaught TypeError: Argument 1 passed to Tuleap\Plugin\SerializedPluginProxy::__construct() must be an instance of Tuleap\Plugin\EventPluginCache, integer given, called in /usr/share/tuleap/src/common/plugin/PluginLoader.php on line 89 and defined in /usr/share/tuleap/src/common/plugin/SerializedPluginProxy.php:39
    Stack trace:
    #0 /usr/share/tuleap/src/common/plugin/PluginLoader.php(89): Tuleap\Plugin\SerializedPluginProxy->__construct(1)
    #1 /usr/share/tuleap/src/common/plugin/PluginLoader.php(51): Tuleap\Plugin\PluginLoader->getFromCache()
    #2 /usr/share/tuleap/src/common/include/LoaderScheduler.php(41): Tuleap\Plugin\PluginLoader->loadPlugins()
    #3 /usr/share/tuleap/src/www/include/pre.php(134): LoaderScheduler->loadPluginsThenStartSession(true)
    #4 /usr/share/tuleap/src/utils/tuleap.php(21): require_once('/usr/share/tule...')
    #5 {main}
    thrown in /usr/share/tuleap/src/common/plugin/SerializedPluginProxy.php on line 39
    Empty
    Other
    All
    Empty
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2019-06-26
    Attachments
    Empty
    References

    Follow-ups

    • User avatar
      • Status changed from Under review to Closed
      • Close date set to 2019-06-26
    • User avatar
      gerrit #15299 integrated into Tuleap 11.2.99.185
    • User avatar
      Complementary contribution can be reviewed here: gerrit #15299.

      • Status changed from Reopen to Under review
    • User avatar
      Re-opening, the previous contribution does not manage well the rewriting of a corrupted hooks cache. The instance does not crash but PHP warning is raised and the instance does not benefit from the cache.

      • Status changed from Closed to Reopen
      • Close date cleared
    • User avatar
      gerrit #15246 integrated into Tuleap 11.2.99.140

      • Status changed from Under review to Closed
      • Connected artifacts
      • Close date set to 2019-06-21
    • User avatar
      A patch is under review: gerrit #15246.

      • Status changed from Under implementation to Under review
    • User avatar
      • Original Submission