Want to Run Mulitple Instances....

Need help? Post your questions here.

Moderator: moderators

Want to Run Mulitple Instances....

Postby sytanek » Wed Feb 02, 2011 1:27 pm

Basically I love how subsonic can stream music and videos now, but hate how they are mixed together, and since there aren't categories at the moment, I would like to run three separate instances of subsonic. One for Music, one for TV, and one for Movies. I am currently using the windows binary. I did try to use the standalone version, and had 2 copies running simultaneously, however any action in one would log you out of the other.

Any ideas?
sytanek
 
Posts: 20
Joined: Wed Feb 02, 2011 1:24 pm

Postby bushman4 » Wed Feb 02, 2011 2:42 pm

I have been thinking about the same thing, but for a different reason... I want to hide some of my stuff from my "Regular" users...

If the northeast US gets as much snow as they are predicting this weekend, I may actually have time!

Anyway, I think it's going to come down to either needing to install multiple versions of Jetty with their working directories in different places, or installing the Subsonic Servlet multiple times in one overall Jetty installation, but I haven't had time to test that yet...

Please keep us posted if you get to testing before I do.

Glenn
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Postby sytanek » Fri Feb 11, 2011 2:59 pm

Happen to get any closer on this? Still no luck for me....
sytanek
 
Posts: 20
Joined: Wed Feb 02, 2011 1:24 pm

Postby GJ51 » Fri Feb 11, 2011 6:24 pm

So far, i've only been able to segregate access by setting up different servers. I too would love an alternative to setting up a new server just to limit access to various categories of users who visit my sites. In that I do have 4 servers available, I would be more than happy to test any strategy that anyone can suggest for setting up multiple instances on the same machine. My GJ51 server is solely for testing. It's running Win 7 32 bit for now, but could easily be reconfigured to any Windows OS.
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 bushman4 » Fri Feb 11, 2011 6:28 pm

Maybe I'll have time to tonight. I think it's as "simple" as getting Tomcat installed and configured as your servlet container, and then setting up two sets of settings for two different copies of Subsonic.

Notice the "simple" in quotes...

Glenn
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Postby bushman4 » Sat Feb 12, 2011 4:02 pm

OK, I managed to get two instances working on the same machine, but not the way I really wanted to... I wanted to be able to one run servlet container, and host two copies of Subsonic, but that doesn't work... the subsonic.home is a SYSTEM java property, so it can only be set for the whole servlet container.

Anyway, here's how I got two to work:

    1. Install Subsonic for windows the standard way.
    2. Stop the service.
    3. Edit c:\program files\Subsonic\subsonic-service.exe.vmoptions and add the option "-Dsubsonic.home=c:\subsonic2"
    4. Restart the service. Notice the creation of c:\subsonic2.
    5. Install Tomcat 5.5 or 6. NOT tomcat 7. Set it up to use a different port than the first subsonic installation. Set it up with a network-valid user id to run under if your music is not local.
    6. Download the WAR version of Subsonic, and install it in your Tomcat installation as per the instructions. This installation will use c:\Subsonic as it's working directory by default. It should be accesible at http://host:TomcatPort/subsonic if you follow the directions properly.

All fairly tedious, and with the overhead of Jetty AND Tomcat running.

I'm not a java programmer, but if there were a way to set options for individual servlets in tomcat that Sindre could use, then you could easily run multiple instances as different servlets in Tomcat.

But I guess if I had the choice, I'd rather just have user level security control by Library or Filetype or Folder level (or any combination of the three) than be able to run multiple instances, since security control would mitigate the need for multiple instances.

HTH,

Glenn
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA


Return to Help

Who is online

Users browsing this forum: No registered users and 19 guests