I still struggle with something that - i think - many people struggle here on nextcloud. I have a google calendar imported to my nextcloud calendar. And with importing I mean subscribing to my privat-link. That worked good and I can see all the appointments, but the problem is, that they do not get refreshed. I then looked into the internet and saw that many have this problem so I tried a few things:
Setting the refresh-rate to different times, did not work
I had a look at the background jobs and it said that they were not running, so I tried to activate cron.php regularly like in this tutorial in the section background jobs (https://docs.nextcloud.com/…/groupware/calendar.html…). This does not work for me because I am on a shared hoster and do not have sudo access and crontab is not installed. So I set up a webcron on my hoster that schedules the cron.php regularly, which works. But still the calendar does not get updated.
But it is of course not practical to use that command everytime I want to check my calendar. How do I solve this? Using a cron-job that executes this script seems not the cleanest option here?!
Yes cron would be the way to go. Not sure how many calendar feeds you have but for example if it’s the first one in the list you can do something like this to catch if the id changes:
Thanks a lot!
But honestly, does everybody who wants to integrate an external calender have to make a custom cron-job for this? A calendar that does not refresh automatically does not make sense anyways. So I thought my behaviour is a bug?
So how it works is in the calendar feed the provider can put in a refresh rate interval and nextcloud will simply honor that and refresh it at that rate.
If there is no refresh rate interval listed in the feed, nextcloud will default to refreshing it weekly.
You have to force refresh if you want to override the interval that the provider expects. You are essentially hitting their servers more often than they would like so this is not a bug.
This seems so odd. First of all, why would anyone like to have a default interval of 1 week?
And the second odd thing is: if I change the default interval from one week to something else, why does nextcloud not automatically force the refresh? It is neither said in the documentation, that I have to do this nor is it somehow logical to me.
Maybe I am wrong here, but this seems very weird to me. Especially as I know that some folks out there managed to change their interval without having to refresh it manually.
In your initial post you wrote that you have set up webcron, and since the auto-refresh interval seems to be working for other users, I suspect this could be the issue here.
Is there really no way to set up “real” cron jobs with your web hosting provider? It might as well be an “upsell” feature that is only included in a higher tier plan.
Yes, I only have webcron available. And it really seems, that this was the problem. I tried to call the cron.php in a loop now for a while and now it works. Seems that some jobs were not executed and have built up.
Let’s see if webcron is fast enough for me or if I need to change my hoster. Thank you so much for this input!