-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't upload file > 1M - Webdav - External Storage #20248
Comments
That's the response form your NAS. As start I would try to list and upload files with another webdav client.
As second step to log the complete response from the NAS. |
As described here : [relation]#12728 (comment)
> Index: apps/dav/lib/Connector/Sabre/File.php
> IDEA additional info:
> Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
> <+>UTF-8
> ===================================================================
> --- apps/dav/lib/Connector/Sabre/File.php (revision f5e8174)
> +++ apps/dav/lib/Connector/Sabre/File.php (date 1585663702290)
> @@ -415,6 +415,9 @@
> try {
> $res = $this->fileView->fopen(ltrim($this->path, '/'), 'rb');
> } catch (\Exception $e) {
> + if ($e instanceof \GuzzleHttp\Exception\ClientException && $e->getResponse() !== null) {
> + \OC::$server->getLogger()->debug('Response from dav endpoint: ' . $e->getResponse()->getBody()->getContents());
> + }
> $this->convertToSabreException($e);
> }
> if ($res === false) {
> ```
>
> As second step to log the complete response from the NAS.
Log WebUI
Nextcloud Log"reqId":"h6FsWPiHuamkZpR5CI2f","level":4,"time":"March 31, 2020 15:41:14","remoteAddr":"86.207.213.220","user":"Bushrider","app":"webdav","method":"PUT","url":"/remote.php/webdav/Nuage/Emilie/logofacture.png","message":{"Exception":"Sabre\\DAV\\Exception","Message":"Client error: `PUT http://orange.soubeyran.fr/webdav/Nuage/Emilie/logofacture.png.ocTransferId1912597708.part` resulted in a `417 Expectation Failed` response:\n<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"htt (truncated...)\n","Code":0,"Trace":[{"file":"/var/www/nuage/apps/dav/lib/Connector/Sabre/File.php","line":244,"function":"convertToSabreException","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nuage/apps/dav/lib/Connector/Sabre/Directory.php","line":156,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nuage/3rdparty/sabr$ {"reqId":"2Z9Lyw05XjvaaRtoDdnW","level":3,"time":"March 31, 2020 15:43:28","remoteAddr":"86.207.213.220","user":"Bushrider","app":"remote","method":"PUT","url":"/remote.php/webdav/Nuage/Emilie/logofacture.png","message":{"Exception":"ParseError","Message":"syntax error, unexpected 'if' (T_IF)","Code":0,"Trace":[{"file":"/var/www/nuage/lib/composer/composer/ClassLoader.php","line":322,"function":"Composer\\Autoload\\includeFile"},{"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->"},{"file":"/var/www/nuage/apps/dav/lib/Connector/Sabre/Directory.php","line":150,"function":"spl_autoload_call"},{"file":"/var/www/nuage/3rdparty/sabre/dav/lib/DAV/Server.php","line":1096,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nuage/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":525,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->"},{"function":"httpPut","c$ {"reqId":"2Z9Lyw05XjvaaRtoDdnW","level":3,"time":"March 31, 2020 15:43:28","remoteAddr":"86.207.213.220","user":"Bushrider","app":"no app in context","method":"PUT","url":"/remote.php/webdav/Nuage/Emilie/logofacture.png","message":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"calendar.view.index\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nuage/lib/private/Route/Router.php","line":339,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/var/www/nuage/lib/private/URLGenerator.php","line":82,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nuage/lib/private/NavigationManager.php","line":293,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nuage/lib/private/NavigationManager.php","line":114,"function":"init",$ {"reqId":"2Z9Lyw05XjvaaRtoDdnW","level":3,"time":"March 31, 2020 15:43:28","remoteAddr":"86.207.213.220","user":"Bushrider","app":"no app in context","method":"PUT","url":"/remote.php/webdav/Nuage/Emilie/logofacture.png","message":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route \"photos.page.index\" as such route does not exist.","Code":0,"Trace":[{"file":"/var/www/nuage/lib/private/Route/Router.php","line":339,"function":"generate","class":"Symfony\\Component\\Routing\\Generator\\UrlGenerator","type":"->"},{"file":"/var/www/nuage/lib/private/URLGenerator.php","line":82,"function":"generate","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nuage/lib/private/NavigationManager.php","line":293,"function":"linkToRoute","class":"OC\\URLGenerator","type":"->"},{"file":"/var/www/nuage/lib/private/NavigationManager.php","line":114,"function":"init","c$ {"reqId":"FAAEXbSnjipS6Ak8JYC0","level":3,"time":"March 31, 2020 15:44:15","remoteAddr":"86.207.213.220","user":"Bushrider","app":"no app in context","method":"PUT","url":"/remote.php/webdav/Nuage/Emilie/logofacture.png","message":{"Exception":"GuzzleHttp\\Exception\\ClientException","Message":"Client error: `PUT http://orange.soubeyran.fr/webdav/Nuage/Emilie/logofacture.png.ocTransferId1267903985.part` resulted in a `417 Expectation Failed` response:\n<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"htt (truncated...)\n","Code":417,"Trace":[{"file":"/var/www/nuage/3rdparty/guzzlehttp/guzzle/src/Middleware.php","line":66,"function":"create","class":"GuzzleHttp\\Exception\\RequestException","type":"::"},{"file":"/var/www/nuage/3rdparty/guzzlehttp/promises/src/Promise.php","line":203,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","$ {"reqId":"FAAEXbSnjipS6Ak8JYC0","level":4,"time":"March 31, 2020 15:44:15","remoteAddr":"86.207.213.220","user":"Bushrider","app":"webdav","method":"PUT","url":"/remote.php/webdav/Nuage/Emilie/logofacture.png","message":{"Exception":"Sabre\\DAV\\Exception","Message":"Client error: `PUT http://orange.soubeyran.fr/webdav/Nuage/Emilie/logofacture.png.ocTransferId1267903985.part` resulted in a `417 Expectation Failed` response:\n<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"htt (truncated...)\n","Code":0,"Trace":[{"file":"/var/www/nuage/apps/dav/lib/Connector/Sabre/File.php","line":244,"function":"convertToSabreException","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nuage/apps/dav/lib/Connector/Sabre/Directory.php","line":156,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nuage/3rdparty/sabr$ {"reqId":"qjbgJZe1PQPOZVXRLrX5","level":3,"time":"March 31, 2020 15:44:48","remoteAddr":"86.207.213.220","user":"Bushrider","app":"PHP","method":"GET","url":"/apps/logreader/get?offset=0&count=50&levels=11111","message":"Trying to access array offset on value of type null at /var/www/nuage/apps/logreader/lib/Log/LogIterator.php#78","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0","version":"18.0.3.0"} {"reqId":"qjbgJZe1PQPOZVXRLrX5","level":3,"time":"March 31, 2020 15:44:48","remoteAddr":"86.207.213.220","user":"Bushrider","app":"PHP","method":"GET","url":"/apps/logreader/get?offset=0&count=50&levels=11111","message":"Trying to access array offset on value of type null at /var/www/nuage/apps/logreader/lib/Log/LogIterator.php#78","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0","version":"18.0.3.0"} |
You may change the loglevel to 0 in config.php to log the message. |
Ok thx ! |
This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions. |
[reaction]#12728 (comment)
Steps to reproduce
1.Connect external storage with webdav
2.Upload File > 1M to external storage
Expected behaviour
Should upload to external storage
Actual behaviour
Client error:
PUT http://xxx.xxx.fr/webdav/Nuage/Emilie/logofacture.png.ocTransferId37033970.part
resulted in a417 Expectation Failed
response: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "htt (truncated...)Server configuration
Operating system:
Debian 8 jessie
Web server:
nginx 1.15.12-1
Database:
mysql 5.5.62
PHP version:
php7.4-fpm
Nextcloud version: (see Nextcloud admin page)
18.0.3.0
Updated from an older Nextcloud/ownCloud or fresh install:
fresh install
Where did you install Nextcloud from:
Web Installer
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
Webdav
Are you using encryption: yes/no
no
Browser:
74.0
Firefox Release
March 10, 2020
error.log
nextcloud.log
Browser log
The text was updated successfully, but these errors were encountered: