•  
      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
    14623
    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
    Other
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2019-06-26
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2019-06-25 14:07
    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
    Thomas Gerbet (tgerbet)2019-06-20 17:07
    • Original Submission
      Something went wrong, the follow up content couldn't be loaded
      Only formatting have been changed, you should switch to markup to see the changes