On 06.04., LÉVAI Dániel wrote:
> Hi Bruno!
>
> Bruno Flückiger @ 2019-04-02T06:58:15 +0200:
> > On 01.04., LÉVAI Dániel wrote:
> > > Hey Bruno!
> > >
> >
> > Hi Dani
> >
> > > That's the most curious thing, nothing shows up in the logs when the app
> > > says "Download failed/Could not download <filename>".
> > > Tailing httpd's errorlog and Nextcloud's data/nextcloud.log yields
> > > nothing.
> >
> > Have you checked the access log of httpd(8) too? If it is a http errror
> > 4xx it will show up there, not in the error log.
>
> Good point!
> This [1] is the access log with the Android app and this [2] is with
> chrome -- trying to download the same file:
> 7FCB0045D6134446B4654308EC246F9C_1_20-00-00-000.pdf.
>
> There's that curious UNKNOWN 408 at the end of the log generated when
> using the app.
>
>
> > > Raising loglevel for Nextcloud to debug only shows some image cache
> > > misses:
> > > {"reqId":"Wi7JHnvwCWAwkFbOr49Y","level":0,"time":"2019-04-01T13:06:41+00:00","remoteAddr":"IP","user":"username","app":"no
> > >  app in 
> > > context","method":"GET","url":"\/nextcloud\/ocs\/v2.php\/apps\/activity\/api\/v2\/activity\/filter?format=json&previews=true&sort=desc&object_type=files&object_id=213","message":"No
> > >  cache entry found for \/appdata_ocvxn2n1q9gp\/theming\/images (storage: 
> > > local::\/htdocs\/nextcloud\/data\/, internalPath: 
> > > appdata_ocvxn2n1q9gp\/theming\/images)","userAgent":"Mozilla\/5.0 
> > > (Android) ownCloud-android\/3.5.1","version":"15.0.5.3"}
> > >
> > > I don't believe it's related, though.
> > >
> >
> > Me neither. Do you see at least log entries for the connection from the
> > app to your Nextcloud?
>
> Yes, everything else works besides download. I put the data there with
> the app that I'm now trying to retrieve :)
>
> > >
> > > I can upload anything from the app, and I can do (even download)
> > > anything on Nextcloud's web UI. It's just the Android app that can't
> > > download anything. I thought that maybe this has still something to do
> > > with httpd(8) -- but it seems not :-\
> > >
> >
> > How does your setup look like in detail? Any layer 7 proxy in front of
> > your Nextcloud?
>
> Nothing fancy like that. Public IP on an OpenBSD 6.4, pf enabled, for
> port http/s:
> pass in on egress proto tcp from any to (egress) port = 80 flags S/SA set 
> (queue http) keep state (source-track rule, max-src-states 200, 
> max-src-conn-rate 200/1, max-src-nodes 500, overload <abuse_www>, pflow, 
> src.track 1)
> pass in on egress proto tcp from any to (egress) port = 443 flags S/SA set 
> (queue http) keep state (source-track rule, max-src-states 200, 
> max-src-conn-rate 200/1, max-src-nodes 500, overload <abuse_www>, pflow, 
> src.track 1)
>
>
>
> [1] Android app
> "GET /nextcloud/index.php/204 HTTP/1.1" 204 0
> "GET /nextcloud/index.php/avatar/username/448 HTTP/1.1" 304 0
> "GET /nextcloud/ocs/v1.php/cloud/users/username?format=json HTTP/1.1" 200 0
> "GET /nextcloud/ocs/v1.php/cloud/users/username?format=json HTTP/1.1" 200 0
> "GET /nextcloud/index.php/204 HTTP/1.1" 204 0
> "GET /nextcloud/index.php/204 HTTP/1.1" 204 0
> "GET /nextcloud/index.php/204 HTTP/1.1" 204 0
> "GET /nextcloud/index.php/204 HTTP/1.1" 204 0
> "GET /nextcloud/index.php/204 HTTP/1.1" 204 0
> "GET /nextcloud/index.php/204 HTTP/1.1" 204 0
> "GET /nextcloud/index.php/avatar/username/448 HTTP/1.1" 304 0
> "GET /nextcloud/ocs/v1.php/cloud/users/username?format=json HTTP/1.1" 200 0
> "GET /nextcloud/status.php HTTP/1.1" 200 0
> "GET /nextcloud/ocs/v1.php/cloud/capabilities?format=json HTTP/1.1" 200 0
> "GET /nextcloud/ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 0
> "PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1" 207 0
> "PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1" 207 0
> "GET 
> /nextcloud/ocs/v2.php/apps/files_sharing/api/v1/shares?path=%2F&reshares=true&subfiles=true
>  HTTP/1.1" 200 0
> "GET /nextcloud/status.php HTTP/1.1" 200 0
> "GET /nextcloud/ocs/v1.php/cloud/capabilities?format=json HTTP/1.1" 200 0
> "GET /nextcloud/ocs/v1.php/cloud/user?format=json HTTP/1.1" 200 0
> "PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1" 207 0
> "PROPFIND /nextcloud/remote.php/webdav/ HTTP/1.1" 207 0
> "GET 
> /nextcloud/ocs/v2.php/apps/files_sharing/api/v1/shares?path=%2F&reshares=true&subfiles=true
>  HTTP/1.1" 200 0
> "PROPFIND /nextcloud/remote.php/webdav/Zagar/ HTTP/1.1" 207 0
> "PROPFIND /nextcloud/remote.php/webdav/Zagar/ HTTP/1.1" 207 0
> "GET 
> /nextcloud/remote.php/webdav/Zagar/7FCB0045D6134446B4654308EC246F9C_1_20-00-00-000.pdf
>  HTTP/1.1" 200 0
> "GET 
> /nextcloud/ocs/v2.php/apps/files_sharing/api/v1/shares?path=%2FZagar%2F&reshares=true&subfiles=true
>  HTTP/1.1" 200 0
> "GET 
> /nextcloud/ocs/v2.php/apps/activity/api/v2/activity/filter?format=json&previews=true&sort=desc&object_type=files&object_id=212
>  HTTP/1.1" 200 0
> "GET 
> /nextcloud/ocs/v2.php/apps/activity/api/v2/activity/filter?format=json&previews=true&sort=desc&object_type=files&object_id=212
>  HTTP/1.1" 200 0
> "PROPFIND /nextcloud/remote.php/dav/versions/username/versions/212 HTTP/1.1" 
> 207 0
> "GET 
> /nextcloud/ocs/v2.php/apps/activity/api/v2/activity/filter?format=json&previews=true&sort=desc&object_type=files&object_id=212
>  HTTP/1.1" 200 0
> "PROPFIND /nextcloud/remote.php/dav/versions/username/versions/212 HTTP/1.1" 
> 207 0
> "PROPFIND /nextcloud/remote.php/dav/versions/username/versions/212 HTTP/1.1" 
> 207 0
> "<UNKNOWN> " 408 0
> "<UNKNOWN> " 408 0
> "<UNKNOWN> " 408 0
> "<UNKNOWN> " 408 0
> "<UNKNOWN> " 408 0
>
>
> [2] Chrome
> "POST /nextcloud/index.php/login HTTP/1.1" 303 0
> "GET /nextcloud/index.php/apps/files/ HTTP/1.1" 200 0
> "GET 
> /nextcloud/index.php/css/core/8aae-5e6c-jquery-ui-fixes.css?v=08343dd3f787291558383b46e1b489fb-f361828e-0
>  HTTP/1.1" 200 0
> "GET 
> /nextcloud/index.php/css/core/8aae-5e6c-server.css?v=08343dd3f787291558383b46e1b489fb-f361828e-0
>  HTTP/1.1" 200 0
> "GET 
> /nextcloud/index.php/css/firstrunwizard/0d6d-5e6c-firstrunwizard.css?v=08343dd3f787291558383b46e1b489fb-f361828e-0
>  HTTP/1.1" 200 0
> "GET 
> /nextcloud/index.php/css/core/8aae-5e6c-css-variables.css?v=08343dd3f787291558383b46e1b489fb-f361828e-0
>  HTTP/1.1" 200 0
> "GET 
> /nextcloud/index.php/css/notifications/70e2-5e6c-styles.css?v=08343dd3f787291558383b46e1b489fb-f361828e-0
>  HTTP/1.1" 200 0
> "GET 
> /nextcloud/index.php/css/files/e8ed-5e6c-merged.css?v=08343dd3f787291558383b46e1b489fb-f361828e-0
>  HTTP/1.1" 200 0
> "GET 
> /nextcloud/index.php/css/core/8aae-5e6c-results.css?v=08343dd3f787291558383b46e1b489fb-f361828e-0
>  HTTP/1.1" 200 0
> "GET 
> /nextcloud/index.php/css/activity/15ac-5e6c-style.css?v=08343dd3f787291558383b46e1b489fb-f361828e-0
>  HTTP/1.1" 200 0
> "GET 
> /nextcloud/index.php/css/core/8aae-5e6c-jquery.ocdialog.css?v=08343dd3f787291558383b46e1b489fb-f361828e-0
>  HTTP/1.1" 200 0
> "GET /nextcloud/apps/gallery/css/slideshow.css?v=eaecf245-0 HTTP/1.1" 200 3930
> "GET /nextcloud/apps/gallery/css/gallerybutton.css?v=eaecf245-0 HTTP/1.1" 200 
> 2733
> "GET /nextcloud/apps/gallery/css/share.css?v=eaecf245-0 HTTP/1.1" 200 3640
> "GET 
> /nextcloud/index.php/css/files_trashbin/35c3-5e6c-trash.css?v=08343dd3f787291558383b46e1b489fb-f361828e-0
>  HTTP/1.1" 200 0
> "GET 
> /nextcloud/index.php/css/comments/35c3-5e6c-comments.css?v=08343dd3f787291558383b46e1b489fb-f361828e-0
>  HTTP/1.1" 200 0
> "GET 
> /nextcloud/index.php/css/comments/35c3-5e6c-autocomplete.css?v=08343dd3f787291558383b46e1b489fb-f361828e-0
>  HTTP/1.1" 200 0
> "GET /nextcloud/apps/notifications/js/notifications.js?v=f361828e-0 HTTP/1.1" 
> 200 132709
> "GET 
> /nextcloud/index.php/css/core/8aae-5e6c-systemtags.css?v=08343dd3f787291558383b46e1b489fb-f361828e-0
>  HTTP/1.1" 200 0
> "GET /nextcloud/apps/files_sharing/js/app.js?v=f361828e-0 HTTP/1.1" 200 9526
> "GET /nextcloud/apps/files_sharing/js/sharedfilelist.js?v=f361828e-0 
> HTTP/1.1" 200 14332
> "GET 
> /nextcloud/index.php/css/files_texteditor/b1d7-5e6c-merged.css?v=08343dd3f787291558383b46e1b489fb-f361828e-0
>  HTTP/1.1" 200 0
> "GET /nextcloud/apps/files_trashbin/js/app.js?v=f361828e-0 HTTP/1.1" 200 4059
> "GET /nextcloud/apps/files_trashbin/js/filelist.js?v=f361828e-0 HTTP/1.1" 200 
> 8863
> "GET /nextcloud/index.php/css/icons/icons-vars.css?v=1554124867 HTTP/1.1" 200 > 0
> "GET 
> /nextcloud/index.php/css/files_sharing/6a15-5e6c-mergedAdditionalStyles.css?v=08343dd3f787291558383b46e1b489fb-f361828e-0
>  HTTP/1.1" 200 0
> "GET 
> /nextcloud/index.php/css/systemtags/35c3-5e6c-systemtagsfilelist.css?v=08343dd3f787291558383b46e1b489fb-f361828e-0
>  HTTP/1.1" 200 0
> "GET /nextcloud/apps/federatedfilesharing/js/external.js?v=f361828e-0 
> HTTP/1.1" 200 4936
> "GET /nextcloud/core/js/oc-backbone-webdav.js?v=f361828e-0 HTTP/1.1" 200 9565
> "GET /nextcloud/index.php/js/files/merged-index.js?v=f361828e-0 HTTP/1.1" 200 > 0
> "GET /nextcloud/index.php/js/activity/activity-sidebar.js?v=f361828e-0 
> HTTP/1.1" 200 0
> "GET /nextcloud/index.php/js/files_versions/merged.js?v=f361828e-0 HTTP/1.1" 
> 200 0
> "GET /nextcloud/apps/notifications/img/notifications.svg HTTP/1.1" 200 456
> "GET /nextcloud/index.php/js/files_sharing/additionalScripts.js?v=f361828e-0 
> HTTP/1.1" 200 0
> "GET /nextcloud/index.php/js/comments/merged.js?v=f361828e-0 HTTP/1.1" 200 0
> "GET /nextcloud/index.php/js/files_texteditor/merged.js?v=f361828e-0 
> HTTP/1.1" 200 0
> "GET /nextcloud/settings/img/admin.svg?v=f361828e HTTP/1.1" 200 236
> "GET /nextcloud/apps/firstrunwizard/img/info.svg?v=f361828e HTTP/1.1" 200 529
> "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 
> 200 0
> "GET /nextcloud/settings/img/help.svg?v=f361828e HTTP/1.1" 200 519
> "GET /nextcloud/core/img/actions/logout.svg?v=f361828e HTTP/1.1" 200 342
> "GET /nextcloud/core/img/actions/delete.svg HTTP/1.1" 200 247
> "GET /nextcloud/index.php/js/core/merged.js?v=f361828e-0 HTTP/1.1" 200 0
> "GET /nextcloud/apps/files/img/app.svg?v=f361828e HTTP/1.1" 200 222
> "GET /nextcloud/apps/activity/img/activity.svg?v=f361828e HTTP/1.1" 200 217
> "GET /nextcloud/apps/gallery/img/app.svg?v=f361828e HTTP/1.1" 200 570
> "GET /nextcloud/index.php/avatar/username/32?v=1 HTTP/1.1" 201 0
> "GET /nextcloud/index.php/js/systemtags/merged.js?v=f361828e-0 HTTP/1.1" 200 0
> "GET /nextcloud/index.php/js/gallery/scripts-for-file-app.js?v=f361828e-0 
> HTTP/1.1" 200 0
> "GET /nextcloud/core/search/templates/part.results.html HTTP/1.1" 200 220
> "GET /nextcloud/core/img/breadcrumb.svg?v=1 HTTP/1.1" 200 188
> "GET /nextcloud/cron.php HTTP/1.1" 200 0
> "PROPFIND /nextcloud/remote.php/dav/files/username/ HTTP/1.1" 207 0
> "GET /nextcloud/index.php/apps/gallery/config?extramediatypes=1 HTTP/1.1" 200 > 0
> "GET /nextcloud/index.php/apps/systemtags/lastused HTTP/1.1" 200 0
> "GET /nextcloud/ocs/v2.php/core/whatsnew?format=json HTTP/1.1" 204 0
> "GET /nextcloud/index.php/apps/theming/img/core/filetypes/folder.svg?v=0 
> HTTP/1.1" 200 0
> "GET /nextcloud/index.php/apps/files/ajax/getstoragestats.php?dir=%2F 
> HTTP/1.1" 200 0
> "PROPFIND /nextcloud/remote.php/dav/files/username/Zagar HTTP/1.1" 207 0
> "GET /nextcloud/index.php/apps/files/ajax/getstoragestats.php?dir=%2FZagar 
> HTTP/1.1" 200 0
> "GET 
> /nextcloud/index.php/apps/theming/img/core/filetypes/application-pdf.svg?v=0 
> HTTP/1.1" 200 0
> "GET 
> /nextcloud/index.php/apps/files_pdfviewer/?file=%2Fnextcloud%2Fremote.php%2Fwebdav%2FZagar%2F7FCB0045D6134446B4654308EC246F9C_1_20-00-00-000.pdf
>  HTTP/1.1" 200 0
> "GET /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/viewer.css?v=1.4.0 
> HTTP/1.1" 200 51850
> "GET /nextcloud/apps/files_pdfviewer/css/viewer.css?v=1.4.0 HTTP/1.1" 200 519
> "GET /nextcloud/apps/files_pdfviewer/vendor/pdfjs/build/pdf.js?v=1.4.0 
> HTTP/1.1" 200 513649
> "GET /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/viewer.js?v=1.4.0 
> HTTP/1.1" 200 350254
> "GET /nextcloud/apps/files_pdfviewer/js/workersrc.js?v=1.4.0 HTTP/1.1" 200 
> 3360
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/locale/locale.properties?v=1.4.0
>  HTTP/1.1" 200 4314
> "GET /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/texture.png 
> HTTP/1.1" 200 2417
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/toolbarButton-viewThumbnail.png
>  HTTP/1.1" 200 185
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/toolbarButton-viewAttachments.png
>  HTTP/1.1" 200 384
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/toolbarButton-viewOutline.png
>  HTTP/1.1" 200 178
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/toolbarButton-sidebarToggle.png
>  HTTP/1.1" 200 225
> "GET 
> /nextcloud/apps/files_pdfviewer/img/toolbarButton-secondaryToolbarClose.svg 
> HTTP/1.1" 200 332
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/toolbarButton-bookmark.png
>  HTTP/1.1" 200 174
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/toolbarButton-zoomIn.png
>  HTTP/1.1" 200 136
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/toolbarButton-zoomOut.png
>  HTTP/1.1" 200 88
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/toolbarButton-menuArrows.png
>  HTTP/1.1" 200 107
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/toolbarButton-pageDown.png
>  HTTP/1.1" 200 238
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/toolbarButton-pageUp.png
>  HTTP/1.1" 200 246
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/toolbarButton-print.png
>  HTTP/1.1" 200 257
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/toolbarButton-presentationMode.png
>  HTTP/1.1" 200 321
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/toolbarButton-secondaryToolbarToggle.png
>  HTTP/1.1" 200 243
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/toolbarButton-search.png
>  HTTP/1.1" 200 309
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/toolbarButton-download.png
>  HTTP/1.1" 200 259
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/locale/en-GB/viewer.properties
>  HTTP/1.1" 200 7535
> "GET /nextcloud/apps/files_pdfviewer/vendor/pdfjs/build/pdf.worker.js?v=1.4.0 
> HTTP/1.1" 200 1424568
> "GET 
> /nextcloud/remote.php/webdav/Zagar/7FCB0045D6134446B4654308EC246F9C_1_20-00-00-000.pdf
>  HTTP/1.1" 200 0
> "GET /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/shadow.png 
> HTTP/1.1" 200 290
> "GET /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/loading-icon.gif 
> HTTP/1.1" 200 2545
> "GET 
> /nextcloud/apps/files_pdfviewer/vendor/pdfjs/web/images/loading-small.png 
> HTTP/1.1" 200 7402
>
>
> --
> LÉVAI Dániel
> PGP key ID = 0x83B63A8F
> Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F
>

Hi Dani

I've tried to reproduce this with my test installation of Nextcloud, but
no luck. Maybe there is something wrong with the Nextcloud app on your
android device. Do you maybe run some old version or beta version? Have
you installed it from another store than the Google one?

Cheers,
Bruno

Reply via email to