MusicCabinet - artist radio, genre radio & related artists

Artist radio, genre radio & related artists. A Subsonic server for music nerds.

Moderator: moderators

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Wed Sep 05, 2012 8:04 pm

Make sure there's no other Subsonic process running (look for java processes and kill them). The error says that another process is indeed running and has locked the Subsonic internal database file, so when you're starting a new process, it can't access the database and fails.

I don't know how your previous install is set up, but basically, you need to replace the two java archive files (subsonic.war and subsonic-booter-with-dependencies.jar) in your current installation with the ones from the zip file on the MusicCabinet installation page and then start the Subsonic process just as usual.

The settings from your 4.7 install will be read and transformed into MusicCabinet 0.7 format (for example, updating passwords to be stored as salted hash sums instead of clear text). That's why it tells you to make a backup of your current settings before installation, as you can't go back from MusicCabinet 0.7 to Subsonic 4.x unless you save your current settings somewhere.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Wed Sep 05, 2012 8:46 pm

It's hard to tell, if you come from an installation of MusicCabinet 0.5 and upgrade to 0.7, there has been quite a lot of work on the database engine. It'll definitely take a little while re-organizing the db to 0.7.

If you try upgrading the db and scanning your library at the same time it might get confused (I think the interface should stop you from doing that though).
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Wed Sep 05, 2012 8:56 pm

Could you restart your Subsonic service before nuking the db? When it starts up, it should say something like:

Load version number 1025
Version 1025 loaded, result code 0
Load version number 1026
Version 1026 loaded, result code 0

etc

Some of these updates might take a while (maybe even a couple of minutes), but I'd be interested to hear where it stops before you start from scratch.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Wed Sep 05, 2012 9:17 pm

Yes, that's it! 1012 was quite heavy, I wouldn't be surprised if that takes a couple of minutes to finish. Especially since you have a pretty big library. It's this one: https://github.com/hakko/musiccabinet/b ... p/1012.sql

I'd be surprised if it stops forever though. I think it would be worth waiting for, as it means you don't have to re-import a lot of artist data from last.fm. That's even slower for 120.000 songs.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Wed Sep 05, 2012 9:31 pm

Well give it fifteen minutes? I don't understand why it's so slow. If it stalls for longer than that, I guess you could just uninstall+install Postgresql and start from scratch and you shouldn't have these problems at all. Sorry for the inconvenience.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Thu Sep 06, 2012 5:27 am

You could run the command psql -U postgres (psql is found in your postgres install dir/bin) and at the prompt that appears, type drop database musiccabinet; and press enter.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Thu Sep 06, 2012 6:47 am

Have you scanned your library? From Settings -> Media Folders -> Full scan
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Thu Sep 06, 2012 7:02 am

The initial file-based interface is just a way to allow you to play music while your library is being scanned for the first time. I guess I need to add more restrictions to it, as artist links etc won't be meaningful until information about the artists have actually been fetched from last.fm. The scanning must also be finished before it knows exactly which albums and compilation albums you have by each artist.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Thu Sep 06, 2012 8:03 am

No one has reported it before, so let it finish scanning, switch to the tag based interface and report back if it persists.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Thu Sep 06, 2012 2:59 pm

Oh, that looks like a bug in the audio parser library. Interesting, it should be reported back to them. Try downloading this war file: http://dilerium.se/musiccabinet/subsonic-0.7.9.war, rename to subsonic.war, replace your current and restart your subsonic service. Hopefully, it'll then get logged in musiccabinet.log which file it is and the scanning will continue without that file.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby precipitous » Thu Sep 06, 2012 3:25 pm

@Pcace: It looks like from one of your earlier posts that you have both openjdk-6 and openjdk-7 installed... I don't know what OS you are using, but I know that on my Ubuntu 12.04 machine I am not able to run MusicCabinet successfully with both. I had to uninstall version 6 to get everything working properly.

Just a thought...
User avatar
precipitous
 
Posts: 91
Joined: Fri Aug 14, 2009 6:43 pm
Location: Santa Barbara CA USA

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Thu Sep 06, 2012 9:01 pm

Oh, I have you go through so much trouble when I though everything was supposed to work well now.

The last one is a bit confusing. Or, in the latest version, I started using a PostgreSQL extension (pg_trgm) which is supposed to come bundled with PostgreSQL 9.1. I googled it now, and it might not actually come bundled, but you rather have to get it yourself:

Code: Select all
sudo apt-get install postgresql-contrib


Could you try it and see if it works better? I'll add this to the install guidelines.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby cakgok » Tue Sep 11, 2012 8:09 pm

Cheers for the great mod mate.

As somebody else mentioned above, mod doesn't work with both jdk 6 and jdk 7 installed on ubuntu server 12.04.

VA albums get screwed but it's a pretty good trade i guess :D
cakgok
 
Posts: 6
Joined: Mon Sep 10, 2012 4:28 pm

Re: MusicCabinet - artist radio, genre radio & related artis

Postby hakko » Tue Sep 11, 2012 9:00 pm

Make sure to use the Album Artist tag (I'd suggest using "Various Artists"). That'll group those album as "Various Artists" in the left column, but the real artist names will be displayed when browsing the albums, in playlists and when scrobbling and searching. Songs from VA albums will still pop up on the artist's own page as well, below the "real" albums.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: MusicCabinet - artist radio, genre radio & related artis

Postby cakgok » Tue Sep 11, 2012 9:10 pm

Oh even better! But it's too bad torrenting makes it impossible for me sometimes.

By the way, i couldn't get flac transcoding working, any ideas about that? ( Tried with both symbolic links and actual binaries in /var/subsonic/transcode )
cakgok
 
Posts: 6
Joined: Mon Sep 10, 2012 4:28 pm

PreviousNext

Return to MusicCabinet

Who is online

Users browsing this forum: No registered users and 2 guests