Activity:send-mails not working

Hello,

I am here because I can not find a solution to my problem.

I would like to be notified when I create or delete a file.
My server is configured well I tried several smtp server, I even did a new installation of Nextcoloud in a docker but I do not receive any notification of file modification.

I do receive the test email on the admin page I do receive the email when I share a file, but no activity report email.

I tried with Ajax it doesn’t work, Webcron the same, and Cron the same

I use this

  • / 30 * * * * php -f / var / www / nextcloud / occ activity: send-mails hourly
    0 12 * * * php -f / var / www / nextcloud / occ activity: send-mails daily
    0 18 * * FRI php -f / var / www / nextcloud / occ activity: send-mails weekly

even manually nothing happens

php -f / var / www / nextcloud / occ activity: send-mails

In nextcloud logging I don’t see anything going through.

I’ve tried everything I can’t find the solution do you have any idea ?

Hello @Eucliwood ,

your provide less information.
Which OS, which NC version, which php version?

Please try to add the full path to your php binary.

See official docs Activity app — Nextcloud latest Administration Manual latest documentation

I am using the version with docker, the latest one.

Yes I tried with the full path to php, but it doesn’t change anything.

ENV	

PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PHPIZE_DEPS autoconf dpkg-dev file g++ gcc libc-dev make pkg-config re2c
PHP_INI_DIR /usr/local/etc/php
APACHE_CONFDIR /etc/apache2
APACHE_ENVVARS /etc/apache2/envvars
PHP_EXTRA_BUILD_DEPS apache2-dev
PHP_EXTRA_CONFIGURE_ARGS --with-apxs2 --disable-cgi
PHP_CFLAGS -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_CPPFLAGS -fstack-protector-strong -fpic -fpie -O2 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
PHP_LDFLAGS -Wl,-O1 -pie
GPG_KEYS 42670A7FE4D0441C8E4632349E4FDC074A4EF02D 5A52880781F755608BF815FC910DEB46F53EA312
PHP_VERSION 7.4.16
PHP_URL https://www.php.net/distributions/php-7.4.16.tar.xz
PHP_ASC_URL https://www.php.net/distributions/php-7.4.16.tar.xz.asc
PHP_SHA256 1c16cefaf88ded4c92eed6a8a41eb682bb2ef42429deb55f1c4ba159053fb98b
PHP_MEMORY_LIMIT 512M
PHP_UPLOAD_LIMIT 512M
NEXTCLOUD_VERSION 21.0.0

Where are the daily dispatch logs stored? I can’t look in the right place.