Issue with Downloading to Offline Cache

Issue description:

I just got a new CD today, and I tried downloading it, but I was getting a “Waiting to retry” message on the songs, with the ones that started downloads getting an error 416: Range Not Satisfiable. I’ve seen the issue pop up before when I’m out of storage, but I have a good deal left on my SD card (which is 1.5TB capacity, .2TB available), so I’m not sure what’s going on. The error lists the directory of my download, so it’s too long to see what the actual error is.

Logs:

Upload description: ajs24654

Additional information:

 

 

Reproduction steps:

 
Select album, select Offline cache and download, select Add to permanent cache
 

Media provider:

Jellyfin

Screenshots:

     

Reboot your phone, remount your SDcard or check permissions but Symfonium can’t write anything, the OS says the storage is read only.

2025-04-25 15:09:45.152 Error ImageCacheManager  Error creating temporary file [/storage/F7CF-F282/Android/data/app.symfonik.music.player/cache/images/8/8213011F238DFE34161D36297CD2BC5D.jpg.lock}: Read-only file system
2025-04-25 15:09:48.820 Error DownloaderService  Error downloading
java.io.FileNotFoundException: /storage/F7CF-F282/Android/data/app.symfonik.music.player/files/OfflineMedias/6/60FA8F64AF08485C61EEE8695994D228.m4a.part: open failed: EROFS (Read-only file system)
	at libcore.io.IoBridge.open(IoBridge.java:574)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:259)
	at vt.f.y(Unknown Source:5)
	at app.symfonik.core.download.DownloaderService.a(Unknown Source:4167)
	at j8.z0.o(Unknown Source:14)
	at yz.a.f(Unknown Source:5)
	at y00.f0.run(Unknown Source:106)
	at ru.p.run(Unknown Source:1531)
	at f10.i.run(Unknown Source:2)
	at f10.a.run(Unknown Source:82)
Caused by: android.system.ErrnoException: open failed: EROFS (Read-only file system)
	at libcore.io.Linux.open(Native Method)
	at libcore.io.ForwardingOs.open(ForwardingOs.java:563)
	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:274)
	at libcore.io.ForwardingOs.open(ForwardingOs.java:563)
	at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:8330)
	at libcore.io.IoBridge.open(IoBridge.java:560)
	... 9 more

Just got a chance to troubleshoot this further. What’s odd is I’m not seeing anything saying it’s read only on my pc, either when the SD card is removed from the phone or I’m plugged in via USB. On top of that, I tried to add a different album and it worked, only to try another different one and it failed.

I was in debug mode for that, and I made another log, identifier ajs24655. I also tried rebooting the phone and remounting the SD card, but same issue.

Same issue

2025-04-28 10:44:32.165 Error ImageCacheManager  Error creating temporary file [/storage/F7CF-F282/Android/data/app.symfonik.music.player/cache/images/5/5FBC30F64FC140761546E5FD3F69F238.jpg.lock}: Read-only file system

This happens at the OS level, Symfonium have no control here.

Ended up formatting the SD card and redownloading everything. Seems to be working now, but I’m not sure what could be the cause. I’m hoping the SD card doesn’t need to be replaced or anything, but it is concerning.