Joas Schilling
f3319f6294
Allow to call the files even when you are in another instance atm
Signed-off-by: Joas Schilling <coding@schilljs.com>
pirms 7 gadiem
Jörn Friedrich Dreyer
ac5788927a
log class name, ID only is hard to debug
pirms 7 gadiem
Damjan Georgievski
982bdb1823
introduce NEXTCLOUD_CONFIG_DIR env variable (see #300)
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`.
pirms 7 gadiem
Joas Schilling
0215b004da
Update with robin
pirms 8 gadiem
Joas Schilling
ba87db3fcc
Fix others
pirms 8 gadiem
Morris Jobke
c2d88a08b7
Remove unneeded checks if it runs on a Windows machine
* the setup check is still there
pirms 8 gadiem
Lukas Reschke
aba539703c
Update license headers
pirms 8 gadiem
Joas Schilling
92c21fd6f4
Do not lock the cron anymore so we can have multiple workers
pirms 8 gadiem
Joas Schilling
d0a2fa0506
Lock jobs while executing them, to allow multiple executors to run in parallel
pirms 8 gadiem
Joas Schilling
e252967e83
Make sure that CLI cron doesn't run for ever, but makes use of the next spawn
pirms 8 gadiem
Thomas Müller
6a6fc742dc
Catch class Error on all root entrypoints
pirms 8 gadiem
Joas Schilling
5238fc3f54
Do not create a loop that generates thousands of jobs
pirms 8 gadiem
Thomas Müller
682821c71e
Happy new year!
pirms 8 gadiem
Morris Jobke
95a3b4fd24
Add debug log statement for IJobList steps in cron.php
* makes debugging easier
pirms 8 gadiem
Morris Jobke
f46d531a4f
Replace some OC_Config calls with ILogger methods
pirms 8 gadiem
Morris Jobke
b945d71384
update licence headers via script
pirms 8 gadiem
Phil Davis
a165710e99
Minor text typos
that I noticed while looking at some code.
pirms 8 gadiem
Joas Schilling
36eef2ddab
Add a session wrapper to encrypt the data before storing it on disk
pirms 9 gadiem
Thomas Müller
d3ac73c0c9
Remove OC_Log
pirms 9 gadiem
Morris Jobke
60b8aa2a83
Removed OC_BackgroundJob - reduce class overhead
* method code is now in the static public namespace (5 sloc)
pirms 9 gadiem
Robin Appelman
d96e9d174b
block cron when in single user mode
pirms 9 gadiem
Thomas Müller
5ebd3a9e89
Cron has to be executed with the correct user - fixes 13912 and others
pirms 9 gadiem
Jenkins for ownCloud
b585d87d9d
Update license headers
pirms 9 gadiem
Thomas Müller
e3fd13de88
cron shall not operate in case we are in maintenance mode - fixes #14843
pirms 9 gadiem
Thomas Müller
b4cf6e62bf
cron.php on cli has no time limitation - fixes #14481
pirms 9 gadiem
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0
.
pirms 9 gadiem
Bernhard Posselt
5b506ab518
use flock instead of just checking if there is a file to prevent deadlocks 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
pirms 9 gadiem
Jenkins for ownCloud
6a1a4880f0
Updating license headers
pirms 9 gadiem
Robin Appelman
0b96297783
Use the TempManager to handle temporary files
pirms 9 gadiem
Thomas Müller
d9907b6fa3
move some deprecated usage of OC_Config and OC_AppConfig to \OC::server
pirms 9 gadiem
Morris Jobke
b7445582dc
add proper End of Line character
pirms 9 gadiem
Jörn Friedrich Dreyer
f551917a3c
kill OC::$session
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
pirms 10 gadiem
Oliver Kohl D.Sc.
2ff369e7f3
Update cron.php
pirms 10 gadiem
Oliver Kohl D.Sc.
97e61f438f
CRON call ends in null exception
[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/ "
pirms 10 gadiem
Vincent Petry
547927bdd2
Prevent cron.php to trigger apps updating
pirms 10 gadiem
Steffen Lindner
22394fa4f5
Fix indent
pirms 10 gadiem
Steffen Lindner
9433b94fd5
initialize a dummy memory session - fixes https://github.com/owncloud/activity/issues/78
pirms 10 gadiem
kondou
547b563464
Log last cron execution
Fixes #2012
pirms 10 gadiem
Thomas Müller
58c216d0e8
close the session on all file operations
pirms 10 gadiem
Thomas Müller
e139f7c863
load all apps to get all cron jobs executed
pirms 10 gadiem
Robin Appelman
a6399f9cef
Add the background job list to the public server container
pirms 10 gadiem
Robin Appelman
35bb6f7e3a
Catch exceptions from background jobs and log them
pirms 10 gadiem
Boris Rybalkin
00c998c5bb
fixing typo
Typo in comment "feature" => "future"
pirms 10 gadiem
kondou
9e8a6b704d
Add _many_ newlines at the end of files
pirms 10 gadiem
Jörn Friedrich Dreyer
8dc6bdd96b
clean up usage of DatabaseSetupException and catch Exceptions in entrypoints
pirms 11 gadiem
Michael Gapczynski
9b622bdeed
RUNTIME_NOSETUPFS no longer exists, using tearDownFS() in public links instead
pirms 11 gadiem
Robin Appelman
7948341a86
Rework background job system
pirms 11 gadiem
Robin Appelman
d0a5fe1f4a
code style
pirms 11 gadiem
kondou
6ee2b4c740
No personal prefixes for variables.
pirms 11 gadiem
Robin Appelman
d3858e9f96
Close sessions when doing background jobs
pirms 11 gadiem