Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

directory listing problem

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
acidrain97



Joined: 01 Jan 2010
Posts: 14

PostPosted: Fri Jan 01, 2010 3:57 pm    Post subject: directory listing problem Reply with quote

can someone helpme with finding out why i'm not getting listed on the icecast directory.

compiled with libcurl. using version 7.15

(curl --version)

here is my config file I'm new so excuse me for being stupid. I'm sure it can be cut down for now it is what it is.

<icecast>
<limits>
<clients>100</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<burst-on-connect>1</burst-on-connect>
<burst-size>65535</burst-size>
</limits>

<authentication>
<!-- Sources log in with username 'source' -->
<source-password>xxx</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>xxx</relay-password>

<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>xxx</admin-password>
</authentication>

<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>


<!-- This is the hostname other people will use to connect to your server.
It affects mainly the urls generated by Icecast for playlists and yp
listings. -->
<hostname>mydomain.info</hostname>

<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>8000</port>
<!-- <bind-address>127.0.0.1</bind-address> -->
<!-- <shoutcast-mount>/stream</shoutcast-mount> -->
</listen-socket>
<!--
<listen-socket>
<port>8001</port>
</listen-socket>
-->

<mount>
<mount-name>/128stream</mount-name>
<password>xxx</password>
<max-listeners>100</max-listeners>
<burst-size>65536</burst-size>
<fallback-mount>/example2.ogg</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
<hidden>0</hidden>
<public>1</public>
<on-connect>/home/icecast/bin/stream-start</on-connect>
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
</mount>



<fileserve>1</fileserve>

<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/local/share/icecast</basedir>

<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>/usr/local/var/log/icecast</logdir>
<webroot>/usr/local/share/icecast/web</webroot>
<adminroot>/usr/local/share/icecast/admin</adminroot>
<!-- <pidfile>/usr/local/share/icecast/icecast.pid</pidfile> -->

<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
and "bind-address" attributes.
-->
<!--
<alias source="/foo" dest="/bar"/>
-->
<!-- Aliases: can also be used for simple redirections as well,
this example will redirect all requests for http://server:port/ to
the status page
-->
<alias source="/" dest="/status.xsl"/>
</paths>

<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>1</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
<!-- If logarchive is enabled (1), then when logsize is reached
the logfile will be moved to [error|access|playlist].log.DATESTAMP,
otherwise it will be moved to [error|access|playlist].log.old.
Default is non-archive mode (i.e. overwrite)
-->
<!-- <logarchive>1</logarchive> -->
</logging>

<security>
<chroot>0</chroot>

<changeowner>
<user>nobody</user>
<group>nogroup</group>
</changeowner>

</security>
</icecast>


is this even setup properly???

thanx
-ACiD
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jan 01, 2010 4:13 pm    Post subject: Reply with quote

looks like it, maybe you should try to increase the log level if there are no useful messages in the error log. icecast does wait for about a minute to do the initial add onto the directory, but you should see messages from the yp engine if the log level is high enough.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
acidrain97



Joined: 01 Jan 2010
Posts: 14

PostPosted: Fri Jan 01, 2010 5:18 pm    Post subject: Reply with quote

i changed the logs to 4 increased the file length and so far i see no mention of icecast directory listenings. I checked the server stats and it is public.

I have pinged http://dir.xiph.org/cgi-bin/yp-cgi and that works.

I am very confused on how this works. How do i verify that i compiled icecast with the libcurl? as far as i know it's installed. I'm assuming curl -v is using the libcurl library file?

i checked the server status public = 1

Is there something else i need to look for?
is the config file correct? I know it's a mess but i need a working config file then i can clean it up.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jan 01, 2010 6:31 pm    Post subject: Reply with quote

If icecast has been built without libcurl support and a directory is configured then you will see a warning in the error log about it. if it has been built then you should see the directory url being added to the yp engine. as soon as the server starts. Just for information, curl is a utility that uses libcurl to performs the actions requested.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
acidrain97



Joined: 01 Jan 2010
Posts: 14

PostPosted: Fri Jan 01, 2010 7:11 pm    Post subject: ... Reply with quote

I went back and recompiled icecast. after looking at it curl was not compiled with icecast. Since curl works then one would assume that libcurl is installed. How can i verify this? I am using centos 5.2 if that makes a difference.

thanx
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jan 01, 2010 7:28 pm    Post subject: Reply with quote

you may have the prebuilt runtime libcurl, but if you are to build icecast with any library then you need the development packages as well. It is mentioned in the documentation. libcurl-devel ?

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
acidrain97



Joined: 01 Jan 2010
Posts: 14

PostPosted: Fri Jan 01, 2010 8:09 pm    Post subject: Reply with quote

maybe you can help me find this stuff

root@server [/shit]# rpm -ivh --force libcurl4-7.19.7-1.i386.rpm
error: Failed dependencies:
libcom_err.so.3 is needed by libcurl4-7.19.7-1.i386
libcrypto.so.2 is needed by libcurl4-7.19.7-1.i386
liblber.so.2 is needed by libcurl4-7.19.7-1.i386
libldap.so.2 is needed by libcurl4-7.19.7-1.i386
libsasl.so.7 is needed by libcurl4-7.19.7-1.i386
libssl.so.2 is needed by libcurl4-7.19.7-1.i386
tried installing the current version of libcurl and these are the errors i get.

where do you get these files??? is there a centos repo i can get these from??

thanx
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jan 01, 2010 8:15 pm    Post subject: Reply with quote

with centos being rpm based, you should be able to use yum install libcurl-devel. if you start installing rpms from other repositories then you may very well get into issues of compatible dependencies.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
acidrain97



Joined: 01 Jan 2010
Posts: 14

PostPosted: Fri Jan 01, 2010 8:40 pm    Post subject: Reply with quote

tried that nada... says nothing to do

since i am using the stock yum repos are there ones that contain libcurl-devel?
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jan 01, 2010 9:02 pm    Post subject: Reply with quote

try libcurl4-devel then, the exact name can vary between distributions.

yum search libcurl should give you a list of possible packages.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
acidrain97



Joined: 01 Jan 2010
Posts: 14

PostPosted: Fri Jan 01, 2010 9:28 pm    Post subject: Reply with quote

yum install libcurl4-devel does nothing


yum search libcurl does this

root@server [/rpm]# yum search libcurl
Loading "fastestmirror" plugin
Loading "priorities" plugin
Loading mirror speeds from cached hostfile
* rpmforge: fr2.rpmfind.net
* base: mirror.ash.fastserv.com
* updates: ftp.lug.udel.edu
* c5-testing: dev.centos.org
* addons: centos.secsup.org
* extras: hpc.arc.georgetown.edu
Excluding Packages in global exclude list
Finished
fuse-curlftpfs.i386 : FUSE filesystem for accessing FTP hosts using libcurl
curl-devel.i386 : Files needed for building applications with libcurl.
flickcurl.i386 : C library for the Flickr API and utility programs
curl-devel.i386 : Files needed for building applications with libcurl.
python-curl.i386 : Python interface to libcurl
python-curl.i386 : Python interface to libcurl
fuse-curlftpfs.i386 : FUSE filesystem for accessing FTP hosts using libcurl
flickcurl.i386 : C library for the Flickr API and utility programs

installed all packages. I still can't install libcurl still getting these errors
root@server [/rpm]# rpm -ivh --force libcurl4-7.19.7-1.i386.rpm
error: Failed dependencies:
libcrypto.so.2 is needed by libcurl4-7.19.7-1.i386
liblber.so.2 is needed by libcurl4-7.19.7-1.i386
libldap.so.2 is needed by libcurl4-7.19.7-1.i386
libsasl.so.7 is needed by libcurl4-7.19.7-1.i386
libssl.so.2 is needed by libcurl4-7.19.7-1.i386

Does it matter if i'm running cpanel? could that be the problem?

there has to be a easier way to do this.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Jan 01, 2010 9:49 pm    Post subject: Reply with quote

there it is in the list, yum install curl-devel

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
acidrain97



Joined: 01 Jan 2010
Posts: 14

PostPosted: Fri Jan 01, 2010 10:44 pm    Post subject: Reply with quote

ok recompiled someway somehow it works. now where did the icecast bin file go? because i want to put it on my own linux box assuming i can do that.

thanx
Back to top
View user's profile Send private message
acidrain97



Joined: 01 Jan 2010
Posts: 14

PostPosted: Sat Jan 02, 2010 12:05 am    Post subject: Reply with quote

ok after much tinkering got it to work... after all that

yum install libvorbis-devel speex-devel libtheora-devel libxslt-devel curl-devel

rpm -ivh --force libxml2-2.6.26-2.1.2.8.i386.rpm
rpm -ivh --force libxml2-devel-2.6.26-2.1.2.8.i386.rpm

i guess that is the easy way to make this sucker compile in centos.... for what ever reason i have to reload the libxm2 library otherwise i get a compiling error...

to much work man.... then again i suck at linux. this is how i learn the hard way
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber