Greetings,
I have an issue with uploading files!
I found many links to similar issue; but I still have the issue.
I have upgraded from RPi3b+ to 4B
sudenly I noticed that the logs mentioned I was missing the temp folder with following error:
Temporary directory /var/www/nextcloud/data/tmp is not present or writable
this post helped me fixing the issue:
https://github.com/nextcloud/nextcloudpi/issues/617
I actually created the folder, and I modify the config.php and added the temp folder to it (for future upgrade and not get broken again):
‘tempdirectory’ => ‘/var/www/nextcloud/tmp/’
This eliminated the log error for a new ones:
fatal error webdav:
Sabre\DAV\Exception\BadRequest: Expected filesize of 384670 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 8192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side
php error:
fread(): Unable to create temporary file, Check permissions in temporary files directory. at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#91
php error:
fread(): file created in the system’s temporary directory at /var/www/nextcloud/3rdparty/icewind/streams/src/Wrapper.php#91
===
[/details]
Nextcloud version 17.0.3.1:
NextCloudPi v1.20.7
Operating system and version raspbian buster:
Apache or nginx version _ Apache/2.4.38 (Raspbian)_:
PHP version 7.3:
The issue you are facing:
Is this the first time you’ve seen this error? (Y/N):
Steps to replicate it:
The output of your Nextcloud log in Admin > Logging:
Fatal webdav Sabre\DAV\Exception\BadRequest: Expected filesize of 2800057 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 8192 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.
/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 156:
OCA\DAV\Connector\Sabre\File->put(null)
/var/www/nextcloud/apps/dav/lib/Upload/UploadFolder.php - line 45:
OCA\DAV\Connector\Sabre\Directory->createFile("00000000000 ... 7", null)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1096:
OCA\DAV\Upload\UploadFolder->createFile("00000000000 ... 7", null)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 525:
Sabre\DAV\Server->createFile("uploads/alb ... 7", null, null)
<<closure>>
Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:
call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:
Sabre\Event\EventEmitter->emit("method:PUT", [ Sabre\HTTP ... }])
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})
/var/www/nextcloud/apps/dav/lib/Server.php - line 317:
Sabre\DAV\Server->exec()
/var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:
OCA\DAV\Server->exec()
/var/www/nextcloud/remote.php - line 163:
require_once("/var/www/ne ... p")
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
PASTE HERE
The output of your Apache/nginx/system log in /var/log/____
:
PASTE HERE