Page 1 of 3

[Resolved] SS App on KitKat not downloading Music to SD Card

PostPosted: Tue Feb 25, 2014 4:49 pm
by jharveytx
Problem Description:

Subsonic app works fine on my Samsung Galaxy S4 running KitKat, but when I change the Cache location to the SD Card, it fails to download anything.
Prior to upgrading to KitKat, this functionality worked fine. This affects video as well as music files.

Troubleshooting Steps:

First off, let me say that Subsonic never rejected the folder name as being invalid.
I used the following name for the folder on the SD Card:

/storage/extSdCard/Music/

I have tried the following, all without success:
  • Restarting Subsonic and clearing the memory after changing the location.
  • Restarting my phone after changing the location.
  • Increasing and decreasing the Cache Size
  • Creating various folders on the SD Card, thinking Subsonic did not like the folder name/location.
  • Variations on folder names (i.e. /storage/extSdCard0/Music/). These were rejected as being invalid.
  • I even purchased and installed DSub, but experienced the same problem with it.

Playback Application and version:

Subsonic Music Streamer 4.1
and
DSub 4.5.2

Subsonic Version:

4.9 (build 3853) – January 23, 2014

Server Version:

jetty-6.1.x, java 1.7.0_45, Windows 7 (74.1 MB / 116.6 MB)

Hardware Platform:

The server is running on Windows 7
The App is running on a Samsung Galaxy S4 using Android 4.4.2.

Java Memory Limit:

150MB

Problem Filename:

N/A

Output from ffmpeg -i:

N/A

Last ten log file lines:
Code: Select all
[2/25/14 10:03:35 AM CST]   INFO   PlayQueueInputStream   admin listening to "1977 - A Farewell To Kings\02 - Xanadu.mp3"
[2/25/14 10:03:39 AM CST]   WARN   RESTFilter   Error in REST API: EofException
[2/25/14 10:03:39 AM CST]   INFO   PlayQueueInputStream   admin listening to "1977 - A Farewell To Kings\02 - Xanadu.mp3"
[2/25/14 10:03:45 AM CST]   INFO   PlayQueueInputStream   admin listening to "1977 - A Farewell To Kings\02 - Xanadu.mp3"
[2/25/14 10:03:49 AM CST]   INFO   PlayQueueInputStream   admin listening to "1977 - A Farewell To Kings\02 - Xanadu.mp3"
[2/25/14 10:03:55 AM CST]   INFO   PlayQueueInputStream   admin listening to "1977 - A Farewell To Kings\02 - Xanadu.mp3"
[2/25/14 10:03:59 AM CST]   INFO   PlayQueueInputStream   admin listening to "1977 - A Farewell To Kings\02 - Xanadu.mp3"
[2/25/14 10:04:05 AM CST]   INFO   PlayQueueInputStream   admin listening to "1977 - A Farewell To Kings\02 - Xanadu.mp3"
[2/25/14 10:04:09 AM CST]   INFO   PlayQueueInputStream   admin listening to "1983 - Rare\04 - Holy Holy.mp3"
[2/25/14 10:04:15 AM CST]   INFO   PlayQueueInputStream   admin listening to "1983 - Rare\04 - Holy Holy.mp3"
[2/25/14 10:04:20 AM CST]   INFO   PlayQueueInputStream   admin listening to "1983 - Rare\04 - Holy Holy.mp3"
[2/25/14 10:04:25 AM CST]   INFO   PlayQueueInputStream   admin listening to "1983 - Rare\04 - Holy Holy.mp3"
[2/25/14 10:04:30 AM CST]   INFO   PlayQueueInputStream   admin listening to "1983 - Rare\04 - Holy Holy.mp3"
[2/25/14 10:04:35 AM CST]   INFO   PlayQueueInputStream   admin listening to "1983 - Rare\04 - Holy Holy.mp3"
[2/25/14 10:04:38 AM CST]   INFO   PlayQueueInputStream   admin listening to "1983 - Rare\04 - Holy Holy.mp3"
[2/25/14 10:04:45 AM CST]   INFO   PlayQueueInputStream   admin listening to "1983 - Rare\04 - Holy Holy.mp3"
[2/25/14 10:06:07 AM CST]   WARN   RESTFilter   Error in REST API: EofException
[2/25/14 10:06:32 AM CST]   WARN   RESTFilter   Error in REST API: EofException


I'm sure there is a simple solution, but I can't figure out what it might be.

Re: Subsonic App on KitKat not downloading Music to SD Card

PostPosted: Tue Feb 25, 2014 5:52 pm
by daneren2005
http://www.androidpolice.com/2014/02/17/external-blues-google-has-brought-big-changes-to-sd-cards-in-kitkat-and-even-samsung-may-be-implementing-them/

Try changing the folder to <SDCard>/Android/data/net.sourceforge.subsonic.androidapp/
For DSub users that come across this: <SDCard>/Android/data/github.daneren2005.dsub/

Before this, Subsonic never had any reason to check for file permissions because everything was allowed to write to the SD card. I will be looking to change the default location to be the correct location, and to have a button to update it to the correct location soon.

Re: Subsonic App on KitKat not downloading Music to SD Card

PostPosted: Tue Feb 25, 2014 7:15 pm
by jharveytx
That did the trick!

Thank you so much - especially for the quick response.

Re: [Resolved] SS App on KitKat not downloading Music to SD

PostPosted: Thu Feb 27, 2014 3:23 am
by daneren2005
DSub has been updated to fix the issue. If anyone comes across this and they are still having a problem please let me know.

Re: [Resolved] SS App on KitKat not downloading Music to SD

PostPosted: Mon Mar 10, 2014 7:07 pm
by toxbox
Just to be clear... are you saying we should set the cache location to the path you specify?

Is that directory somehow recognized as a private folder to subsonic? I'm just curious as to how this fix actually works. I want to try it on my tablet when I get home from work, since I see this as being a pretty significant problem.

Re: [Resolved] SS App on KitKat not downloading Music to SD

PostPosted: Mon Mar 10, 2014 7:55 pm
by daneren2005
Yes, set the path to the location specified. If you want more details I included a link that gives the back story on the change. This only affects devices with 4.4 and which use SD cards.

Re: [Resolved] SS App on KitKat not downloading Music to SD

PostPosted: Mon Mar 10, 2014 8:54 pm
by toxbox
Right, I read the article and everything... I just wanted to know the significance of the directory and what makes it work locally (since it looks like it contains a network address). In any case, thanks for the fix... hope to try it soon.

Re: [Resolved] SS App on KitKat not downloading Music to SD

PostPosted: Mon Mar 10, 2014 9:13 pm
by daneren2005
It is a local address, not a network address. Nothing makes it work other then that is the location Google decided it should be... The call to getExternalFilesDir just returns a location, and in the default implementation that location is <SDCard>/Android/data/<App Package>/files/, though everything under <SDCard>/Android/data/<App Package>/ appears to be writable.

Re: [Resolved] SS App on KitKat not downloading Music to SD

PostPosted: Mon Mar 10, 2014 11:24 pm
by toxbox
Awesome... works. Thank you! I was beginning to regret my tablet purchase because of this.

Re: [Resolved] SS App on KitKat not downloading Music to SD

PostPosted: Thu Mar 27, 2014 1:49 pm
by daneren2005
Can this be stickied. This is going to keep coming up as more and more people upgrade to Kitkat.

Re: [Resolved] SS App on KitKat not downloading Music to SD

PostPosted: Mon Mar 31, 2014 11:01 pm
by gogogo
Hi. I have the same problem in galaxy s4 with encrypted sd card and phone.
In the android folder of the sd card I can't find the folder of the subsonic app. I have tried to move the app from the phone to the sd and the same I can't see any folder.

Tried to add manually the folder in the data folder without results.

Help!

Re: [Resolved] SS App on KitKat not downloading Music to SD

PostPosted: Tue Apr 01, 2014 12:35 am
by mikes
Just set the Subsonic app setting as daneren2005 described. Subsonic will create the folder.

The only tricky part is knowing the path to your sdcard, but that can be different between phones, so you'll have to figure it out or post your phone model and software version and hope someone else has the same and can help with that.

Re: [Resolved] SS App on KitKat not downloading Music to SD

PostPosted: Fri Apr 11, 2014 11:50 pm
by j3tblk
I've got a Galaxy S5. I can't get any of these tricks\paths to work. Anyone have it working or can provide help for this device?

Re: [Resolved] SS App on KitKat not downloading Music to SD

PostPosted: Fri Apr 11, 2014 11:55 pm
by gogogo
I Havre followed the procedure, and after some day it stopped newly, and more there is no way to save music to the sd card!

Re: [Resolved] SS App on KitKat not downloading Music to SD

PostPosted: Sun Apr 13, 2014 1:31 pm
by mikes
The 4.2 update is supposed to fix the issue, and appears to no longer allow the user to configure the path.