| View previous topic :: View next topic |
| Author |
Message |
auoa
Joined: 24 Nov 2009 Posts: 4
|
Posted: Tue Nov 24, 2009 5:57 pm Post subject: Ubuntu Server and IceCast2 |
|
|
Hi,
I installed IceCat2 on my Ubuntu Server with
| Code: |
sudo apt-get install icecast2
|
Sadly I just get the follwing error when I try to start it:
| Code: |
sudo /etc/init.d/icecast2 start
: command not foundt2: line 4:
: command not foundt2: line 8:
: command not foundt2: line 11:
: command not foundt2: line 15:
' not foundecast2: start-stop-daemon: group `icecast
(Success)
|
obviously the server is not running, becase I can't acess http://*ip*:8000
Any idea what I can do or try?
greets auoa |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Nov 24, 2009 6:29 pm Post subject: |
|
|
Those are not errors from anything we have produced, maybe the ubuntu script /etc/init.d/icecast2 needs something for it to work.
karl. |
|
| Back to top |
|
 |
auoa
Joined: 24 Nov 2009 Posts: 4
|
Posted: Tue Nov 24, 2009 6:36 pm Post subject: |
|
|
these are the first 25 lines of the /etc/init.d/icecast2 file
| Code: |
#! /bin/sh
#
# icecast2
#
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
# Modified for Debian
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Further modified by Keegan Quinn <ice@thebasement.org>
# for use with Icecast 2
#
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/icecast2
NAME=icecast2
DESC=icecast2
test -x $DAEMON || exit 0
# Defaults
CONFIGFILE="/etc/icecast2/icecast.xml"
CONFIGDEFAULTFILE="/etc/default/icecast2"
USERID=icecast2
GROUPID=icecast
ENABLE="false" |
when you start to count the lines e.g. line 4 is only a comment, I don't know how to handle this error...
Is it nessecery to reboot the machine? or to restart any services?
auoa |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Nov 24, 2009 8:09 pm Post subject: |
|
|
try using
sh -x /etc/init.d/icecast2 ...
it may tell you where the errors refer to, the errors may not be in this script directly but in something it refers to.
karl. |
|
| Back to top |
|
 |
auoa
Joined: 24 Nov 2009 Posts: 4
|
Posted: Tue Nov 24, 2009 8:28 pm Post subject: |
|
|
thats the answer from the server
| Code: |
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/usr/bin/icecast2
+ NAME=icecast2
+ DESC=icecast2
+ test -x /usr/bin/icecast2
+ CONFIGFILE=/etc/icecast2/icecast.xml
+ CONFIGDEFAULTFILE=/etc/default/icecast2
+ USERID=icecast2
+ GROUPID=icecast
+ ENABLE=false
+ '[' -r /etc/default/icecast2 ']'
+ . /etc/default/icecast2
++ $'\r'
: command not foundt2: line 4:
++ $'\r'
: command not foundt2: line 8:
++ CONFIGFILE=$'/etc/icecast2/icecast.xml\r'
++ $'\r'
: command not foundt2: line 11:
++ USERID=$'icecast2\r'
++ GROUPID=$'icecast\r'
++ $'\r'
: command not foundt2: line 15:
++ ENABLE=true
+ '[' true '!=' true ']'
+ set -e
+ case "$1" in
+ echo 'Usage: /etc/init.d/icecast2 {start|stop|restart|reload|force-reload}'
Usage: /etc/init.d/icecast2 {start|stop|restart|reload|force-reload}
+ exit 1
root@lvps81-162-19-46:~# sh -x /etc/init.d/icecast2 start
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/usr/bin/icecast2
+ NAME=icecast2
+ DESC=icecast2
+ test -x /usr/bin/icecast2
+ CONFIGFILE=/etc/icecast2/icecast.xml
+ CONFIGDEFAULTFILE=/etc/default/icecast2
+ USERID=icecast2
+ GROUPID=icecast
+ ENABLE=false
+ '[' -r /etc/default/icecast2 ']'
+ . /etc/default/icecast2
++ $'\r'
: command not foundt2: line 4:
++ $'\r'
: command not foundt2: line 8:
++ CONFIGFILE=$'/etc/icecast2/icecast.xml\r'
++ $'\r'
: command not foundt2: line 11:
++ USERID=$'icecast2\r'
++ GROUPID=$'icecast\r'
++ $'\r'
: command not foundt2: line 15:
++ ENABLE=true
+ '[' true '!=' true ']'
+ set -e
+ case "$1" in
+ echo -n 'Starting icecast2: '
Starting icecast2: + start-stop-daemon --start --quiet --chuid $'icecast2\r:icecast\r' --exec /usr/bin/icecast2 -- -b -c $'/etc/icecast2/icecast.xml\r'
' not founddaemon: group `icecast
(Success)
|
srry I'm not that familiar with linux to read something out of this message
auoa
Last edited by auoa on Thu Nov 26, 2009 7:51 pm; edited 1 time in total |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Nov 24, 2009 8:35 pm Post subject: |
|
|
+ ENABLE=false
+ '[' -r /etc/default/icecast2 ']'
+ . /etc/default/icecast2
++ $'\r'
: command not foundt2: line 4:
++ $'\r'
looks like what exactly I said might be happening, something else is being run and that is throwing the error. I would suggest you query whoever wrote the script to see what is wrong, but make sure it hasn't been modified.
karl. |
|
| Back to top |
|
 |
rec91402
Joined: 14 Nov 2009 Posts: 32
|
Posted: Wed Nov 25, 2009 5:56 am Post subject: Running the wrong program |
|
|
Looks like your script is expecting Icecast to be named Icecast2
DAEMON=/usr/bin/icecast2
Change this line to
DAEMON=/usr/bin/icecast
And see if that works, thats the icecast program. |
|
| Back to top |
|
 |
auoa
Joined: 24 Nov 2009 Posts: 4
|
Posted: Thu Nov 26, 2009 7:46 pm Post subject: |
|
|
I tried this change, but without result. When I execute the modified script nothing apperas on the console ... und port 8000 still shows no content.
What outputs the console, after having executed the start command?
auoa |
|
| Back to top |
|
 |
|