Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Shoutcast Technical Support (http://forums.winamp.com/forumdisplay.php?f=86)
-   -   2 Shoutcast 2 Server (http://forums.winamp.com/showthread.php?t=362590)

dannidj 31st May 2013 09:19

2 Shoutcast 2 Server
 
Hi. I am woondering if i can not run 2 Shoutcast 2 Server's on my Windows Computer?
When i try to run 2 i get this Error.
logger could not open file C:\Users\DJDANN~1\AppData\Local\Temp\sc_serv.log
Can i not run 2 Server's on one Windows Computer?

DrO 31st May 2013 10:53

change 'logifile' in one (or both) of the configuration files to be different from the defaults (http://wiki.winamp.com/wiki/SHOUTcas...rver_2#Logging)

dannidj 31st May 2013 11:26

So i would have it like this?
logfile=logsL:\SHOUTcast2\New Music Server\SHOUTcast\logs\sc_serv.log
or?

DrO 31st May 2013 11:31

yes. or use a relative path e.g. logfile=logs\sc_serv.log

dannidj 31st May 2013 11:40

i have tryed that and i always get the same error.
Here is my basic Config File.
Did i do it right?
PHP Code:

songhistory=20
namelookups
=1
maxuser
=1000

NOTE: for any relative paths specified are relative to
sc_trans and not to where the conf file is being stored


here we will setup where the log and other related files
will be storedmake sure that these folders exist else
sc_trans will throw an error and will close itself down.
logfile=L:/SHOUTcast2/New Music Server/SCTrans/logs2/sc_trans.log
screenlog
=0


; for the purpose of this test then we will not take into
account the use of a calendar.xml file and so disable it
calendarrewrite
=0


unlockkeyname
=Daniel Hrafnkelsson
unlockkeycode
=*****************

; for 
testing we will only setup a single encoder though it
is easy to add in additional encoder configurations and
we are using an aac plus encoder as the default due to
the licensing requirements for mp3 encoding as detailed
in sc_trans.txt section 2.5).
encoder_1=mp3
bitrate_1
=128000


this is where we define the details required for sc_trans
to connect to the sc_serv instance being used where the
details must match those specified in sc_serv_basic.conf
outprotocol_1
=1
serverip_1
=194.144.112.159
; default is 8000, if not change to sc_serv's 'portbase'
serverport_1=8000
; this is the same as '
password' in sc_serv_basic.conf
password_1=****
; this is the same as '
streamid' in sc_serv_basic.conf for
; the stream we are acting as the source for 
streamid_1=1
; this is a name for the source we'
re creating and is used
with the AJAX control api or can be left blank to get a
generic name created in the form of 'endpointX' where 'X'
is the index of the created source from sc_trans lists.
endpointname_2=/stream.mp3


here you would provide any information to fill in details
provided to clients about the streamit us upto you what
is entered though do not do anything which will annoyetc
streamtitle
=Fyndin Og Mistok
streamurl
=http://www.fyndinogmistok.com
genre=Misc


here we specify a playlist to use as the master list from
which to play files from.
playlistfile=playlists\main.lst


these options will allow you access the admin interfaces
of sc_trans though also allows the 'testui' example to be
accessedremember to change the passwordetc as needed
adminport
=7999
adminuser
=admin
adminpassword
=******

songhistory=20
namelookups
=1


; if we want to have an intro file for when the client gets
the stream or a backup file incase of our connection to
the server failing then we can set thesethis is needed
; as we are using 'outprotocol=3' which supports this (and
is needed in place of the sc_serv defined values to work)
;
serverintrofile=<specify_intro_filepath>
;
serverbackupfile=<specify_backup_filepath


DrO 31st May 2013 11:43

what has a sc_trans config file got anything to do with sc_serv ?

dannidj 31st May 2013 11:45

Here is the right file
PHP Code:

songhistory=20
namelookups
=1
maxuser
=1000

NOTE: for any relative paths specified are relative to
sc_serv and not to where the conf file is being stored

here we will setup where the log and other related files
will be storedmake sure that these folders exist else
sc_serv will throw an error and will close itself down.
we will make the logs save to the sc_serv2 directory
logfile
=L:/SHOUTcast2/New Music Server/SHOUTcast/logs/sc_serv.log
w3clog
=logs\sc_w3c.log
banfile
=control\sc_serv.ban
ripfile
=control\sc_serv.rip


; for testing we will make the server only work locally
; (i.elocalhost 127.0.0.1though if this is left out
; or set to publicserver=always then we attempt to make a
connection to the YP for listing - do not forget to add
in a 'streamauthhash' value for any public streams made
publicserver
=always


; if you're wanting to use a different port to use for any
; connections then you can use this option e.g. to use 80
; otherwise port 8000 is used as the default to listen on.
portbase=8500

; password used by sc_trans or the Winamp dsp plug-in
; NOTE: remember to change this to something else
password=****


; password used for accessing the administation pages
; NOTE: remember to change this to something else
adminpassword=******


; now we will specify the details of the stream we'
re going
to serve which can be done as follows
streamid
=1
streampath
=/test.mp3

; or

it can be done like this which is how it needs to be done
; if you are going to provide multiple streams from sc_serv
streamid_1
=1
streampath_1
=/stream.mp3
;streamid_2=2
;streampath_2=/test2.aac 


DrO 31st May 2013 11:51

then do the same for sc_trans.

dannidj 31st May 2013 11:52

but is the config file ok if i cam gonna start anothere server?

dannidj 1st June 2013 10:18

I have tryed to have the config file like this
logfile=L:/SHOUTcast2/New Music Server/SHOUTcast/logs/sc_serv.log
but still i get this error. Wuy is that?

DrO 1st June 2013 12:35

i don't know as you keep posting the wrong information (talking about one tool and then switching to another) or just nothing of use to help determine the issue (as seems to be your style based on previous posts).

as i don't know if the paths you're specifying even exist (as the DNAS will not create folder paths so you have to ensure the folder exists) or quite how you've got things setup. or even you're setting the path to the same folder in both / all instances - every instance has to have it's OWN log file location.

so check the folder paths exist and use relative paths as i have said (unless you're running them as a daemon / service then you have to use fully qualified paths).

dannidj 1st June 2013 12:59

Whell here is the config file that's i am talking about.
PHP Code:

songhistory=20
namelookups
=1
maxuser
=1000

NOTE: for any relative paths specified are relative to
sc_serv and not to where the conf file is being stored

here we will setup where the log and other related files
will be storedmake sure that these folders exist else
sc_serv will throw an error and will close itself down.
we will make the logs save to the sc_serv2 directory
logfile
=L:/SHOUTcast2/New Music Server/SHOUTcast/logs/sc_serv.log
w3clog
=logssc_w3c.log
banfile
=controlsc_serv.ban
ripfile
=controlsc_serv.rip


; for testing we will make the server only work locally
; (i.elocalhost 127.0.0.1though if this is left out
; or set to publicserver=always then we attempt to make a
connection to the YP for listing - do not forget to add
in a 'streamauthhash' value for any public streams made
publicserver
=always


; if you're wanting to use a different port to use for any
; connections then you can use this option e.g. to use 80
; otherwise port 8000 is used as the default to listen on.
portbase=8500

; password used by sc_trans or the Winamp dsp plug-in
; NOTE: remember to change this to something else
password=****


; password used for accessing the administation pages
; NOTE: remember to change this to something else
adminpassword=******


; now we will specify the details of the stream we'
re going
to serve which can be done as follows
streamid
=1
streampath
=/test.mp3

; or

it can be done like this which is how it needs to be done
; if you are going to provide multiple streams from sc_serv
streamid_1
=1
streampath_1
=/stream.mp3
;streamid_2=2
;streampath_2=/test2.aac 

logfile=L:/SHOUTcast2/New Music Server/SHOUTcast/logs/sc_serv.log
When i do it like this i still get the same error. What am i dooing wrong?


All times are GMT. The time now is 14:43.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.