| View previous topic :: View next topic |
| Author |
Message |
jjll
Joined: 13 Nov 2009 Posts: 3
|
Posted: Fri Nov 13, 2009 3:28 am Post subject: ICECAST Starting Problem |
|
|
Dear all
I have a darwin server. I want to install the icecast into it. But when I start the icecast, the result is
Starting icecast2
Detaching from the console
Server startup failed. Exiting
I don't know how to solve it. Can anyone help me? Thanks.
ps. my icecast.xml
<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>
<source-password>ABCD</source-password>
<relay-password>ABCD</relay-password>
<admin-user>qtss</admin-user>
<admin-password>ABCD</admin-password>
</authentication>
<hostname>192.168.0.106</hostname>
<listen-socket>
<port>8000</port>
</listen-socket>
<mount>
<mount-name>/ices</mount-name>
<password>ABCD</password>
</mount>
<fileserve>1</fileserve>
<paths>
<basedir>/var/ices-new/share/icecast</basedir>
<logdir>/var/ices-new/var/log/icecast</logdir>
<webroot>/var/ices-new/share/icecast/web</webroot>
<adminroot>/var/ices-new/share/icecast/admin</adminroot>
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>1</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logdir>/var/log/icecast</logdir>
<logsize>10000</logsize> <!-- Max size of a logfile -->
</logging>
<security>
<chroot>0</chroot>
</security>
--------------------------------------------------------
I have installed these 4 packages.
* libxml2 - http://xmlsoft.org/downloads.html
* libxslt - http://xmlsoft.org/XSLT/downloads.html
* curl - http://curl.haxx.se/download.html (>= version 7.10 required)
NOTE: icecast may be compiled without curl, however this will
disable all Directory server interaction (YP).
* ogg/vorbis - http://www.vorbis.com/files (>= version 1.0 required)
Thanks.
________
IOLITE VAPORIZER REVIEW
Last edited by jjll on Fri Feb 25, 2011 1:57 am; edited 1 time in total |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Nov 13, 2009 3:35 am Post subject: |
|
|
Try starting icecast without -b initially, see if there are any messages that would of appeared after the process goes into the background. A possible issue may be the log directory having wrong permissions.
karl. |
|
| Back to top |
|
 |
jjll
Joined: 13 Nov 2009 Posts: 3
|
Posted: Fri Nov 13, 2009 3:49 am Post subject: |
|
|
Hi KarlH
This is the result
[root@forum-kh-pc bin]# icecast -c /etc/icecast.xml
Server startup failed. Exiting
[root@forum-kh-pc bin]#
It also doesn't work. Thanks.
________
Ford custom specifications
Last edited by jjll on Fri Feb 25, 2011 1:57 am; edited 1 time in total |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Nov 13, 2009 4:04 am Post subject: |
|
|
It is not clear from your posting whether the log files are being created in /var/ices-new/var/log/icecast, check those files for errors maybe increase the log level to at least 3 to check for information messages. If you are sure that port 8000 is available for use then you may need to provide some access to that platform to see what it is actually failing on, darwin is not the typical platform we get reports on.
karl. |
|
| Back to top |
|
 |
jjll
Joined: 13 Nov 2009 Posts: 3
|
Posted: Fri Nov 13, 2009 6:31 am Post subject: |
|
|
karl.[/quote]
Hi Karl
Can you tell me how to increase the log level to 3? Thanks.
________
Star Craft Replays
Last edited by jjll on Fri Feb 25, 2011 1:58 am; edited 1 time in total |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Nov 13, 2009 1:41 pm Post subject: |
|
|
Setting the log level to 3 is done by the following
<loglevel>3</loglevel>
karl. |
|
| Back to top |
|
 |
Proofstar
Joined: 22 Dec 2009 Posts: 4
|
Posted: Tue Dec 22, 2009 11:21 am Post subject: |
|
|
Hello
I need Help. Sorry my English is bad, i have never learn English.
This Error message came when i will Start Icecast from console. My System: WD MyBookWorld Version 2 (2 Drives)
I have Install Icecast over ipkg an the Version of this -> 2.3.2
The Permission for LOG directory is READ/WRITE for ALL.
Have an idea? Please Help.
[root@NAS1500 ~]# /opt/bin/icecast -c /opt/etc/icecast.xml
Changed root successfully to "/opt/share/icecast".
Changed groupid to 99.
Changed userid to 1002.
FATAL: could not open error logging (/opt/log/error.log): No such file or directory
FATAL: could not open access logging (/opt/log/access.log): No such file or directory
FATAL: Could not start logging
Thanks so mutch
Greetings
Michael
UPDATE: When i change the Directory then came the SAME Error. Why this?? i have testet MANY other Direcorys an the Error came EVER!! (BUG in the File icecast? Bad Compile? i Can't recompile... the system was compile without the GCC Compiler.. ) |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Dec 22, 2009 6:50 pm Post subject: |
|
|
icecast cannot open the file /opt/log/error.log, maybe user 99 (nobody?) does not have write access?
karl. |
|
| Back to top |
|
 |
Proofstar
Joined: 22 Dec 2009 Posts: 4
|
Posted: Wed Dec 23, 2009 12:33 am Post subject: |
|
|
Hello
Thank for the Reply
I have give MY Name as Nobody Write rights! (chown)
My name (MICHAEL) have ROOT-Rights (User-ID 1002)
Group is NOBODY (Group-ID 99)
what can i make? Sorry i am a Windows User and my Understanding from Linux is minimal. Please give me a Step by Step Help what i can do..
THANKS
Michael
P.S. Here my icecast.xml
| Code: |
<icecast>
......
<authentication>
<!-- Sources log in with username 'source' -->
<source-password>PASSWORD</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>PASSWORD</relay-password>
<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>PASSWORD</admin-password>
</authentication>
....
....
....
<fileserve>1</fileserve>
<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/opt/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>/opt/log</logdir>
<webroot>/opt/share/icecast/web</webroot>
<adminroot>/opt/share/icecast/admin</adminroot>
<!-- <pidfile>/opt/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>3</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>0</logarchive>
</logging>
<security>
<chroot>1</chroot>
<changeowner>
<user>MICHAEL</user>
<group>nobody</group>
</changeowner>
</security>
</icecast>
|
|
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Dec 23, 2009 1:02 am Post subject: |
|
|
if /opt/log/error.log and the directory /opt/log is not writeable by MICHAEL (id 1002) or group nobody (id 99) then icecast will have problems writing to those files. It is not clear whether you have determined the permissions on the log directory. Also note that you have enabled chroot so it has to be within the jail (/opt/share/icecast). I would suggest that as a beginner to linux that you don't enable certain features until you get the basics resolved, and chroot jails are probably not what you intended.
karl. |
|
| Back to top |
|
 |
Proofstar
Joined: 22 Dec 2009 Posts: 4
|
Posted: Wed Dec 23, 2009 2:04 pm Post subject: |
|
|
Thanks for Responce
This is was i make bei CHROOT:
<!-- basedir is only used if chroot is enabled -->
<basedir>/opt/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 -->
I have make a NEW ROOT Directory. I will not have the ORIGINAL Root Directory. (By Install the Software make me the NEW Diectory's automatically)
But i have make a Directory by /opt/share/icecast (e.g. /opt/share/icecast/log) nothing solve the Problem..
What must i make that id 1002 and id 99 have WRITE Permissions on the Directory /opt/share/icecast/log ? Thanks for your Help and Sorry that i am a Beginner under Linux. (I have 2 NAS-Drives with LINUX-System onboard... i will Learn the minimal options of Linux and what i can make with this.)
A other Question: Why can work the Icecast server NOTHING under ROOT Permissions?
Greetings
Michael |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Dec 23, 2009 6:46 pm Post subject: |
|
|
Any setup of a chroot jail is not done by us, it may be done by the installation procedure set out by the distribution packager though.
If you insist on using a chroot jail then you will need to set up the directory so that it works. If the new root use to be /opt/share/icecast and you have set logdir to be /opt/share/icecast/log then the logdir would be referenced in a non-chroot environment would be
/opt/share/icecast/opt/share/icecast/log, so you need to use something like chmod and chown to set up those access rights. Maybe you are confusing your paths and really want logdir to be /log
karl. |
|
| Back to top |
|
 |
Proofstar
Joined: 22 Dec 2009 Posts: 4
|
Posted: Thu Dec 24, 2009 12:47 am Post subject: |
|
|
Hello
Thanks for your Help. I have solve the Problem. Here my new icecast.xml
<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/opt/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>/opt/share/icecast/log</logdir>
<webroot>/opt/share/icecast/web</webroot>
<adminroot>/opt/share/icecast/admin</adminroot>
<!-- <pidfile>/opt/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>
...........
<security>
<chroot>0</chroot>
<changeowner>
<user>MICHAEL</user>
<group>nobody</group>
</changeowner>
</security>
</icecast>
Now is Icecast Funktionable. But i UNDERSTAND why Chroot = 1 not Funktion... ????? Why is this option in this file, why why why? Sorry i don't Understand this.. SORRY. My English is not so good..
THANK for your HELP and for YOU and YOUR Family: MERRY CHRISTMAS and a HAPPY NEW YEAR!
Greetings
Michael |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Dec 24, 2009 1:09 am Post subject: |
|
|
The option is there to allow for people to use a jail if they are very concerned about security breaches. A jail is generally not used as icecast is really only concerned about streaming and many people fail to understand what is needed within a jail for an application to work properly, in your case the paths to the files, for others it could be DNS resolution..
karl. |
|
| Back to top |
|
 |
TheHat
Joined: 02 Jan 2010 Posts: 7
|
Posted: Sat Jan 02, 2010 2:25 pm Post subject: Server Startup failed - Exciting |
|
|
Please can somebody help me, I have tried many different combinations but now cannot get the server to start.
My xml is as follows;
<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>
<!-- If enabled, this will provide a burst of data when a client
first connects, thereby significantly reducing the startup
time for listeners that do substantial buffering. However,
it also significantly increases latency between the source
client and listening client. For low-latency setups, you
might want to disable this. -->
<burst-on-connect>1</burst-on-connect>
<!-- same as burst-on-connect, but this allows for being more
specific on how much to burst. Most people won't need to
change from the default 64k. Applies to all mountpoints -->
<burst-size>65535</burst-size>
</limits>
<authentication>
<!-- Sources log in with username 'source' -->
<source-password>****</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>****</relay-password>
<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>****</admin-password>
</authentication>
<!-- set the mountpoint for a shoutcast source to use, the default if not
specified is /stream but you can change it here if an alternative is
wanted or an extension is required
<shoutcast-mount>/live.nsv</shoutcast-mount>
-->
<!-- Uncomment this if you want directory listings -->
<!--
<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>87.98.177.199</hostname>
<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>9000</port>
<!-- <bind-address>127.0.0.1</bind-address> -->
<!-- <shoutcast-mount>/stream</shoutcast-mount> -->
</listen-socket>
<!--
<listen-socket>
<port>9001</port>
</listen-socket>
-->
<!--<master-server>127.0.0.1</master-server>-->
<!--<master-server-port>9001</master-server-port>-->
<!--<master-update-interval>120</master-update-interval>-->
<!--<master-password>****</master-password>-->
<!-- setting this makes all relays on-demand unless overridden, this is
useful for master relays which do not have <relay> definitions here.
The default is 0 -->
<!--<relays-on-demand>1</relays-on-demand>-->
<!--
<relay>
<server>127.0.0.1</server>
<port>9001</port>
<mount>/example.ogg</mount>
<local-mount>/different.ogg</local-mount>
<on-demand>0</on-demand>
<relay-shoutcast-metadata>0</relay-shoutcast-metadata>
</relay>
-->
<!-- Only define a <mount> section if you want to use advanced options,
like alternative usernames or passwords
<mount>
<mount-name>/example-complex.ogg</mount-name>
<username>othersource</username>
<password>hackmemore</password>
<max-listeners>100</max-listeners>
<dump-file>/tmp/dump-example1.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>
<mount>
<mount-name>/auth_example.ogg</mount-name>
<authentication type="url">
<option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
<option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
<option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
<option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
</authentication>
</mount>
-->
<fileserve>1</fileserve>
<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/home/icecast/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>/</logdir>
<webroot>/web</webroot>
<adminroot>/admin</adminroot>
<!-- <pidfile>/usr/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="/usr/local/share/icecast/web" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>3</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>1</chroot>
<changeowner>
<user>icecast</user>
<group></group>
</changeowner>
</security>
</icecast>
Would be grateful for any help. If i point to my web address i get The file you requested could not be found
TheHat |
|
| Back to top |
|
 |
|