File download not possible - debug help

hi there,

I’m not able to download files with ca 350-400MB android nextcloud stable/beta, foldersync app, smartphone browser and desktop firefox. The download cancelled mostly after 250MB.

Can someone help me to debug this problem maybe with curl or firefox? The foldersync app always tell me unexpected end of stream, the log from the nextcloud beta app is here.
https://gist.github.com/Micha-Btz/c1343a0f19e86aee956962f71334f7f5
In the nextcloud log is nothing, the apache error log is empty and the acces.log shows:

94.222.33.154 - - [29/Dec/2016:16:42:17 +0100] “GET /remote.php/webdav/own/backup/sysiphus/home-20161228.tar.bz2.gpg HTTP/1.1” 500 - “-” “Mozilla/5.0 (Android) nextcloud-android/20161224”

Another question is, my backupfiles are on local disc at least 20MB bigger then on the web storage this make me a bit doubtful if the upload is correct. Uploaded are with the linux owncloud client. There is a snip out of the owncloudsync.log.

#=#=#=# Syncrun started until (0 msec)
|0|own|INST_SYNC|Up|1481565371||566||0||0|0|1482924084|5863a035076b8|00004128oca2cf00c606|INST_NONE|
|0|own/backup|INST_SYNC|Up|1481565371||164||0||0|0|1482924084|5863a035076b8|00000017oca2cf00c606|INST_NONE|
|0|own/backup/sysiphus|INST_SYNC|Up|1482924225||854||0||0|0|1482924084|5863a035076b8|00000019oca2cf00c606|INST_NONE|
11:23:47|49430|own/backup/sysiphus/etc-20161228.tar.bz2.gpg|INST_NEW|Up|1482924217||5698648||4||201|0|0|||INST_NONE|
|0|own/backup/sysiphus/home-20161228.tar.bz2.gpg|INST_NEW|Up|1482924225||409266655||1|Connection closed|0|0|0|||INST_NONE|
#=#=#=# Syncrun started until (0 msec)
|0|own/backup/sysiphus/home-20161228.tar.bz2.gpg|INST_NEW|Up|1482924225||409266655||3|Operation canceled|0|0|0|||INST_NONE|
#=#=#=# Syncrun started until (0 msec)
|0|own/backup/sysiphus/home-20161228.tar.bz2.gpg|INST_NEW|Up|1482924225||409266655||3|Operation canceled|0|0|0|||INST_NONE|
#=#=#=# Syncrun started until (0 msec)
|0|own/backup/sysiphus/home-20161228.tar.bz2.gpg|INST_NEW|Up|1482924225||409266655||3|Operation canceled|0|0|0|||INST_NONE|
#=#=#=# Syncrun started until (0 msec)
12:41:14|2333219|own/backup/sysiphus/home-20161228.tar.bz2.gpg|INST_NEW|Up|1482924225||409266655||4||201|0|0|||INST_NONE|
#=#=#=# Syncrun started until (0 msec)

but on webinterface the file home-20161228.tar.bz2.gpg is only 390.3MB.

I hope someone can help me to debug this. I’m on nextcloud stable 10.0.2.

TIA Micha

hi there,

i have tried to debug this more and here are some infos. All downloads are worked fine today on work with 100MBit
internet connection. At home with 16Mbit internet connection all downloads are go about 200MB and then break up.

mdomann@sysiphus:~$ curl -v -u USER:PASS https://tdl.tdl/remote.php/webdav/own/backup/sysiphus/home-20170104.tar.bz2.gpg --output home-20170104.tar.bz2.gpg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 79.133.37.107...
* TCP_NODELAY set
* Connected to TDL:TDL (79.133.37.107) port 443 (#0)
* found 173 certificates in /etc/ssl/certs/ca-certificates.crt
* found 696 certificates in /etc/ssl/certs
* ALPN, offering h2
* ALPN, offering http/1.1
* SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256
* 	 server certificate verification OK
* 	 server certificate status verification SKIPPED
* 	 common name: TDL:TDL (matched)
* 	 server certificate expiration date OK
* 	 server certificate activation date OK
* 	 certificate public key: RSA
* 	 certificate version: #3
* 	 subject: CN=TDL:TDL
* 	 start date: Sun, 27 Nov 2016 09:35:00 GMT
* 	 expire date: Sat, 25 Feb 2017 09:35:00 GMT
* 	 issuer: C=US,O=Let's Encrypt,CN=Let's Encrypt Authority X3
* 	 compression: NULL
* ALPN, server did not agree to a protocol
* Server auth using Basic with user 'USER'
> GET /remote.php/webdav/own/backup/sysiphus/home-20170104.tar.bz2.gpg HTTP/1.1
> Host: owncloud.mdomann.tk
  > User-Agent: curl/7.51.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< Date: Wed, 04 Jan 2017 19:51:41 GMT
< Server: Apache/2.4.10 (Debian)
< X-Powered-By: PHP/7.0.1
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate
< Pragma: no-cache
< X-XSS-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< X-Frame-Options: Sameorigin
< X-Robots-Tag: none
< X-Download-Options: noopen
< X-Permitted-Cross-Domain-Policies: none
< Content-Security-Policy: default-src 'none';
< Content-Disposition: attachment; filename*=UTF-8''home-20170104.tar.bz2.gpg; filename="home-20170104.tar.bz2.gpg"
< OC-ETag: "23c733d4e0bc71de08ddebeacf62200a"
< Set-Cookie: oc_sessionPassphrase=J5fWvIlEX6CSplwKPWaoZQX5qOk1EdLMCrBZar0eYersecsJgw9kYpA7PAEFpt232pFLigmasrwiDfyR8RYqC4X8fH2abH87n4zdxo9lJPSWOpo4oh280TUqukBGWfOY; path=/; secure; HttpOnly
< Set-Cookie: nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax
< Set-Cookie: nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict
< Set-Cookie: oca2cf00c606=pb3lmbj157328vps1mf6k64le2; path=/; secure; HttpOnly
< Set-Cookie: cookie_test=test; expires=Wed, 04-Jan-2017 20:51:41 GMT; Max-Age=3600
< Last-Modified: Wed, 04 Jan 2017 06:58:06 GMT
< ETag: "23c733d4e0bc71de08ddebeacf62200a"
< Content-Length: 406796707
< Strict-Transport-Security: max-age=31536000
< Content-Type: application/octet-stream
< 
  0  387M    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0{ [6911 bytes data]
 51  387M   51  199M    0     0  1575k      0  0:04:12  0:02:09  0:02:03 1612k* GnuTLS recv error (-110): The TLS connection was non-properly terminated.
* Curl_http_done: called premature == 1
* stopped the pause stream!
 51  387M   51  199M    0     0  1575k      0  0:04:12  0:02:09  0:02:03 1608k
* Closing connection 0
curl: (56) GnuTLS recv error (-110): The TLS connection was non-properly terminated.

nextcloud log:

Uncaught Error: Access to undeclared static property: OC\Files\Filesystem::$normalizedPathCache in /var/www/virtual/web41856.pfweb.eu/mdomann.tk/owncloud/htdocs/lib/private/Files/Filesystem.php:776 Stack trace: #0 /var/www/virtual/web41856.pfweb.eu/mdomann.tk/owncloud/htdocs/lib/private/Files/View.php(2034): OC\Files\Filesystem::normalizePath('/MichaDO/files/...') #1 /var/www/virtual/web41856.pfweb.eu/mdomann.tk/owncloud/htdocs/lib/private/Files/View.php(1152): OC\Files\View->unlockFile('/own/backup/sys...', 1) #2 [internal function]: OC\Files\View->OC\Files\{closure}() #3 /var/www/virtual/web41856.pfweb.eu/mdomann.tk/owncloud/htdocs/3rdparty/icewind/streams/src/CallbackWrapper.php(109): call_user_func(Object(Closure)) #4 [internal function]: Icewind\Streams\CallbackWrapper->stream_close() #5 {main} thrown at /var/www/virtual/web41856.pfweb.eu/mdomann.tk/owncloud/htdocs/lib/private/Files/Filesystem.php#776

any idea what i can do. feeling of despair

Micha

There are already some reports on the bugtracker:


Especially on the second report, they seem to have found some issues. I’m not sure how much information they gathered and if it is enough to debug. So perhaps open a new bugreport and present your problem (the fact that the 100 Mbit download works and the 16 Mbit not, is a good indicator what could went wrong). You can also link to the other issues.

bug report created https://github.com/nextcloud/server/issues/2974

1 Like