Android client can't Save Playlist

Need help? Post your questions here.

Moderator: moderators

Android client can't Save Playlist

Postby lolomin » Sat Oct 30, 2010 8:49 pm

Hi,

Using Subsonic v4.1 and android client v1.8 but having problems with the feature "Save Playlist" located under the Playlist tab of the client when pressing Menu button.
When I select Save Playlist, it asks me for a Playlist name to save it on and when I confirm I get the following Error : "Failed to save the playlist, please try later? Didn't understand the reply, please check the server address."
It seems that no request is done to the Subsonic Server because I'm using an Apache 2.2 which proxify requests to subsonic and I can see in Apache access_log that no request reach the server ...
Anyone which is having the same problem or knows why this is not working please ? Any informations would be useful !

Thanks,

Laurent
lolomin
 
Posts: 6
Joined: Tue Aug 18, 2009 8:22 pm

Postby lolomin » Sat Oct 30, 2010 10:05 pm

Hi again,

I finally found the root cause of the problem and post it here so if someone ishaving the same problem or an idea on how to solve it :
"Save Playlist" feature seems to generate a request URI which is pretty huge because I saw in my Apache proxy error log :
[Sat Oct 30 23:52:00 2010] [error] [client 192.168.0.45] request failed: URI too long (longer than 8190)

So the problem is here ...
There is a directive in Apache to modify the maximum Request Size but it is set to 8190 as a default at compile time, so i would need to compile back my Linux precompiled Apache just because Subsonic client is generating too long requests ...
Personnaly, after 16 years of work with many web systems, i've never seen any applications which generates a such big HTTP requests, there is probably a better way to manage this and IMO it should be modified to do a POST rather than a GET requests as it seems to be the case here and with less parameters.

At the moment it makes Subsonic almost unusable behind an Apache proxy because it is impossible to manage Playlist at client side.

Any thoughts will be welcome ! :)

thks

Laurent
lolomin
 
Posts: 6
Joined: Tue Aug 18, 2009 8:22 pm

Postby GJ51 » Sun Oct 31, 2010 5:08 pm

I'm getting errors trying to do the same on my Windows 08 box. It says, "Failed to save playlist, please try later. Odd number of characters."
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby lolomin » Sun Oct 31, 2010 10:57 pm

Hi GJ51,

Maybe this error message leads to a different cause because mine was not exactly the same.
Are you using subsonic directly through Internet ?
Do you have any intermediate component between android client and subsonic server like a IIS acting like a reverse proxy ?

I private message Sindre to get more informations about the way the android client is doing requests to save playlist to the subsonic server, maybe he will help us with this problem ?

For the moment, I was only able to do a dump to see that the requests done by the android client is a GET with some parameters and one these is huge, it seems to be the list of songs of the playlist encoded in a special way but this is definitly the main problem : this GET request should be replaced by a simple POST with datas rather than this huge parameter.

Laurent
lolomin
 
Posts: 6
Joined: Tue Aug 18, 2009 8:22 pm

Postby GJ51 » Mon Nov 01, 2010 1:09 am

I just tried both wifi and 3g. Same result. I don't know if it's related, but now my track listing on the upper frame of my server webpage has entries for album art and "Folder" being displayed.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby andykvakk » Tue Jan 25, 2011 7:44 am

I've got the same problem yesterday and today I tried to save a playlist using the webinterface, same problem, but the error was much clearer in the browser. /var/playlists did not exist.

The solution for me:
sudo mkdir /var/subsonic/playlist
In Subsonic web interface: Settings - General
Set folder for playlists to: /var/subsonic/playlists

Save and you should be ok. I also confirmed this to work on my Android Client.

Hope this helps.
andykvakk
 
Posts: 9
Joined: Mon Mar 01, 2010 6:18 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 18 guests