Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95666 - /etc/init.d/icecast start doesn't work in icecast-2.1.0
Summary: /etc/init.d/icecast start doesn't work in icecast-2.1.0
Status: RESOLVED DUPLICATE of bug 80990
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-10 04:07 UTC by Clock
Modified: 2005-06-10 04:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Clock 2005-06-10 04:07:39 UTC
I have set up valued in /etc/icecast2/icecast.xml according to the official
Icecast 2.1.0 Documentation at
http://icecast.org/docs/icecast-2.1.0/icecast2_basicsetup.html, namely according
to the statement "for a basic setup the following entries should be changed :
<source-password> - will be used by the source client
<admin-password> - will be used to access admin features of icecast
<listen-socket> (both port and bind-address)
<logdir> - directory where log files will be placed
<webroot> - any static content can be placed here (file serving root)
<adminroot> - directory containing admin xslt files"

Relevant sections from my icecast.xml file set up according to this:
        <source-password>censored</source-password>
        <admin-password>spearburn</admin-password>
    <listen-socket>
        <port>8000</port>
        <bind-address>127.0.0.1</bind-address>
    </listen-socket>
<logdir>/var/log</logdir>
<webroot>/usr/share/icecast/web</webroot>
<adminroot>/usr/share/icecast/admin</adminroot>

Check that all mentioned directories exist:
kestrel icecast2 # ls -lad /var/log
drwxr-xr-x  10 root root 4096 Jun  9 21:44 /var/log
kestrel icecast2 # ls -lad /usr/share/icecast/web
drwxr-xr-x  2 root root 4096 Jun 10 11:39 /usr/share/icecast/web
kestrel icecast2 # ls -lad /usr/share/icecast/admin
drwxr-xr-x  2 root root 4096 Jun 10 11:39 /usr/share/icecast/admin

The configuration file has been saved. Now the guide says "Once the configuration
file is modified, you should be able to start the server with the following
command"

As servers are started using /etc/init.d scripts, I started the daemon using
/etc/init.d script instead:
kestrel root # /etc/init.d/icecast start
 * Starting Icecast 2...                                                  [ ok ]

However no Icecast is running:
kestrel root # ps ax | grep ice         
19489 tty1     S      0:10 icewm

And the daemon also cannot be stopped:
kestrel root # /etc/init.d/icecast stop 
 * Stopping Icecast 2...
No icecast found running; none killed.                                    [ !! ]

No log file was obviously created:
kestrel log # ls
Xorg.0.log      apache2  emerge.log  lastlog   news     socksd.log
Xorg.0.log.old  chrony   exim        messages  ntp.log  wtmp
acpid           cups     iptraf      mysql     samba

The guide says "If no error messages are generated, then check the error.log
file". No error.log is present in /var/log as can be seen above.

I examined the syslog file "messages" and no message was appended, either.

The starting method from the guide doesn't work either:
"kestrel log # icecast -c /etc/icecast2/icecast.xml 
ERROR: You should not run icecast2 as root
Use the changeowner directive in the config file
kestrel log # ps ax | grep ice
19489 tty1     S      0:11 icewm
 8132 pts/3    R+     0:00 grep ice
"

Reproducible: Always
Steps to Reproduce:
1.Install icecast 2.1.0
2.Configure icecast according to the official guide at
http://icecast.org/docs/icecast-2.1.0/icecast2_basicsetup.html
3. /etc/init.d /icecast start
4. ps ax | grep ice

Actual Results:  
No process is running

Expected Results:  
Print a process line with icecast server

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r9 i686)
================================================================= System uname:
2.6.11-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1.50GHz Gentoo Base System
version 1.4.16 Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May  4
2005, 16:17:52)] dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf
/etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer
-pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache
distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi
berkdb bitmap-fonts cdr crypt cups curl emboss encode esd fam foomaticdb fortran
gd gdbm gif gpm gtk gtk2 guile imagemagick imap imlib ipv6 jack java jpeg kde
ldap libg++ libwww mad mikmod mng motif mozilla mp3 mpeg mysql ncurses nls ogg
oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby samba
sdl slang spell ssl svga tcltk tcpd tetex tiff tls truetype truetype-fonts
type1-fonts vorbis xine xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-10 04:14:01 UTC
You are missing the log directory. 

*** This bug has been marked as a duplicate of 80990 ***