!Friendica Support
Hello guys,
I'm getting #PHP process killed by #OOM killer lately and am not able to debug what and why is causing it, only thing i know at this moment is, that it seems to be related to #Friendica worker (no other webpages are running at my VPS.
Errors in friendica.log and httpd.log are repeated over and over again, I have tons of these.
Hello guys,
I'm getting #PHP process killed by #OOM killer lately and am not able to debug what and why is causing it, only thing i know at this moment is, that it seems to be related to #Friendica worker (no other webpages are running at my VPS.
Errors in friendica.log and httpd.log are repeated over and over again, I have tons of these.
Friendica log
2024-01-14T12:14:05Z worker [ALERT]: Fatal Error (E_ERROR): Allowed memory size of 268435456 bytes exhausted (tried to allocate 50348032 bytes) {"code":1,"message":"Allowed memory size of 268435456 bytes exhausted (tried to allocate 50348032 bytes)","file":"/srv/http/schmaker.eu/src/Database/Database.php","line":568,"trace":null} - {"file":null,"line":null,"function":null,"request-id":"65a3d00a94ba8","stack":"ErrorHandler::handleFatalError","uid":"0e21ff","process_id":524483}
2024-01-14T12:14:19Z app [NOTICE]: created item {"post-id":1746909,"uid":0,"network":"apub","uri-id":7056319,"guid":"52acf9cd-d5329c5bc33553a3-16fb1418"} - {"file":"Item.php","line":1334,"function":"insert","request-id":"65a3d01b052b3","stack":"Item::insert (1172), Processor::postItem (783), Receiver::routeActivities (747), Receiver::processActivity (169), Receiver::processInbox (101), Inbox::post (233), BaseModule::run (109), BaseApi::run (43), Inbox::run (711), App::runFrontend (46)","uid":"1ddf6c","process_id":521334}
2024-01-14T12:14:19Z app [NOTICE]: created item {"post-id":1746910,"uid":2,"network":"apub","uri-id":7055024,"guid":"2cc3d87f-74a5bdcec9bb28f3-597a3200"} - {"file":"Item.php","line":1334,"function":"insert","request-id":"65a3d01b052b3","stack":"Item::insert (1874), Item::storeForUser (1740), Item::storeForUserByUriId (1252), Processor::hasParents (1162), Processor::postItem (783), Receiver::routeActivities (747), Receiver::processActivity (169), Receiver::processInbox (101), Inbox::post (233), BaseModule::run (109), BaseApi::run (43), Inbox::run (711), App::runFrontend (46)","uid":"1ddf6c","process_id":521334}
2024-01-14T12:14:19Z app [NOTICE]: Inserted missing parent post {"stored":1746910,"uid":2,"parent":"https://mastodonczech.cz/users/mkyral/statuses/111754066555820024"} - {"file":"Processor.php","line":1255,"function":"hasParents","request-id":"65a3d01b052b3","stack":"Processor::hasParents (1162), Processor::postItem (783), Receiver::routeActivities (747), Receiver::processActivity (169), Receiver::processInbox (101), Inbox::post (233), BaseModule::run (109), BaseApi::run (43), Inbox::run (711), App::runFrontend (46)","uid":"1ddf6c","process_id":521334}
2024-01-14T12:14:19Z app [NOTICE]: created item {"post-id":1746911,"uid":2,"network":"apub","uri-id":7056319,"guid":"52acf9cd-d5329c5bc33553a3-16fb1418"} - {"file":"Item.php","line":1334,"function":"insert","request-id":"65a3d01b052b3","stack":"Item::insert (1172), Processor::postItem (783), Receiver::routeActivities (747), Receiver::processActivity (169), Receiver::processInbox (101), Inbox::post (233), BaseModule::run (109), BaseApi::run (43), Inbox::run (711), App::runFrontend (46)","uid":"1ddf6c","process_id":521334}
2024-01-14T12:14:28Z app [NOTICE]: no data for session {"session_id":"918db4sbltu4uuboiu7vgir1u1","uri":"/robots.txt"} - {"file":"Database.php","line":78,"function":"read","request-id":"65a3d0247394c","stack":"Database::read, session_start (54), Native::start (150), Dice::Dice\\{closure} (96), Dice::create (247), Dice::Dice\\{closure} (132), Dice::Dice\\{closure} (96), Dice::create (247), Dice::Dice\\{closure} (132), Dice::Dice\\{closure} (96), Dice::create (92), DI::app (42)","uid":"21ebe6","process_id":521020}
2024-01-14T12:14:46Z app [NOTICE]: created item {"post-id":1746912,"uid":0,"network":"apub","uri-id":7056320,"guid":"f7dd981d-1265-a37e-95d3-45a258252183"} - {"file":"Item.php","line":1334,"function":"insert","request-id":"65a3d0369bf29","stack":"Item::insert (1172), Processor::postItem (708), Processor::createActivity (843), Receiver::routeActivities (747), Receiver::processActivity (169), Receiver::processInbox (101), Inbox::post (233), BaseModule::run (109), BaseApi::run (43), Inbox::run (711), App::runFrontend (46)","uid":"ced645","process_id":511968}
2024-01-14T12:14:46Z app [NOTICE]: created item {"post-id":1746913,"uid":2,"network":"apub","uri-id":7056320,"guid":"f7dd981d-1265-a37e-95d3-45a258252183"} - {"file":"Item.php","line":1334,"function":"insert","request-id":"65a3d0369bf29","stack":"Item::insert (1172), Processor::postItem (708), Processor::createActivity (843), Receiver::routeActivities (747), Receiver::processActivity (169), Receiver::processInbox (101), Inbox::post (233), BaseModule::run (109), BaseApi::run (43), Inbox::run (711), App::runFrontend (46)","uid":"ced645","process_id":511968}
2024-01-14T12:14:49Z app [NOTICE]: no data for session {"session_id":"0ahqk6onff097rtsfs76uk85vu","uri":"/profile/netvoyne?tag=Zaporozhye&page=7"} - {"file":"Database.php","line":78,"function":"read","request-id":"65a3d0395754d","stack":"Database::read, session_start (54), Native::start (150), Dice::Dice\\{closure} (96), Dice::create (247), Dice::Dice\\{closure} (132), Dice::Dice\\{closure} (96), Dice::create (247), Dice::Dice\\{closure} (132), Dice::Dice\\{closure} (96), Dice::create (92), DI::app (42)","uid":"28fdfc","process_id":521334}
2024-01-14T12:14:50Z app [NOTICE]: no data for session {"session_id":"f1176v7k02rugm0aqrpgo7l8eg","uri":"/display/c83e3896-1964-2eb2-f5bf-0c2147726828"} - {"file":"Database.php","line":78,"function":"read","request-id":"65a3d03a79379","stack":"Database::read, session_start (54), Native::start (150), Dice::Dice\\{closure} (96), Dice::create (247), Dice::Dice\\{closure} (132), Dice::Dice\\{closure} (96), Dice::create (247), Dice::Dice\\{closure} (132), Dice::Dice\\{closure} (96), Dice::create (92), DI::app (42)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on null {"code":2,"message":"Trying to access array offset on null","file":"/srv/http/schmaker.eu/view/smarty3/compiled/d0/de/3f/d0de3f3fd98d576056fb02f629b93c7eb0442beb_2.file.threaded_conversation.tpl.php","line":46} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (46), content_65894a0656ce28_18927795 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (238), Smarty_Internal_TemplateBase::_execute (116), Smarty_Internal_TemplateBase::fetch (100), FriendicaSmartyEngine::replaceMacros (84), Renderer::replaceMacros (593), Conversation::render (278), Display::getDisplayData (165), Display::content (250), BaseModule::run (711), App::runFrontend (46)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on null {"code":2,"message":"Trying to access array offset on null","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":506} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (506), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48), content_65894a0656ce28_18927795 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (238), Smarty_Internal_TemplateBase::_execute (116), Smarty_Internal_TemplateBase::fetch (100), FriendicaSmartyEngine::replaceMacros (84), Renderer::replaceMacros (593)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on null {"code":2,"message":"Trying to access array offset on null","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":521} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (521), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48), content_65894a0656ce28_18927795 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (238), Smarty_Internal_TemplateBase::_execute (116), Smarty_Internal_TemplateBase::fetch (100), FriendicaSmartyEngine::replaceMacros (84), Renderer::replaceMacros (593)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on null {"code":2,"message":"Trying to access array offset on null","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":539} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (539), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48), content_65894a0656ce28_18927795 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (238), Smarty_Internal_TemplateBase::_execute (116), Smarty_Internal_TemplateBase::fetch (100), FriendicaSmartyEngine::replaceMacros (84), Renderer::replaceMacros (593)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on null {"code":2,"message":"Trying to access array offset on null","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":554} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (554), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48), content_65894a0656ce28_18927795 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (238), Smarty_Internal_TemplateBase::_execute (116), Smarty_Internal_TemplateBase::fetch (100), FriendicaSmartyEngine::replaceMacros (84), Renderer::replaceMacros (593)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on false {"code":2,"message":"Trying to access array offset on false","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":798} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (798), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48), content_65894a0656ce28_18927795 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (238), Smarty_Internal_TemplateBase::_execute (116), Smarty_Internal_TemplateBase::fetch (100), FriendicaSmartyEngine::replaceMacros (84), Renderer::replaceMacros (593)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on false {"code":2,"message":"Trying to access array offset on false","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":1103} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (1103), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48), content_65894a0656ce28_18927795 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (238), Smarty_Internal_TemplateBase::_execute (116), Smarty_Internal_TemplateBase::fetch (100), FriendicaSmartyEngine::replaceMacros (84), Renderer::replaceMacros (593)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on null {"code":2,"message":"Trying to access array offset on null","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":506} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (506), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (384), Smarty_Internal_Template::_subTemplateRender (1158), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48), content_65894a0656ce28_18927795 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (238)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on null {"code":2,"message":"Trying to access array offset on null","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":521} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (521), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (384), Smarty_Internal_Template::_subTemplateRender (1158), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48), content_65894a0656ce28_18927795 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (238)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on null {"code":2,"message":"Trying to access array offset on null","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":539} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (539), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (384), Smarty_Internal_Template::_subTemplateRender (1158), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48), content_65894a0656ce28_18927795 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (238)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on null {"code":2,"message":"Trying to access array offset on null","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":554} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (554), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (384), Smarty_Internal_Template::_subTemplateRender (1158), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48), content_65894a0656ce28_18927795 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (238)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on false {"code":2,"message":"Trying to access array offset on false","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":798} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (798), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (384), Smarty_Internal_Template::_subTemplateRender (1158), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48), content_65894a0656ce28_18927795 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (238)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on false {"code":2,"message":"Trying to access array offset on false","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":1103} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (1103), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (384), Smarty_Internal_Template::_subTemplateRender (1158), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48), content_65894a0656ce28_18927795 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (238)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on null {"code":2,"message":"Trying to access array offset on null","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":506} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (506), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (384), Smarty_Internal_Template::_subTemplateRender (1158), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (384), Smarty_Internal_Template::_subTemplateRender (1158), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on null {"code":2,"message":"Trying to access array offset on null","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":521} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (521), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (384), Smarty_Internal_Template::_subTemplateRender (1158), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (384), Smarty_Internal_Template::_subTemplateRender (1158), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on null {"code":2,"message":"Trying to access array offset on null","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":539} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (539), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (384), Smarty_Internal_Template::_subTemplateRender (1158), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (384), Smarty_Internal_Template::_subTemplateRender (1158), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on null {"code":2,"message":"Trying to access array offset on null","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":554} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (554), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (384), Smarty_Internal_Template::_subTemplateRender (1158), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (384), Smarty_Internal_Template::_subTemplateRender (1158), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48)","uid":"9ecf0a","process_id":516104}
2024-01-14T12:14:50Z app [WARNING]: E_WARNING: Trying to access array offset on false {"code":2,"message":"Trying to access array offset on false","file":"/srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php","line":798} - {"file":"smarty_internal_errorhandler.php","line":112,"function":"handleError","request-id":"65a3d03a79379","stack":"ErrorHandler::handleError (112), Smarty_Internal_ErrorHandler::handleError (798), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (384), Smarty_Internal_Template::_subTemplateRender (1158), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (384), Smarty_Internal_Template::_subTemplateRender (1158), content_65894a1d891d04_34538026 (123), Smarty_Template_Resource_Base::getRenderedTemplateCode (114), Smarty_Template_Compiled::render (217), Smarty_Internal_Template::render (386), Smarty_Internal_Template::_subTemplateRender (48)","uid":"9ecf0a","process_id":516104}
httpd error log
[Sun Jan 14 13:10:37.773690 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 506
[Sun Jan 14 13:10:37.773743 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 521
[Sun Jan 14 13:10:37.773791 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 539
[Sun Jan 14 13:10:37.773874 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 554
[Sun Jan 14 13:10:37.773940 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on false in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 798
[Sun Jan 14 13:10:37.773990 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on false in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 1103
[Sun Jan 14 13:10:37.774111 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 506
[Sun Jan 14 13:10:37.774182 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 521
[Sun Jan 14 13:10:37.774240 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 539
[Sun Jan 14 13:10:37.774291 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 554
[Sun Jan 14 13:10:37.774364 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on false in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 798
[Sun Jan 14 13:10:37.774418 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on false in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 1103
[Sun Jan 14 13:10:37.774531 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 506
[Sun Jan 14 13:10:37.774590 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 521
[Sun Jan 14 13:10:37.774642 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 539
[Sun Jan 14 13:10:37.774698 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 554
[Sun Jan 14 13:10:37.774762 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on false in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 798
[Sun Jan 14 13:10:37.774816 2024] [php:warn] [pid 511968] [client 54.36.148.124:44223] PHP Warning: Trying to access array offset on false in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 1103
[Sun Jan 14 13:12:50.905457 2024] [php:warn] [pid 521020] [client 212.79.110.127:34280] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/d0/de/3f/d0de3f3fd98d576056fb02f629b93c7eb0442beb_2.file.threaded_conversation.tpl.php on line 46, referer: https://schmaker.eu/network
[Sun Jan 14 13:12:50.910537 2024] [php:warn] [pid 521020] [client 212.79.110.127:34280] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/d0/de/3f/d0de3f3fd98d576056fb02f629b93c7eb0442beb_2.file.threaded_conversation.tpl.php on line 46, referer: https://schmaker.eu/network
[Sun Jan 14 13:12:50.912046 2024] [php:warn] [pid 521020] [client 212.79.110.127:34280] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/d0/de/3f/d0de3f3fd98d576056fb02f629b93c7eb0442beb_2.file.threaded_conversation.tpl.php on line 46, referer: https://schmaker.eu/network
[Sun Jan 14 13:12:50.913249 2024] [php:warn] [pid 521020] [client 212.79.110.127:34280] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/d0/de/3f/d0de3f3fd98d576056fb02f629b93c7eb0442beb_2.file.threaded_conversation.tpl.php on line 46, referer: https://schmaker.eu/network
[Sun Jan 14 13:12:50.913974 2024] [php:warn] [pid 521020] [client 212.79.110.127:34280] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/d0/de/3f/d0de3f3fd98d576056fb02f629b93c7eb0442beb_2.file.threaded_conversation.tpl.php on line 46, referer: https://schmaker.eu/network
[Sun Jan 14 13:12:50.914188 2024] [php:warn] [pid 521020] [client 212.79.110.127:34280] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/d0/de/3f/d0de3f3fd98d576056fb02f629b93c7eb0442beb_2.file.threaded_conversation.tpl.php on line 46, referer: https://schmaker.eu/network
[Sun Jan 14 13:12:50.914399 2024] [php:warn] [pid 521020] [client 212.79.110.127:34280] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/d0/de/3f/d0de3f3fd98d576056fb02f629b93c7eb0442beb_2.file.threaded_conversation.tpl.php on line 46, referer: https://schmaker.eu/network
[Sun Jan 14 13:12:50.915173 2024] [php:warn] [pid 521020] [client 212.79.110.127:34280] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/d0/de/3f/d0de3f3fd98d576056fb02f629b93c7eb0442beb_2.file.threaded_conversation.tpl.php on line 46, referer: https://schmaker.eu/network
[Sun Jan 14 13:12:50.915418 2024] [php:warn] [pid 521020] [client 212.79.110.127:34280] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/d0/de/3f/d0de3f3fd98d576056fb02f629b93c7eb0442beb_2.file.threaded_conversation.tpl.php on line 46, referer: https://schmaker.eu/network
[Sun Jan 14 13:12:50.915886 2024] [php:warn] [pid 521020] [client 212.79.110.127:34280] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/d0/de/3f/d0de3f3fd98d576056fb02f629b93c7eb0442beb_2.file.threaded_conversation.tpl.php on line 46, referer: https://schmaker.eu/network
[Sun Jan 14 13:13:05.621887 2024] [php:warn] [pid 524293] [client 54.36.148.234:24797] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/d0/de/3f/d0de3f3fd98d576056fb02f629b93c7eb0442beb_2.file.threaded_conversation.tpl.php on line 46
[Sun Jan 14 13:13:05.625511 2024] [php:warn] [pid 524293] [client 54.36.148.234:24797] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 506
[Sun Jan 14 13:13:05.625602 2024] [php:warn] [pid 524293] [client 54.36.148.234:24797] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 521
[Sun Jan 14 13:13:05.625659 2024] [php:warn] [pid 524293] [client 54.36.148.234:24797] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 539
[Sun Jan 14 13:13:05.625710 2024] [php:warn] [pid 524293] [client 54.36.148.234:24797] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 554
[Sun Jan 14 13:13:05.625798 2024] [php:warn] [pid 524293] [client 54.36.148.234:24797] PHP Warning: Trying to access array offset on false in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 798
[Sun Jan 14 13:13:05.625882 2024] [php:warn] [pid 524293] [client 54.36.148.234:24797] PHP Warning: Trying to access array offset on false in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 1103
[Sun Jan 14 13:13:05.626226 2024] [php:warn] [pid 524293] [client 54.36.148.234:24797] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 506
[Sun Jan 14 13:13:05.626284 2024] [php:warn] [pid 524293] [client 54.36.148.234:24797] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 521
[Sun Jan 14 13:13:05.626352 2024] [php:warn] [pid 524293] [client 54.36.148.234:24797] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 539
[Sun Jan 14 13:13:05.626403 2024] [php:warn] [pid 524293] [client 54.36.148.234:24797] PHP Warning: Trying to access array offset on null in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 554
[Sun Jan 14 13:13:05.626497 2024] [php:warn] [pid 524293] [client 54.36.148.234:24797] PHP Warning: Trying to access array offset on false in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 798
[Sun Jan 14 13:13:05.626575 2024] [php:warn] [pid 524293] [client 54.36.148.234:24797] PHP Warning: Trying to access array offset on false in /srv/http/schmaker.eu/view/smarty3/compiled/6b/a2/b2/6ba2b21ba8bb187d1debfb1cf902b2aee0e56569_2.file.wall_thread.tpl.php on line 1103
Michael Vogel
•Schmaker
•I have 3gigs free, the worker consumes it all (and I think that's not expected behavior). PHP limit is set at 256MB.
I just have seen it on htop - single worker process is consuming all the memory and then gets killed by OOM killer.
Michael Vogel
•Schmaker
•So it is actually expected behavior to have 3 gigs of RAM consumed by one worker thread? I expected it to be a bug I would like to help debugging somehow
Schmaker
•Roland Häder
•php.ini
file. Here on my #Devuan Linux it is/etc/php/7.4/cli/php.ini
. Have you edited this file?cc: @Michael Vogel
Schmaker
•I wonder why would friendica download such a huge file from random fediverse server instead of linking it though. That kinda seems like vulnerability
php.ini
Fly Boy
•#Devuan
If you are using PHP in apache (or likewise) and at cli, remember to check the alternative settings so you are running the correct version (the same version) of PHP.
E.g. update-alternatives (command can very on different flavours of Linux)
Schmaker
•hoergen (Ai)
•Schmaker
•Schmaker
•Yet, I'm stuck at the moment and can't find the way out. Is there maybe a way to pin-point problematic worker task to shut it down? I get like hundred of PHP oom kills daily.
Or maybe it's time to actually report it as bug?
Roland Häder
•Schmaker
•I still don't get it why worker bot does not respect php.ini limit in this single process, thats what puzzles me most
Roland Häder
•Roland Häder
•Network/HTTPClient/Factory/HttpClient
. There is a line saying$resolver->setMaxResponseDataSize(1000000);
which seem to set maximum size to 1 billion Bytes (not 1 GB!).Roland Häder
•mattwright\URLResolver
wrap around cURL and not GuzzleHTTP's client and stream to download files.Roland Häder
•See it's private function
fetchURL()
for instance. There is only a closure and nothing else, so far I also checked some method invoking this one and also there is no "limiting" loop.Schmaker
•Roland Häder
•Schmaker
•Schmaker
•$resolver->setMaxResponseDataSize(100000);
did the trick.I'll let it set like this through the night and we will see if there will be any more OOM-killer e-mails from my VPS provider.
Thanks for the help Roland
Schmaker
•Roland Häder
•LimitStream
class.Roland Häder
•Schmaker
•Roland Häder
•Roland Häder
•Roland Häder
•Schmaker
•Thanks, man - seriously
Schmaker
•Can't say for sure, but can't the worker be trying to process deffered tasks without specified limit?
Schmaker
•Getting roughly 2,5 GB memory usage for the problematic worker before getting killed. Maybe it's expected behavior and I'm keeping you busy for no reason?
It definitely seems wierd to me. What's even more wierd is, that everything worked for roughly 2 days with like 6 OOM kills daily (exactly what I got for last 2 years or so :) )
Roland Häder
•develop
code? There is a new configuration entryperformance.max_response_data_size
which is being set at default 1000000. You can override it in your local configuration file.Schmaker
•I didn't, I only have changed the hard-coded value
Schmaker
•Just to be clear - I'm running latest release, not git develop branch
Schmaker
•Schmaker
•If it shows up again, I'll open bug report as that may be something harder to troubleshoot.
Once again, thanks guys