summaryrefslogtreecommitdiffstats
path: root/cron.php
Commit message (Collapse)AuthorAgeFilesLines
* Deprecated OCP interface to fetch background job typeMorris Jobke2018-01-261-6/+6
| | | | | | | * was not used by apps and also is not needed * migrated the documentation to IJobList Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Log full exception in cron instead of only the messageMorris Jobke2018-01-121-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Nextcloud 13 is not compatible with newer than php 7.2Roeland Jago Douma2017-12-121-6/+1
| | | | | | | | | | | Just to avoid users from trying this with a to new (untested) php version * Moved the check logic to 1 place * All directly callable scripts just require this on top * exit hard (-1) so we know scripts won't continue * Return status 500 so no sync clients will try fancy stuff Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-061-0/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Always log cron executionMorris Jobke2017-08-171-3/+1
| | | | | | | | | | | There was a setting to disable the last execution of cron. There is no known problem with this write access and it was also questioned when this feature was build in https://github.com/owncloud/core/pull/7689#issuecomment-38264707 Recently there was also a bug report about a non-visible last cron execution (#6088) - let's better remove this. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add duration of last job execution to the tableNoveen Sachdeva2017-04-251-2/+0
|
* Check that set_time_limit is not disabled before calling itKo-2017-03-111-1/+3
| | | | Signed-off-by: Ko- <k.stoffelen@cs.ru.nl>
* Exit with error code if posix ext missing or wrong userArtem Sidorenko2017-03-081-2/+2
| | | | similar to the console.php
* Clean up single user modeMorris Jobke2017-02-221-5/+0
| | | | | | | | | | | | | | Single user mode basically disables WebDAV, OCS and cron execution. Since we heavily rely on WebDAV and OCS also in the web UI it's basically useless. An admin only sees a broken interface and can't even change any settings nor sees any files. Also sharing is not possible. As this is at least the case since Nextcloud 9 and we haven't received any reports for this it seems that this feature is not used at all so I removed it. The encryption commands now rely on the well tested maintenance mode. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Also check in cron for old php versionRoeland Jago Douma2016-12-191-0/+7
| | | | | | Fixes #2756 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* [master] Tear down FS between cron jobs (#26223)Vincent Petry2016-10-121-0/+2
| | | | | | | | | | | Because some cron jobs do not always properly clean up their FS usage and others might not clean up before setting up the FS, this could cause potential side effects. To make sure we exclude side effects, we tear down the FS between cron jobs. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow to call the files even when you are in another instance atmJoas Schilling2016-10-061-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* log class name, ID only is hard to debugJörn Friedrich Dreyer2016-08-091-2/+2
|
* introduce NEXTCLOUD_CONFIG_DIR env variable (see #300)Damjan Georgievski2016-07-291-1/+1
| | | | | | | | | | | | | | | nextcloud by default uses the `/config/` directory in the source/application tree for its config file(s). with this commit that directory can be overridden by the `NEXTCLOUD_CONFIG_DIR` environment variable. in uwsgi, you would use the option `--env "NEXTCLOUD_CONFIG_DIR=/tmp/nx-config/"` in apache `SetENV …` and the cli command can be run with: `NEXTCLOUD_CONFIG_DIR=/tmp/nx-config ./occ` (or just use `export` once in the shell). NEXTCLOUD_CONFIG_DIR can be supplied with or without the trailing slash (`/`), but in all cases `$configDir` will have it automatically added if needed. The other changes are several occurrences of `OC::$SERVERROOT . '/config'` to `OC::$configDir`.
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-2/+3
|
* Remove unneeded checks if it runs on a Windows machineMorris Jobke2016-07-081-13/+11
| | | | * the setup check is still there
* Update license headersLukas Reschke2016-05-261-1/+0
|
* Do not lock the cron anymore so we can have multiple workersJoas Schilling2016-05-211-27/+0
|
* Lock jobs while executing them, to allow multiple executors to run in parallelJoas Schilling2016-05-211-0/+1
|
* Make sure that CLI cron doesn't run for ever, but makes use of the next spawnJoas Schilling2016-04-211-0/+8
|
* Catch class Error on all root entrypointsThomas Müller2016-04-201-0/+2
|
* Do not create a loop that generates thousands of jobsJoas Schilling2016-01-281-2/+11
|
* Happy new year!Thomas Müller2016-01-121-1/+1
|
* Add debug log statement for IJobList steps in cron.phpMorris Jobke2015-11-061-0/+2
| | | | * makes debugging easier
* Replace some OC_Config calls with ILogger methodsMorris Jobke2015-10-301-2/+2
|
* update licence headers via scriptMorris Jobke2015-10-051-0/+2
|
* Minor text typosPhil Davis2015-09-211-1/+1
| | | | that I noticed while looking at some code.
* Add a session wrapper to encrypt the data before storing it on diskJoas Schilling2015-08-211-1/+4
|
* Remove OC_LogThomas Müller2015-07-031-1/+1
|
* Removed OC_BackgroundJob - reduce class overheadMorris Jobke2015-04-181-2/+2
| | | | * method code is now in the static public namespace (5 sloc)
* block cron when in single user modeRobin Appelman2015-04-091-0/+5
|
* Cron has to be executed with the correct user - fixes 13912 and othersThomas Müller2015-04-011-0/+16
|
* Update license headersJenkins for ownCloud2015-03-261-12/+20
|
* cron shall not operate in case we are in maintenance mode - fixes #14843Thomas Müller2015-03-121-1/+5
|
* cron.php on cli has no time limitation - fixes #14481Thomas Müller2015-03-111-0/+3
|
* Revert "Updating license headers"Morris Jobke2015-02-261-20/+12
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* use flock instead of just checking if there is a file to prevent deadlocks ↵Bernhard Posselt2015-02-241-44/+29
| | | | | | | | | | | | | | when the process crashed or the unlink wasnt done move cron.lock into top directory to prevent external storage issues use tmp directory lock file use new config interface incorporate #13770 add dots
* Updating license headersJenkins for ownCloud2015-02-231-13/+20
|
* Use the TempManager to handle temporary filesRobin Appelman2014-10-241-2/+1
|
* move some deprecated usage of OC_Config and OC_AppConfig to \OC::serverThomas Müller2014-10-201-3/+3
|
* add proper End of Line characterMorris Jobke2014-08-311-1/+1
|
* kill OC::$sessionJörn Friedrich Dreyer2014-08-291-2/+2
| | | | | | | | | | | | maintain deprecated \OC::$session when getting or setting the session via the server container or UserSession restore order os OC::$session and OC::$CLI remove unneded initialization of dummy session write back session when $useCustomSession is true log warning when deprecated app is used
* Update cron.phpOliver Kohl D.Sc.2014-07-241-2/+1
|
* CRON call ends in null exceptionOliver Kohl D.Sc.2014-07-241-2/+5
| | | | | | | | [error] 4461#0: *186285 FastCGI sent in stderr: "PHP message : PHP Fatal error: Call to a member function execute() on null in /var/www/ownc loud/cron.php on line 125" while reading response header from upstream, client: 217.13.183.252, server: cloud.mycloud.com, request: "GET /cron.php HTTP/1.1", upstre am: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "cloud.mycloud.com", referrer: " https://cloud.mycloud.com/"
* Prevent cron.php to trigger apps updatingVincent Petry2014-07-231-0/+5
|
* Fix indentSteffen Lindner2014-07-021-2/+2
|
* initialize a dummy memory session - fixes ↵Steffen Lindner2014-07-021-0/+3
| | | | https://github.com/owncloud/activity/issues/78
* Merge pull request #7107 from owncloud/load-apps-proper-masterThomas Müller2014-03-281-0/+3
|\ | | | | Load apps proper master
| * Merge branch 'master' into load-apps-proper-masterThomas Müller2014-03-211-3/+3
| |\ | | | | | | | | | | | | | | | | | | Conflicts: apps/files/ajax/rawlist.php cron.php ocs/v1.php