https://framagit.org/hubzilla/core/merge_requests/1434Lately I've run into problems after upgrades requiring addons to be unloaded and reloaded.
From this report after the release of 3.8.7, it appears I'm not alone:
https://hub.phanisvara.com/display/212b99503736444156444d197fe661c022ada5991aad6133c400acfe8671c05f@hub.phanisvara.com?f=&owt=e3f3cb73829e7e2cdc37be9aa18aa5e2At some point, after some people have tested this out a bit, it may be useful to update util/udall to include a util/addon reload. Another alternative is to enforce the use of safemode during updates.
But, in the mean time, at least people will have the ability to "refresh" all of the addons at once with a simple cli command.
I suspect that the actual problem is a race condition during the upgrade where the OPCache gets out of sync. I've found more and more often lately I need to restart php-fpm (on my NGINX boxes) to make sure everything is good, but even then, addons can get in a funky state. I blame it on the speed improvements of PHP7 over PHP5.
It wouldn't surprise me that especially in the cases of shared hosting, similar things are happening more frequently as well.
OPTIMALLY - during an upgrade, the web server will not be serving pages (the PHP module will be disabled during maintenance and re-enabled after the upgrade). Obviously, that isn't an option in some cases (eg, shared hosting). We may need to begin being more intentional about communicating "best practices" for upgrades along with our release announcements.
Anyway - this is one tool that might help admins deal with the situation.
!!
Hubzilla Development