Nextcloud version: 20.0.2
Operating system and version: Raspbian GNU/Linux 10 (buster)
Apache or nginx version : Apache/2.4.38 (Raspbian)
PHP version (eg, 7.1): 7.3.19
The issue you are facing:
i keep getting " Error while copying file to target location (copied bytes: -1, expected filesize: -1 ) " when uploading via web broser. i read that it was often caused by slow storage, but that is not the case as you can see in these screenshots: https://1drv.ms/u/s!AvA2DBq3tqxzg882UmWdhwS-FZSgjw?e=yy8oxI
my nextcloud root is /var/www/html/nextcloud and my data location is /mnt/hdd/nextcloud
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- start server.
- login.
- upload a file via web browser (chrome)
The output of your Nextcloud log in Admin > Logging:
my log file is way to large for pastebin. so here is it via onedrive:
https://1drv.ms/u/s!AvA2DBq3tqxzg88zrlh-Swrn28-pPw?e=23cdIc
The output of your config.php file in /path/to/nextcloud
:
<?php
$CONFIG = array (
'instanceid' => 'oc8wz7druaze',
'passwordsalt' => 'SVGrAJ0fMAmKYnWCyQK9Lc1KLf/eeP',
'secret' => 'W4SpIyURtCtXpkkOkKlx1pI2cExTdAT/0sWLzPjeGq6ysjpp',
'trusted_domains' =>
array (
0 => '192.168.2.47',
1 => 'MYIPADDRES',
),
'datadirectory' => '/mnt/hdd/nextcloud/',
'dbtype' => 'mysql',
'version' => '20.0.2.2',
'overwrite.cli.url' => 'http://MYIPADDRES/nextcloud',
'htaccess.RewriteBase' => '/nextcloud',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'My uname',
'dbpassword' => 'My password',
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'filelocking.enabled' => 'true',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
The output of your Apache/nginx/system log in /var/log/____
:
This log doesn't exist, only /var/log/apache2/ and in there "acces" "error" and "other vhost acces" logs