core icon indicating copy to clipboard operation
core copied to clipboard

owncloud 8.0 Upload error: 3 - The uploaded file was only partially uploaded

Open lfratini opened this issue 10 years ago • 11 comments

H,i We have this problem on our production enviornment When upload a 4Gb file from Browser , the upload FAIL with the message in object. We can not upload file with 4 Gb of Size .

Server configuration 2 machine 1 Front End + 1 Be

Server configuration

Operating system: Linux CentOS 7.1.1503 x86_64

Web server: nginx-1.9.5-1 x86_64 as Reverse Proxy

1- Back End

Operating system: Linux CentOS 7.1.1503 x86_64

Web server: nginx-1.9.3-1

Database: mariadb-server-5.5.41-2

PHP version: PHP 5.4.16

ownCloud version: 8.0.0-27.1

The content of config/config.php:

<?php
$CONFIG = array (
  'instanceid' => 'oc512f26fcda',
  'passwordsalt' => 'XXXXXX',
  'secret' => 'XXXXXX',
  'trusted_domains' =>
  array (
    0 => 'mdsdrive.sanita.it',
  ),
  'datadirectory' => '/var/www/html/owncloud/data',
  'dbtype' => 'mysql',
  'version' => '8.0.0.7',
  'dbname' => 'mdsdrivedb',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'XXXX',
  'dbpassword' => 'XXXXX',
  'installed' => true,
  'forcessl' => false,
  'preview_libreoffice_path' => '/usr/bin/libreoffice',
  'ldapIgnoreNamingRules' => false,
  'enable_previews' => true,
  'preview_max_x' => NULL,
  'preview_max_y' => NULL,
  'mail_from_address' => 'XXXX',
  'mail_smtpmode' => 'smtp',
  'mail_domain' => 'sanita.it',
  'mail_smtphost' => 'XXXXX',
  'mail_smtpport' => '25',
  'proxy' => 'XXXX:8080',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 1,
  'customclient_desktop' => 'https://mdsdrive.sanita.it/DesktopClient/index.html',
  'customclient_android' => 'https://play.google.com/store/apps/details?id=com.mdsdrive1.android',
);

Are you using external storage, if yes which one: local/smb/sftp/... NO

Are you using encryption: NO

Are you using an external user-backend, if yes which one: NO

Client configuration

Browser: Google Chrome Firefox 44.0

Operating system: Windows 7 x86/x64

Logs

Web server error log

ownCloud log (data/owncloud.log)

{"reqId":"cce7e0fa9912b258c536218e0f63fcb1","remoteAddr":"192.168.61.153","app":"files","message":"Upload error: 3 - The uploaded file was only partially uploaded","level":3,"time":"2016-01-27T10:02:04+00:00"}

lfratini avatar Feb 03 '16 08:02 lfratini

Well I assume your php.ini values for upload_max_filesize and post_max_size are too low? https://github.com/owncloud/core/blob/master/.htaccess#L26-L27

nickvergessen avatar Feb 03 '16 08:02 nickvergessen

Hi , this is the value in php.ini

upload_max_filesize = 7168M post_max_size = 16400M

lfratini avatar Feb 03 '16 09:02 lfratini

And the settings in the .htaccess files? What does the admin page show in the "File handling" section?

nickvergessen avatar Feb 03 '16 09:02 nickvergessen

Hi, this is the .htaccess file

# Generated by ownCloud on 2015-01-08 09:55:17
# line below if for Apache 2.4
<ifModule mod_authz_core>
Require all denied
</ifModule>

# line below if for Apache 2.2
<ifModule !mod_authz_core>
deny from all
</ifModule>

# section for Apache 2.2 and 2.4
IndexIgnore *

We don't have " File Handling " on admin menu

lfratini avatar Feb 03 '16 09:02 lfratini

That was the wrong htaccess file, I meant the one from your owncloud folder, not from the data directory.

nickvergessen avatar Feb 03 '16 09:02 nickvergessen

Sorry ,

this is the correct .htaccess inside Owncloud Folder

  Version: 8.0.0
<IfModule mod_fcgid.c>
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
</IfModule>
</IfModule>
</IfModule>
<IfModule mod_php5.c>
php_value upload_max_filesize 9000M
php_value post_max_size 7136M
php_value memory_limit 1024M
php_value mbstring.func_overload 0
php_value always_populate_raw_post_data -1
php_value max_input_time 10000
php_value max_input_time 10000
<IfModule mod_env.c>
  SetEnv htaccessWorking true
</IfModule>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^\.well-known/host-meta /public.php?service=host-meta [QSA,L]
RewriteRule ^\.well-known/host-meta\.json /public.php?service=host-meta-json [QSA,L]
RewriteRule ^\.well-known/carddav /remote.php/carddav/ [R]
RewriteRule ^\.well-known/caldav /remote.php/caldav/ [R]
RewriteRule ^apps/calendar/caldav\.php remote.php/caldav/ [QSA,L]
RewriteRule ^apps/contacts/carddav\.php remote.php/carddav/ [QSA,L]
RewriteRule ^remote/(.*) remote.php [QSA,L]
RewriteRule ^(build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]
RewriteRule ^(\.|autotest|occ|issue|indie|db_|console).* - [R=404,L]
</IfModule>
<IfModule mod_mime.c>
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>
AddDefaultCharset utf-8
Options -Indexes
<IfModule pagespeed_module>
        ModPagespeed Off
</IfModule>
<IfModule mod_headers.c>
  <FilesMatch "\.(css|js)$">
    Header set Cache-Control "max-age=7200, public"
  </FilesMatch>
</IfModule>

lfratini avatar Feb 03 '16 09:02 lfratini

Before you do anything further, please upgrade to the latest ownCloud version. 8.0.0 is very old and buggy.

Best is to use 8.2.2. But if you do want to keep using the 8.0 series, then upgrade to 8.0.10

PVince81 avatar Feb 03 '16 09:02 PVince81

Hi ,

Thanks for the support

lfratini avatar Feb 03 '16 09:02 lfratini

@lfratini you should check back https://github.com/owncloud/core/issues/17712#issuecomment-135533579

childnode avatar Feb 25 '16 22:02 childnode

Closing due to lack of activity. If this is still an issue with ownCloud v9.0.2RC1, feel free to reopen.

PVince81 avatar Apr 29 '16 14:04 PVince81

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Aug 04 '19 21:08 lock[bot]