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 

Ubuntu Server and IceCast2

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



Joined: 24 Nov 2009
Posts: 4

PostPosted: Tue Nov 24, 2009 5:57 pm    Post subject: Ubuntu Server and IceCast2 Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Nov 24, 2009 6:29 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
auoa



Joined: 24 Nov 2009
Posts: 4

PostPosted: Tue Nov 24, 2009 6:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Nov 24, 2009 8:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
auoa



Joined: 24 Nov 2009
Posts: 4

PostPosted: Tue Nov 24, 2009 8:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Nov 24, 2009 8:35 pm    Post subject: Reply with quote

+ 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
View user's profile Send private message Send e-mail Visit poster's website
rec91402



Joined: 14 Nov 2009
Posts: 32

PostPosted: Wed Nov 25, 2009 5:56 am    Post subject: Running the wrong program Reply with quote

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
View user's profile Send private message
auoa



Joined: 24 Nov 2009
Posts: 4

PostPosted: Thu Nov 26, 2009 7:46 pm    Post subject: Reply with quote

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
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