[icecast] YP submission / cURL issue. (icecast 2.0.1 / gentoo)

oddsock oddsock at oddsock.org
Wed May 26 18:30:07 PDT 2004



you can't use the IPs directly, both dir.xiph.org and www.oddsock.org are 
running as vhosts, and thus using the IP will not get you to the correct 
site...

o you have to use hostnames in the URLs...
it sounds like if you don't chroot it works and if you do it doesn't ?

I've never really run icecast using chroot, so I'm not entirely sure of all 
the stuff you need to do to make sure it works...

oddsock
At 06:26 PM 5/26/2004, you wrote:
>Yupp, same results. What else can be trying? Perms all seems a-ok, the name
>resolution issue makes me feel funny. Here's a URL to the ptrace -f of the
>non-chrooted run -- http://tinyurl.com/ytsqv ..
>
>Although, MIRACULOUSLY, non-chrooted, non-privlidged, port 8000, + DNS works?!
>Eventhough, without DNS it doesnt. As you can see! --
>
>[2004-05-26  17:10:25] INFO main/main Icecast 2.0.0 server started
>[2004-05-26  17:10:25] DBUG yp/yp_recheck_config Updating YP configuration
>[2004-05-26  17:10:25] INFO yp/yp_recheck_config Adding new YP server
>"http://198.136.36.245/cgi-bin/yp-cgi" (timeout 15s, default interval 30s)
>[2004-05-26  17:10:25] INFO yp/yp_recheck_config Adding new YP server
>"http://66.98.134.94/cgi-bin/yp-cgi" (timeout 15s, default interval 30s)
>[2004-05-26  17:10:25] INFO yp/yp_update_thread YP update thread started
>[2004-05-26  17:10:25] DBUG yp/check_servers Add pending yps
>http://66.98.134.94/cgi-bin/yp-cgi
>[2004-05-26  17:10:25] DBUG yp/check_servers Add pending yps
>http://198.136.36.245/cgi-bin/yp-cgi
>[2004-05-26  17:11:09] INFO connection/_handle_source_request Source 
>logging in
>at mountpoint "/pickert.ogg"
>[2004-05-26  17:11:09] DBUG connection/connection_complete_source sources 
>count
>is 0
>[2004-05-26  17:11:09] DBUG connection/connection_complete_source source is
>ready to start
>[2004-05-26  17:11:09] DBUG source/source_init Source creation complete
>[2004-05-26  17:11:09] DBUG yp/yp_add Adding /pickert.ogg to
>http://198.136.36.245/cgi-bin/yp-cgi
>[2004-05-26  17:11:09] DBUG yp/yp_add Adding /pickert.ogg to
>http://66.98.134.94/cgi-bin/yp-cgi
>[2004-05-26  17:11:09] DBUG yp/add_pending_yp 1 YP entries added to
>http://198.136.36.245/cgi-bin/yp-cgi
>[2004-05-26  17:11:09] DBUG yp/add_pending_yp 1 YP entries added to
>http://66.98.134.94/cgi-bin/yp-cgi
>[2004-05-26  17:11:09] EROR yp/send_to_yp YP add on
>http://198.136.36.245/cgi-bin/yp-cgi failed: (null)
>[2004-05-26  17:11:09] EROR yp/send_to_yp YP add on
>http://66.98.134.94/cgi-bin/yp-cgi failed: (null)
>
>[2004-05-26  17:23:55] DBUG yp/yp_add Adding /pickert.ogg to
>http://dir.xiph.org/cgi-bin/yp-cgi
>[2004-05-26  17:23:55] DBUG yp/yp_add Adding /pickert.ogg to
>http://www.oddsock.org/cgi-bin/yp-cgi
>[2004-05-26  17:23:55] DBUG yp/add_pending_yp 1 YP entries added to
>http://dir.xiph.org/cgi-bin/yp-cgi
>[2004-05-26  17:23:55] DBUG yp/add_pending_yp 1 YP entries added to
>http://www.oddsock.org/cgi-bin/yp-cgi
>[2004-05-26  17:23:56] DBUG yp/handle_returned_header server touch interval is
>60
>[2004-05-26  17:23:56] DBUG yp/send_to_yp YP add at
>http://dir.xiph.org/cgi-bin/yp-cgi succeeded
>[2004-05-26  17:23:56] DBUG yp/handle_returned_header server touch interval is
>60
>[2004-05-26  17:23:56] DBUG yp/send_to_yp YP add at
>http://www.oddsock.org/cgi-bin/yp-cgi succeeded
>[2004-05-26  17:24:02] DBUG yp/send_to_yp YP touch at
>http://dir.xiph.org/cgi-bin/yp-cgi succeeded
>[2004-05-26  17:24:02] DBUG yp/send_to_yp YP touch at
>http://www.oddsock.org/cgi-bin/yp-cgi succeeded
>[2004-05-26  17:24:56] DBUG yp/send_to_yp YP touch at
>http://dir.xiph.org/cgi-bin/yp-cgi succeeded
>[2004-05-26  17:24:56] DBUG yp/send_to_yp YP touch at
>http://www.oddsock.org/cgi-bin/yp-cgi succeeded
>
>Quoting oddsock <oddsock at oddsock.org>:
>
>>so have you tried running this outside the chroot jail ?
>>
>>oddsock
>>At 02:27 PM 5/26/2004, you wrote:
>>>Odd:
>>>I just pulled SVN and compiled.. Wonderful new logging code, btw!
>>>Now, why in the WORLD would the resolution be failling?! nsswitch.conf /
>>>resolv.conf / hosts is all fine.. *shrug*
>>>
>>>I can obviously put IPs instead of hosts in the URLs, however things still
>>>fail..
>>>
>>>-- Chris Pickert
>>>
>>>ldd output--
>>>ldd ./icecast
>>>         libcurl.so.2 => /usr/lib/libcurl.so.2 (0x4001f000)
>>>         libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x40049000)
>>>         libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x40078000)
>>>         libdl.so.2 => /lib/libdl.so.2 (0x4016e000)
>>>         libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x40171000)
>>>         libogg.so.0 => /usr/lib/libogg.so.0 (0x40199000)
>>>         libxslt.so.1 => /usr/lib/libxslt.so.1 (0x4019e000)
>>>         libxml2.so.2 => /usr/lib/libxml2.so.2 (0x401cf000)
>>>         libz.so.1 => /usr/lib/libz.so.1 (0x402bc000)
>>>         libpthread.so.0 => /lib/libpthread.so.0 (0x402c9000)
>>>         libm.so.6 => /lib/libm.so.6 (0x40319000)
>>>         libc.so.6 => /lib/libc.so.6 (0x4033a000)
>>>         /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
>>>
>>>equery depgraph--
>>>`-- net-misc/icecast-2.0.1
>>>  `-- sys-libs/glibc-2.3.2-r9 (virtual/glibc)
>>>  `-- dev-libs/libxml2-2.6.7
>>>  `-- dev-libs/libxslt-1.1.4
>>>  `-- media-libs/libvorbis-1.0.1-r2
>>>   `-- media-libs/libogg-1.1
>>>  `-- net-misc/curl-7.11.0
>>>
>>>
>>>DNS--
>>>[2004-05-26  19:14:42] INFO main/main Icecast 2.0.0 server started
>>>[2004-05-26  19:14:42] DBUG yp/yp_recheck_config Updating YP configuration
>>>[2004-05-26  19:14:42] INFO yp/yp_recheck_config Adding new YP server
>>>"http://dir.xiph.org/cgi-bin/yp-cgi" (timeout 15s, default interval 30s)
>>>[2004-05-26  19:14:42] INFO yp/yp_recheck_config Adding new YP server
>>>"http://www.oddsock.org/cgi-bin/yp-cgi" (timeout 15s, default interval 30s)
>>>[2004-05-26  19:14:42] INFO yp/yp_update_thread YP update thread started
>>>[2004-05-26  19:14:42] DBUG yp/check_servers Add pending yps
>>>http://www.oddsock.org/cgi-bin/yp-cgi
>>>[2004-05-26  19:14:42] DBUG yp/check_servers Add pending yps
>>>http://dir.xiph.org/cgi-bin/yp-cgi
>>>[2004-05-26  19:20:00] INFO connection/_handle_source_request Source 
>>>logging in
>>>at mountpoint "/pickert.ogg"
>>>[2004-05-26  19:20:00] DBUG connection/connection_complete_source 
>>>sources count
>>>is 0
>>>[2004-05-26  19:20:00] DBUG connection/connection_complete_source source is
>>>ready to start
>>>[2004-05-26  19:20:00] DBUG source/source_init Source creation complete
>>>[2004-05-26  19:20:00] DBUG yp/yp_add Adding /pickert.ogg to
>>>http://dir.xiph.org/cgi-bin/yp-cgi
>>>[2004-05-26  19:20:00] DBUG yp/yp_add Adding /pickert.ogg to
>>>http://www.oddsock.org/cgi-bin/yp-cgi
>>>[2004-05-26  19:20:00] DBUG yp/add_pending_yp 1 YP entries added to
>>>http://dir.xiph.org/cgi-bin/yp-cgi
>>>[2004-05-26  19:20:00] DBUG yp/add_pending_yp 1 YP entries added to
>>>http://www.oddsock.org/cgi-bin/yp-cgi
>>>[2004-05-26  19:20:00] EROR yp/send_to_yp connection to
>>>http://dir.xiph.org/cgi-bin/yp-cgi failed with "Couldn't resolve host
>>>'dir.xiph.org'"
>>>[2004-05-26  19:20:00] EROR yp/send_to_yp connection to
>>>http://www.oddsock.org/cgi-bin/yp-cgi failed with "Couldn't resolve host
>>>'www.oddsock.org'"
>>>
>>>IPs-
>>>[2004-05-26  19:23:54] INFO main/main Icecast 2.0.0 server started
>>>[2004-05-26  19:23:54] DBUG yp/yp_recheck_config Updating YP configuration
>>>[2004-05-26  19:23:54] INFO yp/yp_recheck_config Adding new YP server
>>>"http://198.136.36.245/cgi-bin/yp-cgi" (timeout 15s, default interval 30s)
>>>[2004-05-26  19:23:54] INFO yp/yp_recheck_config Adding new YP server
>>>"http://66.98.134.94/cgi-bin/yp-cgi" (timeout 15s, default interval 30s)
>>>[2004-05-26  19:23:54] INFO yp/yp_update_thread YP update thread started
>>>[2004-05-26  19:23:54] DBUG yp/check_servers Add pending yps
>>>http://66.98.134.94/cgi-bin/yp-cgi
>>>[2004-05-26  19:23:54] DBUG yp/check_servers Add pending yps
>>>http://198.136.36.245/cgi-bin/yp-cgi
>>>[2004-05-26  19:24:08] INFO connection/_handle_source_request Source 
>>>logging in
>>>at mountpoint "/pickert.ogg"
>>>[2004-05-26  19:24:08] DBUG connection/connection_complete_source 
>>>sources count
>>>is 0
>>>[2004-05-26  19:24:08] DBUG connection/connection_complete_source source is
>>>ready to start
>>>[2004-05-26  19:24:08] DBUG source/source_init Source creation complete
>>>[2004-05-26  19:24:08] DBUG yp/yp_add Adding /pickert.ogg to
>>>http://198.136.36.245/cgi-bin/yp-cgi
>>>[2004-05-26  19:24:08] DBUG yp/yp_add Adding /pickert.ogg to
>>>http://66.98.134.94/cgi-bin/yp-cgi
>>>[2004-05-26  19:24:09] DBUG yp/add_pending_yp 1 YP entries added to
>>>http://198.136.36.245/cgi-bin/yp-cgi
>>>[2004-05-26  19:24:09] DBUG yp/add_pending_yp 1 YP entries added to
>>>http://66.98.134.94/cgi-bin/yp-cgi
>>>[2004-05-26  19:24:09] EROR yp/send_to_yp YP add on
>>>http://198.136.36.245/cgi-bin/yp-cgi failed: (null)
>>>[2004-05-26  19:24:09] EROR yp/send_to_yp YP add on
>>>http://66.98.134.94/cgi-bin/yp-cgi failed: (null)
>>>
>>>
>>>Quoting oddsock <oddsock at oddsock.org>:
>>>
>>>>At 11:24 PM 5/25/2004, you wrote:
>>>>>Hello All:
>>>>>
>>>>>   I'm having troubles getting my YP submissions to go up correctly,
>>>>>unfortunately there's not much I've been able to find. I'm getting 
>>>>>NACK back
>>>>>from the yp_add call, I've tried two different versions of 
>>>>>cURL/libcURL on my
>>>>>gentoo box to see if it was that, no luck. I've also replicated the 
>>>>>problem
>>>>>onto another gentoo box of mine and the exact same NACK/no request go 
>>>>>out. The
>>>>>deps/build should be almost identical, however -- as I rsync / 
>>>>>recompile my
>>>>>systems every 2-3 days. I've also had tcpdump running to see if 
>>>>>anything is
>>>>>generated, nope. Any existing docs/urls that might help me out would 
>>>>>be greatly
>>>>>appreciated but this doesn't appear to be standard operating 
>>>>>procedure. It does
>>>>>run as a 'chroot', would this break things?! What sort of cURL stuff 
>>>>>can I test
>>>>>to make sure IT works?
>>>>
>>>>since your not seeing any traffic in the tcpdump, it would seem that your
>>>>server is not even getting to contact the YP server at all.  ALthough from
>>>>your log it looks like it's trying to at least.  We've recently rewritten
>>>>the YP logic (in response to some periodic issues that were possible under
>>>>certain circumstances - none of which you actually are running into) and
>>>>added a bit better log messages as to what's happening when something goes
>>>>wrong (such as in this case).   So, I would suggest trying to run our
>>>>current Subversion version (I can create a snapshot if need be) and see if
>>>>you get any more messages that indicate what's happening...
>>>>
>>>>and while I don't know of any reason that chroot could affect the YP, have
>>>>you tried running it in a non-chrooted jail ?
>>>>
>>>>oddsock
>>>>
>>>>
>>>>--- >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 at xiph.org'
>>>>containing only the word 'unsubscribe' in the body.  No subject is needed.
>>>>Unsubscribe messages sent to the list will be ignored/filtered.
>>>
>>>
>>>--- >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 at xiph.org'
>>>containing only the word 'unsubscribe' in the body.  No subject is needed.
>>>Unsubscribe messages sent to the list will be ignored/filtered.
>>
>>
>>--- >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 at xiph.org'
>>containing only the word 'unsubscribe' in the body.  No subject is needed.
>>Unsubscribe messages sent to the list will be ignored/filtered.
>
>
>--- >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 at 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 at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Icecast mailing list