All songs play in browser but not on Android app.

Need help? Post your questions here.

Moderator: moderators

All songs play in browser but not on Android app.

Postby rldev » Tue Jan 17, 2012 11:09 pm

I have a galaxy nexus and there is a lot of my collection that will not play on the Subsonic Android app. Yet they all play in google chrome on my pc. Any thoughts? Everything plays in Google Music and DoubleTwist.
rldev
 
Posts: 6
Joined: Thu Jan 12, 2012 2:57 pm

Re: All songs play in browser but not on Android app.

Postby bytethdgroove » Tue Jan 17, 2012 11:53 pm

Try setting the player type from external player with a playlist to Web player (in settings on the website)..... Worked for me but I was having songs skipping issue... Still worth a shot....
I'll reference the post when I get home as I'm mobile atm

Peace
Byte
Sent from my Motorola Electrify using Tapatalk
"I'm as honest as the day is long, the longer the daylight the less I do wrong!"
Image
User avatar
bytethdgroove
 
Posts: 59
Joined: Mon Apr 25, 2011 1:02 pm
Location: Chicago

Re: All songs play in browser but not on Android app.

Postby rldev » Wed Jan 18, 2012 12:37 am

Unfortunately mine was already set to web player.
rldev
 
Posts: 6
Joined: Thu Jan 12, 2012 2:57 pm

Re: All songs play in browser but not on Android app.

Postby bytethdgroove » Wed Jan 18, 2012 1:14 am

any log info?
different filtypes? or the all the same?
byte
"I'm as honest as the day is long, the longer the daylight the less I do wrong!"
Image
User avatar
bytethdgroove
 
Posts: 59
Joined: Mon Apr 25, 2011 1:02 pm
Location: Chicago

Re: All songs play in browser but not on Android app.

Postby rldev » Wed Jan 18, 2012 3:24 pm

Funny more stuff started playing after going back and forth with web player setting. I still have the same issues with many recordings. The log doesn't say much. Here is the log from the last 2 songs I tried to play:

[2012-01-18 10:07:06,864] INFO PlaylistInputStream - rldev listening to "Before and after science\Brian Eno - Spider and I.mp3"
[2012-01-18 10:07:25,479] INFO PlaylistInputStream - rldev listening to "Before and after science\Brian Eno - Through hollow lands.mp3"

Nothing happens on the device unfortunately. It shows the play symbol in the status bar, but the file remains at 0:00 sec in the app. I only have ogg and mp3 files. Subsonic seems to be overly senstive to naming schemes as there was plenty of stuff I had to rename in order to play. Having a tough time with all of this.
rldev
 
Posts: 6
Joined: Thu Jan 12, 2012 2:57 pm

Re: All songs play in browser but not on Android app.

Postby mmkeat » Wed Jan 18, 2012 9:59 pm

This may or may not be related to the issue that you were having, but I'm posting it here in case it works for anyone else. For me, I could stream videos, but when I tried to stream music, it would sit at 0 B downloaded and wouldn't start streaming. I tried google music app for a while (sigh) and discovered a similar problem. It worked in the beginning, like subsonic, but then wouldn't work unless I rebooted phone.

What worked for me was unmounting, then mounting the sd card in my phone (Droid X). Settings -> Storage -> Unmount. Then Mount it. Then immediately Google music app and most importantly Subsonic started streaming!!! I'm not sure how long this lasts or if you have to do it with any frequency, because I literally just did it and was so excited I had to come here and post if anyone else was having the same problem.
mmkeat
 
Posts: 1
Joined: Sun Dec 18, 2011 12:11 am

Re: All songs play in browser but not on Android app.

Postby spencerthomass » Thu Jan 19, 2012 5:50 am

I have this same exact problem. Any luck on finding a fix?
spencerthomass
 
Posts: 1
Joined: Thu Jan 19, 2012 5:41 am

Re: All songs play in browser but not on Android app.

Postby hawaii2000 » Sun Feb 05, 2012 12:20 am

Same problem here, also Galaxy Nexus running ICS 4.0.3.

I can't find anything meaningful (to me) in the log. And I haven't been able to correlate songs that do play vs songs that don't. Doesn't matter whether it's an mp3 or a transcoded flac.

I do see that the artist and album folders are created for the non-playable songs, but the songs themselves aren't being downloaded to the target folders. What's weird is the cover art will display (if there is any) even though the song file isn't anywhere to be found. Weird too is sometimes the stop button will be displayed while it says Downloading and the amount of MB increases as if it is actually downloading but then the stop button turns into a play button. If I press play, it proceeds to say Downloading again and appears to be downloading from where it left off and the MB will increase more until the stop button turns into a play button again. I can continue this until eventually the play button never changes. When I look in the artist/album folder, it's empty.
hawaii2000
 
Posts: 5
Joined: Mon May 24, 2010 3:07 am

Re: All songs play in browser but not on Android app.

Postby verbatone » Sat Mar 03, 2012 5:29 pm

This appears to be a file permissions issue on the Android app side of Subsonic. The behavior seems somewhat random, but I believe this is the problem. The Subsonic is writing a file to the sdcard and the permissions are being set to "-rw-------" for files and "drw-------" for directories. On my phone the owner:group is "app_16 app16". After reboot, the permissions seem to change back to "-rw-rw-rw-" for files and "drw-rw-rw-" for directories. I believe this happens when Android OS mounts the SD card at bootup. I'm not sure who the user/group "app_16" is.

I wrote a small script which changes the permissions to global read and the files become playable again. Unfortunately this seems to require root privileges.

Code: Select all
su
chown -R 666 /sdcard/subsonic/music/*
exit


The problem with this is that every time a new file is downloaded with bad permissions, you have to run this, which gets old quick.

I've seen some other threads where this might be an issue with permissions in the OS, but something has changed on ICS as gingerbread and prior worked great for me.

I've been looking through the Android Subsonic App source code, but haven't seen anything yet, though I know very little about java really. This issue may be on the Android side.

Galaxy Nexus 4.0.4 (leaked ROM)
verbatone
 
Posts: 5
Joined: Sat Mar 03, 2012 9:22 am

Re: All songs play in browser but not on Android app.

Postby verbatone » Wed Mar 07, 2012 7:44 pm

So the saga continues... I really don't understand how all the ICS users aren't seeing this issue!!! Seriously!

As I've done some more testing I've seen some very bazaar behavior.

1. If I clear the whole ./subsonic/music directory out, I can try to download a new file, it will generally fail, BUT NOT ALWAYS.

2. It seems that if i create a new directory say "Doors" and chown it to "app_16.app_16" (in my case "app_16" is subsonic app), then play a "Doors" album (just one folder down from "Doors") from my library, it seems to play almost 100% of the time, I can't guarantee because it haven't tried infinite times

3. IF there is already a folder which currently has the correct permissions, any other folder created at that directory level seems to get the right permissions and the files playback ok

4. If the file is TWO(!!) subfolders down (or more?) from the artist (ie ./Artists/Compilation/Comp1) even if I create the "Artist" folder and chown it to the subsonic app, it still does not play. I have to go in a manually update the permissions before files will play.

Someone has to know what's going on! I really don't get how the permissions can change so erratically.

Couple other observations:

1. When the folders/subfolders get created and the files play, the permissions are '777", when they don't work, the permissions are "700"

2. When the files play, the permissions are "666", when they do not, the permissions are "600"

3. Since "app_16" is subsonic, and it is the owner of the file, why can't it read the file?

Anyone?
verbatone
 
Posts: 5
Joined: Sat Mar 03, 2012 9:22 am

Re: All songs play in browser but not on Android app.

Postby verbatone » Fri Mar 09, 2012 7:37 pm

As a further update...and kind of a bump, cause the Subsonic Android app is virtually useless in its current state with ICS...

it appears that the artwork folder and files always gets the right permissions. So what is the difference? Come on people, someone has to understand java well enough to figure out what the difference is between the "music" folder and the "artwork" folder for file/folder generation.
verbatone
 
Posts: 5
Joined: Sat Mar 03, 2012 9:22 am

Re: All songs play in browser but not on Android app.

Postby winnie666 » Mon Mar 19, 2012 4:40 pm

From viewtopic.php?f=5&t=8497&hilit=ICS&start=45
Somebody has rebuilt the source with fixes for the ICS!
To Download a build from 2-26-2012 (Latest as of 3-20-2012): http://bit.ly/xcI069
Also, i was experiencing exactly the same problem as described here on HTC Deside HD 2.3.2 android, not ICS!
winnie666
 
Posts: 2
Joined: Mon Mar 19, 2012 4:36 pm

Re: All songs play in browser but not on Android app.

Postby c.j.o » Fri Mar 23, 2012 12:09 am

verbatone wrote:As a further update...and kind of a bump, cause the Subsonic Android app is virtually useless in its current state with ICS...

it appears that the artwork folder and files always gets the right permissions. So what is the difference? Come on people, someone has to understand java well enough to figure out what the difference is between the "music" folder and the "artwork" folder for file/folder generation.


Yep verbatone this has been annoying me for a few weeks now but I've been putting up with it. A few days ago I finally took the time to see what the heck was going on with nonplaying music and noticed that the folder of the current album I was trying to play was locked even after I moved on to play something else. After restarts I was able to clean up the folders etc which is when I realized that it was a permissions issue that was going on.

This definitely needs to be fixed because it's getting to the point where 1 in 3 albums will playback for me without issue.
c.j.o
 
Posts: 1
Joined: Fri Mar 23, 2012 12:05 am

Re: All songs play in browser but not on Android app.

Postby verbatone » Mon Mar 26, 2012 5:05 pm

@winnie666

I've tried this 2-26-12 build and I still have the same issue as before. Perhaps your issues was slightly different and something in the new build or installation fixed your problem, but thanks for the response anyway.

@c.j.o

It's nice to see that I'm not the only one who has this issue. Though...I knew that was not true as a co-worker also has a galaxy nexus and it has the same issue, though there is some debate as to what is causing a failure or not. I seems that on his phone, variable rate mp3s fail, while constant bit rate mp3s do not fail. I'm not sure that's been conclusively determined, and I'm not sure why the app would distinguish between vbr and cbr files for permissions. I'm still not convinced this isn't some weird ICS issue as the first time that subsonic plays after reboot, I always get proper playback, but subsequent playback fails.

Here's to hoping someone sees this and can fix this in the near future, I'm really missing my subsonic access in the work commute.
verbatone
 
Posts: 5
Joined: Sat Mar 03, 2012 9:22 am

Re: All songs play in browser but not on Android app.

Postby verbatone » Fri Mar 30, 2012 11:57 pm

With the latest 4.0.4 AOSP updates, this problem seems to be gone. Not sure what the issue was. Perhaps Google had a bug, but now I have Subsonic back on mobile again. Which is a massive improvement to my drive time. Funny how dependent I become on this thing for drive time music listening.

Now I get to complain about artwork handling in the browser. :D
verbatone
 
Posts: 5
Joined: Sat Mar 03, 2012 9:22 am

Next

Return to Help

Who is online

Users browsing this forum: No registered users and 14 guests