Nextcloud version (eg, 20.0.5): 22.1.1.
Operating system and version (eg, Ubuntu 20.04): Webhostiung allinkl
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): 7.4
Hi,
running the cron.php via my webhosting server works, gives me the following output.
Returncode: 2
Ausgabe des Scripts:
Array
(
[0] => [...]/nextcloud/cron.php: line 1: ?php: No such file or directory
[1] => [...]/nextcloud/cron.php: line 2: /**: No such file or directory
[2] => [...]/nextcloud/cron.php: line 3: syntax error near unexpected token `('
[3] => [...]/nextcloud/cron.php: line 3: ` * @copyright Copyright (c) 2016, ownCloud, Inc.'
)
Is this something to worry?
In Nextcloud admin panel the execution on background jobs seems not to be registered.
<?php
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
* @author Artem Sidorenko <artem@posteo.de>
* @author Christopher Schäpers <kondou@ts.unde.re>
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
* @author Daniel Kesselberg <mail@danielkesselberg.de>
* @author hoellen <dev@hoellen.eu>
* @author J0WI <J0WI@users.noreply.github.com>
* @author Jakob Sack <mail@jakobsack.de>
* @author Joas Schilling <coding@schilljs.com>
* @author Jörn Friedrich Dreyer <jfd@butonic.de>
* @author Ko- <k.stoffelen@cs.ru.nl>
* @author Michael Kuhn <michael@ikkoku.de>
* @author Morris Jobke <hey@morrisjobke.de>
* @author Oliver Kohl D.Sc. <oliver@kohl.bz>
* @author Robin Appelman <robin@icewind.nl>
* @author Roeland Jago Douma <roeland@famdouma.nl>
* @author Steffen Lindner <mail@steffen-lindner.de>
* @author Thomas Müller <thomas.mueller@tmit.eu>
* @author Vincent Petry <vincent@nextcloud.com>
*
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License, version 3,
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
require_once __DIR__ . '/lib/versioncheck.php';
try {
require_once __DIR__ . '/lib/base.php';
if (\OCP\Util::needUpgrade()) {
\OC::$server->getLogger()->debug('Update required, skipping cron', ['app' => 'cron']);
exit;
}
if ((bool) \OC::$server->getSystemConfig()->getValue('maintenance', false)) {
\OC::$server->getLogger()->debug('We are in maintenance mode, skipping cron', ['app' => 'cron']);
exit;
}