Search
Items tagged with: 6
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?
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?
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 haven't found the extensive conversation about this problem with @Hypolite Petovan yet but I'm quite sure that I changed all folders to ownership of user www-data before 28th of November of the smarty folder. Actually there was another conversation about ownership of folders and I changed all folders to be owned by root except storage and view that day on 02:45hs, the new folder owned by root at /view/smarty3/compiled/ like stated below was created on 3:50hs.
As for what I remember of all the conversations this shouldn't have happened.
Service Unavailable
unable to create directory /var/www/html/view/smarty3/compiled/7c/ea/e6
Exception thrown in /var/www/html/src/Core/Renderer.php:90Stack trace:
#0 /var/www/html/mod/photos.php(902): Friendica\Core\Renderer::replaceMacros()
#1 /var/www/html/src/LegacyModule.php(96): photos_content()
#2 /var/www/html/src/LegacyModule.php(73): Friendica\LegacyModule->runModuleFunction()
#3 /var/www/html/src/BaseModule.php(244): Friendica\LegacyModule->content()
#4 /var/www/html/src/App.php(703): Friendica\BaseModule->run()
#5 /var/www/html/index.php(52): Friendica\App->runFrontend()
#6 {main}
Console research result
rootname@VPShosting:/var/www/html/view/smarty3/compiled# ls -l..
drwxr-xr-x 5 www-data www-data 4096 Dec 6 00:40 7b
drwxr-xr-x 3 root root 4096 Nov 28 03:50 7c
drwxr-xr-x 3 www-data www-data 4096 Nov 28 02:45 7d
..
-----------------
rootname@VPShosting:/var/www/html/view/smarty3/compiled# cd 7c
rootname@VPShosting:/var/www/html/view/smarty3/compiled/7c# ls -l
total 4
drwxr-xr-x 3 root root 4096 Nov 28 03:50 d2
rootname@VPShosting:/var/www/html/view/smarty3/compiled/7c# cd d2
rootname@VPShosting:/var/www/html/view/smarty3/compiled/7c/d2# ls -l
total 4
drwxr-xr-x 2 root root 4096 Nov 28 03:50 69
rootname@VPShosting:/var/www/html/view/smarty3/compiled/7c/d2# cd 69
rootname@VPShosting:/var/www/html/view/smarty3/compiled/7c/d2/69# ls -l
total 4
-rw-r--r-- 1 root root 710 Nov 28 03:50 7cd2693513597460a71347ba02d3179c5e5ab822_2.string.php
nano 7cd2693513597460a71347ba02d3179c5e5ab822_2.string.php
<?php
/* Smarty version 4.3.1, created on 2023-11-28 03:50:02
from '7cd2693513597460a71347ba02d3179c5e5ab822' */
/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
'version' => '4.3.1',
'unifunc' => 'content_6565636a645732_50647552',
'has_nocache_code' => false,
'file_dependency' =>
array (
),
'includes' =>
array (
),
),false)) {
function content_6565636a645732_50647552 (Smarty_Internal_Template $_smarty_tpl) {
?>[url=https://tupambae.org/profile/utopiarte]utopiArte[/url] replied to you on [url=https://tupambae.org/display/0ac89072-1065-6562-6405-8bb240314547]"bugreport - can't answer, like or reshare posts"[/url]<?p>
Service Unavailable
unable to create directory /var/www/html/view/smarty3/compiled/90/4f/52
Exception thrown in /var/www/html/src/Core/Renderer.php:90
Stack trace:
#0 /var/www/html/view/theme/frio/config.php(199): Friendica\Core\Renderer::replaceMacros()
#1 /var/www/html/view/theme/frio/config.php(141): frio_form()
#2 /var/www/html/src/Module/Admin/Themes/Embed.php(89): theme_admin()
#3 /var/www/html/src/BaseModule.php(244): Friendica\Module\Admin\Themes\Embed->content()
#4 /var/www/html/src/App.php(703): Friendica\BaseModule->run()
#5 /var/www/html/index.php(52): Friendica\App->runFrontend()
#6 {main}
PHP error log thrown in /src/Database/Database.php on line 191
#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