Site offline with 500 Internal Server Error after update from 2024.12 to 2026.01.
Hi there,
after succesfully updating the site several several times lately, trying to get it to run friendica stable the last update just got stuck.
Calling the site gives 500 error message.
In a first attempt to trouble shoot the situation I did the follwoing.
I stopped the cron job by quoting out the respective crontab -e line.
Than I tried to set the site into maintanence mode by using the description as detailed in https://forum.friendi.ca/help/admin/migrate:
bin/console maintenance 1 "We are currently upgrading our system and will be back soon."As result I got the following error message:
SSH wrote:
PHP Fatal error: Uncaught Error: Class "Symfony\Component\EventDispatcher\EventDispatcher" not found in/src/Event/EventDispatcher.php:19
Stack trace:
#0 /vendor/composer/ClassLoader.php(444): include()
#1 /vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile()
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass()
#3 /vendor/level-2/dice/Dice.php(73): is_subclass_of()
#4 /vendor/level-2/dice/Dice.php(53): Dice\Dice->getRule()
#5 /vendor/level-2/dice/Dice.php(47): Dice\Dice->addRuleTo()
#6 /src/Core/DiceContainer.php(25): Dice\Dice->addRules()
#7 /bin/console.php(21): Friendica\Core\DiceContainer::fromBasePath()
#8 {main}
thrown in /src/Event/EventDispatcher.php on line 19
As update procedure I used the standard procedure:git fetchgit checkout
Your branch is behind 'origin/stable' by 2025 commits, and can be fast-forwarded.git pullcd addongit fetchgit checkout
Your branch is behind 'origin/stable' by 226 commits, and can be fast-forwarded.git pull
Any idea what I can do to solve this?
…ᘛ⁐̤ᕐᐷ jesuisatire bitPickup
•Just rechecked the structure with the following result:
…ᘛ⁐̤ᕐᐷ jesuisatire bitPickup
•Update solved:
Just ran the command, as described in the 2026.01 release description:
bin/composer.phar run install:prodApparently that did the job:
👍
Roland Häder🇩🇪
•@…ᘛ⁐̤ᕐᐷ jesuisatire bitPickup Yes, you need to let
composerreinstallvendoras new/updated packages might be used by newer code.I put all required commands into a
deploy.shscript to just only execute that script, then I won't miss any commands to run.Mine is here BTW:
https://f.haeder.net/deploy.sh