MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: nmpribeiro on 2014-07-01, 12:08:51

Title: Sabredav problem with php-fpm
Post by: nmpribeiro on 2014-07-01, 12:08:51
   

    [01-Jul-2014 10:40:19]  [pool admin] pid 603
    script_filename = /home/admin/owncloud_place/remote.php
    [0x00007f84dec32c28] fread() /home/admin/owncloud_place/lib/private/helper.php:561
    [0x00007f84dec323f0] streamCopy() /home/admin/owncloud_place/lib/private/files/view.php:358
    [0x00007f84dec32018] file_put_contents() /home/admin/owncloud_place/lib/private/cache/file.php:74
    [0x00007f84dec31dd0] set() /home/admin/owncloud_place/lib/private/filechunking.php:50
    [0x00007f84dec31188] store() /home/admin/owncloud_place/lib/private/connector/sabre/file.php:215
    [0x00007f84dec301c8] createFileChunked() /home/admin/owncloud_place/lib/private/connector/sabre/file.php:70
    [0x00007f84dec2faf8] put() /home/admin/owncloud_place/lib/private/connector/sabre/directory.php:76
    [0x00007f84dec2f4f0] createFile() /home/admin/owncloud_place/3rdparty/sabre/dav/lib/Sabre/DAV/Server.php:1647
    [0x00007f84dec2e9b0] createFile() /home/admin/owncloud_place/3rdparty/sabre/dav/lib/Sabre/DAV/Server.php:900
    [0x00007fffba710b90] httpPut() unknown:0
    [0x00007f84dec2e618] call_user_func() /home/admin/owncloud_place/3rdparty/sabre/dav/lib/Sabre/DAV/Server.php:474
    [0x00007f84dec2d720] invokeMethod() /home/admin/owncloud_place/3rdparty/sabre/dav/lib/Sabre/DAV/Server.php:214
    [0x00007f84dec2ce50] exec() /home/admin/owncloud_place/apps/files/appinfo/remote.php:61
    [0x00007f84dec2c5a0] +++ dump failed


from http://pastebin.com/9drbfUfR


The program I'm degugging is owncloud. I'm trying to upload big files to my server.
Expeceted behaviour:
Files are chunked to a cache folder.
Then files are read from cache and put on the files/somedir directories
 However, when sabredav tries to read those cached chunks, it fails with an Internal Server Error.

I know this is a server optimization issue, and few to do with kloxo, but...  nevertheless, a technical help :)

Anyone has an idea of what might this behaviour be from? Some php config? Some php-fpm conf?

Any help will be awesome

Title: Re: Sabredav problem with php-fpm
Post by: nmpribeiro on 2014-07-01, 16:39:44
Confirmed. Problem with sabredav and php-fpm.
Title: Re: Sabredav problem with php-fpm
Post by: nmpribeiro on 2014-07-08, 10:04:19
Hi MR,

We need to get these values in accordance:

max_execution_time = 30 /etc/php.ini
IdleTimeout = 120 /home/apache/etc/conf.d/fcgid.conf
request_terminate_timeout = 120s /etc/php-fpm.d/admin.conf

They should be max_execution_time < request_terminate_timeout < IdleTimeout

Also, this php-fpm is breaking large file uploads, giving internal server errors... It seams a server config optimization issue, but annoying nevertheless.

Also, we should be very cautious about overwriting these configurations. This php-fpm needs some work still.

I'm also guessing we should change pm=ondemand, or at least give the admin the ability to change values here without breaking php-fpm (some advanced php-fpm configuration section on kloxo-mr?)

I am very happy to help within my spare time if you want.