inconsistent activity mailing
I'm losing my mind here, activity mailing is driving me up the walls. How does it work?
In the "basic settings" under "Background tasks" I have checked "Cron". Under "E-Mail-Server" I have everything configured correctly. Test-Mails are sent out and received instantly, no problem here.
Crontab configuration is the following:
*/5 * * * * php -f /var/www/nextcloud/cron.php
0 * * * * php -f /var/www/nextcloud/occ activity:send-mails hourly
30 7 * * * php -f /var/www/nextcloud/occ activity:send-mails daily
30 7 * * MON php -f /var/www/nextcloud/occ activity:send-mails weekly
My personal activity settings are the following:
If someone shares something with me I get an email instantly.
If there is any CRUD activity in a shared folder (either for files or folders) I'll get an email sporadically within the next 30 minutes. It could be within 5 minutes or 23 or 15 or 20, there doesn't seem to be any pattern.
If I run the cron.php manually nothing happens. I don't get any errors, any feedback or the mail I'm expecting. The little green blob in the basic settings next to "Background Tasks" says the last cron job was run successfully a few seconds ago.
There are no errors in the nextcloud log that match with my activity, the time of my activity, cron jobs or has anything to do with emails. There are no errors in the system log either.
If I run
sudo -u www-data php occ activity:send-mails
manually I get the mail I'm expecting instantly and I just don't understand why. It seems to me like the system is keeping the mail until *insert random time* has passed and then sends it out instead of "As soon as possible" as I have it configured.
Sure I could configure a cron job to do the above command every minute, but that would bypass the personal settings of every user in our cloud. Sadly there doesn't seem to be a command for sending out every mail except those who are supposed to go out hourly, daily or weekly.
Now lastly I already tried enabling debug logging but I couldn't find any useful information in the massive dump of logs that it creates.
We are running Nextcloud 17.0.10 (I know it's not supported anymore). I found almost no information on that specific problem on the internet other than another reddit post from 6 months ago from a user having the same problem with v18, but no solution.
This is a nightmare and I would highly appreciate any input on the matter.
Posted Nov 16, 2020, 9:49 AM UTC