Server: Canceling big upload leads to error

Created on 13 Oct 2018  路  10Comments  路  Source: nextcloud/server

Steps to reproduce

  1. Take a big file (over 100MB is what I used and i used .zip .exe and .iso files to test it)
  2. Start uploading the file
  3. Cancel the upload by clicken the cross

Expected behaviour

Progress bar should disappear immediately and upload should be canceled

Actual behaviour

The folder where the chunks are stored while the upload is in progress is getting deleted instantly when I hit cancel, but the progress bar will continue for a few seconds and then spit out an "Internal Server error"

Server configuration

Operating system: Ubuntu 16.04

Web server: Apache2

Database: MySQL

PHP version: 7.0

Nextcloud version: 14.0.3

Updated from an older Nextcloud/ownCloud or fresh install: Did update from 14.0.2, but happened there too

Where did you install Nextcloud from: Official nextcloud page

Signing status: No errors have been found.

List of activated apps:

  • activity: 2.7.0
  • apporder: 0.5.0
  • calendar: 1.6.2
  • cloud_federation_api: 0.0.1
  • comments: 1.4.0
  • contacts: 2.1.6
  • dav: 1.6.0
  • federatedfilesharing: 1.4.0
  • federation: 1.4.0
  • files: 1.9.0
  • files_accesscontrol: 1.4.0
  • files_external: 1.5.0
  • files_pdfviewer: 1.3.2
  • files_rightclick: 0.8.4
  • files_sharing: 1.6.2
  • files_texteditor: 2.6.0
  • files_trashbin: 1.4.1
  • files_versions: 1.7.1
  • files_videoplayer: 1.3.0
  • firstrunwizard: 2.3.0
  • gallery: 18.1.0
  • groupfolders: 1.3.3
  • impersonate: 1.1.0
  • logreader: 2.0.0
  • lookup_server_connector: 1.2.0
  • mail: 0.10.0
  • nextcloud_announcements: 1.3.0
  • notifications: 2.2.1
  • oauth2: 1.2.1
  • password_policy: 1.4.0
  • provisioning_api: 1.4.0
  • registration: 0.4.3
  • serverinfo: 1.4.0
  • sharebymail: 1.4.0
  • support: 1.0.0
  • survey_client: 1.2.0
  • systemtags: 1.4.0
  • theming: 1.5.0
  • twofactor_backupcodes: 1.3.1
  • twofactor_totp: 1.5.0
  • updatenotification: 1.4.1
  • workflowengine: 1.4.0

Nextcloud configuration:
{
"system": {
"instanceid": "REMOVED SENSITIVE VALUE",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"trusted_domains": [
"nickcloud.at",
"www.nickcloud.at"
],
"datadirectory": "REMOVED SENSITIVE VALUE",
"dbtype": "mysql",
"version": "14.0.3.0",
"overwrite.cli.url": "https:\/\/nickcloud.at\/nextcloud",
"dbname": "REMOVED SENSITIVE VALUE",
"dbhost": "REMOVED SENSITIVE VALUE",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"mail_smtpmode": "smtp",
"mail_smtpsecure": "tls",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtpport": "587",
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE",
"mail_from_address": "REMOVED SENSITIVE VALUE",
"mail_domain": "REMOVED SENSITIVE VALUE",
"mail_smtphost": "REMOVED SENSITIVE VALUE",
"updater.secret": "REMOVED SENSITIVE VALUE",
"maintenance": false,
"theme": "",
"loglevel": 2,
"versions_retention_obligation": "auto,1",
"trashbin_retention_obligation": "auto,1"
}
}

Are you using external storage, if yes which one: local storage

Are you using encryption: no

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

Client configuration

Browser: Tested with Opera, FireFox, Chrome, Edge

Operating system: Win10

Logs

Nextcloud log (data/nextcloud.log)

https://nickcloud.at/nextcloud/index.php/s/Q27TKG7LKwWSsKz

If this is only an issue for me, then please help me to fix it.. It's pretty annoying.

1. to develop bug files

Most helpful comment

Still occurs on NC 19.0.1 on a brand new install using a second hard drive for storage.

All 10 comments

GitMate.io thinks possibly related issues are https://github.com/nextcloud/server/issues/11339 (Canceling upload of big file leads to "Internal Server error"), https://github.com/nextcloud/server/issues/3450 (Missing error message for too big files in public upload), https://github.com/nextcloud/server/issues/4392 (Error while syncing/uploading large files), https://github.com/nextcloud/server/issues/9801 (Error downloading or uploading large files), and https://github.com/nextcloud/server/issues/9795 (Upgrade error).

GitMate.io thinks possibly related issues are #11339 (Canceling upload of big file leads to "Internal Server error"), #3450 (Missing error message for too big files in public upload), #4392 (Error while syncing/uploading large files), #9801 (Error downloading or uploading large files), and #9795 (Upgrade error).

Yes related to MY other opened issue that never got looked at.

Still not addressed?

same issue on NC 15.0.4

It's not only for big file, choose file > 10 MB and issue will be reproduce
logs shows my

Fatal | webdav | Sabre\DAV\Exception:聽Could not rename part file to final file
Error | webdav | renaming part file to final file failed $renameOkay: false, $fileExists: false)
Error | core | unable to rename, source directory is not writable : uploads/web-file-upload-d8cfc7df0a9f130ebabbbad690dfdf5a-1551382272411
Fatal | webdav | Sabre\DAV\Exception\BadRequest:聽expected filesize 6476111 got 3448832
Error | no app in context | Sabre\DAV\Exception\BadRequest:聽expected filesize 6476111 got 3448832

I'm seeing the same behavior here on 15.0.5.

Same on 16.0.1

Fatal | webdav | Sabre\DAV\Exception:聽Could not rename part file to final file | 聽 | 2019-05-16T15:44:38+0200
Error | webdav | renaming part file to final file failed $renameOkay: false, $fileExists: false) | 聽 | 2019-05-16T15:44:38+0200
Error | core | unable to rename, source directory is not writable : uploads/web-file-upload-22a9cc9f6cfc9fe4e184ef559c41db1d-1558014276066

Same problem on 17.01. (php 7,3 mysql, 5.3.12-arch1-1, apache2 (httpd))
I use local storage with LVM.

Fatal | webdav | Sabre\DAV\Exception:聽Could not rename part file to final file |
December 01, 2019 20:59:18 Error webdav renaming part file to final file failed $renameOkay: false, $fileExists: false)
December 01, 2019 20:59:18 Error core unable to rename, source directory is not writable : uploads/web-file-upload-aadb2f852d0e706095c7788a95d771e3-1575223144679
December 01, 2019 20:59:18 Fatal webdav Sabre\DAV\Exception: Could not rename part file to final file

UPD
I found that this problem applies to type of files .docx , .zip, .exe, but it not applies to type of files .pdf, .jog, .txt. Most likely this problem is related with internal DAV client of nextcloud. The problem is not reproducible with third party webdav clients.

Steps for reproduce:

  1. open nextcloud in browser (mozilla, chrome)
  2. move folder with some word doc files from local computer (drug and drop)
  3. Then click to "cancel upload"

Same problem on NC18.
No impact, but I keep anyway an eye on that issue.

+1 on NC18 with local data storage.

Still occurs on NC 19.0.1 on a brand new install using a second hard drive for storage.

Was this page helpful?
0 / 5 - 0 ratings