Dual Boot Issues

Need help? Post your questions here.

Moderator: moderators

Dual Boot Issues

Postby OldePhart » Sat Apr 21, 2012 11:09 am

This is a bit of a strange problem...

I've had Subsonic running on my PC for a week now, under Windows XP.

I'm thinking of setting up a dedicated linux server: I thought a good starting point (read "a reason to play with my computer instead of digging the garden") would be to set up Subsonic on my main PC, booted with linux.

So: I've installed Subsonic on XUbuntu, like wot it says in the Book of Words. I'm up and running: I've used exactly the same settings as I had for Windows, I've installed (successfully) the same licence number, I've fixed the computer's ip address for port forwarding, remembered to mount my media drive, all that stuff.

Subsonic works perfectly on the computer, under linux.

When I connect to the server using my Android 'phone, all of playlists say "media not found" in fact all of the options say "media not found" EXCEPT for "recently played" and "most played" - they show the tracks which I've recently played on the PC using http://localhost:4040/index.view

It gets more confusing.

If I play one of the "recently played" tracks, the Android app can then find the rest of the songs by that artist. So, the connexion between my PC in my study, the Subsonic server out there somewhere and my 'phone must all be working.

"Aha" you might say "You set up all of your playlists for Windows, didn't you?" This is true: they live in a special directory on the media drive, called (in Windows) G:\SSPlaylists or (in linux) /media/Vid_n_Music/SSPlaylists and they all reference the tracks using the format "G:\Music....". BUT, if Subsonic running under linux cannot read the playlists, how is it that the player on http://localhost:4040/ can read the play lists without any problems at all? And, if it's just a playlist problem, how come the Android app cannot see anything for "Random" or "Recently added?"

I'm totally flummoxed. Any ideas would be greatefully received..

Thanks,

Nick (OldePhart)
OldePhart
 
Posts: 11
Joined: Sat Apr 14, 2012 6:44 pm

Re: Dual Boot Issues

Postby OldePhart » Sat Apr 21, 2012 11:14 am

If it helps,

Version: 4.6 (build 2585) – December 6, 2011
Server: jetty-6.1.x, java 1.6.0_23, Linux (38.5 MB / 52.8 MB)

[4/21/12 11:46:51 AM BST] WARN PlaylistService Access denied to file G:\Music\Modern by artist\Blondie\Blondie - Heart Of Glass.mp3
[4/21/12 11:46:51 AM BST] WARN PlaylistService Access denied to file G:\Music\Modern by artist\Blondie\Blondie - Im Gonna Love You Too.mp3
[4/21/12 11:46:51 AM BST] WARN PlaylistService Access denied to file G:\Music\Modern by artist\Blondie\Blondie - Maria.mp3
[4/21/12 11:46:51 AM BST] WARN PlaylistService Access denied to file G:\Music\Modern by artist\Blondie\Blondie - In the Flesh.mp3
[4/21/12 11:46:51 AM BST] WARN PlaylistService Access denied to file G:\Music\Modern by artist\Blondie\Blondie - One Way or Another.mp3
[4/21/12 11:46:51 AM BST] WARN PlaylistService Access denied to file G:\Music\Modern by artist\Blondie\Blondie - Picture This.mp3
[4/21/12 11:46:51 AM BST] WARN PlaylistService Access denied to file G:\Music\Modern by artist\Blondie\Blondie - Contact In Red Square.mp3
[4/21/12 11:46:51 AM BST] WARN PlaylistService Access denied to file G:\Music\Modern by artist\Blondie\Blondie - Union City Blue.mp3
[4/21/12 11:46:51 AM BST] WARN PlaylistService Access denied to file G:\Music\Modern by artist\Blondie\Blondie - Shayla.mp3
[4/21/12 11:46:51 AM BST] WARN PlaylistService Access denied to file G:\Music\Modern by artist\Blondie\Blondie - Rapture.mp3

.....and so-on.

Nick
OldePhart
 
Posts: 11
Joined: Sat Apr 14, 2012 6:44 pm

Re: Dual Boot Issues

Postby OldePhart » Sat Apr 21, 2012 11:32 am

Update:

clicking on "Update Search Index Now" on the "Search" page helped a lot >blush<

But still no playlists on Android, even though Subsonic can read them.

I'll try making some test linux playlists, in the meantime, any bright ideas?

Thanks,

Nick (OldePhart)
OldePhart
 
Posts: 11
Joined: Sat Apr 14, 2012 6:44 pm

Re: Dual Boot Issues

Postby OldePhart » Sat Apr 21, 2012 7:41 pm

I can see that I'm pretty much talking to myself today. I'm sorry if reading this has been tedious.

I've come to the conclusion that it's the playlists: on linux, the player built into http://localhost:4040/index.view seems able to resolve Windows file paths, but the server seems to need playlists in their native format.

This next bit might be useful to someone one day. It's a long time since I last wrote any Unix shell scripts, so I was quite pleased that I managed to get this to work: it took a lot of fiddling with sed and looking up examples on the 'net...

#!/bin/bash
IFS_OLD=$IFS
IFS=$(echo -en "\n\b")

IPATH="/media/Vid_n_Music/SSPlaylists/"
OPATH="/media/Vid_n_Music/SSPlaylists_nix"
[ ! -d $OPATH ] && mkdir -p $OPATH || :
cp $IPATH/*.m3u $OPATH
for f in $OPATH/*.m3u
do
if [ -f $f -a -r $f ]; then
sed -i "s|G:|/media/Vid_n_Music|g; s|\\\|/|g" "$f"
else
echo "Error: Cannot read $f in $OPATH"
fi
done
IFS=$IFS_OLD

Essentially, what it does is to copy all of the Windows playlists to a new directory and then change the old Windows paths to linux ones. If you want to copy and paste it into your own shell file, you'll obviously have to tweak it a bit to suit your system. I'm sure there is some pretty inelegant stuff in there, but it does seem to work.

Right: I'll go and reward myself with a beer, I think.

Regards,

Nick
OldePhart
 
Posts: 11
Joined: Sat Apr 14, 2012 6:44 pm

Re: Dual Boot Issues

Postby BKKKPewsey » Sat Apr 21, 2012 11:46 pm

Yep I think you deserve one (or two :wink: ) Image
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom


Return to Help

Who is online

Users browsing this forum: No registered users and 35 guests