Nextcloud version (eg, 11.0.1): 11.0.1
Operating system and version (eg, Ubuntu 16.10.1): 16.10.1
Apache or nginx version (eg, Apache 2.4.25): 2.4.18
PHP version (eg, 5.6): 7.0.13
MYSQL version: 5.7.17
Is this the first time you’ve seen this error and can you replicate it?: Yes. This is on a fresh install.
The issue you are facing:
When attempting to upload files larger than 40MB, I get a “Connection to server lost” error and the file is nowhere to be found on the server. I can upload smaller files no problem. The max upload size has been increased to 4GB but this is failing at 40MB or more. Nextcloud is installed as a VM on a Hyper-V host. It has 4 cores and 8GB RAM assigned. The Nextcloud instance is running on a SSD array and the data store is on a HDD. When I upload a smaller file, I can navigate to where the data is stored on the HDD and I can see the file so I know that Nextcloud has the proper write access to this drive.
The output of your Nextcloud log in Admin > Logging:
I’ve turned logging to debug mode and there is nothing in the Logging window or in the log file.
{"reqId":"XHAaQMvstvELoGv+Wra6","remoteAddr":"192.168.1.1","app":"admin_audit","message":"File created: \"\/\/A By-law to Regulate the Use of Land, the Bulk, Height, Location, Erection and Use of Buildings and Structures (2013-283).pdf\"","level":1,"time":"2017-02-22T17:11:32-05:00","method":"PUT","url":"\/remote.php\/webdav\/A%20By-law%20to%20Regulate%20the%20Use%20of%20Land,%20the%20Bulk,%20Height,%20Location,%20Erection%20and%20Use%20of%20Buildings%20and%20Structures%20(2013-283).pdf","user":"nashbrydges","version":"11.0.1.2"}
{"reqId":"XHAaQMvstvELoGv+Wra6","remoteAddr":"192.168.1.1","app":"admin_audit","message":"File written to: \"\/\/A By-law to Regulate the Use of Land, the Bulk, Height, Location, Erection and Use of Buildings and Structures (2013-283).pdf\"","level":1,"time":"2017-02-22T17:11:32-05:00","method":"PUT","url":"\/remote.php\/webdav\/A%20By-law%20to%20Regulate%20the%20Use%20of%20Land,%20the%20Bulk,%20Height,%20Location,%20Erection%20and%20Use%20of%20Buildings%20and%20Structures%20(2013-283).pdf","user":"nashbrydges","version":"11.0.1.2"}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '- -REDACTED- -',
'passwordsalt' => '- -REDACTED- -',
'secret' => '- -REDACTED- -',
'trusted_domains' =>
array (
0 => '- -REDACTED- -',
1 => '- -REDACTED- -',
2 => '- -REDACTED- -',
),
'datadirectory' => '/media/nextcloud_data',
'overwrite.cli.url' => '- -REDACTED- -',
'dbtype' => 'mysql',
'theme' => '- -REDACTED- -',
'version' => '11.0.1.2',
'dbname' => '- -REDACTED- -',
'dbhost' => '- -REDACTED- -',
'dbport' => '- -REDACTED- -',
'dbtableprefix' => 'oc_',
'dbuser' => '- -REDACTED- -',
'dbpassword' => '- -REDACTED- -',
'logtimezone' => 'America/Toronto',
'loglevel' => 0,
'logfile' => '/var/www/nextcloud/data/nextcloud.log',
'installed' => true,
'mail_smtpmode' => 'smtp',
'mail_smtpauth' => 1,
'mail_smtpport' => '587',
'mail_smtphost' => 'outlook.office365.com',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => '- -REDACTED- -',
'mail_domain' => '- -REDACTED- -',
'mail_smtpsecure' => 'tls',
'mail_smtpname' => '- -REDACTED- -',
'mail_smtppassword' => '- -REDACTED- -',
'memcache.distributed' => '\OC\Memcache\Redis',
'memcache.local' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => 'localhost',
'port' => 6379,
),
'htaccess.RewriteBase' => '/',
);
The output of your Apache/nginx/system log in /var/log/____
:
Apache log output within the last 2 hrs is related to the reboot of the VM that I hoped would fix the issue.
[Wed Feb 22 17:05:06.714732 2017] [mpm_prefork:notice] [pid 1820] AH00169: caught SIGTERM, shutting down
[Wed Feb 22 17:05:06.093482 2017] [mpm_prefork:notice] [pid 1878] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Feb 22 17:05:06.094272 2017] [core:notice] [pid 1878] AH00094: Command line: '/usr/sbin/apache2'
The relevant .htaccess contents:
<IfModule mod_php5.c>
php_value upload_max_filesize 4G
php_value post_max_size 4G
php_value memory_limit 512M
php_value mbstring.func_overload 0
php_value always_populate_raw_post_data -1
php_value default_charset 'UTF-8'
php_value output_buffering 0
<IfModule mod_env.c>
SetEnv htaccessWorking true
</IfModule>
</IfModule>
<IfModule mod_php7.c>
php_value upload_max_filesize 4G
php_value post_max_size 4G
php_value memory_limit 512M
php_value mbstring.func_overload 0
php_value default_charset 'UTF-8'
php_value output_buffering 0
<IfModule mod_env.c>
SetEnv htaccessWorking true
</IfModule>
</IfModule>
Let me know if you need to see anything else, but this one stumps me.