Search
Items tagged with: 8
@Friendica Support
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:
As result I got the following error message:
As update procedure I used the standard procedure:
Your branch is behind 'origin/stable' by 2025 commits, and can be fast-forwarded.
Your branch is behind 'origin/stable' by 226 commits, and can be fast-forwarded.
Any idea what I can do to solve this?
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 checkoutYour branch is behind 'origin/stable' by 2025 commits, and can be fast-forwarded.
git pullcd addongit fetchgit checkoutYour branch is behind 'origin/stable' by 226 commits, and can be fast-forwarded.
git pullAny idea what I can do to solve this?
@Hypolite Petovan
Uncaught Exception ValueError: "DOMDocument::loadHTML(): Argument #1 ($source) must not be empty" at /../domaincom/src/Model/Item.php line 3558
exception
exception
ValueError: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty in /../domaincom/src/Model/Item.php:3558
Stack trace:
#0 /../domaincom/src/Model/Item.php(3558): DOMDocument->loadHTML()
#1 /../domaincom/src/Model/Item.php(3481): Friendica\Model\Item::replacePlatformIcon()
#2 /../domaincom/src/Object/Post.php(451): Friendica\Model\Item::prepareBody()
#3 /../domaincom/src/Object/Thread.php(190): Friendica\Object\Post->getTemplateData()
#4 /../domaincom/src/Content/Conversation.php(666): Friendica\Object\Thread->getTemplateData()
#5 /../domaincom/src/Content/Conversation.php(569): Friendica\Content\Conversation->getThreadList()
#6 /../domaincom/src/Module/Conversation/Network.php(223): Friendica\Content\Conversation->render()
#7 /../domaincom/src/BaseModule.php(236): Friendica\Module\Conversation\Network->content()
#8 /../domaincom/src/App.php(668): Friendica\BaseModule->run()
#9 /../domaincom/index.php(41): Friendica\App->runFrontend()
#10 {main}]
Blank pages should have a related Fatal Error in the PHP log.
Uncaught Exception ValueError: "DOMDocument::loadHTML(): Argument #1 ($source) must not be empty" at /../domaincom/src/Model/Item.php line 3558
exception
Uncaught Exception ValueError:
"DOMDocument::loadHTML(): Argument #1 ($source) must not be empty" at /../domaincom/src/Model/Item.php line 3558exception
ValueError: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty in /../domaincom/src/Model/Item.php:3558
Stack trace:
#0 /../domaincom/src/Model/Item.php(3558): DOMDocument->loadHTML()
#1 /../domaincom/src/Model/Item.php(3481): Friendica\Model\Item::replacePlatformIcon()
#2 /../domaincom/src/Object/Post.php(451): Friendica\Model\Item::prepareBody()
#3 /../domaincom/src/Object/Thread.php(190): Friendica\Object\Post->getTemplateData()
#4 /../domaincom/src/Content/Conversation.php(666): Friendica\Object\Thread->getTemplateData()
#5 /../domaincom/src/Content/Conversation.php(569): Friendica\Content\Conversation->getThreadList()
#6 /../domaincom/src/Module/Conversation/Network.php(223): Friendica\Content\Conversation->render()
#7 /../domaincom/src/BaseModule.php(236): Friendica\Module\Conversation\Network->content()
#8 /../domaincom/src/App.php(668): Friendica\BaseModule->run()
#9 /../domaincom/index.php(41): Friendica\App->runFrontend()
#10 {main}]
First ever instance crash. Suggestions for avoiding this in the future?
!Friendica Support
I had my first-ever server crash of https://my-place.social. This is in syslog:
2024-11-18T21:34:49.022603-05:00 my-place php: PHP Fatal error: Uncaught mysqli_sql_exception: Too many connections in /var/www/html/src/Database/Database.php:201
2024-11-18T21:34:49.022822-05:00 my-place php: Stack trace:
2024-11-18T21:34:49.022855-05:00 my-place php: #0 /var/www/html/src/Database/Database.php(201): mysqli->__construct()
2024-11-18T21:34:49.022885-05:00 my-place php: #1 /var/www/html/src/Database/Database.php(106): Friendica\Database\Database->connect()
2024-11-18T21:34:49.022911-05:00 my-place php: #2 [internal function]: Friendica\Database\Database->__construct()
2024-11-18T21:34:49.022933-05:00 my-place php: #3 /var/www/html/vendor/level-2/dice/Dice.php(132): ReflectionMethod->invokeArgs()
2024-11-18T21:34:49.022958-05:00 my-place php: #4 /var/www/html/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}()
2024-11-18T21:34:49.022985-05:00 my-place php: #5 /var/www/html/vendor/level-2/dice/Dice.php(247): Dice\Dice->create()
2024-11-18T21:34:49.023014-05:00 my-place php: #6 /var/www/html/vendor/level-2/dice/Dice.php(132): Dice\Dice->Dice\{closure}()
2024-11-18T21:34:49.023049-05:00 my-place php: #7 /var/www/html/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}()
2024-11-18T21:34:49.023074-05:00 my-place php: #8 /var/www/html/vendor/level-2/dice/Dice.php(247): Dice\Dice->create()
2024-11-18T21:34:49.023100-05:00 my-place php: #9 /var/www/html/vendor/level-2/dice/Dice.php(132): Dice\Dice->Dice\{closure}()
2024-11-18T21:34:49.023125-05:00 my-place php: #10 /var/www/html/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}()
2024-11-18T21:34:49.023147-05:00 my-place php: #11 /var/www/html/index.php(34): Dice\Dice->create()
2024-11-18T21:34:49.023172-05:00 my-place php: #12 {main}
2024-11-18T21:34:49.023208-05:00 my-place php: thrown in /var/www/html/src/Database/Database.php on line 201
show variables like 'max_connections'; shows 151 max_connections.
I did: SET GLOBAL max_connections = 200;
I also edited /etc/mysql/mariadb.conf.d/50-server.cnf and set max_connections = 200
Is this too high? Too low? Did I do this the correct way?
Thank you!
Thanks!
I had my first-ever server crash of https://my-place.social. This is in syslog:
2024-11-18T21:34:49.022603-05:00 my-place php: PHP Fatal error: Uncaught mysqli_sql_exception: Too many connections in /var/www/html/src/Database/Database.php:201
2024-11-18T21:34:49.022822-05:00 my-place php: Stack trace:
2024-11-18T21:34:49.022855-05:00 my-place php: #0 /var/www/html/src/Database/Database.php(201): mysqli->__construct()
2024-11-18T21:34:49.022885-05:00 my-place php: #1 /var/www/html/src/Database/Database.php(106): Friendica\Database\Database->connect()
2024-11-18T21:34:49.022911-05:00 my-place php: #2 [internal function]: Friendica\Database\Database->__construct()
2024-11-18T21:34:49.022933-05:00 my-place php: #3 /var/www/html/vendor/level-2/dice/Dice.php(132): ReflectionMethod->invokeArgs()
2024-11-18T21:34:49.022958-05:00 my-place php: #4 /var/www/html/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}()
2024-11-18T21:34:49.022985-05:00 my-place php: #5 /var/www/html/vendor/level-2/dice/Dice.php(247): Dice\Dice->create()
2024-11-18T21:34:49.023014-05:00 my-place php: #6 /var/www/html/vendor/level-2/dice/Dice.php(132): Dice\Dice->Dice\{closure}()
2024-11-18T21:34:49.023049-05:00 my-place php: #7 /var/www/html/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}()
2024-11-18T21:34:49.023074-05:00 my-place php: #8 /var/www/html/vendor/level-2/dice/Dice.php(247): Dice\Dice->create()
2024-11-18T21:34:49.023100-05:00 my-place php: #9 /var/www/html/vendor/level-2/dice/Dice.php(132): Dice\Dice->Dice\{closure}()
2024-11-18T21:34:49.023125-05:00 my-place php: #10 /var/www/html/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}()
2024-11-18T21:34:49.023147-05:00 my-place php: #11 /var/www/html/index.php(34): Dice\Dice->create()
2024-11-18T21:34:49.023172-05:00 my-place php: #12 {main}
2024-11-18T21:34:49.023208-05:00 my-place php: thrown in /var/www/html/src/Database/Database.php on line 201
show variables like 'max_connections'; shows 151 max_connections.
I did: SET GLOBAL max_connections = 200;
I also edited /etc/mysql/mariadb.conf.d/50-server.cnf and set max_connections = 200
Is this too high? Too low? Did I do this the correct way?
Thank you!
Thanks!
PHP error log thrown in /src/Database/Database.php on line 191
@Friendica Support
#bugResearch
hi there, I have this message in my php.error.log
what should I do?
I didn't have a look at gitHub
[14-Nov-2023 14:15:30 UTC] PHP Fatal error: Uncaught mysqli_sql_exception: Connection refused in /var/www/html/src/Database/Database.php:191
Stack trace:
#0 /var/www/html/src/Database/Database.php(191): mysqli->__construct()
#1 /var/www/html/src/Database/Database.php(97): Friendica\Database\Database->connect()
#2 [internal function]: Friendica\Database\Database->__construct()
#3 /var/www/html/vendor/level-2/dice/Dice.php(132): ReflectionMethod->invokeArgs()
#4 /var/www/html/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}()
#5 /var/www/html/src/DI.php(98): Dice\Dice->create()
#6 /var/www/html/src/DI.php(66): Friendica\DI::dba()
#7 /var/www/html/src/DI.php(54): Friendica\DI::setCompositeRootDependencyByHand()
#8 /var/www/html/index.php(35): Friendica\DI::init()
#9 {main}
thrown in /var/www/html/src/Database/Database.php on line 191
Friendica Source: gitHub
PHP version: 8.1.2-1ubuntu2.14
SQL version: MySQL / MariaDB
memory_limit 256M
4 Core CPU, 8 GB Ram with 300GB NVME Disk
#bugResearch
hi there, I have this message in my php.error.log
what should I do?
I didn't have a look at gitHub
php.error.log Database.php on line 191
thrown in /var/www/html/src/Database/Database.php on line 191[14-Nov-2023 14:15:30 UTC] PHP Fatal error: Uncaught mysqli_sql_exception: Connection refused in /var/www/html/src/Database/Database.php:191
Stack trace:
#0 /var/www/html/src/Database/Database.php(191): mysqli->__construct()
#1 /var/www/html/src/Database/Database.php(97): Friendica\Database\Database->connect()
#2 [internal function]: Friendica\Database\Database->__construct()
#3 /var/www/html/vendor/level-2/dice/Dice.php(132): ReflectionMethod->invokeArgs()
#4 /var/www/html/vendor/level-2/dice/Dice.php(96): Dice\Dice->Dice\{closure}()
#5 /var/www/html/src/DI.php(98): Dice\Dice->create()
#6 /var/www/html/src/DI.php(66): Friendica\DI::dba()
#7 /var/www/html/src/DI.php(54): Friendica\DI::setCompositeRootDependencyByHand()
#8 /var/www/html/index.php(35): Friendica\DI::init()
#9 {main}
thrown in /var/www/html/src/Database/Database.php on line 191
Platform Info: 2023.05 - stable
Friendica Version: 2023.05 - stableFriendica Source: gitHub
PHP version: 8.1.2-1ubuntu2.14
SQL version: MySQL / MariaDB
memory_limit 256M
4 Core CPU, 8 GB Ram with 300GB NVME Disk