New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] actualize_script.php not updating feeds #5915
Comments
Hello, |
It seems that I have the same/similar problem. From my observations the cron job takes often too long and my hoster terminates it after 120 seconds. The manual update via web interface seems fine and take less than a minute. And that seems to help the actualize_script.php script as for the following actualize-task is less to do. The following updates take less than the 120 seconds (see below). But as soon as too many new articles are there it never finish in time from that time on. Until I force the manual update. The problem seems to happen since the last update to 1.22.1 (forgot which the previous one was but that previous version was the latest that came via web-updater, so probably 1.21.0). The actualize_script.php took here 1:43 Minutes to update 35 RSS feeds resulting in 20 unread articles:
Given, that server isn't the highest performance one, but the update via Web-Interface take far less than a minute to do the same trick. And the bandwidth with > 10MB/s should be sufficient. I can't find and FreshRSS.log file anywhere; there's a tmp folder I have access to but not such a file. The for me accessible server and PHP logs doesn't show any issues. My server uses PHP 8.1.20. Purge the database and purge the user doesn't help. Experimenting is a but cumbersome due to the time-limits prevent to update too often as it will just return:
|
@The-Michael-R Your case is probably different than the parent. In your case, try to check the syslog if you have access to it to see a log of all the requests. If it takes that long, it can be some feeds that are answering very slowly. It can also be that you use some full content retrieval, which generates many requests. A difference when refreshing via the Web interface is that 10 feeds are refreshed in parallel, so if one of them takes one minute, it is not so noticeable. |
@Alkarex, And if needed I'll open a different issue. Some feedback to your questions that might be obsolete by doing so: Unfortunately I don't have access to the syslogs (it's a webserver with very limited SSH access). Maybe if I can't fix the problem I'll see if I can run FreshRSS in a local VM where I have full control. OK, that the cron job does only issue sequential requests while the web interface can issue multiple in parallel this could explain the difference for the execution time. But why did it work earlier on? I can't find an option to change any full content retrieval. If that comes with an extension: I only have "Fixed Nav Menu" and "Mobile Scroll Menu" enabled (both seem not to have impact to the update process). In the FreshRSS logfile I noticed a huge block of ~300 SQL errors issued in the same second last month, they might be aligned with my update to 1.22.1:
|
@The-Michael-R Could you try this patch #5916 to better debug your SQL error? |
Hi @Alkarex, Currently I switched back to 1.21.0 which seems to behave a bit more robust (might be just a feeling). But indeed I see long cron runs. Will do more tests later on a local VM to see if I can figure out more. But not this week. Any findings will be in a new ticket. |
Please try again the |
@Alkarex A short test looks like you nailed it 👍. All feeds seems to be updated right from the beginning (that wasn't the case earlier). And the update-time looks reasonable ~25 seconds for 51 feeds and 10 new articles. I'll keep it running in parallel with my production version. I just patched the lock-file name to prevent any collisions. Also the protocol looks clean. But that's what I would expect for a clean install with a new database. |
Describe the bug
Noticed the feeds weren't updating. Checked chron, command still there and manually ran the update, no feeds updating. Manual update works.
To Reproduce
Run actualize_script.php
Expected behavior
Feeds be updated
Screenshots
Environment information (please complete the following information):
Ubuntu, nginx
Non-docker
The text was updated successfully, but these errors were encountered: