Cron jobs spamming logs since nc 22

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 22.0.0
Operating system and version (eg, Ubuntu 20.04): OpenBSD 6.9
Apache or nginx version (eg, Apache 2.4.25): 2.4.48
PHP version (eg, 7.4): 7.4

The issue you are facing:
Since update to Nextcloud 22, cron jobs started to spam logs to www@localhost.
For couple days I have more than thousand dummy messages just like this:

From root@cloud Sun Jul 11 18:30:01 2021
Delivered-To: www@cloud
From: root@cloud (Cron Daemon)
To: www@cloud
Subject: Cron <www@cloud> /usr/local/bin/php-7.4 -f /var/www/htdocs/nextcloud/cron.php
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/var/www>
X-Cron-Env: <LOGNAME=www>
X-Cron-Env: <USER=www>

running maintenance(2)
running maintenance(1)

How can i disable this messages? It is very annoying

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Update to NC 22

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'datadirectory' => '/mnt/bigdisk/nextcloud',
  'dbtype' => 'pgsql',
  'version' => '22.0.0.11',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => '',
  'dbpassword' => '',
  'installed' => true,
  'maxZipInputSize' => 838860800,
  'allowZipDownload' => true,
  'theme' => '',
  'maintenance' => false,
  'trusted_domains' => 
  array (
    0 => 'cloud',
  ),
  'mail_smtpmode' => 'smtp',
  'secret' => '',
  'loglevel' => 2,
  'htaccess.RewriteBase' => '/',
  'mail_from_address' => 'cloud',
  'mail_domain' => '',
  'overwrite.cli.url' => 'https://cloud',
  'mail_smtphost' => 'localhost',
  'mail_smtpauthtype' => 'LOGIN',
  'default_phone_region' => 'RU',
);

Ah, here is the issue https://github.com/nextcloud/circles/issues/686