my SourceBackup (a relay) stopped working.

Steamcast is a stand alone server that combines the features of SHOUTcast and Icecast2 and more to make one mega awesome server.
Post Reply
Lane
Posts: 154
Joined: Mon May 09, 2005 4:16 pm

my SourceBackup (a relay) stopped working.

Post by Lane »

After moving steamcast to my new server (RedHat Enterprise 3), it doesn't take the sourcebackup anymore. Has anyone else observed this?

If you feel like trying to connect, it's http://mybeausejour.com:8500

Code: Select all

PortBase=8500
MaxUser=20
LogFile=king.log
ScreenLog=Yes
RealtimeLog=Yes
YPLog=No
PidFile=king.pid
NameLookups=No
ClientTimeout=5

AdminUser=###
AdminPass=###

SourceMount=/king.aacp
SourceBackup=/knight.aacp
SourceUser=###
SourcePass=###
SourceUserMax=20
; SourceAvgBitrateLimit=128
SourceIsSC=Yes
SourceIsDefault=Yes
; SourceIP=123.45.67.89
; SourceAuth=No
SourceBuffUtil=0

SourceMount=/knight.aacp
; SourceBackup=/24.mp3
SourceUser=###
SourcePass=###
SourceUserMax=20
SourceRelay=localhost:8600/knight.aacp
; SourceAvgBitrateLilmit=128
SourceIsSC=Yes
SourceIsDefault=No
; SourceIP=
; SourceAuth=No
SourceBuffUtil=0
This exact config file used to work on the older redhat server (7.3). I couldn't imagine anything different on the new server that would cause this, but I'm no C programmer.

I'm a wee confused.

btw, this is AAC+ using the newest shoutcast dsp. I also tried it with mp3, and got the same result. (The config had mp3 for mounts in that case).
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

does the sourcebackup just not take effect when you disconnect your source or is there some error you get when starting steamcast?
- Jay
Lane
Posts: 154
Joined: Mon May 09, 2005 4:16 pm

Post by Lane »

Here's the log. The backup source was already running when this one was started.

Code: Select all

[1] 24280
/**************************************************/
/** Steamcast Distributed Network Multimedia Server/0.9.73 beta (Linux)
/** Written by: Jay Krivanek
/** www.steamcast.com/
/** NOTE:Use of this program indicates that you
/** have agreed to the license contained in the
/** README.txt file.
/**************************************************/

Event Log:
[09/21/2005@08:43:12] Configuration loaded from aac/king.conf
[09/21/2005@08:43:12] WARNING: steamcast.vip could not be loaded, no vips will be loaded
[09/21/2005@08:43:12] WARNING: steamcast.ban could not be loaded, no bans will be loaded
[09/21/2005@08:43:12] Listening to ANY:8500 for incoming client connections...
[09/21/2005@08:43:12] Starting Thread pool of 5 threads...
[09/21/2005@08:43:12] Listening to ANY:8501 for incoming source connections...
[09/21/2005@08:43:12] Listening to 8500 for incoming stat connections...
[09/21/2005@08:43:12] Relay thread created #1
[09/21/2005@08:43:12] PID: 24280
[09/21/2005@08:43:12] MetaInt: 16384
[09/21/2005@08:43:12] Name:CJAX AAC+; Genre:Rock | Pop | Folk | Comedy
[09/21/2005@08:43:12] Public:1; Bitrate:48; URL:mybeausejour.com:8000
[09/21/2005@08:43:12] Content-Type: audio/aacp
[09/21/2005@08:43:12] Starting YP Services...
[09/21/2005@08:43:21] <127.0.0.1> No Source on /king.aacp
[09/21/2005@08:43:31] <127.0.0.1> No Source on /king.aacp
[09/21/2005@08:43:41] <127.0.0.1> No Source on /king.aacp
[09/21/2005@08:43:51] <127.0.0.1> No Source on /king.aacp
[09/21/2005@08:44:01] <127.0.0.1> No Source on /king.aacp
[09/21/2005@08:44:11] <127.0.0.1> No Source on /king.aacp
[09/21/2005@08:44:14] Source attempting connection from x.x.x.x.
[09/21/2005@08:44:14] Source 0 Logged in
[09/21/2005@08:44:14] Name:CJAX AAC+; Genre:Rock | Pop | Folk | Comedy
[09/21/2005@08:44:14] Public:1; Bitrate:48; URL:http://www.mybeausejour.com:8000
[09/21/2005@08:44:14] Content-Type: audio/aacp
[09/21/2005@08:44:14] Source Connection Complete
[09/21/2005@08:44:14] Starting YP Services...
[09/21/2005@08:44:15] <207.200.98.2> Connection Opened (A: 207.44.206.52:8500/) [L: 1] {UA: SHOUTcast Directory Tester}
[09/21/2005@08:44:21] <127.0.0.1> Connection Opened (A: 127.0.0.1:8500/king.aacp) [L: 2] {UA: Steamcast D.N.M.S./0.9.73 beta (Linux)(SHOUTcast compatible)}
[09/21/2005@08:44:25] <207.200.98.2> Request: / {UA: Mozilla}
[09/21/2005@08:44:27] <yp.shoutcast.com> added me successfully! (id: 153725765 | tchfrq: 3)
[09/21/2005@08:44:28] <207.200.98.2> Connection Closed [L: 1] {245760 bytes} (14 secs) RE: Broken pipe
[09/21/2005@08:44:56] Source Closed Connection
[09/21/2005@08:44:58] <yp.shoutcast.com> removed me!
[09/21/2005@08:45:57] <127.0.0.1> Connection Closed [L: 0] {213005 bytes} (96 secs) RE: No Data Flow Timeout
[09/21/2005@08:46:07] <127.0.0.1> No Source on /king.aacp
[09/21/2005@08:46:17] <127.0.0.1> No Source on /king.aacp
[09/21/2005@08:46:27] <127.0.0.1> No Source on /king.aacp
You see how it says no source. I then connect to the first source, which works fine. Then I disconnect at 08:44:56. A minute later it reports connection closed, no data flow timeout. Then it's back to reporting no source.

edit: I should that the source backup shows up on the status page, it's just not operating as a backup for the first mount. i.e. when I connected to http://mybeausejour.com:8500/king.aacp, I don't get the backup, which is /knight.aacp.
Lane
Posts: 154
Joined: Mon May 09, 2005 4:16 pm

Post by Lane »

*bump*

I still haven't been able to get this to work. Have you noticed anything wrong in the config I posted?
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

hmm that is strange. It seems that fedora and the later red hats are having some difficulty with some of the steamcast feature. I may do a build seperate for just fedora.

I don't have an RH Enterprise system to do any tests on unfortunately so once I have a build for fedora you could try that out.
- Jay
Lane
Posts: 154
Joined: Mon May 09, 2005 4:16 pm

Post by Lane »

will do.

I'll be happy to test it on E3 once you've released it for Fedora.
Lane
Posts: 154
Joined: Mon May 09, 2005 4:16 pm

Post by Lane »

just some FYI. It seems my server hung up last night (redhat E3). I went looking for why in /var/log/messages, and I found this:

Code: Select all

Sep 25 04:14:40 bella kernel: Mem-info:
Sep 25 04:14:40 bella kernel: Zone:DMA freepages:  2932 min:     0 low:     0 high:     0
Sep 25 04:14:40 bella kernel: Zone:Normal freepages:   779 min:   766 low:  4031 high:  5791
Sep 25 04:14:40 bella kernel: Zone:HighMem freepages:   254 min:   255 low:   510 high:   765
Sep 25 04:14:40 bella kernel: Free pages:        3965 (   254 HighMem)
Sep 25 04:14:40 bella kernel: ( Active: 204855/147, inactive_laundry: 0, inactive_clean: 40, free: 3965 )
Sep 25 04:14:40 bella kernel:   aa:0 ac:0 id:0 il:0 ic:0 fr:2932
Sep 25 04:14:40 bella kernel:   aa:175408 ac:1763 id:147 il:0 ic:40 fr:779
Sep 25 04:14:40 bella kernel:   aa:27443 ac:241 id:0 il:0 ic:0 fr:254
Sep 25 04:14:40 bella kernel: 4*4kB 2*8kB 5*16kB 3*32kB 2*64kB 1*128kB 2*256kB 1*512kB 0*1024kB 1*2048kB 2*4096kB = 11728kB)
Sep 25 04:14:40 bella kernel: 35*4kB 84*8kB 66*16kB 11*32kB 12*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 3116kB)
Sep 25 04:14:40 bella kernel: 30*4kB 2*8kB 1*16kB 1*32kB 1*64kB 2*128kB 2*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1016kB)
Sep 25 04:14:40 bella kernel: Swap cache: add 23309136, delete 23308625, find 187010153/196713067, race 0+9
Sep 25 04:14:41 bella kernel: 40445 pages of slabcache
Sep 25 04:14:41 bella kernel: 474 pages of kernel stacks
Sep 25 04:14:41 bella kernel: 0 lowmem pagetables, 4284 highmem pagetables
Sep 25 04:14:41 bella kernel: Free swap:            0kB
Sep 25 04:14:42 bella kernel: 262128 pages of RAM
Sep 25 04:14:42 bella kernel: 32752 pages of HIGHMEM
Sep 25 04:14:43 bella kernel: 5780 reserved pages
Sep 25 04:14:43 bella kernel: 10389 pages shared
Sep 25 04:14:43 bella kernel: 511 pages swap cached
Sep 25 04:14:44 bella kernel: Out of Memory: Killed process 26685 (steamcast).
Sep 25 04:14:44 bella kernel: Out of Memory: Killed process 26684 (steamcast).
Sep 25 04:14:44 bella kernel: Out of Memory: Killed process 26685 (steamcast).
Sep 25 04:14:45 bella kernel: Out of Memory: Killed process 26686 (steamcast).
Sep 25 04:14:45 bella kernel: Out of Memory: Killed process 26687 (steamcast).
Sep 25 04:14:45 bella kernel: Out of Memory: Killed process 26688 (steamcast).
Sep 25 04:14:46 bella kernel: Out of Memory: Killed process 26689 (steamcast).
Sep 25 04:14:46 bella kernel: Out of Memory: Killed process 26701 (steamcast).
Sep 25 04:14:46 bella kernel: Out of Memory: Killed process 26702 (steamcast).
Sep 25 04:14:47 bella kernel: Out of Memory: Killed process 26703 (steamcast).
Sep 25 04:14:47 bella kernel: Out of Memory: Killed process 26716 (steamcast).
Sep 25 04:14:47 bella kernel: Out of Memory: Killed process 15381 (steamcast).
Sep 25 04:14:47 bella kernel: Out of Memory: Killed process 29056 (steamcast).
Sep 25 04:14:48 bella kernel: Out of Memory: Killed process 14326 (steamcast).
Sep 25 04:14:48 bella kernel: Out of Memory: Killed process 15188 (steamcast).
Sep 25 04:14:49 bella kernel: Out of Memory: Killed process 32301 (steamcast).
It does that a few times in a cycle.

It had no sources connected to it for at least the last day. The steamcast logs had nothing other than the usual blurbs about no source. They stop when the processes got killed, as would be expected. It had been running just under 4 days in total, with a couple of connects on the first day.

I haven't invested further, but I thought I mention this, and show you the logs. I'm a little surprised actually, as I let it run for weeks/months on my older redhat 7.3.
Post Reply