| View previous topic :: View next topic |
| Author |
Message |
curlynostrill
Joined: 26 Aug 2008 Posts: 2
|
Posted: Tue Aug 26, 2008 8:04 pm Post subject: Error at startup |
|
|
I'm trying to get icecast going with mpd as the source but have nothing so far. It all runs on Debian Etch 4.0 on a Thinkpad 570 333mhz 192MB using repository versions of mpd and icecast2. MPD works fine by itself but cannot login to icecast2.
Here is a link to my questions at the mpd forum if you're interested. http://www.musicpd.org/forum/index.php?topic=1677.0
My question now is fairly specific... I get this error at startup
| Code: |
| "WARNING: Can't change user id unless you are root." |
.
This occurs at system startup and when starting icecast2 with
| Code: |
| #/etc/init.d/icecast2 start |
Here is the .xml section I think is pertinent
| Code: |
<security>
<chroot>0</chroot>
<!-- -->
<changeowner>
<user>icecast2</user>
<group>icecast</group>
</changeowner>
<!-- -->
</security> |
Is this just a standard warning or is something wrong? I can nav to the admin page and login fine but mpd gets "Login Failed" and I never see any mountpoints listed on the admin page.
I'm dizzy. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Aug 26, 2008 8:53 pm Post subject: |
|
|
You have asked icecast to cheange to a different user but you do not have the access rights to do that, so a warning is appeared. Icecast continues on as the same user/group you started as.
As to why mpd fails, usually it's down to an incorrect user/pass but there could be other reasons which is why you should look in the error log.
karl. |
|
| Back to top |
|
 |
curlynostrill
Joined: 26 Aug 2008 Posts: 2
|
Posted: Tue Aug 26, 2008 9:16 pm Post subject: |
|
|
Thanks for the rapid response, Karl!
I'm chalking it up to Debian specific default settings that confused me while referring to the standard How-to.
I started over with the original icecast.xml and defined a special mountpoint for mpd thus:
<!-- Only define a <mount> section if you want to use advanced options,
like alternative usernames or passwords-->
<mount>
<mount-name>/mpd.ogg</mount-name>
<username>mpd</username>
<password>************************</password>
<max-listeners>10</max-listeners>
<dump-file>/tmp/dump-mpd.ogg</dump-file>
<burst-size>65536</burst-size>
<!--<fallback-mount>/example2.ogg</fallback-mount>
<fallback-override>1</fallback-override>
<fallback-when-full>1</fallback-when-full>
<intro>/example_intro.ogg</intro>
<hidden>1</hidden>
<no-yp>1</no-yp>
<authentication type="htpasswd">
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>-->
<on-connect>/home/icecast/bin/stream-start</on-connect>
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
</mount>
<!--
and left the <changeowner> section commented out.
<security>
<chroot>0</chroot>
<!--
<changeowner>
<user>nobody</user>
<group>nogroup</group>
</changeowner>
-->
</security>
</icecast>
works great. Thanks! |
|
| Back to top |
|
 |
|