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 

Authentication can't resolve host

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



Joined: 03 Jun 2011
Posts: 2

PostPosted: Fri Jun 03, 2011 6:37 pm    Post subject: Authentication can't resolve host Reply with quote

I am trying to use the url authentication method but am having trouble getting icecast to work on a Debian installation on a VPS platform.

I have logged in my VPS as root and installed icecast using

apt-get install icecast2
setup the config file and then set ENABLE=true in /etc/init.d/icecast2

This initialy didn't work as it couldn't access log files and then had trouble with the graphics on the admin pages.
I fixed this by copying the graphics from /usr/share/icecast2/web into /etc/icecast/web and by changing the log/web/admin paths
from /var/log/icecast to /log and /usr/share/icecast2/web to /web.
I also had to change the base dir fromto /usr/share/icecast2 to /etc/icecast as none of the linked xmls files could be read.

At this point icecast will run, display the admin pages correctly, allow a source to conenct and users can listen.

However when I enable the authentication it fails to resolve the address for the authentication script. The log files contain just two warnings that I don't understand the implications of/can't resolve.

[2011-06-03 16:47:46] WARN stats/stats_event_conv No charset found for "ISO8859-1"
[2011-06-03 16:55:11] WARN auth_url/url_add_listener auth to server http://www.***.co.uk/online/auth.php failed with Couldn't resolve host 'www.***.co.uk'

running curl from the icecast2 account created during the installation works just fine returning

* About to connect() to www.***.co.uk port 80 (#0)
* Trying 178.250.***.***... connected
* Connected to www.***.co.uk (178.250.***.***) port 80 (#0)
> GET /online/auth.php HTTP/1.1
> User-Agent: curl/7.18.2 (x86_64-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18
> Host: www.***.co.uk
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Fri, 03 Jun 2011 17:22:35 GMT
< Server: Apache
< icecast-auth-user: 0
< icecast-auth-message: Invalid Stream Requested
< Content-Length: 0
< Connection: close
< Content-Type: text/html
<
* Closing connection #0


I am assuing that this is something to do with access rights but am no unix expert (I developed my authentication system with icecast on a windows box trouble free).

The relevant sections of the config file are below. any help is really appreciated.

Martin

Config
---------
<mount>
<mount-name>/****.mp3</mount-name>
<password>******</password>
<intro>/intro.mp3</intro>
<charset>ISO8859-1</charset>
<public>0</public>
<max-listeners>500</max-listeners>
<stream-name>My Station</stream-name>
<stream-description>Noise on my station</stream-description>
<stream-url>http://www.***.co.uk</stream-url>
<genre>Speech</genre>
<bitrate>64</bitrate>
<hidden>0</hidden>
<burst-size>65536</burst-size>
<authentication type="url">
<option name="listener_add" value="http://www.***.co.uk/online/auth.php"/>
<option name="listener_remove" value="http://www.***.co.uk/online/auth.php"/>
<option name="auth_header" value="icecast-auth-user: 1"/>
<option name="timelimit_header" value="icecast-auth-timelimit:"/>
</authentication>
</mount>
<fileserve>1</fileserve>

<paths>
<basedir>/etc/icecast2</basedir>

<logdir>/log</logdir>
<webroot>/web</webroot>
<adminroot>/admin</adminroot>
<alias source="/" dest="/status.xsl"/>
</paths>

<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
</logging>

<security>
<chroot>1</chroot>
<changeowner>
<user>icecast2</user>
<group>icecast</group>
</changeowner>
</security>
Back to top
View user's profile Send private message
mharrison



Joined: 03 Jun 2011
Posts: 2

PostPosted: Fri Jun 03, 2011 11:10 pm    Post subject: Reply with quote

All sorted now.

The CHROOT needed switching off, and sensible absolute paths put in.

I also found that the /etc/init.d/icecast2 script needed the change user option removed.

In the proces I discoved that the address the auth file is located at is a shared IP address so pointing by IP address wasn't possible.

Hopefully this will help anybody else with similar issues.
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