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 crazyoldman » Mon May 28, 2012 2:07 pm

I'm running into a problem trying to get MusicCabinet working on my Ubuntu machine. I've installed Subsonic using the Ubuntu/Debian package provided on the main Subsonic page. I replaced subsonic.war (located inside /usr/share/subsonic) with your subsonic.war, but when starting the subsonic service and loading up the webpage, I receive the following friendly message:

Code: Select all
HTTP ERROR: 503

SERVICE_UNAVAILABLE
RequestURI=/index.view

Powered by jetty://


So, yeah. The subsonic_sh.log file, located inside /var/subsonic, seems to be full of errors. You can see this log here: http://pastebin.com/0rGUDvKJ

Any help would be appreciated, thanks!
crazyoldman
 
Posts: 2
Joined: Mon May 28, 2012 1:59 pm

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

Postby hakko » Mon May 28, 2012 2:25 pm

Thanks for the log and sorry about the error! My educated guess is that the Java class loading order behaves differently on different platforms, and that I need to consolidate project imports to avoid the risk of this happening. (Subsonic uses an old version of the Spring library and MusicCabinet uses a newer version. I never had any conflicts so I thought they could co-exist, but obviously they can't under certain circumstances.) I'll make this my #1 priority to fix, but I'm pretty busy at the moment so it might take a little while before I get back to you. I'll send you a PM once I have an update.

Regards
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

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

Postby crazyoldman » Mon May 28, 2012 6:11 pm

Cool, I look forward to it!
crazyoldman
 
Posts: 2
Joined: Mon May 28, 2012 1:59 pm

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

Postby Pcace » Tue Jun 05, 2012 8:38 pm

Hey, im Using MusicCabinet now for some weeks.

Simply great!!!! But i made some additions to my /var/subsonic/jetty/0.5.37/webapp/WEB-INF/jsp/playlist.jsp


Can i update (when there will be one) to a newer version of MusicCabinet without having to care about my modifications?

Thanks,

Pcace
Pcace
 
Posts: 117
Joined: Tue Nov 29, 2011 2:44 pm

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

Postby hakko » Tue Jun 05, 2012 9:38 pm

Thanks! Yes, the next time I release a new version (say 0.6.1), it will get expanded to /var/subsonic/jetty/0.6.1/ and playlist.jsp will get picked from there instead of from 0.5.37. So you'll have to manually update playlist.jsp again. Or, you could fork MusicCabinet from https://github.com/hakko, add your changes once, and whenever there's a new version you could just do "git pull" + "mvn package" and it'll integrate your changes with mine and then create a new subsonic.war file. That would be the programmer way of doing it.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

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

Postby PiX64 » Tue Jun 12, 2012 1:24 am

Hey - This looks awesome!

I would like to start using this to try it out, but was wondering if anyone here as experience setting up postgres on an unraid machine? I currently use unraid for all file storage and my subsonic server. I have been poking around over at the unraid forum, as well as on google, but haven't found someone doing this.

Any suggestions?
PiX64
 
Posts: 15
Joined: Wed Jun 08, 2011 7:58 pm

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

Postby hakko » Tue Jun 12, 2012 4:52 am

Is it common to have a machine that can run a Java server but not a Postgres database? It's technically possible to have the two running at different machines, but there's currently no easy configuration for doing that in MusicCabinet.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

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

Postby PiX64 » Tue Jun 12, 2012 3:02 pm

I'm sure it is possible, I just haven't seen any documentation anywhere on how to do it. Was hoping maybe you all had some experience with it.
PiX64
 
Posts: 15
Joined: Wed Jun 08, 2011 7:58 pm

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

Postby hakko » Tue Jun 12, 2012 4:57 pm

I never heard of unraid before, so maybe I shouldn't even try to give advice. But I'd guess you simply have to build Postgres from the sources. Like this: http://www.thegeekstuff.com/2009/04/lin ... rom-source. But I've no idea how stripped down the unraid is, if it even comes with a compiler...
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

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

Postby PiX64 » Wed Jun 13, 2012 2:28 pm

Yeah - That is what I was thinking as well. It gets a little tricky with unraid because its a live system that runs off of USB key, and any package install that you needs to be done everytime which of course include modifying .sh scripts and such to get the custom ap running everytime.

Thanks for the help, and hopefully i can get this running.
PiX64
 
Posts: 15
Joined: Wed Jun 08, 2011 7:58 pm

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

Postby PiX64 » Wed Jun 13, 2012 2:40 pm

How difficult is it to pop open the war and change the location at which musiccabinet looks for the postgresql database?

Is the configutation for the server in its own class, or is it riddled throughout the code?
PiX64
 
Posts: 15
Joined: Wed Jun 08, 2011 7:58 pm

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

Postby hakko » Wed Jun 13, 2012 2:57 pm

The subsonic.war is (as you might have noticed) just a zip file. Rename it (or just open it using a good zip file tool) and edit WEB-INF\applicationContext-service.xml.

Look for
Code: Select all
         
<prop key="musiccabinet.jdbc.url">jdbc:postgresql://localhost:5432/musiccabinet</prop>
<prop key="musiccabinet.jdbc.initialurl">jdbc:postgresql://localhost:5432/template1</prop>


and replace "localhost" with your postgres server name. There are no hard-coded references anywhere, it's just that single xml 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 hakko » Wed Jun 13, 2012 3:05 pm

You could also try starting Subsonic with extra parameters (this will depend on your environment). You'd want to do

Code: Select all
java -Dmusiccabinet.jdbc.url=jdbc:postgresql://xx.xx.xx.xx:5432/musiccabinet -Dmusiccabinet.jdbc.initialurl=jdbc:postgresql://xx.xx.xx.xx:5432/template1 <normal Subsonic startup params>


Maybe this is more complicated, but it would mean that whenever I release a new MusicCabinet version, you don't have to alter the subsonic.war file over and over. I never tried this myself but it's technically possible.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

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

Postby jacobthe4th » Wed Jun 13, 2012 5:00 pm

Hakko,

Great Mod! I've been watching this for a while and finally tried it yesterday. Install was cake. I have a question though, my library is nearing 100K tracks and the Music Cabinet indexing seems to have hit a snag. It has been up and running for nearly 18 hours and has made no discernible stats changes for over 10 hours. It still says it is scanning the media folder. Do you write to anything beyond the subsonic.log for errors? It definitely says it is having trouble writing the Tags.

Here is the log file (zipped). http://tinyurl.com/7g9akuz

Image

Could it be it just takes longer time than I anticipated, or is there a problem? A lot of my files are clean, but not all. When cleaned their structure is \\music\{Artist}\{Album}\{Tracks}. The tracks, when scrubbed are ID3 Tagged (2.3) and each contains Artist, Album, Track, Year, Genre, Comment, Album Artist, Disc, and Embedded Album Cover.

Is there any other info that would help?

Thanks,

J
Subsonic V6.1.6 User - Lifetime Donation

- WHS 2011 (HP EX 490 - e7500 with 4GB RAM, 16TB HDD)
- 2,039 artists
- 9,121 albums
- 120,791 songs

All FLAC, All the time...
User avatar
jacobthe4th
 
Posts: 41
Joined: Thu Oct 07, 2010 2:23 pm
Location: US

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

Postby hakko » Wed Jun 13, 2012 5:36 pm

Hi Jacob!

I do get a bit worried when I read your log and it says over and over: "Insufficient system resources exist to complete the requested service". How much memory have you given Subsonic? Your log indicates that you're on Windows. Then you can control it from the system tray icon -> Subsonic control panel. The default allocated value is 100MB, 256MB is more reasonable.

From the About view, which version does it say? Built with MusicCabinet plugin, version 0.5.43? I realized this morning (after a conversation with Ultraviolet who has 500.000 tracks) that there's a small bug lurking somewhere during the import, and I updated subsonic.war to 0.5.44 to get better logging to nail it.

The only log file apart from subsonic.log is called musiccabinet.log and it's written to your temp directory, so you have to search for it. If you're using 0.5.43, I'm afraid it won't be of much help (it's very quiet), but you could always check. It's overwritten when you restart Subsonic so look for it before you do.

Since the import has stalled, I'd just suggest restarting Subsonic (from the system tray -> control panel) and starting off where you left. Everything you've imported so far should be written to the database, so you don't have to start from scratch. Let me know how it turns out! Sorry about the import bug, I hope the extended logging in 0.5.44 will help finding it.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

PreviousNext

Return to MusicCabinet

Who is online

Users browsing this forum: No registered users and 0 guests