Linuxserver nextcloud docker container: calendar app not refreshing

Hi there!

I’m using portainer 2.1.1 and running nextcloud linuxserver/nextcloud.latest. Everything seems to be working fine, portainer isnt outputting any logs and the logs in nextcloud self seem to give no indications of problems. I’m running nextcloud over a self hosted nginx proxy server from https://192.168.2.250:9000/ to nextcloud.website.dev with ssl certificates.

I’ve added a google ical link and checked them with teh webdav checker, everything seems to be going smooth. I’m adding my google calendar links using the new subscription from link (read-only) command. Everything the synched fine and i even observed syncing of new appointments for a few minutes. After that the synching stops however. I’m failing to see why this happens.I’ve looked up the nextcloud documentation and it states that the cron job time needs to be increaded:

https://docs.nextcloud.com/server/stable/admin_manual/groupware/calendar.html

I’ve figured out that for portainer and docker this command should be :

root@XXX:/config/www/nextcloud# sudo -u abc php occ config:app:set dav calendarSubscriptionRefreshRate --value "P5M"

And i even get an output:

Config value calendarSubscriptionRefreshRate for app dav set to P5M

Unfortunatley this doesnt change anything. And i have no clue why. There are a lot of different procedures discussed online but none seem to provide a definitive solution. Furthermore there is a great variation of deployment methods (docker, portainer, snap etc) and nextcloud versions.

I’ve tried fiddling with crontab this gave me the following info :

/config/www/nextcloud/cron.php is a document filled with code about cron, no cron jobs

sudo crontab -u abc -e opens an empty file, -l flag instead of -e displays nothing

crontab -u abc -e opens an empty file, -l flag instead of -e displays nothing

www-data is not a registered user.

the cron folder has this as contents:

'root@XXX:/config/crontabs# cat root

do daily/weekly/monthly maintenance

min hour day month weekday command

*/15 * * * * run-parts /etc/periodic/15min
0 * * * * run-parts /etc/periodic/hourly
0 2 * * * run-parts /etc/periodic/daily
0 3 * * 6 run-parts /etc/periodic/weekly
0 5 1 * * run-parts /etc/periodic/monthly

nextcloud cron

*/5 * * * * s6-setuidgid abc php7 -f /config/www/nextcloud/cron.php’

This was all taken from here:

https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/background_jobs_configuration.html#systemd

Can anyone point me in the right direction please ?

Thanx!

Here is my error log:

‘root@XXX:/config/log/php# cat error.log
[01-Mar-2021 10:58:21] NOTICE: Terminating …
[01-Mar-2021 10:58:21] NOTICE: exiting, bye-bye!
[01-Mar-2021 10:58:27] NOTICE: fpm is running, pid 372
[01-Mar-2021 10:58:27] NOTICE: ready to handle connections
[01-Mar-2021 13:04:00] NOTICE: Terminating …
[01-Mar-2021 13:04:00] NOTICE: exiting, bye-bye!
[01-Mar-2021 13:04:05] NOTICE: fpm is running, pid 372
[01-Mar-2021 13:04:05] NOTICE: ready to handle connections’

Here is my nextcloud.log:

https://privatebin.net/?ebc8a89562905f85#BBW9jMq1uz61sU2NdNvxB2dHuMCG8G1xri5wDZsx1n7L

anyone please ?

Hi! Did you ever manage to solve this problem?

I’m having a similar issues with an Exchange ICS file. It reads well, but no way to get it to sync every couples of minutes.