Skip to Content
It is currently July 17th, 2019, 3:50 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: July 21st, 2013, 2:55 pm 
Offline
SVS Member
SVS Member

Joined: December 28th, 2009, 12:33 pm
Posts: 1340
This is a tutorial for setting up multiple instances with SAM, with screenshots of all the settings/dialog boxes, since a lot of people seem to have issues with setting this up correctly.
NOTE: This only works with SAM 4.9.4 or newer (and all SAM 2013.x) versions.
First add the /INSTANCE= parameter (after a space) on the end of the target link in the SAM shortcut (I recommend you make a second copy of the shortcut, and add this to your second shortcut), like this:
Image
Then run SAM using that shortcut.
You should get this prompt, telling you that the activation is expired:
Image
This is because SAM requires a second license/serial number to run a second instance.
Click the OK button.
You should get this screen:
Image
Enter your second serial number, and select how you want SAM to activate.
Click Next.
SAM should activate, and then bring you to the setup window:
Image
Click Next.
SAM should now show you the database selection screen:
Image
Assuming you're using MySQL (and you should be), make sure it is selected (it should be the default), and click Next.
SAM will now take you to the database system login details page:
Image
Assuming you're going to be using a separate database instance from your main SAM instance, click the "Specify custom settings" option.
Enter your database root password, which you should have set up when you initially installed MySQL (I believe it is blank by default, but you can check your SAMBC.core.xml file for your main SAM instance if you're not sure), and change the Database entry to whatever you want to call the new database - I used SAMDB2:
Image
Click Next.
SAM will now take you to the Add audio files page.
I normally deselect the first option, and keep the second option selected:
Image
Click Next.
SAM will now take you to the sound device selection page:
Image
I normally select the "No sound device (Use Silent Output)" option, if I don't want to hear SAM's output over my speakers. This can always be changed later on in the SAM audio settings.
Click Next.
SAM will now take you (assuming you entered your database info correctly) to a screen where you'll see your serial number, but since this was already set up earlier, it won't be editable, and it will appear somewhat frozen while SAM copies the files to the data folder for the new instance that you just set up.
SAM will now take you to the Stream Hosting page, where it offers you to use SpacialNet:
Image
Assuming you already have a hosting provider, click Next.
You should now get the Setup Completed page:
Image
Click Finish.
SAM should now add any audio files you selected, and open the main SAM interface:
Image
If you go to your Spacial Audio data folder (paste %LocalAppData%\SpacialAudio into an Explorer window in Windows Vista/7/8, and %USERPROFILE%\Local Settings\Application Data on Windows XP), you should now see this:
Image
The second folder should be named whatever you set your /INSTANCE= parameter to.
This folder contains all the configuration files for the second SAM instance, including the SAMBC.core.xml file.
These files are independent of the first, original SAM instance configuration files.
And if you open MySQL Workbench (or any other tool that lets you see the database tables), you should see both tables there:
Image
That should be it - you can now add files to your second SAM instance independently of your initial SAM instance, without the need to install anything additional.

_________________
Isaac Levine - Spacial Volunteer Support (SVS)


Top
 Profile  
Reply with quote  
PostPosted: August 13th, 2013, 7:14 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7860
Location: Aachen (Germany)
Moved a question that's barely related to this tutorial into it's own topic:
viewtopic.php?f=20&t=45526

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: August 30th, 2013, 9:56 am 
Offline
Senior User
Senior User

Joined: August 31st, 2010, 2:10 pm
Posts: 77
Good manual thanks!

_________________
Currently using SB 2014.6


Top
 Profile  
Reply with quote  
PostPosted: September 10th, 2013, 3:50 am 
Offline
Junior User
Junior User

Joined: September 29th, 2010, 5:13 pm
Posts: 49
what about installing another SAM, and then do another DataBase for him ?
is it better to use your way with the shortcut /INSTANCE= parameter, or it dosent metter ?


Top
 Profile  
Reply with quote  
PostPosted: September 10th, 2013, 6:50 pm 
Offline
SVS Member
SVS Member

Joined: December 28th, 2009, 12:33 pm
Posts: 1340
Why would you install SAM twice, if you don't have to?

_________________
Isaac Levine - Spacial Volunteer Support (SVS)


Top
 Profile  
Reply with quote  
PostPosted: November 4th, 2013, 11:43 am 
Offline
New User
New User

Joined: August 14th, 2010, 3:03 am
Posts: 15
The only prob on running multiple SAM Instances on a single machine is.. It crashes the computer a lot.
It somehow causes a memory leak that renders SAM unresponsive.


Top
 Profile  
Reply with quote  
PostPosted: November 4th, 2013, 11:03 pm 
Offline
SVS Member
SVS Member

Joined: December 28th, 2009, 12:33 pm
Posts: 1340
Or maybe you're running more instances than your computer can handle... ;)

_________________
Isaac Levine - Spacial Volunteer Support (SVS)


Top
 Profile  
Reply with quote  
PostPosted: March 1st, 2014, 11:41 am 
Offline
New User
New User

Joined: September 5th, 2012, 11:19 am
Posts: 7
I am running multiple instances of Sam on Windows 7 Home Premium and I think it works great. There is one issue I have noticed:
Event Scheduler seems to be connected between instances. I have followed this tutorial to setup new instance.
New instance has got the same Event Scheduler events as the first instance, and when I removed them in the new instance manually they got wrong (bug) at the first instance.
It can't be meant that every instance has the same events. How do I separate this?
I have separate key for every instance, and separate database created...

Can somebody help me on this?

Thanks in advance


Top
 Profile  
Reply with quote  
PostPosted: March 1st, 2014, 8:47 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7860
Location: Aachen (Germany)
Are you telling me that the events table is cloned between the instances (that is likely not meant that way), but the rest (library, queue, requestlist) is seperate between your instances?
If it's really just the eventlist table, you should report this bug at the helpdesk. I can't think of any reason why that would be a wanted behaviour.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: March 2nd, 2014, 12:56 am 
Offline
SVS Member
SVS Member

Joined: December 28th, 2009, 12:33 pm
Posts: 1340
It doesn't make sense that this should happen, each instance should be using a totally separate database instance, unless you set it up incorrectly, and they're sharing a database...

_________________
Isaac Levine - Spacial Volunteer Support (SVS)


Top
 Profile  
Reply with quote  
PostPosted: March 6th, 2014, 8:02 am 
Offline
New User
New User

Joined: September 5th, 2012, 11:19 am
Posts: 7
It seems like they are using same database. I will re-check it. Thanks!


Top
 Profile  
Reply with quote  
PostPosted: August 18th, 2014, 5:57 am 
Offline
Junior User
Junior User

Joined: March 5th, 2011, 12:21 am
Posts: 28
My question with two instances is with having Sam Broadcaster and Sam Live DJ on the same computer using MYSQL. Will this work for DJ'ing purposes?


Top
 Profile  
Reply with quote  
PostPosted: August 18th, 2014, 7:31 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7860
Location: Aachen (Germany)
If you're running them at the very same time, make sure they use different databases/schemas (database doesn't mean using MySQL for one and Firebird for the other, but simply different databases on your MySQL server).
Other than that, there's no problem with running 2, 3 or even more instances of SAM Broadcaster (and it's various editions/descendants) on a single computer.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 12 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group