-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New system:cron is generating output when everything is fine #36298
Comments
In my case, after installing of v10.3 the cron.php doesn´t run when I schedule a start over system cron. If I copy the cron.php from v10.2.1 it runs as before. |
We are moving away from cron.php - please use occ system:cron ... |
We shall change this .. agreed |
I don´t understand in the right way, because I use the system cron to start the cron.php each 10 minutes with the follow line: root /bin/su -s /bin/sh -c "/usr/local/bin/php72 -f /volume1/web/owncloud/cron.php" http Its on a Synology. I don´t understand, what is changed and what I have to modify. |
So I think, I have to use root /bin/su -s /bin/sh -c "/usr/local/bin/php72 -f /volume1/web/owncloud/occ system:cron" http instead of the old command? |
The system:cron is also generating a newline https://github.com/owncloud/core/blob/v10.3.0/core/Command/System/Cron.php#L137, this has to be removed as well (for cron execution at least). @Kaelber |
see #36304 - feel free to test ... |
Thanks a lot, it runs .... |
@DeepDiver1975 Thanks! Will test this evening. :) |
I have the same issue as mentioned by Faldrian (with 16 progress bar lines), but also a notice beforehand saying: The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see http://php.net/manual/en/book.pcntl.php I can’t install that extension because I am running owncloud on a shared host. The cron job is working fine, though. Maybe that notice could be turned off as well? |
Try adding
and this is working fine. |
It only removes the progress bar from the notice but doesn’t mute the notice itself. At least in my case. |
If anyone is interested in a solution that only filters out the message stated by hub-o-matic (PHP notice about PNCTL), you may want to try the following: |
Steps to reproduce
Expected behaviour
I should only receive e-mail / notification when a cron could not run or some error happened. If everything was fine, no output should be generated by the cronjob, so nothing is reported by my server.
Actual behaviour
From 10.3 on there is a progress bar that is updated 14 times, generating output.
This progress bar is no error / warning information and should not be output when running as cron job.
Server configuration
Operating system: CentOS 6
Web server: Apache
Database: MySQL
PHP version: 7.2.23
ownCloud version: 10.3
Updated from an older ownCloud or fresh install: Updated from 10.2.something
Where did you install ownCloud from: originally downloaded tar file and extracted.
The text was updated successfully, but these errors were encountered: