PDA

View Full Version : shoutcast server on redhat7.2 not working


Joan Garnet
23rd April 2003, 21:18
Hi all,
I have searched and tried many things, but I can't get it to work...
These are my logs:


<04/23/03@16:57:58> [SHOUTcast] DNAS/Linux v1.9.2 (Nov 25 2002) starting up...
<04/23/03@16:57:58> [main] pid: 1464
<04/23/03@16:57:58> [main] loaded config from sc_serv.conf
<04/23/03@16:57:58> [main] initializing (usermax:32 portbase:8000)...
<04/23/03@16:57:58> [main] No ban file found (sc_serv.ban)
<04/23/03@16:57:58> [main] No rip file found (sc_serv.rip)
<04/23/03@16:57:58> [main] opening source socket
<04/23/03@16:57:58> [main] source thread starting
<04/23/03@16:57:58> [main] opening client socket
<04/23/03@16:57:58> [main] Client Stream thread [0] starting
<04/23/03@16:57:58> [main] client main thread starting
<04/23/03@16:57:58> [source] listening for connection on port 8001
<04/23/03@17:00:45> [dest: 62.57.5.187] server unavailable, disconnecting
<04/23/03@17:05:15> [main] SIGHUP; Flushing Log Files
<04/23/03@17:17:38> [SHOUTcast] DNAS/Linux v1.9.2 (Nov 25 2002) starting up...
<04/23/03@17:17:38> [main] pid: 1524
<04/23/03@17:17:38> [main] loaded config from sc_serv.conf
<04/23/03@17:17:38> [main] initializing (usermax:32 portbase:8000)...
<04/23/03@17:17:38> [main] Listener Max Connect of (600) Minutes, set.
<04/23/03@17:17:38> [main] No ban file found (sc_serv.ban)
<04/23/03@17:17:38> [main] No rip file found (sc_serv.rip)
<04/23/03@17:17:38> [main] opening source socket
<04/23/03@17:17:38> [main] error opening source socket! FATAL ERROR! Some other process is using this port!
<04/23/03@17:18:04> [dest: 62.57.5.187] server unavailable, disconnecting
<04/23/03@17:18:09> [dest: 62.57.5.187] server unavailable, disconnecting
<04/23/03@17:21:15> [dest: 62.57.5.187] server unavailable, disconnecting
<04/23/03@17:34:23> [SHOUTcast] DNAS/Linux v1.9.2 (Nov 25 2002) starting up...
<04/23/03@17:34:23> [main] pid: 1541
<04/23/03@17:34:23> [main] loaded config from sc_serv.conf
<04/23/03@17:34:23> [main] initializing (usermax:32 portbase:8000)...
<04/23/03@17:34:23> [main] Listener Max Connect of (600) Minutes, set.
<04/23/03@17:34:23> [main] No ban file found (sc_serv.ban)
<04/23/03@17:34:23> [main] No rip file found (sc_serv.rip)
<04/23/03@17:34:23> [main] opening source socket
<04/23/03@17:34:23> [main] error opening source socket! FATAL ERROR! Some other process is using this port!


The rest is the same...
My host is not 62.57.5.187 as it is shown in the log above.. weird..

Then, looking at the log I can see:
Some other process is using this port!
but if I ps I get this services running:

bash-2.05$ ps
PID TTY TIME CMD
1493 pts/1 00:00:00 bash
1722 pts/1 00:00:00 ps

It doesn't ring a bell to me...
Then I can't get in the admin section via browser neither, I'm asked to type a login, and I only know about a password, which I wrote when I edited the sc_serv.conf file.
When I go to my URL I can see
Server Status: Server is currently down

If you want to have a look:
http://pc-midi-shop.com:8000/

Any help will be very appreciated.
ThanX!

DJHotIce
23rd April 2003, 21:37
are the correct ports open, as in when your using a router, also make sure ports are open on the firewall you may be running

Joan Garnet
24th April 2003, 10:00
Hi,
tahnx for your quick reply.
My firewall is not affecting to that port..
Maybe I should create a new "Extended Internet Service" pointing to my_path/sc.serv ??
I disconnected the sc.serv process, ( well, I actually had many of them running ) sending a TERM signal. Now all of them have changed from ./sc.serv to /sbin/mingetty tty1, /sbin/mingetty tty2 .... to /sbin/mingetty tty6 and one of them (the one which I sended the signal to) /sbin/agetty -L 9600 ttyS0 vt100.
They did not consume CPU, but they did consume some memory.

I'm completely lost :)
What should I do?
ThanX for your time!

Jay
24th April 2003, 10:46
Just make sure the sc_serv processes are killed, easy way to do this is to look through the log, the log displays the pid for that instance of shoutcast, kill -TERM <PID> or kill <pid> should work fine for doing this. After that start the sc_serv process in the background usually ./sc_serv & then connect a source, the admin page will say that the server is down cause no source is connected to it, once a source is connected it will be running fine. The username is "admin" without the quotes and the password is the password you set in the config file.

Joan Garnet
24th April 2003, 12:22
Ok,
I can get in the admin section, which is at least something :)
But It's still not working..
I have re-read the .conf file many times and I can't find why is not working.
I did assign a path to the songs directory (I uncommented the default one) and set permissions to 755 in that dir.

This is my last log:


<04/24/03@09:14:57> [SHOUTcast] DNAS/Linux v1.9.2 (Nov 25 2002) starting up...
<04/24/03@09:14:57> [main] pid: 3217
<04/24/03@09:14:57> [main] loaded config from sc_serv.conf
<04/24/03@09:14:57> [main] initializing (usermax:32 portbase:8000)...
<04/24/03@09:14:57> [main] Listener Max Connect of (600) Minutes, set.
<04/24/03@09:14:57> [main] No ban file found (sc_serv.ban)
<04/24/03@09:14:57> [main] No rip file found (sc_serv.rip)
<04/24/03@09:14:57> [main] opening source socket
<04/24/03@09:14:57> [main] source thread starting
<04/24/03@09:14:57> [main] opening client socket
<04/24/03@09:14:57> [main] Client Stream thread [0] starting
<04/24/03@09:14:57> [main] client main thread starting
<04/24/03@09:14:57> [source] listening for connection on port 8001
<04/24/03@09:25:13> [dest: 62.57.5.187] server unavailable, disconnecting
<04/24/03@09:27:44> [dest: 62.57.5.187] server unavailable, disconnecting
<04/24/03@09:33:25> [dest: 62.57.5.187] server unavailable, disconnecting


As I can see in this log when it tries to connect to the IP 62.57.5.187 (which is localhost) it founds that is unavailable.
Is there anything I'm missing??
Maybe it has something to do with this part of the readme which I don't undersand:
Make certain the server is chmod u+x

I can see my Shout Cast black page, get in the admin section and see the logs.
The only thing is that I can't hear the music :D

ThanX

Jay
24th April 2003, 15:16
ummm you need to source your server, shoutcast does not source itself. you are confusing on-demand with a source. You are going to use Winamp or sc_trans_lame (for linux) to source your server.

Joan Garnet
24th April 2003, 15:38
Ok,
I have found a couple of posts in this forum that helped a lot.

http://forums.winamp.com/showthread.php?s=&threadid=85753&highlight=sctranslame

http://forums.winamp.com/showthread.php?s=&threadid=131220&highlight=sctranslame

Now I know what "source you server" means :)

But one thing before I try to install the DNAS audio server...
- My users use Windows
What do you recommend me ??
Any step that could be tricky ??

ThanX for your support!

Jay
24th April 2003, 20:38
if you want to use windows then just use winamp to source the server.

Joan Garnet
24th April 2003, 21:38
Hi,
well, my server is Linux, so I downloaded the sc_trans_040, read the instructions, installed it and tried again, but it seems like I'm kind of silly boy :D

I can't get it to work :(

I tell you what I've done.
First I put the sc_trans_040 directory in the one sc_serv is.
I created the playlist with the find command
find /path/to/mp3/directory -type f -name "*.mp3" > playlist_filename.lst
and as I've seen it worked out. I've got the full path to all my songs.
Ok, then I changed all things I was asked to change in the sc_trans.conf file.
There's only one thing I did not understand:

# on linux, you may specify a playlist item of DSP:/dev/soundcard, where soundcard
# is the name of your audio device. It's usually /dev/audio. doing so will allow
# you to broadcast from a line input feed instead of mp3s on disk.


I'm still missing something and you provably have all answers ;)
p.s. do I need to install winamp on my server ?? ...just in case.

ThanX !

Jay
25th April 2003, 03:36
all that is saying is you have the option of recording a signal from your soundcard rather then mp3 files, you most likely don't want to do that. Winamp will not install on linux. Winamp is currently only a windows application.

Joan Garnet
25th April 2003, 18:12
ok then,
I already sourced my server, but I'm not sure I did it correctly, because it's still not working...
Is it that difficult or it's me ??

What else should I do now?
I can't figure out why I still can't hear nor see any song from my server.
I really tried to followed all steps, and searched for documentation, but still don't get it..

I nearly got it.
server, sources, mp3... what else do I need??

Thank you !!

Joan Garnet
27th April 2003, 13:38
Well,
I have read the documentation and then re-read it again.
But ca't get it to work ...

looking at the log file I don't see why:


<04/27/03@10:22:11> [SHOUTcast] DNAS/Linux v1.9.2 (Nov 25 2002) starting up...
<04/27/03@10:22:11> [main] pid: 13472
<04/27/03@10:22:11> [main] loaded config from sc_serv.conf
<04/27/03@10:22:11> [main] initializing (usermax:32 portbase:8000)...
<04/27/03@10:22:11> [main] Listener Max Connect of (600) Minutes, set.
<04/27/03@10:22:11> [main] No ban file found (sc_serv.ban)
<04/27/03@10:22:11> [main] No rip file found (sc_serv.rip)
<04/27/03@10:22:11> [main] opening source socket
<04/27/03@10:22:11> [main] source thread starting
<04/27/03@10:22:11> [main] opening client socket
<04/27/03@10:22:11> [main] Client Stream thread [0] starting
<04/27/03@10:22:11> [main] client main thread starting
<04/27/03@10:22:11> [source] listening for connection on port 8001
<04/27/03@10:29:59> [main] SIGHUP; Flushing Log Files


If anyone see something that rings a bell I would appreciate your suggestions.
Thank you !