On 19 Jun 2003 at 12:20, oddsock wrote:> a couple things here....in most cases the icecast2 server will remove > itself gracefully from the YP...if for some reason, it is killed > manually, then it may not do so...I have a cron job which runs every 5 > minutes which goes in and cleans out any server that hasn't touched in > a 5 minute period....so if your icecast2 server is forced down and > doesn't successfully remove itself from the YP,. then for the next 5 > minutes or so you should see the error message (Server already exists) > with the NAK (as you see in your log)...Eventually, the clean script > will run and will clean up your stale entry and icecast2 is configured > to keep trying to do the yp-add until it's successful...so after about > 5 minutes of NAKs, you should then be able to list again. > > so thats the way it's supposed to work, and I just checked the DB, and > there are no stale entries, so you shouldn't be getting the "Server > already exists" message anymore, although clearly, according to your > logs, you are...so can you send me the Server NAme you are using (this > is specified in the source client) ? Feel free to send me the info to > oddsock@oddsock.org.maybe if someone from the same IP tries to add a server to the list with same URL you could drop the old entry and list the new one "ad hoc"? Just a thought ... Stefan --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On 19 Jun 2003 at 16:11, Dave St John wrote:> > maybe if someone from the same IP tries to add a server to the list > > with same URL you could drop the old entry and list the new one "ad > > hoc"? > or list them as a cluster, if the other mount is still active.Well, know. If they are a cluster then the streamer itself needs to provide e.g. the same password and so on to enable listing as a cluster. But if they have both the same streaming URL and request comes from the same IP you can be really sure they are the same server. Otherwise, if they come from different IPs but with same URL, somebody would have the ability to list your server on the YP himself and change your "currently playing" etc. Right? Hmm - any suggestions? Oddsock? Stefan --- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> maybe if someone from the same IP tries to add a server to the list > with same URL you could drop the old entry and list the new one "ad > hoc"?or list them as a cluster, if the other mount is still active. <p>Dave St John Mediacast1 Administration (720) 641-7586 ----- Original Message ----- From: "Stefan Neufeind" <stefan@neufeind.net> To: <icecast@xiph.org> Sent: Thursday, June 19, 2003 12:06 PM Subject: Re: [icecast] Runaway icecast again (more YP issues) <p>> On 19 Jun 2003 at 12:20, oddsock wrote:> > > a couple things here....in most cases the icecast2 server will remove > > itself gracefully from the YP...if for some reason, it is killed > > manually, then it may not do so...I have a cron job which runs every 5 > > minutes which goes in and cleans out any server that hasn't touched in > > a 5 minute period....so if your icecast2 server is forced down and > > doesn't successfully remove itself from the YP,. then for the next 5 > > minutes or so you should see the error message (Server already exists) > > with the NAK (as you see in your log)...Eventually, the clean script > > will run and will clean up your stale entry and icecast2 is configured > > to keep trying to do the yp-add until it's successful...so after about > > 5 minutes of NAKs, you should then be able to list again. > > > > so thats the way it's supposed to work, and I just checked the DB, and > > there are no stale entries, so you shouldn't be getting the "Server > > already exists" message anymore, although clearly, according to your > > logs, you are...so can you send me the Server NAme you are using (this > > is specified in the source client) ? Feel free to send me the info to > > oddsock@oddsock.org. > > maybe if someone from the same IP tries to add a server to the list > with same URL you could drop the old entry and list the new one "ad > hoc"? > > Just a thought ... > Stefan > --- >8 ---- > List archives: http://www.xiph.org/archives/ > icecast project homepage: http://www.icecast.org/ > To unsubscribe from this list, send a message to'icecast-request@xiph.org'> containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered. ><p>--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.