File name contains at least one invalid character

Support intro

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version ( 16.0.4):
Operating system and version ( Ubuntu 18.04):
Apache or nginx version (nginx/1.14.0):
PHP version ( 7.2.19):

The issue you are facing: Error uploading files larger than 5 GB.

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

  1. Click upload files, select a file larger than 5 GB to start uploading.
  2. I await sending, then I will display the message:
    “File name contains at least one invalid character”.

The output of your Nextcloud log in Admin > Logging:

Fatal	webdav	OCA\DAV\Connector\Sabre\Exception\InvalidPath: File name contains at least one invalid character
/usr/share/nginx/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php - line 76:

OCA\DAV\Connector\Sabre\Directory->getChild("Windows Ser ... G")

/usr/share/nginx/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 754:

Sabre\DAV\Tree->getNodeForPath("files/root/ ... G")

/usr/share/nginx/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 624:

Sabre\DAV\Server->getCopyAndMoveInfo(Sabre\HTTP\R ... "})

<<closure>>

Sabre\DAV\CorePlugin->httpMove(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})

/usr/share/nginx/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105:

call_user_func_array([ Sabre\DAV\ ... "], [ Sabre\HTTP ... }])

/usr/share/nginx/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479:

Sabre\Event\EventEmitter->emit("method:MOVE", [ Sabre\HTTP ... }])

/usr/share/nginx/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254:

Sabre\DAV\Server->invokeMethod(Sabre\HTTP\R ... "}, Sabre\HTTP\Response {})

/usr/share/nginx/nextcloud/apps/dav/lib/Server.php - line 316:

Sabre\DAV\Server->exec()

/usr/share/nginx/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:

OCA\DAV\Server->exec()

/usr/share/nginx/nextcloud/remote.php - line 163:

require_once("/usr/share/ ... p")

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):


The output of your Apache/nginx/system log in /var/log/____:

   50	2019/09/25 18:34:41 [error] 12843#12843: *27004 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.42.145, server: , request: "MOVE /remote.php/dav/uploads/root/web-file-upload-67ecb271d7a63b1b27fb4077d1de7795-1569436288895/.file HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock", host: "nextcloud.mydomain.com.br", referrer: "https://nextcloud.mydomain.com.br/apps/files/?dir=/15_INFORMATICA&fileid=2468"
    51	2019/09/25 18:48:25 [error] 12841#12841: *29150 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.42.145, server: , request: "MOVE /remote.php/dav/uploads/ws02/web-file-upload-67ecb271d7a63b1b27fb4077d1de7795-1569437095828/.file HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock", host: "nextcloud.mydomain.com.br", referrer: "https://nextcloud.mydomain.com.br/apps/files/?dir=/15_INFORMATICA&fileid=2468"```

Hi,

So, does the file name contain invalid characters? Did you already try to rename the file and give it a very simple file name before uploading?
What is the name of the file?

Hey man!

I made the changes inside the /etc/php/7.2/fpm/php.ini files

upload_max_filesize = 6144M
post_max_size = 6144M

I also renamed this file, but the error persists.

​
 0. /usr/share/nginx/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php line 156
    OCA\DAV\Connector\Sabre\File->put(null)
 1. /usr/share/nginx/nextcloud/apps/dav/lib/Upload/UploadFolder.php line 45
    OCA\DAV\Connector\Sabre\Directory->createFile("199229440", null)
 2. /usr/share/nginx/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1096
    OCA\DAV\Upload\UploadFolder->createFile("199229440", null)
 3. /usr/share/nginx/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 525
    Sabre\DAV\Server->createFile("uploads/ws02/we ... 0", null, null)
 4. <<closure>>
    Sabre\DAV\CorePlugin->httpPut(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
 5. /usr/share/nginx/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php line 105
    undefinedundefinedcall_user_func_array([Sabre\DAV\CorePlugin {},"httpPut"], [Sabre\HTTP\Requ ... }])
 6. /usr/share/nginx/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 479
    Sabre\Event\EventEmitter->emit("method:PUT", [Sabre\HTTP\Requ ... }])
 7. /usr/share/nginx/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 254
    Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Reque ... "}, Sabre\HTTP\Response {})
 8. /usr/share/nginx/nextcloud/apps/dav/lib/Server.php line 316
    Sabre\DAV\Server->exec()
 9. /usr/share/nginx/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
10. /usr/share/nginx/nextcloud/remote.php line 163
    undefinedundefinedrequire_once("/usr/share/ngin ... p")
​
PUT /remote.php/dav/uploads/ws02/web-file-upload-5c20e8df8a50cea6716b0d576d9b592f-1569462318675/199229440
from 192.168.43.254 by ws02 at 2019-09-26T01:54:32+00:00

Captura%20de%20tela%20de%202019-09-26%2011-20-09

Captura%20de%20tela%20de%202019-09-26%2011-19-20

  • I also performed an upload test through the nextclou linux client, which also reports the same error, below I will attach the client log.
[OCC::SyncEngine::slotDiscoveryJobFinished 	#### Discovery end ####################################################  129 ms
[OCC::ActivityListModel::removeActivityFromActivityList 	Activity/Notification/Error successfully dismissed:  "O servidor respondeu \"504 Gateway Time-out\" para \"MOVE https://nextcloud.projectus.com.br/remote.php/dav/uploads/ws02/2362983254/.file\""
[OCC::ActivityListModel::removeActivityFromActivityList 	Trying to remove Activity/Notification/Error from view... 
[OCC::ActivityListModel::removeActivityFromActivityList 	Activity/Notification/Error successfully removed from the list.
[OCC::ActivityListModel::removeActivityFromActivityList 	Updating Activity/Notification/Error view.
[_csync_merge_algorithm_visitor 	INSTRUCTION_NEW                client file: Win10_1903_V1_BrazilianPortuguese_x64.iso
[csync_reconcile 	Reconciliation for local replica took  0 seconds visiting  1  files.
[csync_reconcile 	Reconciliation for remote replica took  0 seconds visiting  0  files.
[OCC::SyncEngine::slotDiscoveryJobFinished 	#### Reconcile end ####################################################  131 ms
[OCC::SyncEngine::checkErrorBlacklisting 	Item is on blacklist:  "Win10_1903_V1_BrazilianPortuguese_x64.iso" retries: 1 for another 4 s
[OCC::SyncEngine::slotDiscoveryJobFinished 	Permissions of the root folder:  "DNVCKRS"
[OCC::AccessManager::createRequest 	5 "" "https://nextcloud.projectus.com.br/remote.php/dav/uploads/ws02/2362983254" has X-Request-ID "7548a40f-4583-4385-8d8a-964ef23423f1"
[OCC::AbstractNetworkJob::start 	OCC::DeleteJob created for "https://nextcloud.projectus.com.br" + "" "OCC::SyncEngine"
[OCC::SyncEngine::slotDiscoveryJobFinished 	#### Post-Reconcile end ####################################################  170 ms
[OCC::Folder::slotSyncStarted 	#### Propagation start ####################################################
[OCC::ownCloudGui::slotSyncStateChange 	Sync state changed for folder  "https://nextcloud.projectus.com.br/remote.php/dav/files/ws02/15_INFORMATICA" :  "Sync Running"
[OCC::PropagateItemJob::scheduleSelfOrChild 	Starting INSTRUCTION_IGNORE propagation of "Win10_1903_V1_BrazilianPortuguese_x64.iso" by OCC::PropagateIgnoreJob(0x5593bf1f5d60)
[OCC::PropagateItemJob::done 	Could not complete propagation of "Win10_1903_V1_BrazilianPortuguese_x64.iso" by OCC::PropagateIgnoreJob(0x5593bf1f5d60) with status 10 and error: "O servidor respondeu \"504 Gateway Time-out\" para \"MOVE https://nextcloud.projectus.com.br/remote.php/dav/uploads/ws02/2362983254/.file\" (ignorado devido a um erro anterior, tentando novamente em 4 segundos)"
[OCC::ActivityWidget::slotItemCompleted 	Item  "Win10_1903_V1_BrazilianPortuguese_x64.iso"  retrieved resulted in  "O servidor respondeu \"504 Gateway Time-out\" para \"MOVE https://nextcloud.projectus.com.br/remote.php/dav/uploads/ws02/2362983254/.file\" (ignorado devido a um erro anterior, tentando novamente em 4 segundos)"
[OCC::ActivityWidget::slotItemCompleted 	Item  "Win10_1903_V1_BrazilianPortuguese_x64.iso"  retrieved resulted in error  "O servidor respondeu \"504 Gateway Time-out\" para \"MOVE https://nextcloud.projectus.com.br/remote.php/dav/uploads/ws02/2362983254/.file\" (ignorado devido a um erro anterior, tentando novamente em 4 segundos)"
[OCC::ActivityListModel::addErrorToActivityList 	Error successfully added to the notification list:  "O servidor respondeu \"504 Gateway Time-out\" para \"MOVE https://nextcloud.projectus.com.br/remote.php/dav/uploads/ws02/2362983254/.file\" (ignorado devido a um erro anterior, tentando novamente em 4 segundos)"
[OCC::SyncJournalDb::close 	Closing DB "/home/ws02/dados/Nextcloud/._sync_3e11da57a3c0.db"
[OCC::SyncEngine::finalize 	CSync run took  228 ms
[OCC::Folder::slotSyncFinished 	Client version 2.5.3git  Qt 5.12.4  SSL  OpenSSL 1.1.1c FIPS  28 May 2019
[OCC::Folder::slotSyncFinished 	SyncEngine finished without problem.
[OCC::Folder::showSyncResultPopup 	Folder sync result:  3
[OCC::ownCloudGui::slotSyncStateChange 	Sync state changed for folder  "https://nextcloud.projectus.com.br/remote.php/dav/files/ws02/15_INFORMATICA" :  "Success, some files were ignored."
[OCC::FolderMan::slotFolderSyncFinished 	<========== Sync finished for folder [dados/Nextcloud] of account [ws02@nextcloud.projectus.com.br] with remote [https://nextcloud.projectus.com.br/remote.php/dav/files/ws02/15_INFORMATICA]
[OCC::WebFlowCredentials::slotFinished 	request finished
[OCC::DeleteJob::finished 	DELETE of QUrl("https://nextcloud.projectus.com.br/remote.php/dav/uploads/ws02/2362983254") FINISHED WITH STATUS "OK"
[OCC::AccessManager::createRequest 	6 "PROPFIND" "https://nextcloud.projectus.com.br/remote.php/dav/files/ws02/" has X-Request-ID "705fc425-1dc9-450f-9fcf-d7752fa24acf"
[OCC::AbstractNetworkJob::start 	OCC::PropfindJob created for "https://nextcloud.projectus.com.br" + "/" "OCC::QuotaInfo"
[OCC::WebFlowCredentials::slotFinished 	request finished
[OCC::PropfindJob::finished 	PROPFIND of QUrl("https://nextcloud.projectus.com.br/remote.php/dav/files/ws02/") FINISHED WITH STATUS "OK"
[OCC::Folder::slotRunEtagJob 	Trying to check "https://nextcloud.projectus.com.br/remote.php/dav/files/ws02/15_INFORMATICA" for changes via ETag check. (time since last sync: 7 s)
[OCC::AccessManager::createRequest 	6 "PROPFIND" "https://nextcloud.projectus.com.br/remote.php/dav/files/ws02/15_INFORMATICA" has X-Request-ID "9b1ca7fc-5d02-41ac-9937-7507a0b5057b"
[OCC::AbstractNetworkJob::start 	OCC::RequestEtagJob created for "https://nextcloud.projectus.com.br" + "/15_INFORMATICA" "OCC::Folder"
[OCC::WebFlowCredentials::slotFinished 	request finished
[OCC::RequestEtagJob::finished 	Request Etag of QUrl("https://nextcloud.projectus.com.br/remote.php/dav/files/ws02/15_INFORMATICA") FINISHED WITH STATUS "OK"
[OCC::Folder::slotRunEtagJob 	Trying to check "https://nextcloud.projectus.com.br/remote.php/dav/files/ws02/15_INFORMATICA" for changes via ETag check. (time since last sync: 12 s)
[OCC::AccessManager::createRequest 	6 "PROPFIND" "https://nextcloud.projectus.com.br/remote.php/dav/files/ws02/15_INFORMATICA" has X-Request-ID "9e8cae2d-0ef6-499d-8860-0d6115c10768"
[OCC::AbstractNetworkJob::start 	OCC::RequestEtagJob created for "https://nextcloud.projectus.com.br" + "/15_INFORMATICA" "OCC::Folder"
[OCC::WebFlowCredentials::slotFinished 	request finished
[OCC::RequestEtagJob::finished 	Request Etag of QUrl("https://nextcloud.projectus.com.br/remote.php/dav/files/ws02/15_INFORMATICA") FINISHED WITH STATUS "OK"
[OCC::AccessManager::createRequest 	6 "PROPFIND" "https://nextcloud.projectus.com.br/remote.php/dav/files/ws02/" has X-Request-ID "c6dd294f-0a6d-4a5e-be8c-52c869b145b5"
[OCC::AbstractNetworkJob::start 	OCC::PropfindJob created for "https://nextcloud.projectus.com.br" + "/" "OCC::ConnectionValidator"
[OCC::Folder::slotRunEtagJob 	Trying to check "https://nextcloud.projectus.com.br/remote.php/dav/files/ws02/15_INFORMATICA" for changes via ETag check. (time since last sync: 17 s)
[OCC::AccessManager::createRequest 	6 "PROPFIND" "https://nextcloud.projectus.com.br/remote.php/dav/files/ws02/15_INFORMATICA" has X-Request-ID "2ba8aa33-5b71-4bd7-a77a-cb77b28cbbe6"
[OCC::AbstractNetworkJob::start 	OCC::RequestEtagJob created for "https://nextcloud.projectus.com.br" + "/15_INFORMATICA" "OCC::Folder"
[OCC::WebFlowCredentials::slotFinished 	request finished
[OCC::PropfindJob::finished 	PROPFIND of QUrl("https://nextcloud.projectus.com.br/remote.php/dav/files/ws02/") FINISHED WITH STATUS "OK"
[OCC::WebFlowCredentials::slotFinished 	request finished
[OCC::RequestEtagJob::finished 	Request Etag of QUrl("https://nextcloud.projectus.com.br/remote.php/dav/files/ws02/15_INFORMATICA") FINISHED WITH STATUS "OK"