| View previous topic :: View next topic |
| Author |
Message |
hdtv
Joined: 31 Oct 2008 Posts: 12
|
Posted: Fri Oct 31, 2008 10:20 am Post subject: Icecast doesn't start on OpenWRT |
|
|
Hi!
First of all I really like the work you are doing! I am trying to install the icecast server on OpenWRT Kamikaze (Linux Kernel 2.4.35.4)!
My Hardware a ASUS WL-500gPV2 and i have installed the icecast server via opkg install icecast!
While trying to run your icecast server version 2.3.2 encountered a problem at start up...
| Code: |
root@WL-500gPV2:~# icecast -c /etc/icecast.xml
Server startup failed. Exiting
|
All the logpaths im my config are valid and 777 chmod'd but there is no log output in the /var/log/icecast/error.log!
Whats wrong?
My icecast config is
| Code: |
<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>hackme</source-password>
<relay-password>hackme</relay-password>
<admin-user>admin</admin-user>
<admin-password>hackme</admin-password>
</authentication>
<hostname>192.168.1.1</hostname>
<shoutcast-mount>/live.nsv</shoutcast-mount>
<listen-socket>
<port>8000</port>
</listen-socket>
<listen-socket>
<port>8001</port>
<shoutcast-compat>1</shoutcast-compat>
</listen-socket>
<paths>
<basedir>/usr/share/icecast</basedir>
<logdir>/var/log/icecast</logdir>
<webroot>/usr/share/icecast/web</webroot>
<adminroot>/usr/share/icecast/admin</adminroot>
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>4</loglevel>
</logging>
<security>
<chroot>0</chroot>
</security>
</icecast> |
I hope you can help me with this problem! Where can i look for other error logs?
Greez |
|
| Back to top |
|
 |
hdtv
Joined: 31 Oct 2008 Posts: 12
|
Posted: Fri Oct 31, 2008 1:02 pm Post subject: |
|
|
| Please can somebody help me???? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Oct 31, 2008 2:29 pm Post subject: |
|
|
<logdir>/<errorlog> so in this case /var/log/icecast/error.log
karl. |
|
| Back to top |
|
 |
hdtv
Joined: 31 Oct 2008 Posts: 12
|
Posted: Fri Oct 31, 2008 2:35 pm Post subject: |
|
|
| karlH wrote: |
<logdir>/<errorlog> so in this case /var/log/icecast/error.log
|
Yeah i looked there, but its empty! So whats the problem? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Oct 31, 2008 4:11 pm Post subject: |
|
|
permissions? can the user running icecast open that file and that directory for writing?
karl. |
|
| Back to top |
|
 |
hdtv
Joined: 31 Oct 2008 Posts: 12
|
Posted: Fri Oct 31, 2008 9:34 pm Post subject: |
|
|
icecast is running under root and the logdir + the logfiles are all 777 root:root
| Code: |
root@WL-500gPV2:/tmp/log# ls -lR
.:
drwxrwxrwx 2 root root 80 Oct 31 10:59 icecast
-rw-r--r-- 1 root root 0 Oct 7 07:55 lastlog
-rw-r--r-- 1 root root 0 Oct 7 07:55 wtmp
./icecast:
-rwxrwxrwx 1 root root 0 Oct 31 09:27 access.log
-rwxrwxrwx 1 root root 0 Oct 31 10:59 error.log |
i have no idea where to look for the problem? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Oct 31, 2008 9:44 pm Post subject: |
|
|
is that not a different directory completely? /tmp vs /var ?
karl. |
|
| Back to top |
|
 |
hdtv
Joined: 31 Oct 2008 Posts: 12
|
Posted: Fri Oct 31, 2008 10:04 pm Post subject: |
|
|
no its the same:
| Code: |
root@WL-500gPV2:/tmp/log# ls / -l
drwxr-xr-x 2 root root 496 Oct 7 07:46 bin
drwxr-xr-x 1 root root 0 Jan 1 1970 dev
drwxr-xr-x 1 root root 0 Oct 31 16:20 etc
drwxr-xr-x 1 root root 0 Oct 7 07:55 home
drwxr-xr-x 1 root root 0 Oct 7 08:29 jffs
drwxr-xr-x 1 root root 0 Oct 7 08:18 lib
drwxrwxrwx 9 root root 4096 Oct 31 08:44 mnt
drwxr-xr-x 1 root root 0 Oct 7 08:30 opt
dr-xr-xr-x 49 root root 0 Jan 1 2000 proc
drwxr-xr-x 16 root root 163 Oct 6 20:25 rom
drwxr-xr-x 2 root root 3 Oct 6 20:23 root
drwxr-xr-x 1 root root 0 Oct 7 08:08 sbin
drwxr-xr-x 2 root root 3 Oct 6 20:23 sys
drwxrwxrwt 11 root root 360 Oct 31 16:21 tmp
drwxr-xr-x 1 root root 0 Oct 31 09:21 usr
lrwxrwxrwx 1 root root 4 Oct 7 07:54 var -> /tmp
drwxr-xr-x 1 root root 0 Oct 7 07:58 www
|
|
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Oct 31, 2008 10:10 pm Post subject: |
|
|
As the user you run icecast as, try the following
echo hello > /var/log/icecast/error.log
I haven't seen any setups that use /var symlinked to /tmp before
karl. |
|
| Back to top |
|
 |
hdtv
Joined: 31 Oct 2008 Posts: 12
|
Posted: Fri Oct 31, 2008 10:15 pm Post subject: |
|
|
| yeah i've tried this already and it worked! on openwrt's kamikaze /var -> /tmp is the default setup because /tmp is the RAM which violate on reboot! |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Nov 01, 2008 12:55 am Post subject: |
|
|
The problem here is that there's no other messages which would tell us what is wrong. For instance a log open failure would report
FATAL: could not open error logging (/var/log/icecast/error.log): No such file or directory
The xml posted looks valid for a 2.3.2 release so it's not an xml format issue. You could run strace -o output.txt icecast -c icecast.xml and send the output file to me to check to see how far it does get.
karl. |
|
| Back to top |
|
 |
hdtv
Joined: 31 Oct 2008 Posts: 12
|
Posted: Sat Nov 01, 2008 9:20 am Post subject: |
|
|
Ok i ran it und sent the output file via Email to you!
Thanks a lot for looking at it
my shell call was
| Code: |
root@WL-500gPV2:~# strace -o /mnt/output.txt icecast -c /etc/icecast.xml
Server startup failed. Exiting |
Maybe it doesn't start because of the limited system resources on the openwrt device. The following is returned from # top.
Additional Ressource Info:
| Code: |
Mem: 26612K used, 3944K free, 0K shrd, 2492K buff, 13664K cached
CPU: 0% usr 0% sys 0% nice 99% idle 0% io 0% irq 0% softirq
Load average: 0.00 0.02 0.06
|
|
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Nov 01, 2008 7:52 pm Post subject: |
|
|
checking over the output file seem to indicate some unusual paths to the shared libraries which look suspicious. The output show the xml being read but then doesn't progress any further, maybe a bad/outdated libxml2?
karl. |
|
| Back to top |
|
 |
hdtv
Joined: 31 Oct 2008 Posts: 12
|
Posted: Sun Nov 02, 2008 9:46 am Post subject: |
|
|
Okay but i've tried to reinstall libxml2 for 3 times and it doesn't change anything! I used this libxml2 with lighttpd as well and ain't had any problems!
runnind ldd icecast returning this
| Code: |
root@WL-500gPV2:~# ldd icecast
libcurl.so.4 => /usr/lib/libcurl.so.4 (0x2aaee000)
libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x2ab63000)
libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x2aca5000)
libxslt.so.1 => /usr/lib/libxslt.so.1 (0x2ad1c000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0x2ad8f000)
libdl.so.0 => /lib/libdl.so.0 (0x2aef0000)
libz.so.1 => /usr/lib/libz.so.1 (0x2af33000)
libm.so.0 => /lib/libm.so.0 (0x2af84000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2afd2000)
libpthread.so.0 => /lib/libpthread.so.0 (0x2b021000)
libc.so.0 => /lib/libc.so.0 (0x2b076000)
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x2aaa8000)
|
which seem to be the correct paths!
Do you know a way to check if the lib is corrupted? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Nov 02, 2008 4:48 pm Post subject: |
|
|
the strace seems to show a difference from the ldd output, I don't know why as the platform is not something I've used and I understand that the libs have been made less bloated for the platform, maybe the strace app has problems determining the calls made. I'd check to see if the libxml2 is recent enough as it seems that the xml is parsed and then the process exits. I can maybe do a patch to 2.3.2 to see how far it really gets to but see if you can see any libxml2 issue first.
karl. |
|
| Back to top |
|
 |
|