core icon indicating copy to clipboard operation
core copied to clipboard

OC 4.5.6 > Bigger files Upload Failed ! Progress bar disappears

Open mastern opened this issue 13 years ago • 3 comments

This Bug concerns many users if you check the forum but any response given from OwnCLoud Dev Team just yet.

When uploading big files >30Mo Progress bar disappears suddenly, but the spinner doesn't stop and the file never appears when browsing the folder or when escaping the page upload.

Error in console : Failed to load ressource http://www.yourdomain.com/?app=files&getfile=ajax%2Fupload.php

Spent 8hours to fix this but can't find any solution even to trying to modify all server side config in php.ini parameters and fcgidMaxResquestLen

Plesk 11 CentOS 6 PHP >5.3 Handler FCGID Xeon 16 Core 64Go RAM 23-01-2013 00-26-38

See more post like this : https://github.com/owncloud/core/issues/1006

mastern avatar Jan 22 '13 23:01 mastern

HERE IS THE SOLUTION THAT WORKED FOR OWNCLOUD AND MORE

Thanks to the solution below, from a Microsoft Technologist, Kepler Ramanantsoa - http://www.twitter.com/bykepler, he posted a solution for this kind of problems or bug when uploading a big file on LAMP Server and more on Microsoft Solution Blog.

  • So this bug is caused by Server Configuration, for plesk below is his solution, try to find the right files for other distribution (Ubuntu, Fedora, RedHat,...).

Plesk 11.X - SSH : Httpd.conf of your domain or subdomain : in /var/www/vhosts/yourdomain.net/conf/last_httpd.include

1/- Find in the file the line for "FcgidMaxRequestLen" (2 lines) and change the value just aside. The default is 16777216 change it to 1073741824 (1G) or 2147483647 (2G)

   It will look like this : FcgidMaxRequestLen 1073741824

2/- Add this line at the end of the script, still last_httpd.include, the path must match to the folder of your owncloud

< Directory "/var/www/vhosts/youdomain.net/owncloud/"> LimitRequestBody 2147483647 < /Directory>

Note : </ and <Directory without space, Github don't show the code if i write it correctly.

3/- in the Php.ini (Use Plesk Domain Panel Config.) try to use this value to allow upload big files :

memory_limit = 512M #The maximum amount of memory in bytes a script is allowed to allocate. max_input_time = 3600 #The maximum time in seconds a script is allowed to parse input data. max_execution_time = 3600 (1h) #The maximum time in seconds a script is allowed to run before it is terminated. post_max_size = 1200M #The maximum size in bytes of data that can be posted with the POST method. upload_max_filesize = 1024M #The maximum size in bytes of an uploaded file.

Note : post_max_size > upload_max_filesize


gnozys avatar Jan 27 '13 16:01 gnozys

@gnozys Thanks man! it solved my problem since many years! Congrat.

mastern avatar Jan 30 '13 11:01 mastern

Great. A contribution to the documentation that describes this solution would be awesome :-)

karlitschek avatar Feb 09 '13 12:02 karlitschek