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

Failed to download files when path is /storage/sdcard1 #2513

Closed
susobaco opened this issue Apr 25, 2018 · 7 comments
Closed

Failed to download files when path is /storage/sdcard1 #2513

susobaco opened this issue Apr 25, 2018 · 7 comments
Labels

Comments

@susobaco
Copy link

susobaco commented Apr 25, 2018

Actual behaviour

  • The client won't let me download any files. Failed to download

Expected behaviour

  • Tell us what should happen

Steps to reproduce

  1. I configure nextcloudclient with the download path in the configuration in /storage/sdcard1 (microsd storage)
  2. I'm trying to download a file.
  3. Failure to download the file (When by default settings, download without any problem)

Environment data

Android version:
4.4.4
Device model:
Primux Omega 6
Stock or customized system:

Nextcloud app version:
3.1.0
Nextcloud server version:
13.0

Logs

Web server error log

Insert your webserver log here

Nextcloud log (data/nextcloud.log)

I didn't find the log (where or hoz can I fiad it?)
Insert your Nextcloud log here

**NOTE:** Be super sure to remove sensitive data like passwords, note that everybody can look here! You can use the Issue Template application to prefill some of the required information: https://apps.nextcloud.com/apps/issuetemplate
@susobaco susobaco changed the title Failed to download files when path is /sdcard/sdcard1 Failed to download files when path is /storage/sdcard1 Apr 25, 2018
@ardevd
Copy link
Collaborator

ardevd commented Apr 25, 2018

@susobaco Could you use adb shell or a terminal emulator to verify that /storage/sdcard1 actually exists?

Could you post a stack trace with adb logcat from when you try to download a file?

@susobaco
Copy link
Author

Yes, the directory exists. Let's see if this log works. Thank you!
https://cloud.disroot.org/s/Rbz2Q8MzYWXnf6B

@ardevd
Copy link
Collaborator

ardevd commented Apr 26, 2018

@susobaco Your stack trace is missing the initial cause of the crash (it seems). Could you try and include the first reference to the crash in your log output?

Also, just out of curiosity, have you tried re-installing the app? If you've had the app installed for a long time your issue might be related to the storage path system migration we did a while back.

@tobiasKaminsky
Copy link
Member

If you've had the app installed for a long time your issue might be related to the storage path system migration we did a while back.

Then it would be nice to see the real cause and fix it.
So @susobaco can you first try to get the logcat and after that re-install it (if needed).

Just a quick idea: Does NC has the permission to write to external storage? Please verify this in app details.

@susobaco
Copy link
Author

susobaco commented Apr 26, 2018

Thank you, you have uninstalled and reinstalled it, and the message is "Failed during migration". Permits look good. Attached is another log to see if it contains information.

https://cloud.disroot.org/s/oGMBdRwFDKrwKDb

I backed up the directory before the reinstallation

shell@c211lv82_zxdh553_qhd_primux:/ $ ls -l /storage/sdcard1/nextcloud.bak
drwxrwx--- root sdcard_r 2018-03-06 13:13 *********@cloud.disroot.org
drwxrwx--- root sdcard_r 2018-03-06 13:13 tmp
drwxrwx--- root sdcard_r 2018-03-06 13:15 *************@cloud.disroot.org

@susobaco
Copy link
Author

Hi, if I use nextcloud dev from f-droid, the application just crashes. Attached register
currentLog.txt

@susobaco
Copy link
Author

Hi, after much research, I applied this solution to my android 4.4 and the problem was fixed.
https://technofaq.org/posts/2014/04/fixing-external-sd-card-write-issue-on-android-kitkat/
Thanks for the help.

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

No branches or pull requests

3 participants