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 not starting or not explaining error #720

Closed
1 task done
Djtrip83 opened this issue Sep 14, 2023 · 29 comments
Closed
1 task done

Download not starting or not explaining error #720

Djtrip83 opened this issue Sep 14, 2023 · 29 comments
Labels
Android Android related issue bug Something isn't working

Comments

@Djtrip83
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I tried to download a track and I get a red warning symbol but no further explanation
Screenshot_20230914-195256

Expected Behavior

First time user so I expect download to start with a progress bar or at least open a description of the error for troubleshooting

Steps to reproduce

Opened app, searched a track, selected download via 3 dot menu or via song display page, download does not start and a red warning icon appears

Operating System

Android app

Spotube version

No response

Installation source

F-Droid (Android)

Additional information

No response

@Djtrip83 Djtrip83 added the bug Something isn't working label Sep 14, 2023
@KRTirtho
Copy link
Owner

That means the download failed for some reason. You can retry with the retry download button

@KRTirtho KRTirtho added help wanted Extra attention is needed and removed bug Something isn't working labels Sep 15, 2023
@Djtrip83
Copy link
Author

Ok I tried about 10 times on mobile data, on WiFi. Download does not seem to work. The error message does not state why so can't troubleshoot.

@KRTirtho KRTirtho added Android Android related issue and removed help wanted Extra attention is needed labels Sep 19, 2023
@KRTirtho
Copy link
Owner

KRTirtho commented Sep 19, 2023

You can always check the "Settings" > "Logs"

@KRTirtho KRTirtho added the bug Something isn't working label Sep 19, 2023
@KRTirtho KRTirtho moved this to Discussion in Spotube Board Sep 19, 2023
@Djtrip83
Copy link
Author

Djtrip83 commented Sep 19, 2023 via email

@KRTirtho
Copy link
Owner

Wait a couple seconds. It takes time to parse multiple megabytes of raw Text files

@Djtrip83
Copy link
Author

Djtrip83 commented Sep 20, 2023 via email

@SeineEloquenz
Copy link

I'm getting the same PathAccessExceptions when downloading on Android 13 on a OnePlus 8t.

@Djtrip83
Copy link
Author

Djtrip83 commented Sep 20, 2023 via email

@Djtrip83
Copy link
Author

I updated to 3.1.2 and here's the log. Issue persists.

---------- ERROR ----------
FileSystemException: Creation failed, path = 'content:' (OS Error: Read-only file system, errno = 30)
------- STACK TRACE -------
#0 _Directory.createSync (dart:io/directory_impl.dart:129)
#1 _Directory.createSync (dart:io/directory_impl.dart:124)
#2 _Directory.createSync (dart:io/directory_impl.dart:124)
#3 _Directory.createSync (dart:io/directory_impl.dart:124)
#4 _File.createSync (dart:io/file_impl.dart:303)
#5 DioForNative.download (package:dio/src/dio/dio_for_native.dart:86)

#6 ChunkDownload.chunkedDownload.downloadChunk (package:spotube/services/download_manager/chunked_download.dart:44)

#7 ChunkDownload.chunkedDownload (package:spotube/services/download_manager/chunked_download.dart:77)

#8 DownloadManager.download (package:spotube/services/download_manager/download_manager.dart:117)

#9 DownloadManager._startExecution (package:spotube/services/download_manager/download_manager.dart:394)

@RunTheBot
Copy link

------- DEVICE INFO -------
id: S1RMS32.48-18-11-2-29
board: berlna
bootloader: MBM-3.0-berlna_global-7e0b20d93c3-230420
brand: motorola
device: berlna
display: S1RMS32.48-18-11-2-29
fingerprint: motorola/berlna_global/berlna:12/S1RMS32.48-18-11-2-29/57d75-11955:user/release-keys
hardware: qcom
host: ilclbld198
isPhysicalDevice: true
manufacturer: motorola
model: motorola edge (2021)
product: berlna_global
tags: release-keys
type: user
versionBaseOs: motorola/berlna_global/berlna:12/S1RMS32.48-18-11-2/74874-87cda:user/release-keys
versionCodename: REL
versionIncremental: 57d75-11955
versionPreviewSdk: 0
versionRelease: 12
versionSdk: 31
versionSecurityPatch: 2023-05-01
------- APP INFO -------
environment: release
version: 3.1.2
appName: Spotube
buildNumber: 24
packageName: oss.krtirtho.spotube
---------- ERROR ----------
FileSystemException: Creation failed, path = 'content:' (OS Error: Read-only file system, errno = 30)
------- STACK TRACE -------
#0 _Directory.createSync (dart:io/directory_impl.dart:129)
#1 _Directory.createSync (dart:io/directory_impl.dart:124)
#2 _Directory.createSync (dart:io/directory_impl.dart:124)
#3 _Directory.createSync (dart:io/directory_impl.dart:124)
#4 _File.createSync (dart:io/file_impl.dart:303)
#5 DioForNative.download (package:dio/src/dio/dio_for_native.dart:86)

#6 ChunkDownload.chunkedDownload.downloadChunk (package:spotube/services/download_manager/chunked_download.dart:44)

#7 ChunkDownload.chunkedDownload (package:spotube/services/download_manager/chunked_download.dart:77)

#8 DownloadManager.download (package:spotube/services/download_manager/download_manager.dart:117)

#9 DownloadManager._startExecution (package:spotube/services/download_manager/download_manager.dart:394)

------- CUSTOM INFO -------

Have the same issue before and after the update

@zen0bit
Copy link

zen0bit commented Sep 25, 2023

Same issue

OS Error: Read-only file system, errno = 30)

I choosed where to save files in app.
But android settings for SpotTube seems to no ask for storage access permition

@KRTirtho
Copy link
Owner

Which version of Android are you using?

@zen0bit
Copy link

zen0bit commented Sep 26, 2023

13

@itzfianSo
Copy link

itzfianSo commented Oct 6, 2023

I had the same problem on android 9, and how I fixed is by clear cache & data, force closing the app, starting it and login , went to storage app settings give the permission and then the download worked perfectly, I did not change the path btw I leave it as it was by default cuz I found out changing the path is what cause the problem.

@KRTirtho KRTirtho mentioned this issue Oct 14, 2023
1 task
@KRTirtho
Copy link
Owner

It has been fixed.
Android permission issue was occurring because for some reason file_selector plugin returns a content:// URL path which is completely useless for Flutter Directory API. Now the path gets corrected after changing download location

Please check the nightly version for access to this fix

@RunTheBot
Copy link

It has been fixed.
Android permission issue was occurring because for some reason file_selector plugin returns a content:// URL path which is completely useless for Flutter Directory API. Now the path gets corrected after changing download location

Please check the nightly version for access to this fix

Thanks

@Djtrip83
Copy link
Author

It has been fixed.
Android permission issue was occurring because for some reason file_selector plugin returns a content:// URL path which is completely useless for Flutter Directory API. Now the path gets corrected after changing download location

Please check the nightly version for access to this fix

Thanks!
Great work. Will check it out in the week.

@RunTheBot
Copy link

@KRTirtho

============================== CATCHER 2 LOG ==============================
------- DEVICE INFO -------
id: S1RMS32.48-18-11-2-29
board: berlna
bootloader: MBM-3.0-berlna_global-7e0b20d93c3-230420
brand: motorola
device: berlna
display: S1RMS32.48-18-11-2-29
fingerprint: motorola/berlna_global/berlna:12/S1RMS32.48-18-11-2-29/57d75-11955:user/release-keys
hardware: qcom
host: ilclbld198
isPhysicalDevice: true
manufacturer: motorola
model: motorola edge (2021)
product: berlna_global
tags: release-keys
type: user
versionBaseOs: motorola/berlna_global/berlna:12/S1RMS32.48-18-11-2/74874-87cda:user/release-keys
versionCodename: REL
versionIncremental: 57d75-11955
versionPreviewSdk: 0
versionRelease: 12
versionSdk: 31
versionSecurityPatch: 2023-05-01
------- APP INFO -------
environment: release
version: 3.2.0
appName: Spotube
buildNumber: 25
packageName: oss.krtirtho.spotube
---------- ERROR ----------
PathAccessException: Cannot create file, path = '/storage/emulated/0/Music/Spotube/Prayer in C - Robin Schulz Remix - Lilly Wood and The Prick, Robin Schulz.m4a.partial.temp0' (OS Error: Operation not permitted, errno = 1)
------- STACK TRACE -------
#0 _File.throwIfError (dart:io/file_impl.dart:675)
#1 _File.createSync (dart:io/file_impl.dart:306)
#2 DioForNative.download (package:dio/src/dio/dio_for_native.dart:86)

#3 ChunkDownload.chunkedDownload.downloadChunk (package:spotube/services/download_manager/chunked_download.dart:47)

#4 ChunkDownload.chunkedDownload (package:spotube/services/download_manager/chunked_download.dart:80)

#5 DownloadManager.download (package:spotube/services/download_manager/download_manager.dart:119)

#6 DownloadManager._startExecution (package:spotube/services/download_manager/download_manager.dart:396)

------- CUSTOM INFO -------

Still erroring. I noticed this happening 2 versions ago. It had the correct non content:// path though

@zen0bit
Copy link

zen0bit commented Oct 16, 2023

Did you tried set path again?
Asked for permission after path change.
working for me with new version.

@zen0bit
Copy link

zen0bit commented Oct 16, 2023

It has been fixed. Android permission issue was occurring because for some reason file_selector plugin returns a content:// URL path which is completely useless for Flutter Directory API. Now the path gets corrected after changing download location

Please check the nightly version for access to this fix

solved for me...

@RunTheBot
Copy link

@zen0bit It did ask but after I restarted the app

@RunTheBot
Copy link

I'll try again

@xunil89
Copy link

xunil89 commented Oct 21, 2023

on my android a13 the bug persists, I also tried to change the folder from internal memory to external memory sd card but nothing is not working
[2023-10-21 09:00:33.164671] PostgrestException(message: duplicate key value violates unique constraint "tracks_spotify_id_idx", code: 23505, details: Conflict, hint: null) null============================== CATCHER 2 LOG ============================== ------- DEVICE INFO ------- id: TQ3A.230901.001 board: atoll bootloader: unknown brand: Redmi device: joyeuse display: TQ3A.230901.001 fingerprint: Redmi/joyeuse_global/joyeuse:12/RKQ1.211019.001/V14.0.3.0.SJZMIXM:user/release-keys hardware: qcom host: android-build isPhysicalDevice: true manufacturer: Xiaomi model: Redmi Note 9 Pro product: lineage_miatoll tags: release-keys type: user versionBaseOs: versionCodename: REL versionIncremental: 94 versionPreviewSdk: 0 versionRelease: 13 versionSdk: 33 versionSecurityPatch: 2023-10-06 ------- APP INFO ------- environment: release version: 3.2.0 appName: Spotube buildNumber: 25 packageName: oss.krtirtho.spotube ---------- ERROR ---------- PathAccessException: Cannot create file, path = '/storage/emulated/0/Music/Spotube/L'ADDIO - Coma_Cose.m4a.partial.temp0' (OS Error: Operation not permitted, errno = 1) ------- STACK TRACE ------- #0 _File.throwIfError (dart:io/file_impl.dart:675) #1 _File.createSync (dart:io/file_impl.dart:306) #2 DioForNative.download (package:dio/src/dio/dio_for_native.dart:86) <asynchronous suspension> #3 ChunkDownload.chunkedDownload.downloadChunk (package:spotube/services/download_manager/chunked_download.dart:47) <asynchronous suspension> #4 ChunkDownload.chunkedDownload (package:spotube/services/download_manager/chunked_download.dart:80) <asynchronous suspension> #5 DownloadManager.download (package:spotube/services/download_manager/download_manager.dart:119) <asynchronous suspension> #6 DownloadManager._startExecution (package:spotube/services/download_manager/download_manager.dart:396) <asynchronous suspension> ------- CUSTOM INFO -------

@KRTirtho KRTirtho moved this from Discussion to Done in Spotube Board Oct 29, 2023
@KRTirtho KRTirtho moved this from Done to Deployed in Spotube Board Nov 15, 2023
@KRTirtho KRTirtho moved this from Deployed to Done in Spotube Board Nov 15, 2023
@KRTirtho KRTirtho mentioned this issue Nov 18, 2023
1 task
@TheHighGroundWins
Copy link

Still have this issue on android 13, would like to have it so that I can make a local playlist that my other music app can access.

@KRTirtho
Copy link
Owner

You can try the nightly build. It has been fixed but not yet released

@KRTirtho KRTirtho moved this from Done to Deployed in Spotube Board Nov 27, 2023
@github-project-automation github-project-automation bot moved this from Deployed to Done in Spotube Board Nov 27, 2023
@KRTirtho KRTirtho moved this from Done to Deployed in Spotube Board Nov 27, 2023
@CrackNoir27
Copy link

I still have this error on miui 13 (android 12). I tried the last nightly version but it didn't fix the problem. This is the log:
============================== CATCHER 2 LOG ============================== ------- DEVICE INFO ------- id: SKQ1.211006.001 board: vayu bootloader: unknown brand: POCO device: vayu display: SKQ1.211006.001 test-keys fingerprint: POCO/vayu_eea/vayu:12/SKQ1.211006.001/V13.0.1.0.SJUEUXM:user/release-keys hardware: qcom host: c4-miui-ota-bd133.bj isPhysicalDevice: true manufacturer: Xiaomi model: M2102J20SG product: vayu_eea tags: release-keys type: user versionBaseOs: versionCodename: REL versionIncremental: V13.0.1.0.SJUEUXM versionPreviewSdk: 0 versionRelease: 12 versionSdk: 31 versionSecurityPatch: 2022-02-01 ------- APP INFO ------- environment: release version: 3.3.0-nightly appName: Spotube Nightly buildNumber: 184 packageName: oss.krtirtho.spotube.nightly ---------- ERROR ---------- PathAccessException: Cannot create file, path = '/storage/65F1-EFEF/Music/VETRI NERI - AVA, ANNA, Capo Plaza.m4a.partial.temp0' (OS Error: Operation not permitted, errno = 1) ------- STACK TRACE ------- #0 _File.throwIfError (dart:io/file_impl.dart:675) #1 _File.createSync (dart:io/file_impl.dart:306) #2 DioForNative.download (package:dio/src/dio/dio_for_native.dart:86) <asynchronous suspension> #3 ChunkDownload.chunkedDownload.downloadChunk (package:spotube/services/download_manager/chunked_download.dart:47) <asynchronous suspension> #4 ChunkDownload.chunkedDownload (package:spotube/services/download_manager/chunked_download.dart:80) <asynchronous suspension> #5 DownloadManager.download (package:spotube/services/download_manager/download_manager.dart:119) <asynchronous suspension> #6 DownloadManager._startExecution (package:spotube/services/download_manager/download_manager.dart:396) <asynchronous suspension> ------- CUSTOM INFO -------

@KRTirtho
Copy link
Owner

Looks like permission issue. You can fix that by re-selecting the same download location. It'll trigger the permission seeker dialog

@KRTirtho
Copy link
Owner

Just go to "Settings" > "Download Location" and reselect the same download location

@CrackNoir27
Copy link

Just go to "Settings" > "Download Location" and reselect the same download location

I tried doing as you instructed, selecting the same folder again and granting permissions again, but the same error persists
============================== CATCHER 2 LOG ============================== ------- DEVICE INFO ------- id: SKQ1.211006.001 board: vayu bootloader: unknown brand: POCO device: vayu display: SKQ1.211006.001 test-keys fingerprint: POCO/vayu_eea/vayu:12/SKQ1.211006.001/V13.0.1.0.SJUEUXM:user/release-keys hardware: qcom host: c4-miui-ota-bd133.bj isPhysicalDevice: true manufacturer: Xiaomi model: M2102J20SG product: vayu_eea tags: release-keys type: user versionBaseOs: versionCodename: REL versionIncremental: V13.0.1.0.SJUEUXM versionPreviewSdk: 0 versionRelease: 12 versionSdk: 31 versionSecurityPatch: 2022-02-01 ------- APP INFO ------- environment: release version: 3.3.0-nightly appName: Spotube Nightly buildNumber: 184 packageName: oss.krtirtho.spotube.nightly ---------- ERROR ---------- PathAccessException: Cannot create file, path = '/storage/65F1-EFEF/Music/ALL MY FELLAS - Frizk.m4a.partial.temp0' (OS Error: Operation not permitted, errno = 1) ------- STACK TRACE ------- #0 _File.throwIfError (dart:io/file_impl.dart:675) #1 _File.createSync (dart:io/file_impl.dart:306) #2 DioForNative.download (package:dio/src/dio/dio_for_native.dart:86) <asynchronous suspension> #3 ChunkDownload.chunkedDownload.downloadChunk (package:spotube/services/download_manager/chunked_download.dart:47) <asynchronous suspension> #4 ChunkDownload.chunkedDownload (package:spotube/services/download_manager/chunked_download.dart:80) <asynchronous suspension> #5 DownloadManager.download (package:spotube/services/download_manager/download_manager.dart:119) <asynchronous suspension> #6 DownloadManager._startExecution (package:spotube/services/download_manager/download_manager.dart:396) <asynchronous suspension> ------- CUSTOM INFO -------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Android related issue bug Something isn't working
Projects
Status: Deployed
Development

No branches or pull requests

9 participants