Skip to content
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

Google calendar doesn't refresh #6300

Closed
31337-4554551n opened this issue Aug 28, 2024 · 6 comments
Closed

Google calendar doesn't refresh #6300

31337-4554551n opened this issue Aug 28, 2024 · 6 comments
Labels
0. to triage Pending approval or rejection bug

Comments

@31337-4554551n
Copy link

Steps to reproduce

1.Add a new calendar>subscription>read only>enter the private google calendar link
2.Refresh > See your google events
3.In google, add an event, or get someone to send you an invite to an event/accept

Expected behavior

The event shows up in nextcloud calendar

Actual behaviour

The new event doesn't show up in nextcloud calendar.

To see the event you have to re-add the calendar. It's like it only syncs once when added, instead of doing regular checks.

Calendar app version

4.7.16

CalDAV-clients used

Nextcloud webui (but it doesn't show up in any)

Browser

Firefox or Chromium

Client operating system

Pop OS

Server operating system

alpine linux - linuxserver.io docker

Web server

Nginx

Database engine version

MariaDB

PHP engine version

Other

Nextcloud version

29.0.4

Updated from an older installed version or fresh install

Updated from an older version

List of activated apps

No response

Nextcloud configuration

No response

Web server error log

No response

Log file

No response

Browser log

No response

Additional info

No response

@31337-4554551n 31337-4554551n added 0. to triage Pending approval or rejection bug labels Aug 28, 2024
@31337-4554551n

This comment was marked as off-topic.

@nextcloud nextcloud deleted a comment Aug 28, 2024
@tcitworld
Copy link
Member

The refresh rate of subscribed calendars is set to a 1 week default value : https://docs.nextcloud.com/server/latest/admin_manual/groupware/calendar.html#refresh-rate

@31337-4554551n
Copy link
Author

31337-4554551n commented Aug 28, 2024

Oh wow, thank you!
Is there a reason this isn't available in the GUI?

So
occ config:app:set dav calendarSubscriptionRefreshRate --value "P10M"
Would set it to every 10 minutes? Is there any harm in this?
(https://www.php.net/manual/en/dateinterval.construct.php has minute and month be M-unsure how you're meant to choose one or the other. So maybe P600S?)

Also it says it respects server side refresh rates-is there a way to set this through google? Or check what it's currently at?

@tcitworld
Copy link
Member

Is there a reason this isn't available in the GUI?

It needs #6187

P10M
Would set it to every 10 minutes?

Nope, that's every 10 months. Every 10 minutes is PT10M.

Is there any harm in this?

This applies to every calendar for every user of the instance, so if there's a lot of them, your cron will be overloaded with useless refreshments calls. Moreover it's not yet efficient (every calendar event is dropped from the database and recreated). Nextcloud 30 improves this : nextcloud/server#46723

is there a way to set this through google

Nope, Google doesn't support anything we can use for this unfortunately.

@31337-4554551n
Copy link
Author

So I can set it to PT10M
occ config:app:get dav calendarSubscriptionRefreshRate
Gives me nothing, so guessing it's the standard week, though I expected to see it..

So if I set it now, it'll be a bit slow and boggy for a while, but when 30 comes out, it won't be as bad. And if that 6187 gets put it, it'll overwrite what I set here, yea?

@miaulalala
Copy link
Contributor

miaulalala commented Aug 28, 2024

So I can set it to PT10M occ config:app:get dav calendarSubscriptionRefreshRate Gives me nothing, so guessing it's the standard week, though I expected to see it..

So if I set it now, it'll be a bit slow and boggy for a while, but when 30 comes out, it won't be as bad. And if that 6187 gets put it, it'll overwrite what I set here, yea?

Yeah it will be slow any time the cron runs. 30 will definitely improve this. 6187 will probably not be in 30 (as in, Calendar 5.0.0), but might make it to Calendar 5.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. to triage Pending approval or rejection bug
Projects
None yet
Development

No branches or pull requests

3 participants