-
Notifications
You must be signed in to change notification settings - Fork 198
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
Podcasts not updating automatically #1044
Comments
By default, the Music app should check for updates for each channel once per 24 hours. The time is counted always from the latest update, meaning that that each channel may be in different phase of the 24 hour cycle. You may change this schedule by defining the key You may also use the command |
It is strange, for two of my podcasts it just does not update, even after 72 hours. I knew that the podcast should be there as it was on their respective sites. But it would only appear once I manually update. I never touched that variable. https://www.scoringnotes.com/feed/podcast I'll try that command for jokes |
Thank you! I'll keep an eye on that next time they push out another podcast and see If i can get that information for you. |
Indeed, it should be checked and the "updates checked" date should reflect this, regardless of if there actually was any updates on the feed. Maybe some unhandled exception has happened while updating another channel before this one, and the update process was cut short before reaching this channel? There should be something in nextcloud.log if this has happened. If the root cause is the one mentioned above, then it should happen also when you run the |
Ooh that's good to know and makes sense occ podccast-update should have run at least once since I had stuck it in cron for a day. I'll use that to trigger the event and check in the log when I have a moment. |
Weird, looks like the command ran without a problem. I had it incorrect on the cron which was why it failed there....forgot the --all or --group |
Hi, I have exactly the same problem, podcasts aren't updating automatically (I have only 2 and both fail to auto-update). I didn't find any error in the error log. The podcast details were last updated more than 48h ago. (manual update works) Environment: Nextcloud 25.0.3, Music v1.8.1 |
@martin-nohava Do you know for fact that the background task in your Nextcloud instance actually runs? Because if none of the channels get updated, then it could also be a symptom of the background task not running regularly. |
For the record, mine is set to run every 5 minutes in cron and seems to do so. It use to be 15 min but nextcloud changed their recommendation to 5. |
Hi, @paulijar, thank you for your reply. I let Music run for a few days and the podcasts never updated. Nextcloud Adding the command |
Just to clear things up, |
Background tasks work as intended, though podcasts are not updated. I suspect that my nightly AIO-Borg backup restarts the nextcloud container, which than resets the 24h cycle, so the app actually never comes to updating the podcasts like scheduled. |
That's a thought. Maybe, I'll have to go though my scripts to find if I'm restarting the services somehow. But I really don't think so. I run on bare metal, and backup nightly off of an LVM snapshot so it really isn't necessary for me to restart any services. |
That's right.
This shouldn't cause any issues because the logic behind the 24 h cycle works like this:
The real source of the problem seems to be that the background tasks of the Music app do not get triggered at all on the recent version(s) of Nextcloud, even when the background jobs on the cloud-level have been set up correctly. This is the case at least on NC26 but it may have started several major versions ago since this isn't something I would have been testing systematically. The reason probably is changes made by Nextcloud on their API. |
Yah, I'd say at least 25. 24 I'm pretty sure was working. Not too surprising as 24 - 25 seemed a big jump all around. I even had to update the nextcloud webserver file as they had made major breaking changes between the two from what their earlier recommendations once were. Possibly they made those changes earlier, but it all came to a head at v25. Took me a long time to figure out that what it was too..... Not that I'm bitter. Out of curiosity, what other background tasks could be effected? |
Would the music app appear under |
In addition to the podcast updates, the Music app has a cleanup task which is supposed to be run on the background. It removes any orphaned database entries like albums which don't have any tracks or (Subsonic) bookmarks pointing to tracks which don't exist. The same thing can be done manually by running
Most likely. But this |
According to @JoshuaPettus finding someone with NC 24 would be sufficient. |
I think he is saying NC 24 doesn't have occ background-job:list, that may be a new feature. Anyway, we know it's not working on NC25 and 26. Don't need a command to tell us that |
We used to register our background tasks using the legacy adapter OC\BackgroundJob\Legacy\RegularJob. This had been the "legacy" way already since 10 years ago. The more modern alternative is to make the background job classes extend suitable base class and register them directly instead of using the adapter. NC25 has finally removed the legacy adapters, and for this reason, our background jobs were not running on NC25 and later. However, also the new alternative taken into use here has been deprecated already in Nextcloud 24; the preferred alternative would now be to extend a new base class OCP\BackgroundJob\TimedJob instead of the private OC\BackgroundJob\TimedJob. Naturally, the new base class is not available on ownCloud and we have to stick with the deprecated alternative. This will likely cause more work on some future release of NC. Also, the registration of the background jobs now happens within a post-migration repair step instead of doing it again on each HTTP request. This is the more proper way and should be better for the overall runtime performance. It would be possible to register them also within info.xml (at least on some cloud versions) but that wouldn't allow us to deregister the legacy jobs. refs #1044
This is now fixed in Music v1.8.3, hopefully. See the commit message for more detailed explanation of the root cause. In the new version, you should see the two background tasks of the Music app also on |
Hi, I'm noticing a few of my podcasts channels aren't updating automatically (most do nterestingly). I have to manually hit Reload before it pulls the next episode. Is there a command that I can add to crontab to make it check every now and then?
Using NC25.0.3, Music 1.8.1, php 8.1, nginx, pgsql
The text was updated successfully, but these errors were encountered: