Added by Oliver Jakobi over 8 years ago
Hi again!
Sometimes, uploading files to workpackages or in documents plugin fails.
There is no error message in production.log, but I can see worker processes beeing reaped, before the upload fails.
What is the default time before workers will be nuked and where can I change that value?
best regards,
Oliver
Replies (2)
Hi Oliver,
you’re likely exceeding the default timeout for either the worker or the apache process (If the log says
reaped worker ...
, it’s the former).We do not touch your Apache configuration regarding timeouts, but you can increase the unicorn worker timeout with:
openproject config:set WEB_TIMEOUT=X
where X is the number of seconds before reaping a worker. The default is 15, but I believe we should raise this - we do not have long-running requests that would need to be reaped.
Best,
Oliver
Hi Oliver,
thank you for that quick reply.
Like I said, I can see that unicorn is reaping the workers. Apache does not have any timout set.
Taking file uploads with bigger file sizes from slow connections into account, 15 seconds indeed seems a bit short.
Best,
Oliver