500 Internal Server Error after running for a while

Hi,

I have a website running on Neos 5.2.1, however, after a while the site returns a “500 Internal Server Error”. The issue can be resolved by deleting Data/Temporary, but after a while the error comes back.

The logged Exception looks as follow:

Exception in line 490 of /home/www/neos/releases/20200522105533/Packages/Framework/Neos.Flow/Classes/Core/Booting/Scripts.php: Argument 1 passed to Neos\Flow\ObjectManagement\ObjectManager::setObjects() must be of the type array, null given, called in /home/www/neos/releases/20200522105533/Packages/Framework/Neos.Flow/Classes/Core/Booting/Scripts.php on line 490

14 Neos\Flow\ObjectManagement\ObjectManager::setObjects(NULL)
13 Neos\Flow\Core\Booting\Scripts::initializeObjectManager(Neos\Flow\Core\Bootstrap)
12 call_user_func(array|2|, Neos\Flow\Core\Bootstrap)
11 Neos\Flow\Core\Booting\Step::__invoke(Neos\Flow\Core\Bootstrap)
10 Neos\Flow\Core\Booting\Sequence::invokeStep(Neos\Flow\Core\Booting\Step, Neos\Flow\Core\Bootstrap)
9 Neos\Flow\Core\Booting\Sequence::invokeStep(Neos\Flow\Core\Booting\Step, Neos\Flow\Core\Bootstrap)
8 Neos\Flow\Core\Booting\Sequence::invokeStep(Neos\Flow\Core\Booting\Step, Neos\Flow\Core\Bootstrap)
7 Neos\Flow\Core\Booting\Sequence::invokeStep(Neos\Flow\Core\Booting\Step, Neos\Flow\Core\Bootstrap)
6 Neos\Flow\Core\Booting\Sequence::invokeStep(Neos\Flow\Core\Booting\Step, Neos\Flow\Core\Bootstrap)
5 Neos\Flow\Core\Booting\Sequence::invokeStep(Neos\Flow\Core\Booting\Step, Neos\Flow\Core\Bootstrap)
4 Neos\Flow\Core\Booting\Sequence::invoke(Neos\Flow\Core\Bootstrap)
3 Neos\Flow\Http\RequestHandler::boot()
2 Neos\Flow\Http\RequestHandler::handleRequest()
1 Neos\Flow\Core\Bootstrap::run()

The error seems to arise during the initialization of the Object Manager.

   476	    /**
   477	     * Initializes the runtime Object Manager
   478	     *
   479	     * @param Bootstrap $bootstrap
   480	     * @return void
   481	     */
   482	    public static function initializeObjectManager(Bootstrap $bootstrap)
   483	    {
   484	        $configurationManager = $bootstrap->getEarlyInstance(ConfigurationManager::class);
   485	        $objectConfigurationCache = $bootstrap->getEarlyInstance(CacheManager::class)->getCache('Flow_Object_Configuration');
   486	
   487	        $objectManager = new ObjectManager($bootstrap->getContext());
   488	
   489	        $objectManager->injectAllSettings($configurationManager->getConfiguration(ConfigurationManager::CONFIGURATION_TYPE_SETTINGS));
   490	        $objectManager->setObjects($objectConfigurationCache->get('objects'));

Can somebody tell me what the reason for this could be?

Best regards,
Matthias

Hi,

that’s unusual.

Can you provide a bit more information, like how long is “a while”, how much memory did you give PHP, PHP Version, maybe some other special configuration for caching or other services you might have?

Hi,

the last time the issue occurred was end of May. It’s a personal webpage and therefore there is not really much traffic. Maybe I should try to simulate traffic to see if there is any relation…

Neos is running on a shared webhosting server. PHP-Version is 7.3.17, memory_limit=256M. There is no special configuration for caching or other services.

Best,
Matthias