Skip to content
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

download of any file not working, crashes dev version. #2957

Closed
sanderboer opened this issue Sep 4, 2018 · 6 comments
Closed

download of any file not working, crashes dev version. #2957

sanderboer opened this issue Sep 4, 2018 · 6 comments

Comments

@sanderboer
Copy link

sanderboer commented Sep 4, 2018

Actual behaviour

Trying to sync files, app tries to download files, stable version fails. Dev version crashes immediately.
I see in the webserver log an attempt to access a webdav file, if I copy/paste the webdav url in a browser, the file gets downloaded without a problem..

Expected behaviour

App downloads files onto phone's fs.

Nota Bene

Download/sync used to work a couple of months ago. Changes since then include ubuntu upgrade to 18.04, nc server upgrade to 13.05 and 13.06, app update to 3.2.3.
I cannot pinpoint exactly when this behavior started. But my gut says it is a change in the android file permissions scheme, as ghost commander too is unable to touch any file besides the ones in the download folder.

Now, the app seems to not be able to touch files on the fs. Once sync used to work, I had a bunch of files on my phone's fs. Now, when I delete some of these files in the app, they're still on the fs. Double checked app permissions, has storage read/write permissions.

Steps to reproduce

Install a fresh nc app,
Connect to server,
In app, select a directory you want to sync, tell it to sync,
app 3.2.3 shows notification "downloading file ...", but stays at 0%
Dev version 20180829 crashes immediately when I want so sync a dir.

Environment data

Android version:
8.1.0
Device model:
wileyfox swift 2
Stock or customized system:
stock
Nextcloud app version:
3.2.3 and dev version 20180829
Nextcloud server version:
13.0.6

Logs

Will post logs if necessary.

@nextcloud-android-bot
Copy link
Collaborator

GitMate.io thinks possibly related issues are #2538 (Crash when new version download fails), #1579 (Can't download files), #503 (Preview of downloaded files not working), #1233 (New DEV APK with fixed file sync; crashes), and #764 (Android can not download any file).

@sanderboer
Copy link
Author

sanderboer commented Sep 4, 2018

PARTIALLY FIXED !
(tested stable app)

It works again for downloading files NOT onto the sd card after I sanitized all pre-existing data from my phone.
It fails as before when changing to external storage.

in android 8.1.0:

hold nextcloud app icon-> app-info ->storage-> manage space-> clear data
hold nextcloud app icon-> app-info ->storage-> clear cache

Nice that it is fixed, kind of a bummer that it appears to be a gremlin in android and I need to re-sync 10gb.
(note to self, if this happens again, try "clear cache" first.)

@sanderboer
Copy link
Author

sanderboer commented Sep 4, 2018

The dev version still crashes immediately when I hit "sync" on any folder/files regardless of the storage path

Dev version also fails to access the external drive, it fails to change settings -> storage path in the app to /storage/564F-4EEE1/Android/media/com.nextcloud.android.beta
The error shown is "Updating storage path" -> "Failed during migration"

I can tell the path /storage/564F-4EEE1/Android/media/com.nextcloud.android.beta is created, but it is empty and the app fails regardless.

@Wikinaut
Copy link
Contributor

Wikinaut commented Sep 7, 2018

This appears to be subject of issue #2970 .

@tobiasKaminsky
Copy link
Member

Indeed, this is already solved and will be available in next dev version.
On gplay/fdroid we will publish a RC2 this afternoon.

@Wikinaut
Copy link
Contributor

Wikinaut commented Sep 7, 2018

I confirm, that the issue has been fixed! (thanks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants