# Nextcloud calendar app subscribing to Google Calendar not working, no solution found worked

**URL:** <https://help.nextcloud.com/t/nextcloud-calendar-app-subscribing-to-google-calendar-not-working-no-solution-found-worked/84510>\
**Category:** ℹ️ Support\
**Tags:** calendar-app\
**Created:** [June 12, 2020, 6:10pm UTC](https://help.nextcloud.com/t/nextcloud-calendar-app-subscribing-to-google-calendar-not-working-no-solution-found-worked/84510 "2020-06-12T18:10:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![hungyiwu](https://help.nextcloud.com/letter_avatar/hungyiwu/32/6_22734026db12803ebb3e059622ac3534.png) [@hungyiwu](https://help.nextcloud.com/u/hungyiwu)\
**Post date:** [June 12, 2020, 6:10pm UTC](https://help.nextcloud.com/t/nextcloud-calendar-app-subscribing-to-google-calendar-not-working-no-solution-found-worked/84510/1 "2020-06-12T18:10:52Z")

</div>

# Software version:

- Calendar 2.0.3
- Nextcloud 18.0.6 (installed through snap, on Ubuntu 20.04)

# Description:

Need to subscribe to a public Google Calendar (work related, managed by others)  
I can only find its public URL (don’t think it’s ics format), starting with https://

subscribed through link, no error message, name of this calendar shown as “[calendar.google.com](http://calendar.google.com)”  
never updated (longest wait time: 24 hr)

# Googled around and found these articles, none worked:

- Nextcloud admin documentation: change refresh rate  
[https://cloud.hywalty.net/core/doc/admin/groupware/calendar.html#refresh-rate](https://cloud.hywalty.net/core/doc/admin/groupware/calendar.html#refresh-rate)  
I cannot find `occ` (also digged into this issue and found I don’t have `/var/www/` folder)  
so I did `sudo nextcloud.occ config:app:set dav calendarSubscriptionRefreshRate --value "PT1S"`  
which should refresh after 1 second, but that didn’t happen  
also changed to `"PT15M"` (refresh after 15 min), didn’t happen either  
I then restarted my server (an AWS instance), didn’t work
- other related posts like this  
[Calendar App: Subscription of Google Calendar does not work](https://help.nextcloud.com/t/calendar-app-subscription-of-google-calendar-does-not-work/68896/11)  
said I should wait for the cron job (which on my server it’s set to be every 5 min), but it’s for Nextcloud 18.0.2, and I’m at 18.0.6
- another related post said it’s handled by my browser but not my server (?!) and pointed to another tool called `vdirsyncer`  
[Calendar sync with google](https://help.nextcloud.com/t/calendar-sync-with-google/51844/4)  
[https://vdirsyncer.pimutils.org/en/stable/](https://vdirsyncer.pimutils.org/en/stable/)  
puzzled by the documentation of that tool and don’t know how to set it up

I’m super confused and frustrated. Any thoughts and suggestions will be appreciated!

---

<div class="post-metadata">

**Author:** ![j-ed](https://help.nextcloud.com/user_avatar/help.nextcloud.com/j-ed/32/7281_2.png) [@j-ed](https://help.nextcloud.com/u/j-ed)\
**Post date:** [June 14, 2020, 5:56pm UTC](https://help.nextcloud.com/t/nextcloud-calendar-app-subscribing-to-google-calendar-not-working-no-solution-found-worked/84510/2 "2020-06-14T17:56:29Z")

</div>

Please make sure that your Nextcloud cron job is running regularly as described [here](https://docs.nextcloud.com/server/19/admin_manual/configuration_server/background_jobs_configuration.html?highlight=cron#cron). If this job isn’t running on a regular base, adjusting any interval has no effect on anything 😉

---

<div class="post-metadata">

**Author:** ![tcit](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tcit/32/5931_2.png) [@tcit](https://help.nextcloud.com/u/tcit)\
**Post date:** [June 15, 2020, 6:56am UTC](https://help.nextcloud.com/t/nextcloud-calendar-app-subscribing-to-google-calendar-not-working-no-solution-found-worked/84510/3 "2020-06-15T06:56:38Z")

</div>

> [@hungyiwu](#):
>
> I cannot find `occ` (also digged into this issue and found I don’t have `/var/www/` folder)

If you can’t find `occ` running `occ` commands won’t do anything…

---

<div class="post-metadata">

**Author:** ![hungyiwu](https://help.nextcloud.com/letter_avatar/hungyiwu/32/6_22734026db12803ebb3e059622ac3534.png) [@hungyiwu](https://help.nextcloud.com/u/hungyiwu)\
**Post date:** [June 15, 2020, 10:39pm UTC](https://help.nextcloud.com/t/nextcloud-calendar-app-subscribing-to-google-calendar-not-working-no-solution-found-worked/84510/4 "2020-06-15T22:39:42Z")

</div>

Thank you @j-ed and @tcit for your replies! I digged into the issues you mentioned and, though not solved yet, found some more clues to this issue:

1. I installed Nextcloud with snap and found one post mentioned that some instructions will have to be run differently for a snap installation  
[Permissions Issue with Data Storage "Snap" - Solved](https://help.nextcloud.com/t/permissions-issue-with-data-storage-snap-solved/81023)

2. I tried setting cron jobs for either `www-data` or `root` but none actually ran

3. I manually ran the cron job by `sudo php /snap/nextcloud/current/htdocs/cron.php` and got this error message:

```auto
App directory "/snap//current/htdocs/apps" not found! Please put the Nextcloud apps folder in the Nextcloud folder or the folder above. You can also configure the location in the config.php file.

```

That seems like it didn’t get the path correctly, as there is a folder called `/snap/nextcloud/current/htdocs/apps`. I recalled when digging in one of the `config.php` files that position of the path was `$SNAP_NAME`. I added `export SNAP_NAME="nextcloud"` and confirmed this environment variable is loaded by `sudo echo $SNAP_NAME`. But running the cron job manually again yielded the same error message.

Any thoughts on this?

---

<div class="post-metadata">

**Author:** ![InsOp](https://help.nextcloud.com/letter_avatar/insop/32/6_22734026db12803ebb3e059622ac3534.png) [@InsOp](https://help.nextcloud.com/u/InsOp)\
**Post date:** [December 21, 2022, 9:48pm UTC](https://help.nextcloud.com/t/nextcloud-calendar-app-subscribing-to-google-calendar-not-working-no-solution-found-worked/84510/5 "2022-12-21T21:48:54Z")

</div>

did you found a solution for this?

Im having the same problem. The Nextcloud instance is inside a VPN, so not accessible from the outside, but that shouldnt be a problem.

I ahve set `php occ config:app:set dav calendarSubscriptionRefreshRate --value "PT1S"` to 1 Second as well and crons are working.

I dont get any events from my google calendar into my next cloud calendar.

My Nextcloud version is 21.0.4 and installed via Helm (Docker)  
And Calendar is of version 3.3.2

* * *

### Edit:

made it work - I just copied the wrong link from the google calendar.  
Go to your Calendar settings and copy the link from “Secret address in iCal format” - that one works. all the other links do not work.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 3:56pm UTC](https://help.nextcloud.com/t/nextcloud-calendar-app-subscribing-to-google-calendar-not-working-no-solution-found-worked/84510/6 "2024-12-14T15:56:22Z")

</div>


