fossar / selfoss

multipurpose rss reader, live stream, mashup, aggregation web application
https://selfoss.aditu.de
GNU General Public License v3.0
2.38k stars 345 forks source link

cliupdate exceeds memory size #1222

Closed lapete closed 4 years ago

lapete commented 4 years ago

Selfoss Version 2.18 PHP Version 7.2.33

Every time I run cliupdate.php I do get the following error: Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 12288 bytes) [vendor/simplepie/simplepie/library/SimplePie/Cache/File.php:126] an error occured% I tried to increase the limit as suggested here and here, both via the .htaccess and the cliupdate.php file, which didn't work or even lead to server errors. The update still seems to work, I do get new articles, but I don't know if it's all of them or if some are missing. Size of the folders in selfoss/data:


296K    favicons  
4.0K    fulltextrss  
28M     logs  
4.0K    sqlite  
0       thumbnails  
39M     total
jtojnar commented 4 years ago

How are you running cliupdate.php? For php_value in .htaccess to work you would need to enable it in Apache config and that would not even apply when running the script from command line. ini_set might work better but the surest is changing it in php.ini.

But 512 MB should be more than enough for everything except pathologically big feeds.

Since it runs out of memory when trying to load data from cache, I would try to delete the contents of data/cache directory. Weirdly, it seems to be missing from your directory listing.

If you increase the logger_level=DEBUG in your config.ini, you should see start fetching source … in the logs that could point you to the last source being fetched.

lapete commented 4 years ago

I simply run php cliupdate.php. Deleting the cache worked, thank you!